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§
impl StructuralPartialEq for AvroValue
Auto Trait Implementations§
impl Freeze for AvroValue
impl RefUnwindSafe for AvroValue
impl Send for AvroValue
impl Sync for AvroValue
impl Unpin for AvroValue
impl UnsafeUnpin for AvroValue
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