#[non_exhaustive]pub enum FramingContract {
PerRecord,
WholePayload,
}Expand description
What one payload emitted by a source represents, so the framework can pair a source with a deserializer without the two being coordinated by hand.
PerRecord: the source already framed one record per payload — it ran aRecordFramerover its byte stream (e.g. anspate-s3backfill framing each object with the format’s framer). The deserializer must decode a single unit; a deserializer configured to also frame the payload is a double-framing error.WholePayload: the source emits whole payloads and the deserializer owns framing (e.g. a Kafka message, which may carry one record or many). This is the default for sources that do not frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PerRecord
One record per payload — the deserializer decodes a single unit.
WholePayload
Whole payloads — the deserializer frames them.
Trait Implementations§
Source§impl Clone for FramingContract
impl Clone for FramingContract
Source§fn clone(&self) -> FramingContract
fn clone(&self) -> FramingContract
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 FramingContract
Source§impl Debug for FramingContract
impl Debug for FramingContract
impl Eq for FramingContract
Source§impl PartialEq for FramingContract
impl PartialEq for FramingContract
impl StructuralPartialEq for FramingContract
Auto Trait Implementations§
impl Freeze for FramingContract
impl RefUnwindSafe for FramingContract
impl Send for FramingContract
impl Sync for FramingContract
impl Unpin for FramingContract
impl UnsafeUnpin for FramingContract
impl UnwindSafe for FramingContract
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.