pub enum Role {
Serializer,
Deserializer,
Both,
}Expand description
The role under which a compatibility check is performed.
Variants§
Serializer
Evolving the producer (serializer). A change is safe if every value produced by the new schema is still accepted by the old one.
Deserializer
Evolving the consumer (deserializer). A change is safe if every value accepted by the old schema is still valid under the new one.
Both
We need to maintain full equivalence in both directions.
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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