[][src]Struct sn0int::models::JsonActivity

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

Fields

id: i32initial: booltopic: Stringtime: NaiveDateTimeuniq: Option<String>latitude: Option<f32>longitude: Option<f32>radius: Option<i32>content: Value

Methods

impl JsonActivity[src]

pub fn write_to<W: Write>(self, w: W) -> Result<()>[src]

Trait Implementations

impl Debug for JsonActivity[src]

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

impl Serialize for JsonActivity[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> 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, 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>,