pub struct WriteSpec {
pub write_mode: WriteMode,
pub key: Vec<String>,
pub delete_marker: Option<DeleteMarker>,
}Expand description
Shared write-mode config, embedded in each upsert-capable sink config via
#[serde(flatten)] so write_mode / key / delete_marker appear at the
sink-config top level.
Fields§
§write_mode: WriteModeAppend (default), upsert, or delete.
key: Vec<String>Key columns. Required and non-empty for upsert/delete; ignored for append.
delete_marker: Option<DeleteMarker>Optional. Upsert only: rows whose field matches one of values are
deletes; all others are upserts. The marker field is stripped from
upsert rows before writing.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WriteSpec
impl<'de> Deserialize<'de> for WriteSpec
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 JsonSchema for WriteSpec
impl JsonSchema for WriteSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for WriteSpec
impl RefUnwindSafe for WriteSpec
impl Send for WriteSpec
impl Sync for WriteSpec
impl Unpin for WriteSpec
impl UnsafeUnpin for WriteSpec
impl UnwindSafe for WriteSpec
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