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

Loading content...

Required methods

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

Loading content...

Provided methods

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

Loading content...

Implementors

impl Upsertable<Account> for NewAccount[src]

type Update = AccountUpdate

impl Upsertable<Breach> for NewBreach[src]

type Update = NullUpdate

impl Upsertable<BreachEmail> for NewBreachEmail[src]

type Update = BreachEmailUpdate

impl Upsertable<CryptoAddr> for NewCryptoAddr[src]

type Update = CryptoAddrUpdate

impl Upsertable<Device> for NewDevice[src]

type Update = DeviceUpdate

impl Upsertable<Domain> for NewDomain[src]

type Update = NullUpdate

impl Upsertable<Email> for NewEmail[src]

type Update = EmailUpdate

impl Upsertable<Image> for NewImage[src]

type Update = ImageUpdate

impl Upsertable<IpAddr> for NewIpAddr[src]

type Update = IpAddrUpdate

impl Upsertable<Netblock> for NewNetblock[src]

type Update = NetblockUpdate

impl Upsertable<Network> for NewNetwork[src]

type Update = NetworkUpdate

impl Upsertable<NetworkDevice> for NewNetworkDevice[src]

type Update = NetworkDeviceUpdate

impl Upsertable<PhoneNumber> for NewPhoneNumber[src]

type Update = PhoneNumberUpdate

impl Upsertable<Port> for NewPort[src]

type Update = PortUpdate

impl Upsertable<Subdomain> for NewSubdomain[src]

type Update = SubdomainUpdate

impl Upsertable<Url> for NewUrl[src]

type Update = UrlChangeset

Loading content...