Enum dataflow_types::types::sources::encoding::SourceDataEncoding [−][src]
pub enum SourceDataEncoding {
Single(DataEncoding),
KeyValue {
key: DataEncoding,
value: DataEncoding,
},
}
Expand description
A description of how to interpret data from various sources
Almost all sources only present values as part of their records, but Kafka allows a key to be associated with each record, which has a possibly independent encoding.
Variants
Single(DataEncoding)
Tuple Fields
0: DataEncoding
KeyValue
Implementations
Return either the Single encoding if this was a SourceDataEncoding::Single
, else return the value encoding
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SourceDataEncoding
impl Send for SourceDataEncoding
impl Sync for SourceDataEncoding
impl Unpin for SourceDataEncoding
impl UnwindSafe for SourceDataEncoding
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more