Struct avro_schema::schema::Field
source · [−]pub struct Field {
pub name: String,
pub doc: Option<String>,
pub schema: Schema,
pub default: Option<Schema>,
pub order: Option<Order>,
pub aliases: Vec<String>,
}
Expand description
An Avro field. See the spec for details.
Fields
name: String
Its name
doc: Option<String>
Its optional documentation
schema: Schema
Its Schema
default: Option<Schema>
Its default value
order: Option<Order>
Its optional order
aliases: Vec<String>
Its aliases
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
sourcefn deserialize<D>(deserializer: D) -> Result<Field, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Field, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Field
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more