pub enum MetadataBasis {
Genesis,
Manifest(BasisManifest),
}Expand description
The materialized starting point every read and flush builds on.
Variants§
Genesis
The built-in genesis state: one root-inode row at sequence zero, synthesized rather than loaded. A created namespace reads from this until its first flush publishes a manifest.
Manifest(BasisManifest)
A manifest object, owned by this namespace or — while the head still authorizes it — by the fork source.
Implementations§
Source§impl MetadataBasis
impl MetadataBasis
pub fn manifest(&self) -> Option<&BasisManifest>
Sourcepub fn manifest_id(&self) -> ManifestId
pub fn manifest_id(&self) -> ManifestId
Logical position this basis sits at. Genesis is position zero: the namespace’s first published manifest is one past it.
Sourcepub fn is_owned_by(&self, namespace_id: &NamespaceId) -> bool
pub fn is_owned_by(&self, namespace_id: &NamespaceId) -> bool
Whether the basis is a manifest this namespace itself published, so
its own metadata/root.json exists.
Trait Implementations§
Source§impl Clone for MetadataBasis
impl Clone for MetadataBasis
Source§fn clone(&self) -> MetadataBasis
fn clone(&self) -> MetadataBasis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetadataBasis
impl Debug for MetadataBasis
impl Eq for MetadataBasis
Source§impl PartialEq for MetadataBasis
impl PartialEq for MetadataBasis
impl StructuralPartialEq for MetadataBasis
Auto Trait Implementations§
impl Freeze for MetadataBasis
impl RefUnwindSafe for MetadataBasis
impl Send for MetadataBasis
impl Sync for MetadataBasis
impl Unpin for MetadataBasis
impl UnsafeUnpin for MetadataBasis
impl UnwindSafe for MetadataBasis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more