pub struct DeviceSession {
pub active_start_time: Option<DateTime<Utc>>,
pub android_device: Option<AndroidDevice>,
pub create_time: Option<DateTime<Utc>>,
pub display_name: Option<String>,
pub expire_time: Option<DateTime<Utc>>,
pub inactivity_timeout: Option<Duration>,
pub name: Option<String>,
pub state: Option<String>,
pub state_histories: Option<Vec<SessionStateEvent>>,
pub ttl: Option<Duration>,
}
Expand description
Protobuf message describing the device message, used from several RPCs.
§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).
- device sessions create projects (request|response)
- device sessions get projects (response)
- device sessions patch projects (request|response)
Fields§
§active_start_time: Option<DateTime<Utc>>
Output only. The timestamp that the session first became ACTIVE.
android_device: Option<AndroidDevice>
Required. The requested device
create_time: Option<DateTime<Utc>>
Output only. The time that the Session was created.
display_name: Option<String>
Output only. The title of the DeviceSession to be presented in the UI.
expire_time: Option<DateTime<Utc>>
Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
inactivity_timeout: Option<Duration>
Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
name: Option<String>
Optional. Name of the DeviceSession, e.g. “projects/{project_id}/deviceSessions/{session_id}”
state: Option<String>
Output only. Current state of the DeviceSession.
state_histories: Option<Vec<SessionStateEvent>>
Output only. The historical state transitions of the session_state message including the current session state.
ttl: Option<Duration>
Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
Trait Implementations§
Source§impl Clone for DeviceSession
impl Clone for DeviceSession
Source§fn clone(&self) -> DeviceSession
fn clone(&self) -> DeviceSession
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceSession
impl Debug for DeviceSession
Source§impl Default for DeviceSession
impl Default for DeviceSession
Source§fn default() -> DeviceSession
fn default() -> DeviceSession
Source§impl<'de> Deserialize<'de> for DeviceSession
impl<'de> Deserialize<'de> for DeviceSession
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>,
Source§impl Serialize for DeviceSession
impl Serialize for DeviceSession
impl RequestValue for DeviceSession
impl ResponseResult for DeviceSession
Auto Trait Implementations§
impl Freeze for DeviceSession
impl RefUnwindSafe for DeviceSession
impl Send for DeviceSession
impl Sync for DeviceSession
impl Unpin for DeviceSession
impl UnwindSafe for DeviceSession
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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