pub enum NoSchemaBehavior {
Skip,
Error,
Broadcast,
}Expand description
How to handle records with an rtype that doesn’t map to a schema such as an
ErrorMsg.
Variants§
Skip
Skip records with rtypes that have no schema.
Error
Return an error when encountering an rtype without a schema.
Broadcast
Route records with rtypes that have no schema to all existing encoders.
Trait Implementations§
Source§impl Clone for NoSchemaBehavior
impl Clone for NoSchemaBehavior
Source§fn clone(&self) -> NoSchemaBehavior
fn clone(&self) -> NoSchemaBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoSchemaBehavior
Source§impl Debug for NoSchemaBehavior
impl Debug for NoSchemaBehavior
Source§impl Default for NoSchemaBehavior
impl Default for NoSchemaBehavior
Source§fn default() -> NoSchemaBehavior
fn default() -> NoSchemaBehavior
Returns the “default value” for a type. Read more
impl Eq for NoSchemaBehavior
Source§impl PartialEq for NoSchemaBehavior
impl PartialEq for NoSchemaBehavior
Source§fn eq(&self, other: &NoSchemaBehavior) -> bool
fn eq(&self, other: &NoSchemaBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NoSchemaBehavior
Auto Trait Implementations§
impl Freeze for NoSchemaBehavior
impl RefUnwindSafe for NoSchemaBehavior
impl Send for NoSchemaBehavior
impl Sync for NoSchemaBehavior
impl Unpin for NoSchemaBehavior
impl UnsafeUnpin for NoSchemaBehavior
impl UnwindSafe for NoSchemaBehavior
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