{"id":21421750,"url":"https://github.com/pdamianik/named-types-rs","last_synced_at":"2025-03-16T20:14:37.429Z","repository":{"id":183428100,"uuid":"670124512","full_name":"pdamianik/named-types-rs","owner":"pdamianik","description":"Like Display or Debug but for type names","archived":false,"fork":false,"pushed_at":"2023-07-28T08:21:24.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T04:04:36.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/named-types","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdamianik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T10:51:51.000Z","updated_at":"2023-07-24T11:38:38.000Z","dependencies_parsed_at":"2024-11-22T22:02:06.364Z","dependency_job_id":null,"html_url":"https://github.com/pdamianik/named-types-rs","commit_stats":null,"previous_names":["pdamianik/named-types-rs"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdamianik%2Fnamed-types-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdamianik%2Fnamed-types-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdamianik%2Fnamed-types-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdamianik%2Fnamed-types-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdamianik","download_url":"https://codeload.github.com/pdamianik/named-types-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926072,"owners_count":20369910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T20:38:00.422Z","updated_at":"2025-03-16T20:14:37.388Z","avatar_url":"https://github.com/pdamianik.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# named-types-rs\n\nLike Display or Debug but for type names.\n\nThis crate provides `Named`, a trait that provides a `core::fmt::Display`able way to get a types Name.\nIt is similar to `core::any::type_name` without paths, but should provide a more sensical name for\nsomething like `std::io::Error`, which would show up as `Error` with something like [pretty-type-name](https://crates.io/crates/pretty-type-name),\nwhereas this crate provides the name `IoError`.\n\nThe names for std are given based on the [Duck Test](https://en.wikipedia.org/wiki/Duck_test), e.g. \n`core::slice::Iter` stays `Iter` conflicting with something like `core::option::Iter` because they behave \nlike generic iterators, whereas `std::io::Error` does not behave like a generic Error but rather is a \nspecific Error type for io operations.\n\nAdditionally a Named derive macro is provided for deriving the Named trait. \nThis macro can be configured by attributing a derived type with #[named(...)]. \nThe following options can be passed to the attribute:\n\n * rename = \"...\" to change the types name.\n * format = \"...\" to use a custom format string that accepts all non-ignored generic parameters. Overrides any rename = \"...\" parameters to format the types name.\n * ignore_all to ignore all generic parameters.\n * ignore = ... to ignore a generic parameter.\n * passthrough = ... to use the Named implementation of a generic parameter. Takes priority over other options.\n\nTo configure multiple options repeat the #[named(...)] attribute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdamianik%2Fnamed-types-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdamianik%2Fnamed-types-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdamianik%2Fnamed-types-rs/lists"}