pub struct ActivityAffects {
pub activity_id: u64,
pub streak_id: u64,
}Fields§
§activity_id: u64§streak_id: u64Trait Implementations§
Source§impl Bind for ActivityAffects
impl Bind for ActivityAffects
Source§impl Debug for ActivityAffects
impl Debug for ActivityAffects
Source§impl Entry for ActivityAffects
impl Entry for ActivityAffects
impl Eq for ActivityAffects
Source§impl Fetch for ActivityAffects
impl Fetch for ActivityAffects
Source§impl HasKey for ActivityAffects
impl HasKey for ActivityAffects
Source§const GET_BY_KEY: &'static str
const GET_BY_KEY: &'static str
SELECT (...) WHERE (... = ?) Read moreSource§const UPSERT: &'static str
const UPSERT: &'static str
INSERT INTO ... VALUES ( ?, ...) ON CONFLICT DO UPDATE SET (x = excluded.x)* Read moreSource§const KEY_VALUE: NestedValueDef
const KEY_VALUE: NestedValueDef
Definition of the key value (used by
Ref)fn get_key(&self) -> <Self::Key as Tuple<Self::Marker>>::Ref<'_>
fn get_key_mut(&mut self) -> <Self::Key as Tuple<Self::Marker>>::Mut<'_>
fn make_ref(&self) -> Ref<Self>
impl IsValidFor<CacheSchema> for ActivityAffects
impl PartOf<CacheSchema> for ActivityAffects
Source§impl PartialEq for ActivityAffects
impl PartialEq for ActivityAffects
Source§fn eq(&self, other: &ActivityAffects) -> bool
fn eq(&self, other: &ActivityAffects) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActivityAffects
Source§impl Table for ActivityAffects
impl Table for ActivityAffects
Source§const NAME: &'static str = "activityaffects"
const NAME: &'static str = "activityaffects"
Name of the table:
#[derive(Table)] uses the lowercase name of the structSource§const CREATE_TABLE: &'static str
const CREATE_TABLE: &'static str
CREATE TABLE SQL statementSource§const DEFINITION: TableDef
const DEFINITION: TableDef
The
TableDef struct defines the table and is used to assemble the CREATE_TABLE SQL statementSource§const ALL_COLUMNS: &'static [&'static str]
const ALL_COLUMNS: &'static [&'static str]
Names of all the
Columns that make up the table.Source§const KEY_COLUMNS: &'static [&'static str]
const KEY_COLUMNS: &'static [&'static str]
Source§const OTHER_COLUMNS: &'static [&'static str]
const OTHER_COLUMNS: &'static [&'static str]
Names of all the
Columns that make up the table, which aren’t part of the primary key.Source§type References = <(<u64 as Value>::References, (<u64 as Value>::References,)) as Filter>::F
type References = <(<u64 as Value>::References, (<u64 as Value>::References,)) as Filter>::F
Auto Trait Implementations§
impl Freeze for ActivityAffects
impl RefUnwindSafe for ActivityAffects
impl Send for ActivityAffects
impl Sync for ActivityAffects
impl Unpin for ActivityAffects
impl UnsafeUnpin for ActivityAffects
impl UnwindSafe for ActivityAffects
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.