pub struct ObjectIndex {
pub metadata_to_commit: FxHashMap<String, CommitIndex>,
pub manifest_to_commit: FxHashMap<String, CommitIndex>,
pub repo_manifest_to_commit: FxHashMap<String, CommitIndex>,
pub shard_to_commit: FxHashMap<String, (CommitIndex, Option<WrappedKey>)>,
pub commit_cids: FxHashSet<String>,
}Expand description
Pre-built index mapping object CIDs to their parent commits.
Fields§
§metadata_to_commit: FxHashMap<String, CommitIndex>§manifest_to_commit: FxHashMap<String, CommitIndex>§repo_manifest_to_commit: FxHashMap<String, CommitIndex>§shard_to_commit: FxHashMap<String, (CommitIndex, Option<WrappedKey>)>§commit_cids: FxHashSet<String>Implementations§
Source§impl ObjectIndex
impl ObjectIndex
Sourcepub fn lookup(&self, cid_str: &str) -> IndexedObject<'_>
pub fn lookup(&self, cid_str: &str) -> IndexedObject<'_>
Look up a CID and return its known type with associated context.
Trait Implementations§
Source§impl Debug for ObjectIndex
impl Debug for ObjectIndex
Source§impl Default for ObjectIndex
impl Default for ObjectIndex
Source§fn default() -> ObjectIndex
fn default() -> ObjectIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObjectIndex
impl RefUnwindSafe for ObjectIndex
impl Send for ObjectIndex
impl Sync for ObjectIndex
impl Unpin for ObjectIndex
impl UnsafeUnpin for ObjectIndex
impl UnwindSafe for ObjectIndex
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> 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