pub enum PrimitiveValue {
String(String),
U64(u64),
I64(i64),
F32(f32),
F64(f64),
Bool(bool),
Null,
}
Expand description
Primitive types supported by Properties
Variants§
String(String)
String type utf8 encoded
U64(u64)
unsigned 64 bit integer
I64(i64)
signed 64 bit integer
F32(f32)
floating point number
F64(f64)
double precision floating point number
Bool(bool)
boolean
Null
null
Implementations§
Source§impl PrimitiveValue
impl PrimitiveValue
Sourcepub fn default_from_shape(shape: &PrimitiveShape) -> Self
pub fn default_from_shape(shape: &PrimitiveShape) -> Self
Get the default primitive value from a shape
Trait Implementations§
Source§impl Clone for PrimitiveValue
impl Clone for PrimitiveValue
Source§fn clone(&self) -> PrimitiveValue
fn clone(&self) -> PrimitiveValue
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 PrimitiveValue
impl Debug for PrimitiveValue
Source§impl Default for PrimitiveValue
impl Default for PrimitiveValue
Source§fn default() -> PrimitiveValue
fn default() -> PrimitiveValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrimitiveValue
impl<'de> Deserialize<'de> for PrimitiveValue
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 From<&JSONValue> for PrimitiveValue
impl From<&JSONValue> for PrimitiveValue
Source§impl From<&PrimitiveValue> for ()
impl From<&PrimitiveValue> for ()
Source§fn from(_v: &PrimitiveValue) -> Self
fn from(_v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for JSONValue
impl From<&PrimitiveValue> for JSONValue
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for PrimitiveShape
impl From<&PrimitiveValue> for PrimitiveShape
Source§fn from(val: &PrimitiveValue) -> Self
fn from(val: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for PrimitiveValue
impl From<&PrimitiveValue> for PrimitiveValue
Source§fn from(mval: &PrimitiveValue) -> Self
fn from(mval: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for String
impl From<&PrimitiveValue> for String
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for ValueType
impl From<&PrimitiveValue> for ValueType
Source§fn from(mval: &PrimitiveValue) -> Self
fn from(mval: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for bool
impl From<&PrimitiveValue> for bool
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for f32
impl From<&PrimitiveValue> for f32
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for f64
impl From<&PrimitiveValue> for f64
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for i16
impl From<&PrimitiveValue> for i16
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for i32
impl From<&PrimitiveValue> for i32
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for i64
impl From<&PrimitiveValue> for i64
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for i8
impl From<&PrimitiveValue> for i8
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for isize
impl From<&PrimitiveValue> for isize
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for u16
impl From<&PrimitiveValue> for u16
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for u32
impl From<&PrimitiveValue> for u32
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for u64
impl From<&PrimitiveValue> for u64
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for u8
impl From<&PrimitiveValue> for u8
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&PrimitiveValue> for usize
impl From<&PrimitiveValue> for usize
Source§fn from(v: &PrimitiveValue) -> Self
fn from(v: &PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<&ValuePrimitiveType> for PrimitiveValue
impl From<&ValuePrimitiveType> for PrimitiveValue
Source§fn from(v: &ValuePrimitiveType) -> Self
fn from(v: &ValuePrimitiveType) -> Self
Converts to this type from the input type.
Source§impl From<&ValueType> for PrimitiveValue
impl From<&ValueType> for PrimitiveValue
Source§impl From<&str> for PrimitiveValue
impl From<&str> for PrimitiveValue
Source§impl From<()> for PrimitiveValue
impl From<()> for PrimitiveValue
Source§impl<T> From<Option<T>> for PrimitiveValuewhere
T: Into<PrimitiveValue>,
impl<T> From<Option<T>> for PrimitiveValuewhere
T: Into<PrimitiveValue>,
Source§impl From<PrimitiveValue> for ValuePrimitiveType
impl From<PrimitiveValue> for ValuePrimitiveType
Source§fn from(v: PrimitiveValue) -> Self
fn from(v: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl From<String> for PrimitiveValue
impl From<String> for PrimitiveValue
Source§impl From<bool> for PrimitiveValue
impl From<bool> for PrimitiveValue
Source§impl From<f32> for PrimitiveValue
impl From<f32> for PrimitiveValue
Source§impl From<f64> for PrimitiveValue
impl From<f64> for PrimitiveValue
Source§impl From<i16> for PrimitiveValue
impl From<i16> for PrimitiveValue
Source§impl From<i32> for PrimitiveValue
impl From<i32> for PrimitiveValue
Source§impl From<i64> for PrimitiveValue
impl From<i64> for PrimitiveValue
Source§impl From<i8> for PrimitiveValue
impl From<i8> for PrimitiveValue
Source§impl From<isize> for PrimitiveValue
impl From<isize> for PrimitiveValue
Source§impl From<u16> for PrimitiveValue
impl From<u16> for PrimitiveValue
Source§impl From<u32> for PrimitiveValue
impl From<u32> for PrimitiveValue
Source§impl From<u64> for PrimitiveValue
impl From<u64> for PrimitiveValue
Source§impl From<u8> for PrimitiveValue
impl From<u8> for PrimitiveValue
Source§impl From<usize> for PrimitiveValue
impl From<usize> for PrimitiveValue
Source§impl Ord for PrimitiveValue
impl Ord for PrimitiveValue
Source§impl PartialEq for PrimitiveValue
impl PartialEq for PrimitiveValue
Source§impl PartialOrd for PrimitiveValue
impl PartialOrd for PrimitiveValue
Source§impl ProtoRead for PrimitiveValue
impl ProtoRead for PrimitiveValue
Source§impl ProtoWrite for PrimitiveValue
impl ProtoWrite for PrimitiveValue
Source§impl Serialize for PrimitiveValue
impl Serialize for PrimitiveValue
impl Eq for PrimitiveValue
Auto Trait Implementations§
impl Freeze for PrimitiveValue
impl RefUnwindSafe for PrimitiveValue
impl Send for PrimitiveValue
impl Sync for PrimitiveValue
impl Unpin for PrimitiveValue
impl UnwindSafe for PrimitiveValue
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