pub enum AirbyteStateMessage {
Global {
global: AirbyteGlobalState,
destination_stats: Option<AirbyteStateStats>,
source_stats: Option<AirbyteStateStats>,
},
Stream {
stream: AirbyteStreamState,
destination_stats: Option<AirbyteStateStats>,
source_stats: Option<AirbyteStateStats>,
},
Legacy {
data: Value,
destination_stats: Option<AirbyteStateStats>,
source_stats: Option<AirbyteStateStats>,
},
Empty {
data: Value,
destination_stats: Option<AirbyteStateStats>,
source_stats: Option<AirbyteStateStats>,
},
}
Expand description
The type of state the other fields represent. Is set to LEGACY, the state data should be read
from the data
field for backwards compatibility. If not set, assume the state object is type
LEGACY. GLOBAL means that the state should be read from global
and means that it represents
the state for all the streams. It contains one shared state and individual stream states.
PER_STREAM means that the state should be read from stream
. The state present in this field
correspond to the isolated state of the associated stream description.
Variants§
Global
Fields
§
global: AirbyteGlobalState
§
destination_stats: Option<AirbyteStateStats>
§
source_stats: Option<AirbyteStateStats>
Stream
Fields
§
stream: AirbyteStreamState
§
destination_stats: Option<AirbyteStateStats>
§
source_stats: Option<AirbyteStateStats>
Legacy
Empty
Trait Implementations§
Source§impl Clone for AirbyteStateMessage
impl Clone for AirbyteStateMessage
Source§fn clone(&self) -> AirbyteStateMessage
fn clone(&self) -> AirbyteStateMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 AirbyteStateMessage
impl Debug for AirbyteStateMessage
Source§impl<'de> Deserialize<'de> for AirbyteStateMessage
impl<'de> Deserialize<'de> for AirbyteStateMessage
Source§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
Source§impl PartialEq for AirbyteStateMessage
impl PartialEq for AirbyteStateMessage
Source§impl Serialize for AirbyteStateMessage
impl Serialize for AirbyteStateMessage
impl StructuralPartialEq for AirbyteStateMessage
Auto Trait Implementations§
impl Freeze for AirbyteStateMessage
impl RefUnwindSafe for AirbyteStateMessage
impl Send for AirbyteStateMessage
impl Sync for AirbyteStateMessage
impl Unpin for AirbyteStateMessage
impl UnwindSafe for AirbyteStateMessage
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