Struct avro_rs::types::Record[][src]

pub struct Record<'a> {
    pub fields: Vec<(String, Value)>,
    // some fields omitted
}

Utility interface to build Value::Record objects.

Fields

List of fields contained in the record. Ordered according to the fields in the schema given to create this Record object. Any unset field defaults to Value::Null.

Methods

impl<'a> Record<'a>
[src]

Create a Record given a Schema.

If the Schema is not a Schema::Record variant, None will be returned.

Put a compatible value (implementing the ToAvro trait) in the Record for a given field name.

NOTE Only ensure that the field name is present in the Schema given when creating this Record. Does not perform any schema validation.

Trait Implementations

impl<'a> Debug for Record<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for Record<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> ToAvro for Record<'a>
[src]

Transforms this value into an Avro-compatible Value.

Auto Trait Implementations

impl<'a> Send for Record<'a>

impl<'a> Sync for Record<'a>