[][src]Trait sn0int::models::InsertableStruct

pub trait InsertableStruct<T: Model>: Upsertable<T> {
    fn value(&self) -> &T::ID;
fn set_scoped(&mut self, scoped: bool);
fn insert(&self, db: &Database) -> Result<()>; }

Required methods

fn value(&self) -> &T::ID

fn set_scoped(&mut self, scoped: bool)

fn insert(&self, db: &Database) -> Result<()>

Loading content...

Implementors

impl InsertableStruct<Account> for NewAccount[src]

impl InsertableStruct<Breach> for NewBreach[src]

impl InsertableStruct<CryptoAddr> for NewCryptoAddr[src]

impl InsertableStruct<Device> for NewDevice[src]

impl InsertableStruct<Domain> for NewDomain[src]

impl InsertableStruct<Email> for NewEmail[src]

impl InsertableStruct<Image> for NewImage[src]

impl InsertableStruct<IpAddr> for NewIpAddr[src]

impl InsertableStruct<Netblock> for NewNetblock[src]

impl InsertableStruct<Network> for NewNetwork[src]

impl InsertableStruct<PhoneNumber> for NewPhoneNumber[src]

impl InsertableStruct<Port> for NewPort[src]

impl InsertableStruct<Subdomain> for NewSubdomain[src]

impl InsertableStruct<Url> for NewUrl[src]

Loading content...