pub enum SingerMessage {
Record {
stream: String,
record: Value,
},
Schema {
stream: String,
schema: Value,
key_properties: Option<Vec<String>>,
bookmark_properties: Option<Vec<String>>,
},
State {
value: Value,
},
Other {
message_type: String,
},
}Expand description
A parsed Singer protocol message.
v0 models the three messages the bridge acts on plus a catch-all
Other arm for messages that are logged and
skipped (ACTIVATE_VERSION, BATCH, …).
Variants§
Record
A data record for stream.
Schema
A JSON-Schema declaration for stream.
Fields
State
A resume-checkpoint blob. value is opaque to the bridge — it is passed
back to the tap verbatim on resume via --state.
Other
Any other message type (e.g. ACTIVATE_VERSION, BATCH): recognized,
logged, and skipped in v0.
Trait Implementations§
Source§impl Clone for SingerMessage
impl Clone for SingerMessage
Source§fn clone(&self) -> SingerMessage
fn clone(&self) -> SingerMessage
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 moreSource§impl Debug for SingerMessage
impl Debug for SingerMessage
Source§impl PartialEq for SingerMessage
impl PartialEq for SingerMessage
impl StructuralPartialEq for SingerMessage
Auto Trait Implementations§
impl Freeze for SingerMessage
impl RefUnwindSafe for SingerMessage
impl Send for SingerMessage
impl Sync for SingerMessage
impl Unpin for SingerMessage
impl UnsafeUnpin for SingerMessage
impl UnwindSafe for SingerMessage
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