Struct db_adapter::slap::GuildSlapRecord [−][src]
pub struct GuildSlapRecord(pub GuildId);
Expand description
Record of slaps of a guild
Tuple Fields
0: GuildId
Implementations
Adds a slap to the guild
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>
Number of slaps in the guild
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 slaps of the guild
pub fn offenders<'a, PgExec: Executor<'a, Database = Postgres> + 'a>(
&'a self,
conn: PgExec
) -> impl Stream<Item = Result<MemberSlapRecord, AdapterError>> + 'a
pub fn offenders<'a, PgExec: Executor<'a, Database = Postgres> + 'a>(
&'a self,
conn: PgExec
) -> impl Stream<Item = Result<MemberSlapRecord, AdapterError>> + 'a
A stream over all members with a slap record
pub async fn offender_count<'a, PgExec: Executor<'a, Database = Postgres>>(
&self,
conn: PgExec
) -> Result<usize, AdapterError>
pub async fn offender_count<'a, PgExec: Executor<'a, Database = Postgres>>(
&self,
conn: PgExec
) -> Result<usize, AdapterError>
Number of offending members in the guild
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 GuildSlapRecord
impl Send for GuildSlapRecord
impl Sync for GuildSlapRecord
impl Unpin for GuildSlapRecord
impl UnwindSafe for GuildSlapRecord
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