pub struct ObjectSync { /* private fields */ }Expand description
Object-level sync configuration.
Implementations§
Source§impl ObjectSync
impl ObjectSync
Sourcepub fn external_id(self, external_id_field: impl Into<String>) -> Self
pub fn external_id(self, external_id_field: impl Into<String>) -> Self
Sets the Salesforce external ID field used for canonical identity.
Sourcepub fn field_owner(self, field_name: impl Into<String>, owner: Owner) -> Self
pub fn field_owner(self, field_name: impl Into<String>, owner: Owner) -> Self
Marks a field as owned by one side or shared.
Sourcepub fn object_name(&self) -> &str
pub fn object_name(&self) -> &str
Returns the synced Salesforce object name.
Sourcepub fn external_id_field(&self) -> Option<&str>
pub fn external_id_field(&self) -> Option<&str>
Returns the configured external ID field, if one is set.
Sourcepub const fn conflict_policy(&self) -> &ConflictPolicy
pub const fn conflict_policy(&self) -> &ConflictPolicy
Returns the conflict policy for the object.
Sourcepub const fn lane_thresholds(&self) -> &LaneThresholds
pub const fn lane_thresholds(&self) -> &LaneThresholds
Returns the planner thresholds for the object.
Sourcepub fn field_owner_for(&self, field_name: &str) -> Option<Owner>
pub fn field_owner_for(&self, field_name: &str) -> Option<Owner>
Returns the ownership rule for a field, if one is configured.
Sourcepub const fn field_ownership(&self) -> &BTreeMap<String, Owner>
pub const fn field_ownership(&self) -> &BTreeMap<String, Owner>
Returns the configured field ownership rules.
Trait Implementations§
Source§impl Clone for ObjectSync
impl Clone for ObjectSync
Source§fn clone(&self) -> ObjectSync
fn clone(&self) -> ObjectSync
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectSync
impl Debug for ObjectSync
Source§impl PartialEq for ObjectSync
impl PartialEq for ObjectSync
impl Eq for ObjectSync
impl StructuralPartialEq for ObjectSync
Auto Trait Implementations§
impl Freeze for ObjectSync
impl RefUnwindSafe for ObjectSync
impl Send for ObjectSync
impl Sync for ObjectSync
impl Unpin for ObjectSync
impl UnsafeUnpin for ObjectSync
impl UnwindSafe for ObjectSync
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§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