Struct google_api_proto::google::devtools::testing::v1::DeviceSession
source · pub struct DeviceSession {
pub name: String,
pub display_name: String,
pub state: i32,
pub state_histories: Vec<SessionStateEvent>,
pub inactivity_timeout: Option<Duration>,
pub create_time: Option<Timestamp>,
pub active_start_time: Option<Timestamp>,
pub android_device: Option<AndroidDevice>,
pub expiration: Option<Expiration>,
}
Expand description
Protobuf message describing the device message, used from several RPCs.
Fields§
§name: String
Optional. Name of the DeviceSession, e.g. “projects/{project_id}/deviceSessions/{session_id}”
display_name: String
Output only. The title of the DeviceSession to be presented in the UI.
state: i32
Output only. Current state of the DeviceSession.
state_histories: Vec<SessionStateEvent>
Output only. The historical state transitions of the session_state message including the current session state.
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.
create_time: Option<Timestamp>
Output only. The time that the Session was created.
active_start_time: Option<Timestamp>
Output only. The timestamp that the session first became ACTIVE.
android_device: Option<AndroidDevice>
Required. The requested device
expiration: Option<Expiration>
Implementations§
source§impl DeviceSession
impl DeviceSession
sourcepub fn state(&self) -> SessionState
pub fn state(&self) -> SessionState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: SessionState)
pub fn set_state(&mut self, value: SessionState)
Sets state
to the provided enum value.
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§impl Message for DeviceSession
impl Message for DeviceSession
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DeviceSession
impl PartialEq for DeviceSession
source§fn eq(&self, other: &DeviceSession) -> bool
fn eq(&self, other: &DeviceSession) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request