pub struct StoreLineage {
pub lineage_id: LineageId,
pub archived: bool,
}Expand description
The lineage row of one store file.
Fields§
§lineage_id: LineageIdWritable history this file continues.
archived: boolA backup archive, refused for writing until restored into a new store.
Implementations§
Source§impl StoreLineage
impl StoreLineage
Sourcepub fn check_writable(
&self,
expected: Option<LineageId>,
path: &Path,
) -> Result<(), LineageError>
pub fn check_writable( &self, expected: Option<LineageId>, path: &Path, ) -> Result<(), LineageError>
Refuse a write to an archive, or to a lineage other than the one the caller observed.
Trait Implementations§
Source§impl Clone for StoreLineage
impl Clone for StoreLineage
impl Copy for StoreLineage
Source§impl Debug for StoreLineage
impl Debug for StoreLineage
Source§impl<'de> Deserialize<'de> for StoreLineage
impl<'de> Deserialize<'de> for StoreLineage
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 StoreLineage
Source§impl PartialEq for StoreLineage
impl PartialEq for StoreLineage
Source§impl Serialize for StoreLineage
impl Serialize for StoreLineage
impl StructuralPartialEq for StoreLineage
Auto Trait Implementations§
impl Freeze for StoreLineage
impl RefUnwindSafe for StoreLineage
impl Send for StoreLineage
impl Sync for StoreLineage
impl Unpin for StoreLineage
impl UnsafeUnpin for StoreLineage
impl UnwindSafe for StoreLineage
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