pub enum ImplementAvroSchema {
Derive,
CopyBuildSchema,
None,
}Expand description
How to implement AvroSchema.
Variants§
Derive
Use the AvroSchema derive.
This might result in a slightly different schema, as names can have different capitalisation.
CopyBuildSchema
Copy the schema used at build time.
This will use the canonical form to create an exact
(canonical) match. Implementations generated by this functionality won’t use the
AvroSchemaComponent implementation of subtypes.
None
Do not implement or derive AvroSchema.
Trait Implementations§
Source§impl Clone for ImplementAvroSchema
impl Clone for ImplementAvroSchema
Source§fn clone(&self) -> ImplementAvroSchema
fn clone(&self) -> ImplementAvroSchema
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 ImplementAvroSchema
impl Debug for ImplementAvroSchema
Source§impl Default for ImplementAvroSchema
impl Default for ImplementAvroSchema
Source§fn default() -> ImplementAvroSchema
fn default() -> ImplementAvroSchema
Returns the “default value” for a type. Read more
Source§impl Display for ImplementAvroSchema
impl Display for ImplementAvroSchema
Source§impl PartialEq for ImplementAvroSchema
impl PartialEq for ImplementAvroSchema
impl Copy for ImplementAvroSchema
impl StructuralPartialEq for ImplementAvroSchema
Auto Trait Implementations§
impl Freeze for ImplementAvroSchema
impl RefUnwindSafe for ImplementAvroSchema
impl Send for ImplementAvroSchema
impl Sync for ImplementAvroSchema
impl Unpin for ImplementAvroSchema
impl UnwindSafe for ImplementAvroSchema
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