[][src]Struct sn0int::models::NewActivity

pub struct NewActivity {
    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

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

Methods

impl NewActivity[src]

pub fn insert(&self, db: &Database) -> Result<()>[src]

Trait Implementations

impl Clone for NewActivity[src]

impl Debug for NewActivity[src]

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

impl<'insert> Insertable<table> for NewActivity[src]

type Values = <(Option<Eq<topic, String>>, Option<Eq<time, NaiveDateTime>>, Option<Eq<uniq, String>>, Option<Eq<latitude, f32>>, Option<Eq<longitude, f32>>, Option<Eq<radius, i32>>, Option<Eq<content, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert NewActivity[src]

type Values = <(Option<Eq<topic, &'insert String>>, Option<Eq<time, &'insert NaiveDateTime>>, Option<Eq<uniq, &'insert String>>, Option<Eq<latitude, &'insert f32>>, Option<Eq<longitude, &'insert f32>>, Option<Eq<radius, &'insert i32>>, Option<Eq<content, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl Serialize for NewActivity[src]

impl<'insert> UndecoratedInsertRecord<table> for NewActivity[src]

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,