pub struct DocumentVersion {
pub version_number: u64,
pub content_hash: Blake3Hash,
pub encryption_key: EncryptedKey,
pub size_bytes: u64,
pub author: UserId,
pub signatures: Vec<VersionSignature>,
pub comment: String,
pub created_at: SystemTime,
pub is_approved: bool,
}Expand description
Document version
Fields§
§version_number: u64§content_hash: Blake3Hash§encryption_key: EncryptedKey§size_bytes: u64§signatures: Vec<VersionSignature>§comment: String§created_at: SystemTime§is_approved: boolTrait Implementations§
Source§impl Clone for DocumentVersion
impl Clone for DocumentVersion
Source§fn clone(&self) -> DocumentVersion
fn clone(&self) -> DocumentVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentVersion
impl Debug for DocumentVersion
Source§impl<'de> Deserialize<'de> for DocumentVersion
impl<'de> Deserialize<'de> for DocumentVersion
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 DocumentVersion
impl RefUnwindSafe for DocumentVersion
impl Send for DocumentVersion
impl Sync for DocumentVersion
impl Unpin for DocumentVersion
impl UnwindSafe for DocumentVersion
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