Struct sn0int::models::Activity[][src]

pub struct Activity {
    pub id: i32,
    pub topic: String,
    pub time: NaiveDateTime,
    pub uniq: Option<String>,
    pub latitude: Option<f32>,
    pub longitude: Option<f32>,
    pub radius: Option<i32>,
    pub content: String,
}

Fields

id: i32topic: Stringtime: NaiveDateTimeuniq: Option<String>latitude: Option<f32>longitude: Option<f32>radius: Option<i32>content: String

Implementations

impl Activity[src]

pub fn uniq(db: &Database, my_uniq: &str) -> Result<Option<Self>>[src]

pub fn query(db: &Database, filter: &ActivityFilter) -> Result<Vec<Self>>[src]

pub fn previous(
    db: &Database,
    previous: &Activity,
    filter: &ActivityFilter
) -> Result<Option<Self>>
[src]

Trait Implementations

impl Debug for Activity[src]

impl<'de> Deserialize<'de> for Activity[src]

impl HasTable for Activity[src]

type Table = table

The table this type is associated with.

impl<'ident> Identifiable for &'ident Activity[src]

type Id = &'ident i32

The type of this struct’s identifier. Read more

impl PartialEq<Activity> for Activity[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Activity where
    (i32, String, NaiveDateTime, Option<String>, Option<f32>, Option<f32>, Option<i32>, String): Queryable<__ST, __DB>, 
[src]

type Row = <(i32, String, NaiveDateTime, Option<String>, Option<f32>, Option<f32>, Option<i32>, String) as Queryable<__ST, __DB>>::Row

The Rust type you’d like to map from. Read more

impl Serialize for Activity[src]

impl StructuralPartialEq for Activity[src]

impl TryFrom<Activity> for JsonActivity[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,