Struct gapi_grpc::google::actions::sdk::v2::interactionmodel::slot::DefaultValue[][src]

pub struct DefaultValue {
    pub session_param: String,
    pub constant: Option<Value>,
}

Configuration to populate a default value for this slot.

Fields

session_param: String

Optional. The session parameter to be used to initialize the slot value, if it has a non-empty value. The type of the value must match the type of the slot. Note that nested paths are not currently supported. Eg: session_param = "fruit" corresponds to $session.params.fruit. session_param = "ticket" corresponds to $session.params.ticket.

constant: Option<Value>

Optional. Constant default value for the slot. This will only be used if a value for this slot was not populated through the session_param. The type for this value must match the type of the slot.

Trait Implementations

impl Clone for DefaultValue[src]

impl Debug for DefaultValue[src]

impl Default for DefaultValue[src]

impl Message for DefaultValue[src]

impl PartialEq<DefaultValue> for DefaultValue[src]

impl StructuralPartialEq for DefaultValue[src]

Auto Trait Implementations

impl RefUnwindSafe for DefaultValue

impl Send for DefaultValue

impl Sync for DefaultValue

impl Unpin for DefaultValue

impl UnwindSafe for DefaultValue

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]