pub struct EnumMapping {
pub(crate) mapping: Arc<[i32]>,
pub(crate) default_index: i32,
}
Expand description
Holds the mapping information for resolving Avro enums.
When resolving schemas, the writer’s enum symbols must be mapped to the reader’s symbols.
Fields§
§mapping: Arc<[i32]>
A mapping from the writer’s symbol index to the reader’s symbol index.
default_index: i32
The index to use for a writer’s symbol that is not present in the reader’s enum and a default value is specified in the reader’s schema.
Trait Implementations§
Source§impl Clone for EnumMapping
impl Clone for EnumMapping
Source§fn clone(&self) -> EnumMapping
fn clone(&self) -> EnumMapping
Returns a duplicate 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 moreSource§impl Debug for EnumMapping
impl Debug for EnumMapping
Source§impl PartialEq for EnumMapping
impl PartialEq for EnumMapping
impl Eq for EnumMapping
impl StructuralPartialEq for EnumMapping
Auto Trait Implementations§
impl Freeze for EnumMapping
impl RefUnwindSafe for EnumMapping
impl Send for EnumMapping
impl Sync for EnumMapping
impl Unpin for EnumMapping
impl UnwindSafe for EnumMapping
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.