[−][src]Struct sn0int::db::Database
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]
&mut self,
object: &RuleType,
value: &str,
scoped: bool
) -> Result<()>
pub fn autonoscope_delete_rule(
&mut self,
object: &RuleType,
value: &str
) -> Result<()>
[src]
&mut self,
object: &RuleType,
value: &str
) -> Result<()>
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]
&self,
obj: T,
scoped: bool
) -> Result<Option<(DbChange, i32)>>
Returns true if we didn't have this value yet
pub fn insert_activity(&self, obj: NewActivity) -> Result<bool>
[src]
pub fn insert_subdomain_ipaddr_struct(
&self,
subdomain_ipaddr: &NewSubdomainIpAddr
) -> Result<Option<(DbChange, i32)>>
[src]
&self,
subdomain_ipaddr: &NewSubdomainIpAddr
) -> Result<Option<(DbChange, i32)>>
pub fn insert_network_device_struct(
&self,
network_device: &NewNetworkDevice
) -> Result<Option<(DbChange, i32)>>
[src]
&self,
network_device: &NewNetworkDevice
) -> Result<Option<(DbChange, i32)>>
pub fn insert_breach_email_struct(
&self,
obj: NewBreachEmail
) -> Result<Option<(DbChange, i32)>>
[src]
&self,
obj: NewBreachEmail
) -> Result<Option<(DbChange, i32)>>
pub fn update_generic(&self, update: &Update) -> Result<i32>
[src]
pub fn update_subdomain(
&self,
subdomain_update: &SubdomainUpdate
) -> Result<i32>
[src]
&self,
subdomain_update: &SubdomainUpdate
) -> Result<i32>
pub fn update_ipaddr(&self, ipaddr_update: &IpAddrUpdate) -> Result<i32>
[src]
pub fn update_url(&self, url_update: &UrlChangeset) -> 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]
&self,
phonenumber_update: &PhoneNumberUpdate
) -> Result<i32>
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]
&self,
network_device_update: &NetworkDeviceUpdate
) -> Result<i32>
pub fn update_account(&self, account_update: &AccountUpdate) -> Result<i32>
[src]
pub fn update_breach_email(
&self,
breach_email_update: &BreachEmailUpdate
) -> Result<i32>
[src]
&self,
breach_email_update: &BreachEmailUpdate
) -> Result<i32>
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]
&self,
cryptoaddr_update: &CryptoAddrUpdate
) -> Result<i32>
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]
&self,
filter: &Filter,
param: Option<&String>
) -> Result<Vec<T>>
Auto Trait Implementations
impl !RefUnwindSafe for Database
impl Send for Database
impl !Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,