Enum avro_rs::types::Value[][src]

pub enum Value {
    Null,
    Boolean(bool),
    Int(i32),
    Long(i64),
    Float(f32),
    Double(f64),
    Bytes(Vec<u8>),
    String(String),
    Fixed(usizeVec<u8>),
    Enum(i32String),
    Union(Box<Value>),
    Array(Vec<Value>),
    Map(HashMap<String, Value>),
    Record(Vec<(String, Value)>),
}

Represents any valid Avro value More information about Avro values can be found in the Avro Specification

Variants

A null Avro value.

A boolean Avro value.

A int Avro value.

A long Avro value.

A float Avro value.

A double Avro value.

A bytes Avro value.

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.

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]

Validate the value against the given Schema.

See the Avro specification for the full set of rules of schema validation.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl ToAvro for Value
[src]

Transforms this value into an Avro-compatible Value.

Auto Trait Implementations

impl Send for Value

impl Sync for Value