Struct sn0int::models::JsonActivity
source · 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: i32
§initial: bool
§topic: String
§time: NaiveDateTime
§uniq: Option<String>
§latitude: Option<f32>
§longitude: Option<f32>
§radius: Option<i32>
§content: Value
Implementations§
Trait Implementations§
source§impl Debug for JsonActivity
impl Debug for JsonActivity
source§impl<'de> Deserialize<'de> for JsonActivity
impl<'de> Deserialize<'de> for JsonActivity
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for JsonActivity
impl Serialize for JsonActivity
Auto Trait Implementations§
impl RefUnwindSafe for JsonActivity
impl Send for JsonActivity
impl Sync for JsonActivity
impl Unpin for JsonActivity
impl UnwindSafe for JsonActivity
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more