pub struct Version {
pub name: String,
pub version: String,
pub yanked: bool,
pub license: Option<String>,
pub created_at: OffsetDateTime,
/* private fields */
}Expand description
A crate version
Fields§
§name: StringThe name of the crate
version: StringThe semantic version of the crate
yanked: boolWhether this version was yanked
license: Option<String>The primary license of the crate
created_at: OffsetDateTimeWhen the crate was created
Implementations§
Source§impl Version
impl Version
pub fn format_verbose_time(&self) -> String
pub fn format_approx_time_span(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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 Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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