pub struct AvroField {
pub name: String,
pub field_type: AvroType,
pub doc: Option<String>,
}Expand description
A field inside an Avro record.
Fields§
§name: StringName of the field.
field_type: AvroTypeAvro type of the field.
doc: Option<String>Optional documentation string.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AvroField
impl<'de> Deserialize<'de> for AvroField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AvroField
impl RefUnwindSafe for AvroField
impl Send for AvroField
impl Sync for AvroField
impl Unpin for AvroField
impl UnsafeUnpin for AvroField
impl UnwindSafe for AvroField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more