[][src]Trait sn0int::models::Updateable

pub trait Updateable<M> {
    fn changeset(&mut self, existing: &M);
fn fmt(&self, updates: &mut Vec<String>); fn to_string(&self) -> String { ... }
fn clear_if_equal<T: PartialEq>(
        update: &mut Option<T>,
        existing: &Option<T>
    ) { ... }
fn clear_if_lower_or_equal<T: PartialOrd>(
        update: &mut Option<T>,
        existing: &Option<T>
    ) { ... }
fn clear_if_greater_or_equal<T: PartialOrd>(
        update: &mut Option<T>,
        existing: &Option<T>
    ) { ... }
fn push_value<D: Debug>(
        updates: &mut Vec<String>,
        name: &str,
        value: &Option<D>
    ) { ... }
fn push_raw<T: AsRef<str>>(
        updates: &mut Vec<String>,
        name: &str,
        value: Option<T>
    ) { ... } }

Required methods

fn changeset(&mut self, existing: &M)

fn fmt(&self, updates: &mut Vec<String>)

Loading content...

Provided methods

fn to_string(&self) -> String

fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>)

fn clear_if_lower_or_equal<T: PartialOrd>(
    update: &mut Option<T>,
    existing: &Option<T>
)

fn clear_if_greater_or_equal<T: PartialOrd>(
    update: &mut Option<T>,
    existing: &Option<T>
)

fn push_value<D: Debug>(
    updates: &mut Vec<String>,
    name: &str,
    value: &Option<D>
)

fn push_raw<T: AsRef<str>>(
    updates: &mut Vec<String>,
    name: &str,
    value: Option<T>
)

Loading content...

Implementors

impl Updateable<Account> for AccountUpdate[src]

impl Updateable<BreachEmail> for BreachEmailUpdate[src]

impl Updateable<CryptoAddr> for CryptoAddrUpdate[src]

impl Updateable<Device> for DeviceUpdate[src]

impl Updateable<Email> for EmailUpdate[src]

impl Updateable<Image> for ImageUpdate[src]

impl Updateable<IpAddr> for IpAddrUpdate[src]

impl Updateable<Netblock> for NetblockUpdate[src]

impl Updateable<Network> for NetworkUpdate[src]

impl Updateable<NetworkDevice> for NetworkDeviceUpdate[src]

impl Updateable<PhoneNumber> for PhoneNumberUpdate[src]

impl Updateable<Port> for PortUpdate[src]

impl Updateable<Subdomain> for SubdomainUpdate[src]

impl Updateable<Url> for UrlUpdate[src]

Loading content...