[][src]Struct crates_io_api::Crate

pub struct Crate {
    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 links: CrateLinks,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
    pub exact_match: Option<bool>,
}

Fields

id: Stringname: Stringdescription: Option<String>license: Option<String>documentation: Option<String>homepage: Option<String>repository: Option<String>downloads: u64recent_downloads: Option<u64>categories: Option<Vec<String>>keywords: Option<Vec<String>>versions: Option<Vec<u64>>max_version: Stringlinks: CrateLinkscreated_at: DateTime<Utc>updated_at: DateTime<Utc>exact_match: Option<bool>

Trait Implementations

impl Clone for Crate[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Crate[src]

impl Serialize for Crate[src]

impl<'de> Deserialize<'de> for Crate[src]

Auto Trait Implementations

impl Send for Crate

impl Unpin for Crate

impl Sync for Crate

impl UnwindSafe for Crate

impl RefUnwindSafe for Crate

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err