pub enum ObjectAttributeValue {
String(String),
Integer(i64),
Decimal(Decimal),
Date(NaiveDate),
DateTime(DateTime<Utc>),
Boolean(bool),
Reference(Uuid),
Null,
}Expand description
Attribute values for object instances.
Variants§
String(String)
String value
Integer(i64)
Integer value
Decimal(Decimal)
Decimal value (for monetary amounts)
Date(NaiveDate)
Date value
DateTime(DateTime<Utc>)
DateTime value
Boolean(bool)
Boolean value
Reference(Uuid)
Reference to another object
Null
Null/missing value
Trait Implementations§
Source§impl Clone for ObjectAttributeValue
impl Clone for ObjectAttributeValue
Source§fn clone(&self) -> ObjectAttributeValue
fn clone(&self) -> ObjectAttributeValue
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 ObjectAttributeValue
impl Debug for ObjectAttributeValue
Source§impl<'de> Deserialize<'de> for ObjectAttributeValue
impl<'de> Deserialize<'de> for ObjectAttributeValue
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<&ObjectAttributeValue> for Ocel2Value
impl From<&ObjectAttributeValue> for Ocel2Value
Source§fn from(value: &ObjectAttributeValue) -> Self
fn from(value: &ObjectAttributeValue) -> Self
Converts to this type from the input type.
Source§impl From<&str> for ObjectAttributeValue
impl From<&str> for ObjectAttributeValue
Source§impl From<Decimal> for ObjectAttributeValue
impl From<Decimal> for ObjectAttributeValue
Source§impl From<NaiveDate> for ObjectAttributeValue
impl From<NaiveDate> for ObjectAttributeValue
Source§impl From<String> for ObjectAttributeValue
impl From<String> for ObjectAttributeValue
Source§impl From<Uuid> for ObjectAttributeValue
impl From<Uuid> for ObjectAttributeValue
Source§impl From<bool> for ObjectAttributeValue
impl From<bool> for ObjectAttributeValue
Source§impl From<i64> for ObjectAttributeValue
impl From<i64> for ObjectAttributeValue
Source§impl PartialEq for ObjectAttributeValue
impl PartialEq for ObjectAttributeValue
Source§impl Serialize for ObjectAttributeValue
impl Serialize for ObjectAttributeValue
impl StructuralPartialEq for ObjectAttributeValue
Auto Trait Implementations§
impl Freeze for ObjectAttributeValue
impl RefUnwindSafe for ObjectAttributeValue
impl Send for ObjectAttributeValue
impl Sync for ObjectAttributeValue
impl Unpin for ObjectAttributeValue
impl UnwindSafe for ObjectAttributeValue
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