pub enum BindFormat {
Raw,
Iso8601,
EpochS,
EpochMs,
Date,
}Expand description
How the bookmark value is formatted before it is substituted into the
ReplicationBind::template.
For every non-Raw format the bookmark is first parsed
into an instant: a string is read as RFC 3339, a bare YYYY-MM-DD date
(midnight UTC), or a naive YYYY-MM-DDTHH:MM:SS (assumed UTC); a JSON
number is read as epoch seconds. It is then re-emitted in the target
representation, so epoch_ms ← ISO string and iso8601 ← epoch number both
work. A JSON number under epoch_s / epoch_ms is taken to be in that
unit already and emitted as its integer value.
Variants§
Raw
Emit the scalar verbatim (string as-is, number as its decimal form). The default; no timestamp parsing.
Iso8601
RFC 3339 / ISO-8601 UTC timestamp, e.g. 2024-06-01T00:00:00Z.
EpochS
Unix epoch seconds (integer).
EpochMs
Unix epoch milliseconds (integer).
Date
Calendar date YYYY-MM-DD (UTC).
Trait Implementations§
Source§impl Clone for BindFormat
impl Clone for BindFormat
impl Copy for BindFormat
Source§impl Debug for BindFormat
impl Debug for BindFormat
Source§impl Default for BindFormat
impl Default for BindFormat
Source§impl<'de> Deserialize<'de> for BindFormat
impl<'de> Deserialize<'de> for BindFormat
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>,
impl Eq for BindFormat
Source§impl JsonSchema for BindFormat
impl JsonSchema for BindFormat
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 moreSource§impl PartialEq for BindFormat
impl PartialEq for BindFormat
Source§impl Serialize for BindFormat
impl Serialize for BindFormat
impl StructuralPartialEq for BindFormat
Auto Trait Implementations§
impl Freeze for BindFormat
impl RefUnwindSafe for BindFormat
impl Send for BindFormat
impl Sync for BindFormat
impl Unpin for BindFormat
impl UnsafeUnpin for BindFormat
impl UnwindSafe for BindFormat
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request