pub struct DocumentVersion {
pub version: B3Hash,
pub bytes: Option<u64>,
pub kept: bool,
pub source: VersionSource,
}Expand description
One version, and where the city learnt of it.
Fields§
§version: B3Hash§bytes: Option<u64>Its length, when a line or the content store says it.
kept: boolThe content store holds its bytes, so Range, Bytes and
Export can read it.
source: VersionSourceTrait Implementations§
Source§impl Clone for DocumentVersion
impl Clone for DocumentVersion
Source§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
impl Eq for DocumentVersion
Source§impl PartialEq for DocumentVersion
impl PartialEq for DocumentVersion
Source§impl Serialize for DocumentVersion
impl Serialize for DocumentVersion
impl StructuralPartialEq for DocumentVersion
Auto Trait Implementations§
impl Freeze for DocumentVersion
impl RefUnwindSafe for DocumentVersion
impl Send for DocumentVersion
impl Sync for DocumentVersion
impl Unpin for DocumentVersion
impl UnsafeUnpin 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