Struct avro_rs::schema::RecordField [−][src]
pub struct RecordField { pub name: String, pub doc: Documentation, pub default: Option<Value>, pub schema: Schema, pub order: RecordFieldOrder, pub position: usize, }
Represents a field
in a record
Avro schema.
Fields
name: String
Name of the field.
doc: Documentation
Documentation of the field.
default: Option<Value>
Default value of the field. This value will be used when reading Avro datum if schema resolution is enabled.
schema: Schema
Schema of the field.
order: RecordFieldOrder
Order of the field.
NOTE This currently has no effect.
position: usize
Position of the field in the list of field
of its parent Schema
Trait Implementations
impl Clone for RecordField
[src]
impl Clone for RecordField
fn clone(&self) -> RecordField
[src]
fn clone(&self) -> RecordField
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for RecordField
[src]
impl Debug for RecordField
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RecordField
[src]
impl PartialEq for RecordField
fn eq(&self, other: &RecordField) -> bool
[src]
fn eq(&self, other: &RecordField) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RecordField) -> bool
[src]
fn ne(&self, other: &RecordField) -> bool
This method tests for !=
.
impl Serialize for RecordField
[src]
impl Serialize for RecordField
Auto Trait Implementations
impl Send for RecordField
impl Send for RecordField
impl Sync for RecordField
impl Sync for RecordField