pub struct ReplicationKey { /* private fields */ }Expand description
A compiled replication key: a top-level field name, a dot path
(fields.updated, numeric segments index arrays), or an RFC 6901 JSON
Pointer (/fields/updated, for field names that contain a dot) (#747).
A dot path first tries the whole string as a literal top-level field, so a
flat column literally named Account.LastModifiedDate (a CSV header) still
resolves.
Implementations§
Source§impl ReplicationKey
impl ReplicationKey
Sourcepub fn parse(raw: &str) -> Result<Self, FaucetError>
pub fn parse(raw: &str) -> Result<Self, FaucetError>
Parse a user-facing key (see the type docs for the accepted forms).
Sourcepub fn top_level(name: &str) -> Self
pub fn top_level(name: &str) -> Self
A literal top-level field name, never interpreted as a path.
Sourcepub fn is_pointer(&self) -> bool
pub fn is_pointer(&self) -> bool
Whether the key is a JSON Pointer (/a/b).
Trait Implementations§
Source§impl Clone for ReplicationKey
impl Clone for ReplicationKey
Source§impl Debug for ReplicationKey
impl Debug for ReplicationKey
impl Eq for ReplicationKey
Source§impl PartialEq for ReplicationKey
impl PartialEq for ReplicationKey
impl StructuralPartialEq for ReplicationKey
Auto Trait Implementations§
impl Freeze for ReplicationKey
impl RefUnwindSafe for ReplicationKey
impl Send for ReplicationKey
impl Sync for ReplicationKey
impl Unpin for ReplicationKey
impl UnsafeUnpin for ReplicationKey
impl UnwindSafe for ReplicationKey
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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>
Wrap the input message
T in a tonic::Request