Struct google_api_proto::google::apps::events::subscriptions::v1::PayloadOptions
source · pub struct PayloadOptions {
pub include_resource: bool,
pub field_mask: Option<FieldMask>,
}
Expand description
Options about what data to include in the event payload. Only supported for Google Chat events.
Fields§
§include_resource: bool
Optional. Whether the event payload includes data about the resource that
changed. For example, for an event where a Google Chat message was created,
whether the payload contains data about the
Message
resource. If false, the event payload only includes the name of the changed
resource.
field_mask: Option<FieldMask>
Optional. If include_resource
is set to true
, the list of fields to
include in the event payload. Separate fields with a comma. For example, to
include a Google Chat message’s sender and create time, enter
message.sender,message.createTime
. If omitted, the payload includes all
fields for the resource.
If you specify a field that doesn’t exist for the resource, the system ignores the field.
Trait Implementations§
source§impl Clone for PayloadOptions
impl Clone for PayloadOptions
source§fn clone(&self) -> PayloadOptions
fn clone(&self) -> PayloadOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PayloadOptions
impl Debug for PayloadOptions
source§impl Default for PayloadOptions
impl Default for PayloadOptions
source§impl Message for PayloadOptions
impl Message for PayloadOptions
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for PayloadOptions
impl PartialEq for PayloadOptions
source§fn eq(&self, other: &PayloadOptions) -> bool
fn eq(&self, other: &PayloadOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PayloadOptions
Auto Trait Implementations§
impl Freeze for PayloadOptions
impl RefUnwindSafe for PayloadOptions
impl Send for PayloadOptions
impl Sync for PayloadOptions
impl Unpin for PayloadOptions
impl UnwindSafe for PayloadOptions
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