Struct got_ya_id::apps::profiles::models::Avatar [−][src]
User Profile Avatar struct
Fields
url: Option<Cow<'a, str>>
Trait Implementations
impl<'a, 'update> AsChangeset for &'update Avatar<'a>
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<user_id, &'update i32>, Option<Eq<url, &'update Cow<'a, str>>>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl<'a, 'update> AsChangeset for Avatar<'a>
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<user_id, i32>, Option<Eq<url, Cow<'a, str>>>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl<'a, __FK> BelongsTo<User> for Avatar<'a> where
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a User: Identifiable<Id = &'__a __FK>,
[src]
__FK: Hash + Eq,
&'__a i32: Into<Option<&'__a __FK>>,
&'__a User: Identifiable<Id = &'__a __FK>,
type ForeignKey = __FK
The foreign key of this struct
type ForeignKeyColumn = user_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<'de, 'a> Deserialize<'de> for Avatar<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> HasTable for Avatar<'a>
[src]
impl<'a, 'ident> Identifiable for &'ident Avatar<'a>
[src]
impl<'a, __DB: Backend, __ST> Queryable<__ST, __DB> for Avatar<'a> where
(i32, i32, Option<Cow<'a, str>>): Queryable<__ST, __DB>,
[src]
(i32, i32, Option<Cow<'a, str>>): Queryable<__ST, __DB>,
type Row = <(i32, i32, Option<Cow<'a, str>>) as Queryable<__ST, __DB>>::Row
The Rust type you’d like to map from. Read more
fn build(row: Self::Row) -> Self
[src]
impl<'a> Serialize for Avatar<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Avatar<'a>
impl<'a> Send for Avatar<'a>
impl<'a> Sync for Avatar<'a>
impl<'a> Unpin for Avatar<'a>
impl<'a> UnwindSafe for Avatar<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<'a, Parent, Child> BelongingToDsl<&'a [Parent]> for Child where
Child: HasTable + BelongsTo<Parent>,
&'a Parent: Identifiable,
Vec<<&'a Parent as Identifiable>::Id, Global>: 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, Global> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>,
<Child as BelongsTo<Parent>>::ForeignKeyColumn: ExpressionMethods,
[src]
Child: HasTable + BelongsTo<Parent>,
&'a Parent: Identifiable,
Vec<<&'a Parent as Identifiable>::Id, Global>: 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, Global> 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, Global> as AsInExpression<<<Child as BelongsTo<Parent>>::ForeignKeyColumn as Expression>::SqlType>>::InExpression>>>::Output
The query returned by belonging_to
pub fn belonging_to(
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
[src]
parents: &'a [Parent]
) -> <Child as BelongingToDsl<&'a [Parent]>>::Output
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent, Global>> for Child where
Child: BelongingToDsl<&'a [Parent]>,
[src]
Child: BelongingToDsl<&'a [Parent]>,
type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output
The query returned by belonging_to
pub fn belonging_to(
parents: &'a Vec<Parent, Global>
) -> <Child as BelongingToDsl<&'a Vec<Parent, Global>>>::Output
[src]
parents: &'a Vec<Parent, Global>
) -> <Child as BelongingToDsl<&'a Vec<Parent, Global>>>::Output
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> FromPy<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
[src]
U: FromPy<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub 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, 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.
pub 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.
pub 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>,