pub enum Value {
    BinaryFile(Vec<u8>),
    Bool(bool),
    Choice(i64),
    EntityList(Vec<EntityId>),
    EntityReference(Option<EntityId>),
    Float(f64),
    Int(i64),
    String(String),
    Timestamp(Timestamp),
}Variants§
BinaryFile(Vec<u8>)
Bool(bool)
Choice(i64)
EntityList(Vec<EntityId>)
EntityReference(Option<EntityId>)
Float(f64)
Int(i64)
String(String)
Timestamp(Timestamp)
Implementations§
Source§impl Value
 
impl Value
pub fn is_bool(&self) -> bool
pub fn is_int(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_binary_file(&self) -> bool
pub fn is_entity_reference(&self) -> bool
pub fn is_entity_list(&self) -> bool
pub fn is_choice(&self) -> bool
pub fn as_bool(&self) -> Option<bool>
pub fn as_int(&self) -> Option<i64>
pub fn as_float(&self) -> Option<f64>
pub fn as_string(&self) -> Option<&String>
pub fn as_binary_file(&self) -> Option<&Vec<u8>>
pub fn as_entity_reference(&self) -> Option<&Option<EntityId>>
pub fn as_entity_list(&self) -> Option<&Vec<EntityId>>
pub fn as_choice(&self) -> Option<i64>
pub fn as_timestamp(&self) -> Option<Timestamp>
pub fn from_bool(b: bool) -> Self
pub fn from_int(i: i64) -> Self
pub fn from_float(f: f64) -> Self
pub fn from_string(s: String) -> Self
pub fn from_binary_file(b: Vec<u8>) -> Self
pub fn from_entity_reference(e: Option<EntityId>) -> Self
pub fn from_entity_list(e: Vec<EntityId>) -> Self
pub fn from_choice(c: i64) -> Self
pub fn from_timestamp(t: Timestamp) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
 
impl<'de> Deserialize<'de> for Value
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 StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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