pub struct KeyValueField {
pub id: Uuid,
pub name: String,
pub value: Option<Box<Value>>,
}Fields§
§id: Uuid§name: String§value: Option<Box<Value>>Implementations§
Source§impl KeyValueField
impl KeyValueField
pub fn new<S: Into<String>>(name: S, value: Value) -> Self
pub fn new_with_option<S: Into<String>>(name: S, value: Option<Value>) -> Self
pub fn new_with_id<S: Into<String>>(name: S, id: Uuid, value: Value) -> Self
pub fn new_with_id_and_option<S: Into<String>>( name: S, id: Uuid, value: Option<Value>, ) -> Self
pub fn new_nested_kv<S: Into<String>, F: AsRef<[KeyValueField]>>( kv_name: S, fields: &F, ) -> Self
pub fn new_nested_kv_with_kv_id<S: Into<String>, F: AsRef<[KeyValueField]>>( kv_name: S, kv_id: Uuid, fields: &F, ) -> Self
pub fn new_nested_kv_with_both_ids<S: Into<String>, F: AsRef<[KeyValueField]>>( kv_name: S, field_id: Uuid, kv_id: Uuid, fields: &F, ) -> Self
Trait Implementations§
Source§impl Clone for KeyValueField
impl Clone for KeyValueField
Source§fn clone(&self) -> KeyValueField
fn clone(&self) -> KeyValueField
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 KeyValueField
impl Debug for KeyValueField
Source§impl<'de> Deserialize<'de> for KeyValueField
impl<'de> Deserialize<'de> for KeyValueField
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 Display for KeyValueField
impl Display for KeyValueField
Source§impl PartialEq for KeyValueField
impl PartialEq for KeyValueField
Source§fn eq(&self, other: &KeyValueField) -> bool
fn eq(&self, other: &KeyValueField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KeyValueField
impl Serialize for KeyValueField
impl StructuralPartialEq for KeyValueField
Auto Trait Implementations§
impl Freeze for KeyValueField
impl RefUnwindSafe for KeyValueField
impl Send for KeyValueField
impl Sync for KeyValueField
impl Unpin for KeyValueField
impl UnsafeUnpin for KeyValueField
impl UnwindSafe for KeyValueField
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