pub struct RoleMember {
role_uuid: Uuid,
member_uuid: Uuid,
}
Fields§
§role_uuid: Uuid
§member_uuid: Uuid
Trait Implementations§
Source§impl<__FK> BelongsTo<&MemberBuilder> for RoleMemberwhere
__FK: Hash + Eq,
for<'__a> &'__a Uuid: Into<Option<&'__a __FK>>,
for<'__a> &'__a MemberBuilder: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&MemberBuilder> for RoleMemberwhere
__FK: Hash + Eq,
for<'__a> &'__a Uuid: Into<Option<&'__a __FK>>,
for<'__a> &'__a MemberBuilder: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = member_uuid
type ForeignKeyColumn = member_uuid
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<&Role> for RoleMemberwhere
__FK: Hash + Eq,
for<'__a> &'__a Uuid: Into<Option<&'__a __FK>>,
for<'__a> &'__a Role: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<&Role> for RoleMemberwhere
__FK: Hash + Eq,
for<'__a> &'__a Uuid: Into<Option<&'__a __FK>>,
for<'__a> &'__a Role: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = role_uuid
type ForeignKeyColumn = role_uuid
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<MemberBuilder> for RoleMemberwhere
__FK: Hash + Eq,
for<'__a> &'__a Uuid: Into<Option<&'__a __FK>>,
for<'__a> &'__a MemberBuilder: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<MemberBuilder> for RoleMemberwhere
__FK: Hash + Eq,
for<'__a> &'__a Uuid: Into<Option<&'__a __FK>>,
for<'__a> &'__a MemberBuilder: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = member_uuid
type ForeignKeyColumn = member_uuid
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl<__FK> BelongsTo<Role> for RoleMemberwhere
__FK: Hash + Eq,
for<'__a> &'__a Uuid: Into<Option<&'__a __FK>>,
for<'__a> &'__a Role: Identifiable<Id = &'__a __FK>,
impl<__FK> BelongsTo<Role> for RoleMemberwhere
__FK: Hash + Eq,
for<'__a> &'__a Uuid: Into<Option<&'__a __FK>>,
for<'__a> &'__a Role: Identifiable<Id = &'__a __FK>,
Source§type ForeignKey = __FK
type ForeignKey = __FK
The foreign key of this struct
Source§type ForeignKeyColumn = role_uuid
type ForeignKeyColumn = role_uuid
The database column representing the foreign key
of the table this struct represents
Source§fn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
Source§fn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
Source§impl Clone for RoleMember
impl Clone for RoleMember
Source§fn clone(&self) -> RoleMember
fn clone(&self) -> RoleMember
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl HasTable for RoleMember
impl HasTable for RoleMember
Source§impl<'ident> Identifiable for &'ident RoleMember
impl<'ident> Identifiable for &'ident RoleMember
Source§impl<'insert> Insertable<table> for &'insert RoleMember
impl<'insert> Insertable<table> for &'insert RoleMember
Source§type Values = <(Option<Grouped<Eq<role_uuid, <&'insert Uuid as AsExpression<<role_uuid as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<member_uuid, <&'insert Uuid as AsExpression<<member_uuid as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<role_uuid, <&'insert Uuid as AsExpression<<role_uuid as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<member_uuid, <&'insert Uuid as AsExpression<<member_uuid as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<role_uuid, &'insert Uuid>>, Option<Eq<member_uuid, &'insert Uuid>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<role_uuid, &'insert Uuid>>, Option<Eq<member_uuid, &'insert Uuid>>) as Insertable<table>>::Values
Construct
Self::Values
Read more§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
Insert
self
into a given table. Read moreSource§impl Insertable<table> for RoleMember
impl Insertable<table> for RoleMember
Source§type Values = <(Option<Grouped<Eq<role_uuid, <Uuid as AsExpression<<role_uuid as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<member_uuid, <Uuid as AsExpression<<member_uuid as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<role_uuid, <Uuid as AsExpression<<role_uuid as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<member_uuid, <Uuid as AsExpression<<member_uuid as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<role_uuid, Uuid>>, Option<Eq<member_uuid, Uuid>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<role_uuid, Uuid>>, Option<Eq<member_uuid, Uuid>>) as Insertable<table>>::Values
Construct
Self::Values
Read more§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
Insert
self
into a given table. Read moreSource§impl<__DB: Backend, __ST0, __ST1> Queryable<(__ST0, __ST1), __DB> for RoleMember
impl<__DB: Backend, __ST0, __ST1> Queryable<(__ST0, __ST1), __DB> for RoleMember
Source§impl<__DB: Backend> Selectable<__DB> for RoleMember
impl<__DB: Backend> Selectable<__DB> for RoleMember
Source§type SelectExpression = (role_uuid, member_uuid)
type SelectExpression = (role_uuid, member_uuid)
The expression you’d like to select. Read more
Source§fn construct_selection() -> Self::SelectExpression
fn construct_selection() -> Self::SelectExpression
Construct an instance of the expression
Source§impl Serialize for RoleMember
impl Serialize for RoleMember
impl UndecoratedInsertRecord<table> for RoleMember
Auto Trait Implementations§
impl Freeze for RoleMember
impl RefUnwindSafe for RoleMember
impl Send for RoleMember
impl Sync for RoleMember
impl Unpin for RoleMember
impl UnwindSafe for RoleMember
Blanket Implementations§
§impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Childwhere
Child: BelongingToDsl<&'a [Parent]>,
impl<'a, Parent, Child> BelongingToDsl<&'a Vec<Parent>> for Childwhere
Child: BelongingToDsl<&'a [Parent]>,
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, Conn> RunQueryDsl<Conn> for T
impl<T, Conn> RunQueryDsl<Conn> for T
§fn execute<'conn, 'query>(
self,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>where
Conn: AsyncConnection + Send,
Self: ExecuteDsl<Conn> + 'query,
fn execute<'conn, 'query>(
self,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>where
Conn: AsyncConnection + Send,
Self: ExecuteDsl<Conn> + 'query,
Executes the given command, returning the number of rows affected. Read more
§fn load<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
§fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnection,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnection,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
Executes the given query, returning a [
Stream
] with the returned rows. Read more§fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>where
U: Send + 'conn,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>where
U: Send + 'conn,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
Runs the command, and returns the affected row. Read more
§fn get_results<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
fn get_results<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
Runs the command, returning an
Vec
with the affected rows. Read more§fn first<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
fn first<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn((Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
Attempts to load a single record. Read more
§impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
§fn as_select() -> SelectBy<T, DB>
fn as_select() -> SelectBy<T, DB>
Construct a select clause based on a [
Selectable
] implementation. Read more§fn as_returning() -> SelectBy<Self, DB>
fn as_returning() -> SelectBy<Self, DB>
An alias for
as_select
that can be used with returning clauses§impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.