[][src]Struct google_fitness1::Session

pub struct Session {
    pub modified_time_millis: Option<String>,
    pub end_time_millis: Option<String>,
    pub description: Option<String>,
    pub activity_type: Option<i32>,
    pub application: Option<Application>,
    pub start_time_millis: Option<String>,
    pub active_time_millis: Option<String>,
    pub id: Option<String>,
    pub name: Option<String>,
}

Sessions contain metadata, such as a user-friendly name and time interval information.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

modified_time_millis: Option<String>

A timestamp that indicates when the session was last modified.

end_time_millis: Option<String>

An end time, in milliseconds since epoch, inclusive.

description: Option<String>

A description for this session.

activity_type: Option<i32>

The type of activity this session represents.

application: Option<Application>

The application that created the session.

start_time_millis: Option<String>

A start time, in milliseconds since epoch, inclusive.

active_time_millis: Option<String>

Session active time. While start_time_millis and end_time_millis define the full session time, the active time can be shorter and specified by active_time_millis. If the inactive time during the session is known, it should also be inserted via a com.google.activity.segment data point with a STILL activity value

id: Option<String>

A client-generated identifier that is unique across all sessions owned by this particular user.

name: Option<String>

A human readable name of the session.

Trait Implementations

impl Clone for Session[src]

impl Debug for Session[src]

impl Default for Session[src]

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

impl RequestValue for Session[src]

impl ResponseResult for Session[src]

impl Serialize for Session[src]

Auto Trait Implementations

impl RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl UnwindSafe for Session

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

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

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

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<T> Typeable for T where
    T: Any