pub struct Version { /* private fields */ }
Expand description
A representation of a permanent file content.
Implementations§
Source§impl Version
impl Version
Sourcepub fn num(&self) -> usize
pub fn num(&self) -> usize
Returns the version number of this content.
The version number starts from 1 and continuously increases by 1.
Sourcepub fn content_len(&self) -> usize
pub fn content_len(&self) -> usize
Returns the byte length of this version of content.
Sourcepub fn created_at(&self) -> SystemTime
pub fn created_at(&self) -> SystemTime
Returns the creation time of this version of content.
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