pub struct MetadataStringValue {
pub type: MetadataValueType,
pub value: String,
}Fields§
§type: MetadataValueType§value: StringImplementations§
Source§impl MetadataStringValue
impl MetadataStringValue
pub fn new(type: MetadataValueType, value: String) -> MetadataStringValue
Trait Implementations§
Source§impl CandidType for MetadataStringValue
impl CandidType for MetadataStringValue
Source§impl Clone for MetadataStringValue
impl Clone for MetadataStringValue
Source§fn clone(&self) -> MetadataStringValue
fn clone(&self) -> MetadataStringValue
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 MetadataStringValue
impl Debug for MetadataStringValue
Source§impl Default for MetadataStringValue
impl Default for MetadataStringValue
Source§fn default() -> MetadataStringValue
fn default() -> MetadataStringValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataStringValue
impl<'de> Deserialize<'de> for MetadataStringValue
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 MetadataStringValue
impl PartialEq for MetadataStringValue
Source§impl Serialize for MetadataStringValue
impl Serialize for MetadataStringValue
impl StructuralPartialEq for MetadataStringValue
Auto Trait Implementations§
impl Freeze for MetadataStringValue
impl RefUnwindSafe for MetadataStringValue
impl Send for MetadataStringValue
impl Sync for MetadataStringValue
impl Unpin for MetadataStringValue
impl UnwindSafe for MetadataStringValue
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