Struct got_ya_id::apps::profiles::models::Avatar[][src]

pub struct Avatar<'a> {
    pub url: Option<Cow<'a, str>>,
    // some fields omitted
}

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

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

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]

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

impl<'de, 'a> Deserialize<'de> for Avatar<'a>[src]

impl<'a> HasTable for Avatar<'a>[src]

type Table = table

The table this type is associated with.

impl<'a, 'ident> Identifiable for &'ident Avatar<'a>[src]

type Id = &'ident i32

The type of this struct’s identifier. Read more

impl<'a, __DB: Backend, __ST> Queryable<__ST, __DB> for Avatar<'a> where
    (i32, i32, Option<Cow<'a, str>>): Queryable<__ST, __DB>, 
[src]

type Row = <(i32, i32, Option<Cow<'a, str>>) as Queryable<__ST, __DB>>::Row

The Rust type you’d like to map from. Read more

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]

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]

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

impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent, Global>> for Child where
    Child: BelongingToDsl<&'a [Parent]>, 
[src]

type Output = <Child as BelongingToDsl<&'a [Parent]>>::Output

The query returned by belonging_to

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

impl<T> IntoSql for T[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,