Struct crates_io_api::Crate
source · pub struct Crate {Show 18 fields
pub id: String,
pub name: String,
pub description: Option<String>,
pub license: Option<String>,
pub documentation: Option<String>,
pub homepage: Option<String>,
pub repository: Option<String>,
pub downloads: u64,
pub recent_downloads: Option<u64>,
pub categories: Option<Vec<String>>,
pub keywords: Option<Vec<String>>,
pub versions: Option<Vec<u64>>,
pub max_version: String,
pub max_stable_version: Option<String>,
pub links: CrateLinks,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub exact_match: Option<bool>,
}
Expand description
A Rust crate published to crates.io.
Fields§
§id: String
§name: String
§description: Option<String>
§license: Option<String>
👎Deprecated since 0.8.1: This field is always empty. The license is only available on a specific
§Version
of a crate or on FullCrate
. This field will be removed in the next minor version bump.documentation: Option<String>
§homepage: Option<String>
§repository: Option<String>
§downloads: u64
§recent_downloads: Option<u64>
§categories: Option<Vec<String>>
NOTE: not set if the crate was loaded via a list query.
keywords: Option<Vec<String>>
NOTE: not set if the crate was loaded via a list query.
versions: Option<Vec<u64>>
§max_version: String
§max_stable_version: Option<String>
§links: CrateLinks
§created_at: DateTime<Utc>
§updated_at: DateTime<Utc>
§exact_match: Option<bool>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Crate
impl<'de> Deserialize<'de> for Crate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Crate
impl RefUnwindSafe for Crate
impl Send for Crate
impl Sync for Crate
impl Unpin for Crate
impl UnwindSafe for Crate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more