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

pub struct Record {
    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 Record
[src]

[src]

Create a Record given a Schema.

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

[src]

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 Debug for Record
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Record
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl ToAvro for Record
[src]

[src]

Transforms this value into an Avro-compatible Value.

Auto Trait Implementations

impl !Send for Record

impl !Sync for Record