#[non_exhaustive]pub enum Value {
Null,
Bool(bool),
Int16(i16),
Int32(i32),
Int64(i64),
Float32(f32),
Float64(f64),
String(String),
Binary(Vec<u8>),
DateTime(f64),
Guid([u8; 16]),
Xml(String),
}Expand description
One attribute value. Marked #[non_exhaustive] because future versions
may add variants (e.g. Date / Time / DateTimeOffset once we move
off the f64-days representation, or Json / Decimal for richer schemas)
without that counting as a SemVer-breaking change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
Bool(bool)
Int16(i16)
Int32(i32)
Int64(i64)
Float32(f32)
Float64(f64)
String(String)
Binary(Vec<u8>)
DateTime(f64)
Days since 1899-12-30 00:00:00 (Esri convention). See module docs.
Guid([u8; 16])
16-byte UUID, raw bytes (no string formatting).
Xml(String)
XML payload, stored verbatim.
Implementations§
Trait Implementations§
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 UnsafeUnpin 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