pub struct Version {
pub num: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub downloads: u64,
pub yanked: bool,
pub id: Option<u64>,
pub crate_size: Option<u64>,
pub published_by: Option<User>,
pub audit_actions: Option<Vec<AuditAction>>,
pub license: Option<String>,
pub links: Option<VersionLinks>,
}
Expand description
Version information
Fields§
§num: String
Version number
created_at: DateTime<Utc>
Creation timestamp
updated_at: DateTime<Utc>
Last update timestamp
downloads: u64
Download count for this version
yanked: bool
Whether this version is yanked
id: Option<u64>
Version ID
crate_size: Option<u64>
Crate size in bytes
published_by: Option<User>
Published by user
audit_actions: Option<Vec<AuditAction>>
Audit actions
license: Option<String>
License information
links: Option<VersionLinks>
Links for this version
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
impl StructuralPartialEq for Version
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