pub struct Breach {
pub id: i32,
pub value: String,
pub unscoped: bool,
}
Fields§
§id: i32
§value: String
§unscoped: bool
Trait Implementations§
source§impl<__FK> BelongsTo<Breach> for BreachEmailwhere
__FK: Hash + Eq,
for<'__a> &'__a i32: Into<Option<&'__a __FK>>,
for<'__a> &'__a Breach: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Breach> for BreachEmailwhere __FK: Hash + Eq, for<'__a> &'__a i32: Into<Option<&'__a __FK>>, for<'__a> &'__a Breach: Identifiable<Id = &'__a __FK>,
§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
§type ForeignKeyColumn = breach_id
type ForeignKeyColumn = breach_id
The database column representing the foreign key
of the table this struct represents
source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
source§impl<'de> Deserialize<'de> for Breach
impl<'de> Deserialize<'de> for Breach
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'ident> Identifiable for &'ident Breach
impl<'ident> Identifiable for &'ident Breach
source§impl InsertableStruct<Breach> for NewBreach
impl InsertableStruct<Breach> for NewBreach
source§impl Model for Breach
impl Model for Breach
type ID = str
fn to_string(&self) -> String
fn list(db: &Database) -> Result<Vec<Self>>
fn filter(db: &Database, filter: &Filter) -> Result<Vec<Self>>
fn delete(db: &Database, filter: &Filter) -> Result<usize>
fn delete_id(db: &Database, my_id: i32) -> Result<usize>
fn id(&self) -> i32
fn value(&self) -> &Self::ID
fn by_id(db: &Database, my_id: i32) -> Result<Self>
fn get(db: &Database, query: &Self::ID) -> Result<Self>
fn get_opt(db: &Database, query: &Self::ID) -> Result<Option<Self>>
fn filter_with_param( _db: &Database, _filter: &Filter, _param: &str ) -> Result<Vec<Self>>
fn get_id(db: &Database, query: &Self::ID) -> Result<i32>
fn get_id_opt(db: &Database, query: &Self::ID) -> Result<Option<i32>>
fn blob(&self) -> Option<&str>
source§impl PartialEq<Breach> for Breach
impl PartialEq<Breach> for Breach
source§impl Printable<PrintableBreach> for Breach
impl Printable<PrintableBreach> for Breach
source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Breachwhere
(i32, String, bool): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Breachwhere (i32, String, bool): Queryable<__ST, __DB>,
source§impl Upsertable<Breach> for NewBreach
impl Upsertable<Breach> for NewBreach
impl StructuralPartialEq for Breach
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<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more