[−][src]Enum odbc_avro::AvroValue
Represents any valid Avro value More information about Avro values can be found in the Avro Specification
Variants
A null
Avro value.
Boolean(bool)
A boolean
Avro value.
Int(i32)
A int
Avro value.
Long(i64)
A long
Avro value.
Float(f32)
A float
Avro value.
Double(f64)
A double
Avro value.
A bytes
Avro value.
String(String)
A string
Avro value.
A fixed
Avro value.
The size of the fixed value is represented as a usize
.
An enum
Avro value.
An Enum is represented by a symbol and its position in the symbols list of its corresponding schema. This allows schema-less encoding, as well as schema resolution while reading values.
An union
Avro value.
An array
Avro value.
Map(HashMap<String, Value, RandomState>)
A map
Avro value.
A record
Avro value.
A Record is represented by a vector of (<record name>
, value
).
This allows schema-less encoding.
See Record for a more user-friendly support.
Methods
impl Value
[src]
pub fn validate(&self, schema: &Schema) -> bool
[src]
Validate the value against the given Schema.
See the Avro specification for the full set of rules of schema validation.
pub fn resolve(self, schema: &Schema) -> Result<Value, Error>
[src]
Attempt to perform schema resolution on the value, with the given Schema.
See Schema Resolution in the Avro specification for the full set of rules of schema resolution.
Trait Implementations
impl Clone for Value
[src]
impl Debug for Value
[src]
impl PartialEq<Value> for Value
[src]
impl StructuralPartialEq for Value
[src]
impl ToAvro for Value
[src]
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToErrorNoContext<T> for T
fn to_root_cause(self) -> ErrorNoContext<T>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.