Trait sn0int::models::Upsertable[][src]

pub trait Upsertable<M> {
    type Update: Upsert;
    fn upsert(self, existing: &M) -> Self::Update;

    fn upsert_opt<T: PartialEq>(
        insert: Option<T>,
        existing: &Option<T>
    ) -> Option<T> { ... } }

Associated Types

Required methods

Provided methods

Implementors