Skip to main content

ActivityAffects

Struct ActivityAffects 

Source
pub struct ActivityAffects {
    pub activity_id: u64,
    pub streak_id: u64,
}

Fields§

§activity_id: u64§streak_id: u64

Trait Implementations§

Source§

impl Bind for ActivityAffects

Source§

const COLUMNS: usize

Source§

fn bind(&self, binder: &mut Binder<'_, '_>) -> SqlResult<()>

Source§

fn bind_to(&self, stmt: &mut Statement<'_>) -> Result<(), Error>

Bind to the Statement’s parameters starting from the beginning Read more
Source§

impl Debug for ActivityAffects

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Entry for ActivityAffects

Source§

const GET_ALL: &'static str = "SELECT * FROM activityaffects"

SELECT (...) FROM ... Read more
Source§

const INSERT: &'static str

INSERT INTO ... VALUES ( ?, ...) Read more
Source§

impl Eq for ActivityAffects

Source§

impl Fetch for ActivityAffects

Source§

fn fetch(fetcher: &mut Fetcher<'_>) -> SqlResult<Self>

Source§

fn try_fetch(fetcher: &mut Fetcher<'_>) -> SqlResult<Option<Self>>

Source§

fn from_row(row: &Row<'_>) -> Result<Self, Error>

Source§

impl HasKey for ActivityAffects

Source§

const GET_BY_KEY: &'static str

SELECT (...) WHERE (... = ?) Read more
Source§

const UPSERT: &'static str

INSERT INTO ... VALUES ( ?, ...) ON CONFLICT DO UPDATE SET (x = excluded.x)* Read more
Source§

const UPDATE: &'static str

UPDATE (...) SET (... = ?) WHERE (... = ?) Read more
Source§

const DELETE: &'static str

Delete a row by its primary key.
Source§

const KEY_VALUE: NestedValueDef

Definition of the key value (used by Ref)
Source§

type Marker = Many

Marker type used to disambiguate bounds on the key
Source§

type Key = (u64, u64)

Type of the key. If the key is composite, this will be a tuple.
Source§

fn get_key(&self) -> <Self::Key as Tuple<Self::Marker>>::Ref<'_>

Source§

fn get_key_mut(&mut self) -> <Self::Key as Tuple<Self::Marker>>::Mut<'_>

Source§

fn make_ref(&self) -> Ref<Self>
where Self::Key: CloneFromRef<Self::Marker>,

Source§

impl IsValidFor<CacheSchema> for ActivityAffects

Source§

impl PartOf<CacheSchema> for ActivityAffects

Source§

impl PartialEq for ActivityAffects

Source§

fn eq(&self, other: &ActivityAffects) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ActivityAffects

Source§

impl Table for ActivityAffects

Source§

const NAME: &'static str = "activityaffects"

Name of the table: #[derive(Table)] uses the lowercase name of the struct
Source§

const CREATE_TABLE: &'static str

CREATE TABLE SQL statement
Source§

const DEFINITION: TableDef

The TableDef struct defines the table and is used to assemble the CREATE_TABLE SQL statement
Source§

const ALL_COLUMNS: &'static [&'static str]

Names of all the Columns that make up the table.
Source§

const KEY_COLUMNS: &'static [&'static str]

Names of the Columns that make up the values of the primary #[key] Read more
Source§

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

Nested tuple that contains all the types (i.e. other tables) referenced (e.g. via Ref) by Values in this table. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<E> Filter for E
where E: Entry,

Source§

type F = E

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> HasCompositeKey<<T as HasKey>::Key> for T
where T: HasKey<Marker = Many>,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Tuple<One> for T

Source§

type Ref<'l> = &'l T where T: 'l

Source§

type Mut<'l> = &'l mut T where T: 'l

Source§

fn take_ref(&self) -> <T as Tuple<One>>::Ref<'_>

Source§

impl<S, T> ValidFor<S> for T
where S: Schema, T: Table + PartOf<S>,