autofill::sync

Trait SyncRecord

Source
pub trait SyncRecord {
    // Required methods
    fn record_name() -> &'static str;
    fn id(&self) -> &Guid;
    fn metadata(&self) -> &Metadata;
    fn metadata_mut(&mut self) -> &mut Metadata;
    fn merge(
        incoming: &Self,
        local: &Self,
        mirror: &Option<Self>,
    ) -> MergeResult<Self>
       where Self: Sized;
}

Required Methods§

Source

fn record_name() -> &'static str

Source

fn id(&self) -> &Guid

Source

fn metadata(&self) -> &Metadata

Source

fn metadata_mut(&mut self) -> &mut Metadata

Source

fn merge( incoming: &Self, local: &Self, mirror: &Option<Self>, ) -> MergeResult<Self>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§