pub struct Metadata { /* private fields */ }Expand description
Metadata for an Engine object.
Metadata is owned by the object and moves with it; it is not tied to the object’s path.
Implementations§
Source§impl Metadata
impl Metadata
The opaque authorization data.
Sourcepub fn version(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
An optional version string (for example 17.2 for a bundle).
Sourcepub fn declared_size(&self) -> Option<u64>
pub fn declared_size(&self) -> Option<u64>
The size declared for metadata-only files, if any.
Sourcepub fn extension(&self, key: &str) -> Option<&MetadataValue>
pub fn extension(&self, key: &str) -> Option<&MetadataValue>
A single extension value by key.
Sourcepub fn extensions(&self) -> &BTreeMap<String, MetadataValue>
pub fn extensions(&self) -> &BTreeMap<String, MetadataValue>
All extension values.
Trait Implementations§
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin 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