pub struct NamedStore(/* private fields */);Expand description
One named collection (QoS libraries, or the profiles of one
library, or the registered types) — create refuses a duplicate
name, update/delete/get refuse a missing one.
Implementations§
Source§impl NamedStore
impl NamedStore
Sourcepub fn create(
&self,
name: &str,
doc: StoredDocument,
) -> Result<(), MetadataError>
pub fn create( &self, name: &str, doc: StoredDocument, ) -> Result<(), MetadataError>
§Errors
MetadataError::Conflict if name already exists.
Sourcepub fn update(
&self,
name: &str,
doc: StoredDocument,
) -> Result<(), MetadataError>
pub fn update( &self, name: &str, doc: StoredDocument, ) -> Result<(), MetadataError>
§Errors
MetadataError::NotFound if name does not exist.
Sourcepub fn delete(&self, name: &str) -> Result<(), MetadataError>
pub fn delete(&self, name: &str) -> Result<(), MetadataError>
§Errors
MetadataError::NotFound if name does not exist.
Sourcepub fn get(&self, name: &str) -> Result<StoredDocument, MetadataError>
pub fn get(&self, name: &str) -> Result<StoredDocument, MetadataError>
§Errors
MetadataError::NotFound if name does not exist.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NamedStore
impl RefUnwindSafe for NamedStore
impl Send for NamedStore
impl Sync for NamedStore
impl Unpin for NamedStore
impl UnsafeUnpin for NamedStore
impl UnwindSafe for NamedStore
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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