Enum Value
Source pub enum Value {
Show 15 variants
Null,
Int(i32),
Long(i64),
Boolean(bool),
Float(f32),
Double(f64),
Record(Record),
Fixed(Vec<u8>),
Map(HashMap<String, Value>),
Bytes(Vec<u8>),
Str(String),
Union(Box<Value>),
Enum(String),
Array(Vec<Value>),
Byte(u8),
}
Expand description
A Record value (BTreeMap<String, Value>).
Rust strings map directly to avro strings
A union is a sequence of unique Values
An enumeration. Unlike Rust enums, enums in avro don’t support data within their variants.
auxiliary u8 helper for serde. Not an avro value.
Try to retrieve an avro null
Try to retrieve an avro boolean
Try to retrieve an avro int
Try to retrieve an avro long
Try to retrieve an avro float
Try to retrieve an avro double
Try to retrieve an avro bytes
Try to retrieve an avro string
Try to retrieve an avro record
Try to retrieve the variant of the enum as a string
Try to retrieve an avro array
Try to retrieve an avro map
Try to retrieve an avro union
Try to retrieve an avro fixed
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.