pub struct AirbyteStream {
pub name: String,
pub json_schema: Option<Value>,
pub supported_sync_modes: Option<Vec<SyncMode>>,
pub source_defined_cursor: Option<bool>,
pub default_cursor_field: Option<Vec<String>>,
pub source_defined_primary_key: Option<Vec<Vec<String>>>,
pub namespace: Option<String>,
}Expand description
AirbyteStream : the immutable schema defined by the source
Fields§
§name: StringStream’s name.
json_schema: Option<Value>Stream schema using Json Schema specs.
supported_sync_modes: Option<Vec<SyncMode>>§source_defined_cursor: Option<bool>If the source defines the cursor field, then any other cursor field inputs will be ignored. If it does not, either the user_provided one is used, or the default one is used as a backup.
default_cursor_field: Option<Vec<String>>Path to the field that will be used to determine if a record is new or modified since the last sync. If not provided by the source, the end user will have to specify the comparable themselves.
source_defined_primary_key: Option<Vec<Vec<String>>>If the source defines the primary key, paths to the fields that will be used as a primary key. If not provided by the source, the end user will have to specify the primary key themselves.
namespace: Option<String>Optional Source-defined namespace. Airbyte streams from the same sources should have the same namespace. Currently only used by JDBC destinations to determine what schema to write to.
Implementations§
Source§impl AirbyteStream
impl AirbyteStream
Sourcepub fn new(name: String) -> AirbyteStream
pub fn new(name: String) -> AirbyteStream
the immutable schema defined by the source
Trait Implementations§
Source§impl Clone for AirbyteStream
impl Clone for AirbyteStream
Source§fn clone(&self) -> AirbyteStream
fn clone(&self) -> AirbyteStream
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more