Struct google_api_proto::google::apps::script::type::gmail::GmailAddOnManifest
source · pub struct GmailAddOnManifest {
pub homepage_trigger: Option<HomepageExtensionPoint>,
pub contextual_triggers: Vec<ContextualTrigger>,
pub universal_actions: Vec<UniversalAction>,
pub compose_trigger: Option<ComposeTrigger>,
pub authorization_check_function: String,
}
Expand description
Properties customizing the appearance and execution of a Gmail add-on.
Fields§
§homepage_trigger: Option<HomepageExtensionPoint>
Defines an endpoint that will be executed in contexts that don’t match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.
If present, this overrides the configuration from
addOns.common.homepageTrigger
.
contextual_triggers: Vec<ContextualTrigger>
Defines the set of conditions that trigger the add-on.
universal_actions: Vec<UniversalAction>
Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.
compose_trigger: Option<ComposeTrigger>
Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.
The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.
Trait Implementations§
source§impl Clone for GmailAddOnManifest
impl Clone for GmailAddOnManifest
source§fn clone(&self) -> GmailAddOnManifest
fn clone(&self) -> GmailAddOnManifest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GmailAddOnManifest
impl Debug for GmailAddOnManifest
source§impl Default for GmailAddOnManifest
impl Default for GmailAddOnManifest
source§impl Message for GmailAddOnManifest
impl Message for GmailAddOnManifest
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 GmailAddOnManifest
impl PartialEq for GmailAddOnManifest
source§fn eq(&self, other: &GmailAddOnManifest) -> bool
fn eq(&self, other: &GmailAddOnManifest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GmailAddOnManifest
Auto Trait Implementations§
impl Freeze for GmailAddOnManifest
impl RefUnwindSafe for GmailAddOnManifest
impl Send for GmailAddOnManifest
impl Sync for GmailAddOnManifest
impl Unpin for GmailAddOnManifest
impl UnwindSafe for GmailAddOnManifest
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