pub struct MetadataField { /* private fields */ }Expand description
One named member of an ordered structured metadata value.
Implementations§
Source§impl MetadataField
impl MetadataField
Sourcepub const fn new(name: PropertyId, value: MetadataValue) -> Self
pub const fn new(name: PropertyId, value: MetadataValue) -> Self
Creates a structured metadata field.
Sourcepub const fn name(&self) -> &PropertyId
pub const fn name(&self) -> &PropertyId
Returns the vocabulary-local field name.
Sourcepub const fn value(&self) -> &MetadataValue
pub const fn value(&self) -> &MetadataValue
Returns the field value.
Trait Implementations§
Source§impl Clone for MetadataField
impl Clone for MetadataField
Source§fn clone(&self) -> MetadataField
fn clone(&self) -> MetadataField
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 MetadataField
impl Debug for MetadataField
impl Eq for MetadataField
Source§impl Hash for MetadataField
impl Hash for MetadataField
Source§impl PartialEq for MetadataField
impl PartialEq for MetadataField
Source§fn eq(&self, other: &MetadataField) -> bool
fn eq(&self, other: &MetadataField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataField
Auto Trait Implementations§
impl Freeze for MetadataField
impl RefUnwindSafe for MetadataField
impl Send for MetadataField
impl Sync for MetadataField
impl Unpin for MetadataField
impl UnsafeUnpin for MetadataField
impl UnwindSafe for MetadataField
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