pub struct FileCatalogMetadataStore { /* private fields */ }Expand description
File-backed metadata store loaded from a local snapshot file.
Implementations§
Source§impl FileCatalogMetadataStore
impl FileCatalogMetadataStore
pub fn load(path: impl AsRef<Path>) -> Result<Self, CatalogSnapshotError>
pub fn try_load( path: impl AsRef<Path>, ) -> Result<Option<Self>, CatalogSnapshotError>
pub fn from_snapshot(snapshot: CatalogSnapshot) -> Self
pub fn snapshot(&self) -> &CatalogSnapshot
Trait Implementations§
Source§impl CatalogMetadataStore for FileCatalogMetadataStore
impl CatalogMetadataStore for FileCatalogMetadataStore
fn find_by_raw_or_alias( &self, provider: &Provider, raw_id: &str, normalized_aliases: &[String], ) -> Option<CatalogModelMatch>
Source§impl Clone for FileCatalogMetadataStore
impl Clone for FileCatalogMetadataStore
Source§fn clone(&self) -> FileCatalogMetadataStore
fn clone(&self) -> FileCatalogMetadataStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileCatalogMetadataStore
impl RefUnwindSafe for FileCatalogMetadataStore
impl Send for FileCatalogMetadataStore
impl Sync for FileCatalogMetadataStore
impl Unpin for FileCatalogMetadataStore
impl UnsafeUnpin for FileCatalogMetadataStore
impl UnwindSafe for FileCatalogMetadataStore
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