pub struct SyncTarget {
pub connector: ConnectorId,
pub account: AccountId,
pub name: String,
}Expand description
One thing that gets synchronised: a kind of data, for one account, at one connector.
name is the product’s own label — notifications, projects, traffic. Every
target is account-scoped (ADR-0016), which is also what lets its state disappear
with the account.
Fields§
§connector: ConnectorId§account: AccountId§name: StringImplementations§
Source§impl SyncTarget
impl SyncTarget
Trait Implementations§
Source§impl Clone for SyncTarget
impl Clone for SyncTarget
Source§fn clone(&self) -> SyncTarget
fn clone(&self) -> SyncTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SyncTarget
impl Debug for SyncTarget
Source§impl<'de> Deserialize<'de> for SyncTarget
impl<'de> Deserialize<'de> for SyncTarget
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SyncTarget
impl Display for SyncTarget
impl Eq for SyncTarget
Source§impl Hash for SyncTarget
impl Hash for SyncTarget
Source§impl Ord for SyncTarget
impl Ord for SyncTarget
Source§fn cmp(&self, other: &SyncTarget) -> Ordering
fn cmp(&self, other: &SyncTarget) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SyncTarget
impl PartialEq for SyncTarget
Source§impl PartialOrd for SyncTarget
impl PartialOrd for SyncTarget
Source§impl Serialize for SyncTarget
impl Serialize for SyncTarget
impl StructuralPartialEq for SyncTarget
Auto Trait Implementations§
impl Freeze for SyncTarget
impl RefUnwindSafe for SyncTarget
impl Send for SyncTarget
impl Sync for SyncTarget
impl Unpin for SyncTarget
impl UnsafeUnpin for SyncTarget
impl UnwindSafe for SyncTarget
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