pub struct CustomKey {
pub name: String,
pub value: CustomValue,
}Fields§
§name: String§value: CustomValueImplementations§
Source§impl CustomKey
impl CustomKey
pub fn scalar(name: impl Into<String>, value: CustomValue) -> Self
pub fn composite( name: impl Into<String>, values: impl IntoIterator<Item = CustomScalarValue>, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CustomKey
impl<'de> Deserialize<'de> for CustomKey
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
impl Eq for CustomKey
impl StructuralPartialEq for CustomKey
Auto Trait Implementations§
impl Freeze for CustomKey
impl RefUnwindSafe for CustomKey
impl Send for CustomKey
impl Sync for CustomKey
impl Unpin for CustomKey
impl UnsafeUnpin for CustomKey
impl UnwindSafe for CustomKey
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