pub struct ReplicationBind {
pub into: BindTarget,
pub name: String,
pub template: String,
pub format: BindFormat,
pub advance_from: Option<String>,
}Expand description
Declarative binding of the stored bookmark into the outgoing request — “server-side incremental push-down” (#513).
Today faucet tracks bookmarks and filters incrementally client-side (after
download). A bind lets a source instead push the bookmark into the request
(query param / header / body field / path) so the server returns only the
new rows. The existing client-side filter_incremental stays active as a
safety net for servers that don’t honour the filter exactly.
Fields§
§into: BindTargetWhere to place the rendered value.
name: StringThe parameter / header / body-field / path-placeholder name.
template: StringTemplate rendered with BIND_PLACEHOLDER (${bookmark}) replaced by
the formatted bookmark. Defaults to the bare ${bookmark}; set e.g.
"gte|${bookmark}" (Greenhouse) or "[${bookmark} TO *]" (Lucene).
format: BindFormatHow to format the bookmark before substitution.
advance_from: Option<String>Optional JSONPath into the response body to advance the bookmark from,
instead of max(record[replication_key]).
Implementations§
Trait Implementations§
Source§impl Clone for ReplicationBind
impl Clone for ReplicationBind
Source§fn clone(&self) -> ReplicationBind
fn clone(&self) -> ReplicationBind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReplicationBind
impl Debug for ReplicationBind
Source§impl<'de> Deserialize<'de> for ReplicationBind
impl<'de> Deserialize<'de> for ReplicationBind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplicationBind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplicationBind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ReplicationBind
impl JsonSchema for ReplicationBind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more