Struct google_api_proto::google::actions::sdk::v2::actions::Engagement
source · pub struct Engagement {
pub title: String,
pub push_notification: Option<PushNotification>,
pub action_link: Option<ActionLink>,
pub assistant_link: Option<AssistantLink>,
pub recurring_update: Option<RecurringUpdate>,
}
Expand description
Defines the engagement mechanisms associated with this action. This allows end users to subscribe to push notification and daily update.
Fields§
§title: String
The title of the engagement that will be sent to end users asking for their permission to receive updates. The prompt sent to end users for daily updates will look like “What time would you like me to send your daily {title}” and for push notifications will look like “Is it ok if I send push notifications for {title}”. This field is localizable.
push_notification: Option<PushNotification>
Push notification settings that this engagement supports.
action_link: Option<ActionLink>
Link config for an action which determines whether sharing links is enabled for the action and if so, contains the user friendly display name for the link. ActionLink is deprecated. Use AssistantLink instead.
assistant_link: Option<AssistantLink>
Link config for an action which determines whether sharing links is enabled for the action and if so, contains the user friendly display name for the link.
recurring_update: Option<RecurringUpdate>
Recurring update settings that this engagement supports.
Trait Implementations§
source§impl Clone for Engagement
impl Clone for Engagement
source§fn clone(&self) -> Engagement
fn clone(&self) -> Engagement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Engagement
impl Debug for Engagement
source§impl Default for Engagement
impl Default for Engagement
source§impl Message for Engagement
impl Message for Engagement
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for Engagement
impl PartialEq for Engagement
source§fn eq(&self, other: &Engagement) -> bool
fn eq(&self, other: &Engagement) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Engagement
Auto Trait Implementations§
impl Freeze for Engagement
impl RefUnwindSafe for Engagement
impl Send for Engagement
impl Sync for Engagement
impl Unpin for Engagement
impl UnwindSafe for Engagement
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