[][src]Struct sn0int::db::Database

pub struct Database { /* fields omitted */ }

Methods

impl Database[src]

pub fn establish(workspace: Workspace) -> Result<Database>[src]

pub fn establish_quiet(workspace: Workspace) -> Result<Database>[src]

pub fn name(&self) -> &str[src]

pub fn db(&self) -> &SqliteConnection[src]

pub fn workspace(&self) -> &Workspace[src]

pub fn autonoscope_add_rule(
    &mut self,
    object: &RuleType,
    value: &str,
    scoped: bool
) -> Result<()>
[src]

pub fn autonoscope_delete_rule(
    &mut self,
    object: &RuleType,
    value: &str
) -> Result<()>
[src]

pub fn autonoscope_rules(&self) -> Vec<(&'static str, String, bool)>[src]

pub fn insert_generic(&self, object: Insert) -> Result<Option<(DbChange, i32)>>[src]

Returns true if we didn't have this value yet

pub fn insert_struct<T: InsertableStruct<M>, M: Model + Scopable>(
    &self,
    obj: T,
    scoped: bool
) -> Result<Option<(DbChange, i32)>>
[src]

Returns true if we didn't have this value yet

pub fn insert_subdomain_ipaddr_struct(
    &self,
    subdomain_ipaddr: &NewSubdomainIpAddr
) -> Result<Option<(DbChange, i32)>>
[src]

pub fn insert_network_device_struct(
    &self,
    network_device: &NewNetworkDevice
) -> Result<Option<(DbChange, i32)>>
[src]

pub fn insert_breach_email_struct(
    &self,
    obj: NewBreachEmail
) -> Result<Option<(DbChange, i32)>>
[src]

pub fn update_generic(&self, update: &Update) -> Result<i32>[src]

pub fn update_subdomain(
    &self,
    subdomain_update: &SubdomainUpdate
) -> Result<i32>
[src]

pub fn update_ipaddr(&self, ipaddr_update: &IpAddrUpdate) -> Result<i32>[src]

pub fn update_url(&self, url_update: &UrlUpdate) -> Result<i32>[src]

pub fn update_email(&self, email_update: &EmailUpdate) -> Result<i32>[src]

pub fn update_phonenumber(
    &self,
    phonenumber_update: &PhoneNumberUpdate
) -> Result<i32>
[src]

pub fn update_device(&self, device_update: &DeviceUpdate) -> Result<i32>[src]

pub fn update_network(&self, network_update: &NetworkUpdate) -> Result<i32>[src]

pub fn update_network_device(
    &self,
    network_device_update: &NetworkDeviceUpdate
) -> Result<i32>
[src]

pub fn update_account(&self, account_update: &AccountUpdate) -> Result<i32>[src]

pub fn update_breach_email(
    &self,
    breach_email_update: &BreachEmailUpdate
) -> Result<i32>
[src]

pub fn update_image(&self, image_update: &ImageUpdate) -> Result<i32>[src]

pub fn update_port(&self, port_update: &PortUpdate) -> Result<i32>[src]

pub fn update_netblock(&self, netblock_update: &NetblockUpdate) -> Result<i32>[src]

pub fn update_cryptoaddr(
    &self,
    cryptoaddr_update: &CryptoAddrUpdate
) -> Result<i32>
[src]

pub fn get_opt(&self, family: &Family, value: &str) -> Result<Option<i32>>[src]

pub fn list<T: Model>(&self) -> Result<Vec<T>>[src]

pub fn filter<T: Model>(&self, filter: &Filter) -> Result<Vec<T>>[src]

pub fn filter_with_param<T: Model>(
    &self,
    filter: &Filter,
    param: Option<&String>
) -> Result<Vec<T>>
[src]

Auto Trait Implementations

impl Send for Database

impl !Sync for Database

impl Unpin for Database

impl UnwindSafe for Database

impl !RefUnwindSafe for Database

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoSql for T[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T