pub struct NewDbUser {
pub id: OwnedUserId,
pub ty: Option<String>,
pub is_admin: bool,
pub is_guest: bool,
pub appservice_id: Option<String>,
pub created_at: UnixMillis,
}Fields§
§id: OwnedUserId§ty: Option<String>§is_admin: bool§is_guest: bool§appservice_id: Option<String>§created_at: UnixMillisTrait Implementations§
Source§impl<'update> AsChangeset for &'update NewDbUser
impl<'update> AsChangeset for &'update NewDbUser
Source§type Changeset = <(Option<Grouped<Eq<ty, <&'update String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Grouped<Eq<is_admin, <&'update bool as AsExpression<<is_admin as Expression>::SqlType>>::Expression>>, Grouped<Eq<is_guest, <&'update bool as AsExpression<<is_guest as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<appservice_id, <&'update String as AsExpression<<appservice_id as Expression>::SqlType>>::Expression>>>, Grouped<Eq<created_at, <&'update UnixMillis as AsExpression<<created_at as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Option<Grouped<Eq<ty, <&'update String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Grouped<Eq<is_admin, <&'update bool as AsExpression<<is_admin as Expression>::SqlType>>::Expression>>, Grouped<Eq<is_guest, <&'update bool as AsExpression<<is_guest as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<appservice_id, <&'update String as AsExpression<<appservice_id as Expression>::SqlType>>::Expression>>>, Grouped<Eq<created_at, <&'update UnixMillis as AsExpression<<created_at as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self into the actual update statement being executedSource§impl AsChangeset for NewDbUser
impl AsChangeset for NewDbUser
Source§type Changeset = <(Option<Grouped<Eq<ty, <String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Grouped<Eq<is_admin, <bool as AsExpression<<is_admin as Expression>::SqlType>>::Expression>>, Grouped<Eq<is_guest, <bool as AsExpression<<is_guest as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<appservice_id, <String as AsExpression<<appservice_id as Expression>::SqlType>>::Expression>>>, Grouped<Eq<created_at, <UnixMillis as AsExpression<<created_at as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Option<Grouped<Eq<ty, <String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Grouped<Eq<is_admin, <bool as AsExpression<<is_admin as Expression>::SqlType>>::Expression>>, Grouped<Eq<is_guest, <bool as AsExpression<<is_guest as Expression>::SqlType>>::Expression>>, Option<Grouped<Eq<appservice_id, <String as AsExpression<<appservice_id as Expression>::SqlType>>::Expression>>>, Grouped<Eq<created_at, <UnixMillis as AsExpression<<created_at as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self into the actual update statement being executedSource§impl<'insert> Insertable<table> for &'insert NewDbUser
impl<'insert> Insertable<table> for &'insert NewDbUser
Source§type Values = <(Option<Grouped<Eq<id, <&'insert OwnedUserId as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ty, <&'insert String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_admin, <&'insert bool as AsExpression<<is_admin as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_guest, <&'insert bool as AsExpression<<is_guest as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<appservice_id, <&'insert String as AsExpression<<appservice_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'insert UnixMillis as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<id, <&'insert OwnedUserId as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ty, <&'insert String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_admin, <&'insert bool as AsExpression<<is_admin as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_guest, <&'insert bool as AsExpression<<is_guest as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<appservice_id, <&'insert String as AsExpression<<appservice_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <&'insert UnixMillis as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<id, &'insert OwnedUserId>>, Option<Eq<ty, &'insert String>>, Option<Eq<is_admin, &'insert bool>>, Option<Eq<is_guest, &'insert bool>>, Option<Eq<appservice_id, &'insert String>>, Option<Eq<created_at, &'insert UnixMillis>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<id, &'insert OwnedUserId>>, Option<Eq<ty, &'insert String>>, Option<Eq<is_admin, &'insert bool>>, Option<Eq<is_guest, &'insert bool>>, Option<Eq<appservice_id, &'insert String>>, Option<Eq<created_at, &'insert UnixMillis>>) as Insertable<table>>::Values
Construct
Self::Values Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self into a given table. Read moreSource§impl Insertable<table> for NewDbUser
impl Insertable<table> for NewDbUser
Source§type Values = <(Option<Grouped<Eq<id, <OwnedUserId as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ty, <String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_admin, <bool as AsExpression<<is_admin as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_guest, <bool as AsExpression<<is_guest as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<appservice_id, <String as AsExpression<<appservice_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <UnixMillis as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<id, <OwnedUserId as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ty, <String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_admin, <bool as AsExpression<<is_admin as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_guest, <bool as AsExpression<<is_guest as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<appservice_id, <String as AsExpression<<appservice_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<created_at, <UnixMillis as AsExpression<<created_at as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<id, OwnedUserId>>, Option<Eq<ty, String>>, Option<Eq<is_admin, bool>>, Option<Eq<is_guest, bool>>, Option<Eq<appservice_id, String>>, Option<Eq<created_at, UnixMillis>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<id, OwnedUserId>>, Option<Eq<ty, String>>, Option<Eq<is_admin, bool>>, Option<Eq<is_guest, bool>>, Option<Eq<appservice_id, String>>, Option<Eq<created_at, UnixMillis>>) as Insertable<table>>::Values
Construct
Self::Values Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self into a given table. Read moreimpl UndecoratedInsertRecord<table> for NewDbUser
Auto Trait Implementations§
impl Freeze for NewDbUser
impl RefUnwindSafe for NewDbUser
impl Send for NewDbUser
impl Sync for NewDbUser
impl Unpin for NewDbUser
impl UnwindSafe for NewDbUser
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more