pub struct Metadata { /* private fields */ }
Implementations§
source§impl Metadata
impl Metadata
sourcepub async fn get(self) -> Result<MetadataMap>
pub async fn get(self) -> Result<MetadataMap>
Return the metadata key value pairs for a mod that this Metadata
refers to.
sourcepub async fn add(self, metadata: MetadataMap) -> Result<()>
pub async fn add(self, metadata: MetadataMap) -> Result<()>
Add metadata for a mod that this Metadata
refers to.
sourcepub async fn delete(self, metadata: MetadataMap) -> Result<Deletion>
pub async fn delete(self, metadata: MetadataMap) -> Result<Deletion>
Delete metadata for a mod that this Metadata
refers to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl !RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl !UnwindSafe for Metadata
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