pub struct MetadataField {
pub name: String,
pub value: String,
}Expand description
A single name: value pair from a user’s profile
Fields§
§name: Stringname part of metadata
value: Stringvalue part of metadata
Implementations§
Source§impl MetadataField
impl MetadataField
pub fn new(name: &str, value: &str) -> MetadataField
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 · 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
Source§impl Default for MetadataField
impl Default for MetadataField
Source§fn default() -> MetadataField
fn default() -> MetadataField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataField
impl<'de> Deserialize<'de> for MetadataField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MetadataField
impl PartialEq for MetadataField
Source§impl Serialize for MetadataField
impl Serialize for MetadataField
impl Eq for MetadataField
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 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