pub enum AvroValue {
Null,
Boolean(bool),
Long(i64),
Double(f64),
Bytes(Vec<u8>),
String(String),
Array(Vec<AvroValue>),
Map(BTreeMap<String, AvroValue>),
}Expand description
Native adapter for the fixed language-neutral Avro Value schema.
Variants§
Null
Boolean(bool)
Long(i64)
Double(f64)
Bytes(Vec<u8>)
String(String)
Array(Vec<AvroValue>)
Map(BTreeMap<String, AvroValue>)
Implementations§
Source§impl AvroValue
impl AvroValue
pub fn deserialize<T: DeserializeOwned>(self) -> Result<T>
Trait Implementations§
Auto Trait Implementations§
impl Forget for AvroValue
impl Freeze for AvroValuewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AvroValue>: Freeze,
*const LeafNode<String, AvroValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, AvroValue)>>: Freeze,
impl Move for AvroValue
impl RefUnwindSafe for AvroValue
impl Send for AvroValue
impl Sync for AvroValue
impl Unpin for AvroValue
impl UnsafeUnpin for AvroValuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AvroValue>: UnsafeUnpin,
*const LeafNode<String, AvroValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, AvroValue)>>: UnsafeUnpin,
impl UnwindSafe for AvroValue
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