Struct avro_schema::schema::Enum
source · [−]pub struct Enum {
pub name: String,
pub namespace: Option<String>,
pub aliases: Vec<String>,
pub doc: Option<String>,
pub symbols: Vec<String>,
pub default: Option<String>,
}
Expand description
Struct to hold data from a Schema::Enum
.
Fields
name: String
Its name
namespace: Option<String>
Its optional namespace
aliases: Vec<String>
Its aliases
doc: Option<String>
Its optional documentation
symbols: Vec<String>
Its set of symbols
default: Option<String>
Its default symbol
Implementations
Trait Implementations
impl StructuralPartialEq for Enum
Auto Trait Implementations
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnwindSafe for Enum
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