[−][src]Struct sn0int::models::Url
Fields
id: i32
subdomain_id: i32
value: String
path: String
status: Option<i32>
body: Option<Vec<u8>>
unscoped: bool
online: Option<bool>
title: Option<String>
redirect: Option<String>
Trait Implementations
impl Model for Url
[src]
impl Model for Url
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 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 get_id(db: &Database, query: &Self::ID) -> Result<i32> | [src] |
fn get_id_opt(db: &Database, query: &Self::ID) -> Result<Option<i32>> | [src] |
impl Scopable for Url
[src]
impl Scopable for Url
fn scoped(&self) -> bool | [src] |
fn scope(db: &Database, filter: &Filter) -> Result<usize> | [src] |
fn noscope(db: &Database, filter: &Filter) -> Result<usize> | [src] |
impl<'a> InsertableStruct<Url> for NewUrl<'a>
[src]
impl<'a> InsertableStruct<Url> for NewUrl<'a>
impl<'a> Upsertable<Url> for NewUrl<'a>
[src]
impl<'a> Upsertable<Url> for NewUrl<'a>
type Update = UrlUpdate
fn upsert(self, existing: &Url) -> Self::Update | [src] |
fn upsert_str( | [src] |
fn upsert_bytes( | [src] |
fn upsert_opt<T: PartialEq>( | [src] |
impl Updateable<Url> for UrlUpdate
[src]
impl Updateable<Url> for UrlUpdate
fn changeset(&mut self, existing: &Url) | [src] |
fn fmt(&self, updates: &mut Vec<String>) | [src] |
fn to_string(&self) -> String | [src] |
fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>) | [src] |
fn push_value<D: Debug>( | [src] |
fn push_raw<T: AsRef<str>>( | [src] |
impl Printable<PrintableUrl> for Url
[src]
impl Printable<PrintableUrl> for Url
fn printable(&self, _db: &Database) -> Result<PrintableUrl> | [src] |
impl Detailed for Url
[src]
impl Detailed for Url
impl PartialEq<Url> for Url
[src]
impl PartialEq<Url> for Url
impl Debug for Url
[src]
impl Debug for Url
impl BelongsTo<Subdomain> for Url
[src]
impl BelongsTo<Subdomain> for Url
type ForeignKey = i32
The foreign key of this struct
type ForeignKeyColumn = subdomain_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 HasTable for Url
[src]
impl HasTable for Url
impl<'ident> Identifiable for &'ident Url
[src]
impl<'ident> Identifiable for &'ident Url
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Url where
(i32, i32, String, String, Option<i32>, Option<Vec<u8>>, bool, Option<bool>, Option<String>, Option<String>): Queryable<__ST, __DB>,
[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Url where
(i32, i32, String, String, Option<i32>, Option<Vec<u8>>, bool, Option<bool>, Option<String>, Option<String>): Queryable<__ST, __DB>,
type Row = <(i32, i32, String, String, Option<i32>, Option<Vec<u8>>, bool, Option<bool>, Option<String>, Option<String>) as Queryable<__ST, __DB>>::Row
The Rust type you'd like to map from. Read more
fn build(row: Self::Row) -> Self | [src] |
impl Serialize for Url
[src]
impl Serialize for Url
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for Url
[src]
impl<'de> Deserialize<'de> for Url
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> IntoSql for T
[src]
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where | [src] |
Convert self
to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where | [src] |
Convert &self
to an expression for Diesel's query builder. Read more
impl<'a, Parent, Child> BelongingToDsl for Child where
Child: HasTable + BelongsTo<Parent>,
&'a Parent: Identifiable,
<&'a Parent as Identifiable>::Id: AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
<Child as HasTable>::Table: FilterDsl<Eq<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <<&'a Parent as Identifiable>::Id as AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::Expression>>,
<Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods,
[src]
impl<'a, Parent, Child> BelongingToDsl for Child where
Child: HasTable + BelongsTo<Parent>,
&'a Parent: Identifiable,
<&'a Parent as Identifiable>::Id: AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
<Child as HasTable>::Table: FilterDsl<Eq<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <<&'a Parent as Identifiable>::Id as AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::Expression>>,
<Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods,
type Output = <<Child as HasTable>::Table as FilterDsl<Eq<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <<&'a Parent as Identifiable>::Id as AsExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::Expression>>>::Output
The query returned by belonging_to
fn belonging_to( | [src] |
impl<'a, Parent, Child> BelongingToDsl for Child where
Child: HasTable + BelongsTo<Parent>,
&'a Parent: Identifiable,
Vec<<&'a Parent as Identifiable>::Id>: AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
<Child as HasTable>::Table: FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
<Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods,
[src]
impl<'a, Parent, Child> BelongingToDsl for Child where
Child: HasTable + BelongsTo<Parent>,
&'a Parent: Identifiable,
Vec<<&'a Parent as Identifiable>::Id>: AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>,
<Child as HasTable>::Table: FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
<Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods,
type Output = <<Child as HasTable>::Table as FilterDsl<In<<Child as BelongsTo<Parent>>::ForeignKeyColumn, <Vec<<&'a Parent as Identifiable>::Id> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>>::Output
The query returned by belonging_to
fn belonging_to( | [src] |
impl<'a, Parent, Child> BelongingToDsl for Child where
Child: BelongingToDsl<&'a [Parent]>,
[src]
impl<'a, Parent, Child> BelongingToDsl for Child where
Child: BelongingToDsl<&'a [Parent]>,
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by belonging_to
fn belonging_to( | [src] |
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Erased for T