Struct got_ya_id::apps::user::models::OauthGgUser [−][src]
pub struct OauthGgUser { pub id: i32, pub email: String, pub name: String, pub first_name: Option<String>, pub family_name: Option<String>, pub is_verified: bool, pub is_active: bool, pub created_at: NaiveDateTime, // some fields omitted }
Service Oauth User Object Holds user social-authenticated user data
Fields
id: i32
email: String
name: String
first_name: Option<String>
family_name: Option<String>
is_verified: bool
is_active: bool
created_at: NaiveDateTime
Implementations
impl OauthGgUser
[src]
pub fn register_as_third_party(
usr_data: &GoogleUser
) -> Result<Option<(OauthGgUser, User)>, Box<dyn stdError>>
[src]
usr_data: &GoogleUser
) -> Result<Option<(OauthGgUser, User)>, Box<dyn stdError>>
Trait Implementations
impl<'update> AsChangeset for &'update OauthGgUser
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<email, &'update String>, Eq<name, &'update String>, Option<Eq<first_name, &'update String>>, Option<Eq<family_name, &'update String>>, Eq<is_verified, &'update bool>, Option<Eq<picture, &'update String>>, Option<Eq<locale, &'update String>>, Eq<acc_id, &'update String>, Eq<is_active, &'update bool>, Eq<provider, &'update String>, Eq<provider_verified, &'update bool>, Eq<created_at, &'update NaiveDateTime>, Eq<updated_at, &'update NaiveDateTime>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl<'update> AsChangeset for OauthGgUser
[src]
type Target = table
The table which Self::Changeset
will be updating
type Changeset = <(Eq<email, String>, Eq<name, String>, Option<Eq<first_name, String>>, Option<Eq<family_name, String>>, Eq<is_verified, bool>, Option<Eq<picture, String>>, Option<Eq<locale, String>>, Eq<acc_id, String>, Eq<is_active, bool>, Eq<provider, String>, Eq<provider_verified, bool>, Eq<created_at, NaiveDateTime>, Eq<updated_at, NaiveDateTime>) as AsChangeset>::Changeset
The update statement this type represents
fn as_changeset(self) -> Self::Changeset
[src]
impl<'de> Deserialize<'de> for OauthGgUser
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl HasTable for OauthGgUser
[src]
impl<'ident> Identifiable for &'ident OauthGgUser
[src]
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for OauthGgUser where
(i32, String, String, Option<String>, Option<String>, bool, Option<String>, Option<String>, String, bool, String, bool, NaiveDateTime, NaiveDateTime): Queryable<__ST, __DB>,
[src]
(i32, String, String, Option<String>, Option<String>, bool, Option<String>, Option<String>, String, bool, String, bool, NaiveDateTime, NaiveDateTime): Queryable<__ST, __DB>,
type Row = <(i32, String, String, Option<String>, Option<String>, bool, Option<String>, Option<String>, String, bool, String, bool, NaiveDateTime, NaiveDateTime) 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 OauthGgUser
[src]
Auto Trait Implementations
impl RefUnwindSafe for OauthGgUser
impl Send for OauthGgUser
impl Sync for OauthGgUser
impl Unpin for OauthGgUser
impl UnwindSafe for OauthGgUser
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,
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>,