Struct apache_avro::schema::EnumSchema
source · pub struct EnumSchema {
pub name: Name,
pub aliases: Aliases,
pub doc: Documentation,
pub symbols: Vec<String>,
pub default: Option<String>,
pub attributes: BTreeMap<String, Value>,
}
Expand description
A description of an Enum schema.
Fields§
§name: Name
The name of the schema
aliases: Aliases
The aliases of the schema
doc: Documentation
The documentation of the schema
symbols: Vec<String>
The set of symbols of the schema
default: Option<String>
An optional default symbol used for compatibility
attributes: BTreeMap<String, Value>
The custom attributes of the schema
Trait Implementations§
source§impl Clone for EnumSchema
impl Clone for EnumSchema
source§fn clone(&self) -> EnumSchema
fn clone(&self) -> EnumSchema
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for EnumSchema
impl RefUnwindSafe for EnumSchema
impl Send for EnumSchema
impl Sync for EnumSchema
impl Unpin for EnumSchema
impl UnwindSafe for EnumSchema
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)