pub struct UserMetadata(/* private fields */);Expand description
An ordered string-to-string metadata map with safe structural formatting.
§Examples
use qubit_fs::metadata::UserMetadata;
let metadata = UserMetadata::new().with("content-language", "en")?;
assert_eq!(Some("en"), metadata.get("content-language"));Implementations§
Trait Implementations§
Source§impl AsRef<UserMetadata> for NonSensitiveMetadata
impl AsRef<UserMetadata> for NonSensitiveMetadata
Source§fn as_ref(&self) -> &UserMetadata
fn as_ref(&self) -> &UserMetadata
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for UserMetadata
impl Clone for UserMetadata
Source§fn clone(&self) -> UserMetadata
fn clone(&self) -> UserMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserMetadata
impl Debug for UserMetadata
Source§impl Default for UserMetadata
impl Default for UserMetadata
Source§fn default() -> UserMetadata
fn default() -> UserMetadata
Returns the “default value” for a type. Read more
impl Eq for UserMetadata
Source§impl From<NonSensitiveMetadata> for UserMetadata
impl From<NonSensitiveMetadata> for UserMetadata
Source§fn from(metadata: NonSensitiveMetadata) -> Self
fn from(metadata: NonSensitiveMetadata) -> Self
Converts to this type from the input type.
Source§impl From<UserMetadata> for NonSensitiveMetadata
impl From<UserMetadata> for NonSensitiveMetadata
Source§fn from(metadata: UserMetadata) -> Self
fn from(metadata: UserMetadata) -> Self
Wraps arbitrary user metadata.
Source§impl PartialEq for UserMetadata
impl PartialEq for UserMetadata
impl StructuralPartialEq for UserMetadata
Auto Trait Implementations§
impl Freeze for UserMetadata
impl RefUnwindSafe for UserMetadata
impl Send for UserMetadata
impl Sync for UserMetadata
impl Unpin for UserMetadata
impl UnsafeUnpin for UserMetadata
impl UnwindSafe for UserMetadata
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