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

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

Loading content...

Required methods

fn upsert(self, existing: &M) -> Self::Update

Loading content...

Provided methods

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

Loading content...

Implementors

impl Upsertable<Account> for NewAccount[src]

type Update = AccountUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<Breach> for NewBreach[src]

type Update = NullUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<BreachEmail> for NewBreachEmail[src]

type Update = BreachEmailUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<Device> for NewDevice[src]

type Update = DeviceUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<Domain> for NewDomain[src]

type Update = NullUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<Email> for NewEmail[src]

type Update = EmailUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<Image> for NewImage[src]

type Update = ImageUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<IpAddr> for NewIpAddr[src]

type Update = IpAddrUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<Network> for NewNetwork[src]

type Update = NetworkUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<NetworkDevice> for NewNetworkDevice[src]

type Update = NetworkDeviceUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<PhoneNumber> for NewPhoneNumber[src]

type Update = PhoneNumberUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<Subdomain> for NewSubdomain[src]

type Update = SubdomainUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Upsertable<Url> for NewUrl[src]

type Update = UrlUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

Loading content...