pub struct PrimitiveMetadata { /* private fields */ }Expand description
Lightweight metadata tying this crate’s primary text and label together.
Implementations§
Source§impl PrimitiveMetadata
impl PrimitiveMetadata
Sourcepub const fn new(name: MediaType, kind: CommonApiMediaType) -> Self
pub const fn new(name: MediaType, kind: CommonApiMediaType) -> Self
Creates primitive metadata.
Sourcepub const fn kind(&self) -> CommonApiMediaType
pub const fn kind(&self) -> CommonApiMediaType
Returns the primary label.
Trait Implementations§
Source§impl Clone for PrimitiveMetadata
impl Clone for PrimitiveMetadata
Source§fn clone(&self) -> PrimitiveMetadata
fn clone(&self) -> PrimitiveMetadata
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 PrimitiveMetadata
impl Debug for PrimitiveMetadata
Source§impl PartialEq for PrimitiveMetadata
impl PartialEq for PrimitiveMetadata
Source§fn eq(&self, other: &PrimitiveMetadata) -> bool
fn eq(&self, other: &PrimitiveMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PrimitiveMetadata
impl StructuralPartialEq for PrimitiveMetadata
Auto Trait Implementations§
impl Freeze for PrimitiveMetadata
impl RefUnwindSafe for PrimitiveMetadata
impl Send for PrimitiveMetadata
impl Sync for PrimitiveMetadata
impl Unpin for PrimitiveMetadata
impl UnsafeUnpin for PrimitiveMetadata
impl UnwindSafe for PrimitiveMetadata
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