pub struct CrateInfo {
pub latest: String,
pub downloads: String,
pub total_downloads: u64,
pub versions: u64,
pub license: String,
pub created_at: String,
pub updated_at: String,
}Expand description
Represents the essential metadata of a crate retrieved from crates.io.
This structure holds both human-readable strings for display and raw numeric values for programmatic use.
Fields§
§latest: StringThe latest version of the crate (e.g., “1.5.0”).
downloads: StringHuman-readable download count (e.g., “56k”).
total_downloads: u64The exact total number of downloads.
versions: u64The total number of versions ever published.
license: StringThe software license (e.g., “MIT OR Apache-2.0”).
created_at: StringISO 8601 formatted creation timestamp.
updated_at: StringISO 8601 formatted timestamp of the last update.
Auto Trait Implementations§
impl Freeze for CrateInfo
impl RefUnwindSafe for CrateInfo
impl Send for CrateInfo
impl Sync for CrateInfo
impl Unpin for CrateInfo
impl UnwindSafe for CrateInfo
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