pub struct NamedPrimitiveValue { /* private fields */ }
Expand description
A struct to “Name” a primitive with an associated value, like a Field with a value
Implementations§
Source§impl NamedPrimitiveValue
impl NamedPrimitiveValue
pub fn new(name: String, value: PrimitiveValue) -> NamedPrimitiveValue
Sourcepub fn value(&self) -> &PrimitiveValue
pub fn value(&self) -> &PrimitiveValue
Returns the stored value of the field
Trait Implementations§
Source§impl Clone for NamedPrimitiveValue
impl Clone for NamedPrimitiveValue
Source§fn clone(&self) -> NamedPrimitiveValue
fn clone(&self) -> NamedPrimitiveValue
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 NamedPrimitiveValue
impl Debug for NamedPrimitiveValue
Source§impl From<NamedPrimitiveValue> for NamedVariableValue
impl From<NamedPrimitiveValue> for NamedVariableValue
Source§fn from(value: NamedPrimitiveValue) -> Self
fn from(value: NamedPrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NamedPrimitiveValue
impl PartialEq for NamedPrimitiveValue
impl StructuralPartialEq for NamedPrimitiveValue
Auto Trait Implementations§
impl Freeze for NamedPrimitiveValue
impl RefUnwindSafe for NamedPrimitiveValue
impl Send for NamedPrimitiveValue
impl Sync for NamedPrimitiveValue
impl Unpin for NamedPrimitiveValue
impl UnwindSafe for NamedPrimitiveValue
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