Enum dataflow_types::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
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
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