pub struct SyncKey { /* private fields */ }Expand description
Canonical identity for a synced record.
Implementations§
Source§impl SyncKey
impl SyncKey
Sourcepub fn new(
tenant: impl Into<String>,
object_name: impl Into<String>,
external_id: impl Into<String>,
) -> Result<Self, ForceSyncError>
pub fn new( tenant: impl Into<String>, object_name: impl Into<String>, external_id: impl Into<String>, ) -> Result<Self, ForceSyncError>
Creates a canonical identity from non-empty tenant, object, and external ID parts.
§Errors
Returns an error when any part is empty.
Sourcepub fn object_name(&self) -> &str
pub fn object_name(&self) -> &str
Returns the synced object name.
Sourcepub fn external_id(&self) -> &str
pub fn external_id(&self) -> &str
Returns the canonical external ID.
Trait Implementations§
impl Eq for SyncKey
impl StructuralPartialEq for SyncKey
Auto Trait Implementations§
impl Freeze for SyncKey
impl RefUnwindSafe for SyncKey
impl Send for SyncKey
impl Sync for SyncKey
impl Unpin for SyncKey
impl UnsafeUnpin for SyncKey
impl UnwindSafe for SyncKey
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
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§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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