pub struct SessionLocal {Show 18 fields
pub id: Option<i64>,
pub id_local: Option<String>,
pub device_id: i64,
pub timestamp_start: String,
pub timestamp_end: Option<String>,
pub inserted_at: Option<String>,
pub software_version: String,
pub locations: Option<String>,
pub altitude_max: f64,
pub altitude_min: f64,
pub altitude_average: f64,
pub velocity_max: f64,
pub velocity_min: f64,
pub velocity_average: f64,
pub distance_total: f64,
pub distance_max_from_start: f64,
pub battery_id: Option<i64>,
pub post_approver: Option<String>,
}Fields§
§id: Option<i64>§id_local: Option<String>§device_id: i64§timestamp_start: String§timestamp_end: Option<String>§inserted_at: Option<String>§software_version: String§locations: Option<String>§altitude_max: f64§altitude_min: f64§altitude_average: f64§velocity_max: f64§velocity_min: f64§velocity_average: f64§distance_total: f64§distance_max_from_start: f64§battery_id: Option<i64>§post_approver: Option<String>Implementations§
Source§impl SessionLocal
impl SessionLocal
pub fn update_timestamp_end(&mut self, timestamp_end: u64)
Trait Implementations§
Source§impl Clone for SessionLocal
impl Clone for SessionLocal
Source§impl Debug for SessionLocal
impl Debug for SessionLocal
Source§impl Default for SessionLocal
impl Default for SessionLocal
Source§impl<'de> Deserialize<'de> for SessionLocal
impl<'de> Deserialize<'de> for SessionLocal
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 From<Session> for SessionLocal
impl From<Session> for SessionLocal
Source§impl From<SessionLocal> for Session
impl From<SessionLocal> for Session
Source§fn from(local: SessionLocal) -> Self
fn from(local: SessionLocal) -> Self
Converts to this type from the input type.
Source§impl From<SessionLocal> for SessionLocal
impl From<SessionLocal> for SessionLocal
Source§fn from(v1: SessionLocal) -> Self
fn from(v1: SessionLocal) -> Self
Converts to this type from the input type.
Source§impl From<SessionLocal> for SessionLocal
impl From<SessionLocal> for SessionLocal
Source§fn from(v1: SessionLocal) -> Self
fn from(v1: SessionLocal) -> Self
Converts to this type from the input type.
Source§impl From<SessionLocal> for SessionLocal
impl From<SessionLocal> for SessionLocal
Source§fn from(v1: SessionLocal) -> Self
fn from(v1: SessionLocal) -> Self
Converts to this type from the input type.
Source§impl Model for SessionLocal
impl Model for SessionLocal
fn native_model_id() -> u32
fn native_model_id_str() -> &'static str
fn native_model_version() -> u32
fn native_model_version_str() -> &'static str
fn native_model_encode_body(&self) -> Result<Vec<u8>, EncodeBodyError>
fn native_model_encode_downgrade_body(self, version: u32) -> Result<Vec<u8>>
fn native_model_decode_body( data: Vec<u8>, id: u32, ) -> Result<Self, DecodeBodyError>
fn native_model_decode_upgrade_body( data: Vec<u8>, id: u32, version: u32, ) -> Result<Self>
fn native_model_decode(data: Vec<u8>) -> Result<(Self, u32), Error>where
Self: Sized,
fn native_model_encode(&self) -> Result<Vec<u8>, Error>where
Self: Sized,
fn native_model_encode_downgrade(self, version: u32) -> Result<Vec<u8>, Error>where
Self: Sized,
Source§impl PartialEq for SessionLocal
impl PartialEq for SessionLocal
Source§impl Serialize for SessionLocal
impl Serialize for SessionLocal
impl StructuralPartialEq for SessionLocal
Source§impl Syncable for SessionLocal
impl Syncable for SessionLocal
Source§impl ToInput for SessionLocal
impl ToInput for SessionLocal
fn native_db_bincode_encode_to_vec(&self) -> Result<Vec<u8>>
fn native_db_bincode_decode_from_slice(slice: &[u8]) -> Result<Self>
fn native_db_model() -> Model
fn native_db_primary_key(&self) -> Key
fn native_db_secondary_keys( &self, ) -> HashMap<KeyDefinition<KeyOptions>, KeyEntry>
fn native_db_input(&self) -> Result<Input, Error>
Auto Trait Implementations§
impl Freeze for SessionLocal
impl RefUnwindSafe for SessionLocal
impl Send for SessionLocal
impl Sync for SessionLocal
impl Unpin for SessionLocal
impl UnsafeUnpin for SessionLocal
impl UnwindSafe for SessionLocal
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more