Enum google_api_proto::google::apps::card::v1::action::Interaction
source · #[repr(i32)]pub enum Interaction {
Unspecified = 0,
OpenDialog = 1,
}
Expand description
Optional. Required when opening a dialog.
What to do in response to an interaction with a user, such as a user clicking a button in a card message.
If unspecified, the app responds by executing an action
—like opening a
link or running a function—as normal.
By specifying an interaction
, the app can respond in special interactive
ways. For example, by setting interaction
to OPEN_DIALOG
, the app can
open a dialog.
When specified, a loading indicator isn’t shown. If specified for an add-on, the entire card is stripped and nothing is shown in the client.
Variants§
Unspecified = 0
Default value. The action
executes as normal.
OpenDialog = 1
Opens a dialog, a windowed, card-based interface that Chat apps use to interact with users.
Only supported by Chat apps in response to button-clicks on card messages. If specified for an add-on, the entire card is stripped and nothing is shown in the client.
Implementations§
source§impl Interaction
impl Interaction
source§impl Interaction
impl Interaction
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for Interaction
impl Clone for Interaction
source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Interaction
impl Debug for Interaction
source§impl Default for Interaction
impl Default for Interaction
source§fn default() -> Interaction
fn default() -> Interaction
source§impl From<Interaction> for i32
impl From<Interaction> for i32
source§fn from(value: Interaction) -> i32
fn from(value: Interaction) -> i32
source§impl Hash for Interaction
impl Hash for Interaction
source§impl Ord for Interaction
impl Ord for Interaction
source§fn cmp(&self, other: &Interaction) -> Ordering
fn cmp(&self, other: &Interaction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for Interaction
impl PartialEq for Interaction
source§fn eq(&self, other: &Interaction) -> bool
fn eq(&self, other: &Interaction) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Interaction
impl PartialOrd for Interaction
source§fn partial_cmp(&self, other: &Interaction) -> Option<Ordering>
fn partial_cmp(&self, other: &Interaction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Interaction
impl TryFrom<i32> for Interaction
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<Interaction, UnknownEnumValue>
fn try_from(value: i32) -> Result<Interaction, UnknownEnumValue>
impl Copy for Interaction
impl Eq for Interaction
impl StructuralPartialEq for Interaction
Auto Trait Implementations§
impl Freeze for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnwindSafe for Interaction
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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