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

pub trait Updateable<M> {
    fn changeset(&mut self, existing: &M);
fn fmt(&self, updates: &mut Vec<String>, colors: bool); fn to_plain_str(&self) -> String { ... }
fn to_term_str(&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>,
        colors: bool
    ) { ... }
fn push_raw<T: AsRef<str>>(
        updates: &mut Vec<String>,
        name: &str,
        value: Option<T>,
        colors: bool
    ) { ... } }

Required methods

fn changeset(&mut self, existing: &M)[src]

fn fmt(&self, updates: &mut Vec<String>, colors: bool)[src]

Loading content...

Provided methods

fn to_plain_str(&self) -> String[src]

fn to_term_str(&self) -> String[src]

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

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

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

fn push_value<D: Debug>(
    updates: &mut Vec<String>,
    name: &str,
    value: &Option<D>,
    colors: bool
)
[src]

fn push_raw<T: AsRef<str>>(
    updates: &mut Vec<String>,
    name: &str,
    value: Option<T>,
    colors: bool
)
[src]

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 UrlChangeset[src]

Loading content...