pub struct MetadataLabel {
pub key: String,
pub value: MetadataLabelValue,
}Fields§
§key: String§value: MetadataLabelValueImplementations§
Source§impl MetadataLabel
impl MetadataLabel
pub fn from_string_value(key: String, value: String) -> Self
pub fn from_number_value(key: String, value: i64, unit: String) -> Self
Trait Implementations§
Source§impl Clone for MetadataLabel
impl Clone for MetadataLabel
Source§fn clone(&self) -> MetadataLabel
fn clone(&self) -> MetadataLabel
Returns a duplicate of the value. Read more
1.0.0 · 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 MetadataLabel
impl Debug for MetadataLabel
Source§impl PartialEq for MetadataLabel
impl PartialEq for MetadataLabel
impl Eq for MetadataLabel
impl StructuralPartialEq for MetadataLabel
Auto Trait Implementations§
impl Freeze for MetadataLabel
impl RefUnwindSafe for MetadataLabel
impl Send for MetadataLabel
impl Sync for MetadataLabel
impl Unpin for MetadataLabel
impl UnwindSafe for MetadataLabel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.