{"id":13595626,"url":"https://github.com/hyperium/mime","last_synced_at":"2025-05-14T09:06:31.929Z","repository":{"id":20128874,"uuid":"23398922","full_name":"hyperium/mime","owner":"hyperium","description":"MIMEs in Rust","archived":false,"fork":false,"pushed_at":"2024-10-31T10:17:05.000Z","size":835,"stargazers_count":190,"open_issues_count":48,"forks_count":79,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-08T00:05:12.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.rs/mime","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2014-08-27T17:29:55.000Z","updated_at":"2025-05-01T09:34:21.000Z","dependencies_parsed_at":"2024-06-18T15:30:37.562Z","dependency_job_id":"c745cbd5-3e6b-48b9-a5c5-afbcc1ab3963","html_url":"https://github.com/hyperium/mime","commit_stats":{"total_commits":195,"total_committers":36,"mean_commits":5.416666666666667,"dds":0.6615384615384615,"last_synced_commit":"1ef137c7358fc64e07c8a640e4e9ba2a784b7f7d"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperium%2Fmime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperium%2Fmime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperium%2Fmime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperium%2Fmime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperium","download_url":"https://codeload.github.com/hyperium/mime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973690,"owners_count":21834108,"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-08-01T16:01:53.926Z","updated_at":"2025-05-14T09:06:31.904Z","avatar_url":"https://github.com/hyperium.png","language":"Rust","readme":"# mime\n\n[![Build Status](https://travis-ci.org/hyperium/mime.svg?branch=master)](https://travis-ci.org/hyperium/mime)\n[![crates.io](https://img.shields.io/crates/v/mime.svg)](https://crates.io/crates/mime)\n[![docs.rs](https://docs.rs/mime/badge.svg)](https://docs.rs/mime)\n\nSupport MIME (HTTP Media Types) as strong types in Rust.\n\n[Documentation](https://docs.rs/mime)\n\n## Usage\n\n```rust\nextern crate mime;\n\nfn main() {\n    // common types are constants\n    let text = mime::TEXT_PLAIN;\n\n    // deconstruct Mimes to match on them\n    match (text.type_(), text.subtype()) {\n        (mime::TEXT, mime::PLAIN) =\u003e {\n            // plain text!\n        },\n        (mime::TEXT, _) =\u003e {\n            // structured text!\n        },\n        _ =\u003e {\n            // not text!\n        }\n    }\n}\n```\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperium%2Fmime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperium%2Fmime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperium%2Fmime/lists"}