Struct gapi_grpc::google::actions::sdk::v2::DeviceProperties[][src]

pub struct DeviceProperties {
    pub surface: i32,
    pub location: Option<Location>,
    pub locale: String,
    pub time_zone: String,
}

Properties of device relevant to a conversation round.

Fields

surface: i32

Surface used for interacting with the Action.

location: Option<Location>

Device location such as latitude, longitude, and formatted address.

locale: String

Locale as set on the device. The format should follow BCP 47: https://tools.ietf.org/html/bcp47 Examples: en, en-US, es-419 (more examples at https://tools.ietf.org/html/bcp47#appendix-A).

time_zone: String

Time zone as set on the device. The format should follow the IANA Time Zone Database, e.g. “America/New_York”: https://www.iana.org/time-zones

Implementations

impl DeviceProperties[src]

pub fn surface(&self) -> Surface[src]

Returns the enum value of surface, or the default if the field is set to an invalid enum value.

pub fn set_surface(&mut self, value: Surface)[src]

Sets surface to the provided enum value.

Trait Implementations

impl Clone for DeviceProperties[src]

impl Debug for DeviceProperties[src]

impl Default for DeviceProperties[src]

impl Message for DeviceProperties[src]

impl PartialEq<DeviceProperties> for DeviceProperties[src]

impl StructuralPartialEq for DeviceProperties[src]

Auto Trait Implementations

impl RefUnwindSafe for DeviceProperties

impl Send for DeviceProperties

impl Sync for DeviceProperties

impl Unpin for DeviceProperties

impl UnwindSafe for DeviceProperties

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]