pub struct Tag {
pub std_key: Option<StandardTagKey>,
pub key: String,
pub value: Value,
}
Expand description
A Tag
encapsulates a key-value pair of metadata.
Fields§
§std_key: Option<StandardTagKey>
If the Tag
’s key string is commonly associated with a typical type, meaning, or purpose,
then if recognized a StandardTagKey
will be assigned to this Tag
.
This is a best effort guess since not all metadata formats have a well defined or specified
tag mapping. However, it is recommended that consumers prefer std_key
over key
, if
provided.
key: String
A key string indicating the type, meaning, or purpose of the Tag
s value.
Note: The meaning of key
is dependant on the underlying metadata format.
value: Value
The value of the Tag
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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