[−][src]Struct sn0int::models::Breach
Fields
id: i32
value: String
unscoped: bool
Trait Implementations
impl<__FK> BelongsTo<Breach> for BreachEmail where
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a Breach: Identifiable<Id = &'__a __FK>,
[src]
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a Breach: Identifiable<Id = &'__a __FK>,
type ForeignKey = __FK
The foreign key of this struct
type ForeignKeyColumn = breach_id
The database column representing the foreign key of the table this struct represents Read more
fn foreign_key(&self) -> Option<&Self::ForeignKey>
[src]
fn foreign_key_column() -> Self::ForeignKeyColumn
[src]
impl Debug for Breach
[src]
impl<'de> Deserialize<'de> for Breach
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Detailed for Breach
[src]
impl HasTable for Breach
[src]
impl<'ident> Identifiable for &'ident Breach
[src]
impl InsertableStruct<Breach> for NewBreach
[src]
fn value(&self) -> &str
[src]
fn set_scoped(&mut self, scoped: bool)
[src]
fn insert(&self, db: &Database) -> Result<()>
[src]
impl Model for Breach
[src]
type ID = str
fn to_string(&self) -> String
[src]
fn list(db: &Database) -> Result<Vec<Self>>
[src]
fn filter(db: &Database, filter: &Filter) -> Result<Vec<Self>>
[src]
fn delete(db: &Database, filter: &Filter) -> Result<usize>
[src]
fn delete_id(db: &Database, my_id: i32) -> Result<usize>
[src]
fn id(&self) -> i32
[src]
fn value(&self) -> &Self::ID
[src]
fn by_id(db: &Database, my_id: i32) -> Result<Self>
[src]
fn get(db: &Database, query: &Self::ID) -> Result<Self>
[src]
fn get_opt(db: &Database, query: &Self::ID) -> Result<Option<Self>>
[src]
fn filter_with_param(
_db: &Database,
_filter: &Filter,
_param: &str
) -> Result<Vec<Self>>
[src]
_db: &Database,
_filter: &Filter,
_param: &str
) -> Result<Vec<Self>>
fn get_id(db: &Database, query: &Self::ID) -> Result<i32>
[src]
fn get_id_opt(db: &Database, query: &Self::ID) -> Result<Option<i32>>
[src]
fn blob(&self) -> Option<&str>
[src]
impl PartialEq<Breach> for Breach
[src]
impl Printable<PrintableBreach> for Breach
[src]
fn printable(&self, _db: &Database) -> Result<PrintableBreach>
[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Breach where
(i32, String, bool): Queryable<__ST, __DB>,
[src]
(i32, String, bool): Queryable<__ST, __DB>,
type Row = <(i32, String, bool) as Queryable<__ST, __DB>>::Row
The Rust type you'd like to map from. Read more
fn build(row: Self::Row) -> Self
[src]
impl Scopable for Breach
[src]
fn scoped(&self) -> bool
[src]
fn scope(db: &Database, filter: &Filter) -> Result<usize>
[src]
fn noscope(db: &Database, filter: &Filter) -> Result<usize>
[src]
impl Serialize for Breach
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Breach
[src]
impl Upsertable<Breach> for NewBreach
[src]
Auto Trait Implementations
impl RefUnwindSafe for Breach
impl Send for Breach
impl Sync for Breach
impl Unpin for Breach
impl UnwindSafe for Breach
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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>,