Struct db_adapter::slap::MemberSlapRecord [−][src]
Expand description
Record of slaps of a guild member
Tuple Fields
0: GuildId1: UserIdImplementations
pub async fn new_slap<'a, PgExec: Executor<'a, Database = Postgres> + Copy>(
&self,
conn: PgExec,
sentence: MessageId,
enforcer: Enforcer,
reason: Option<String>
) -> Result<SlapReport, AdapterError>
pub async fn new_slap<'a, PgExec: Executor<'a, Database = Postgres> + Copy>(
&self,
conn: PgExec,
sentence: MessageId,
enforcer: Enforcer,
reason: Option<String>
) -> Result<SlapReport, AdapterError>
Adds a slap entry for this member
pub fn slaps<'a, PgExec: Executor<'a, Database = Postgres> + 'a>(
&'a self,
conn: PgExec
) -> impl Stream<Item = Result<SlapReport, AdapterError>> + 'a
pub fn slaps<'a, PgExec: Executor<'a, Database = Postgres> + 'a>(
&'a self,
conn: PgExec
) -> impl Stream<Item = Result<SlapReport, AdapterError>> + 'a
A stream over all of the member’s slaps
pub async fn len<'a, PgExec: Executor<'a, Database = Postgres>>(
&self,
conn: PgExec
) -> Result<usize, AdapterError>
pub async fn len<'a, PgExec: Executor<'a, Database = Postgres>>(
&self,
conn: PgExec
) -> Result<usize, AdapterError>
The number of slaps of the member
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for MemberSlapRecord
impl Send for MemberSlapRecord
impl Sync for MemberSlapRecord
impl Unpin for MemberSlapRecord
impl UnwindSafe for MemberSlapRecord
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more