pub enum Payload {
Show 18 variants
MessageCreatedEventData(MessageCreatedEventData),
MessageUpdatedEventData(MessageUpdatedEventData),
MessageDeletedEventData(MessageDeletedEventData),
MessageBatchCreatedEventData(MessageBatchCreatedEventData),
MessageBatchUpdatedEventData(MessageBatchUpdatedEventData),
MessageBatchDeletedEventData(MessageBatchDeletedEventData),
SpaceUpdatedEventData(SpaceUpdatedEventData),
SpaceBatchUpdatedEventData(SpaceBatchUpdatedEventData),
MembershipCreatedEventData(MembershipCreatedEventData),
MembershipUpdatedEventData(MembershipUpdatedEventData),
MembershipDeletedEventData(MembershipDeletedEventData),
MembershipBatchCreatedEventData(MembershipBatchCreatedEventData),
MembershipBatchUpdatedEventData(MembershipBatchUpdatedEventData),
MembershipBatchDeletedEventData(MembershipBatchDeletedEventData),
ReactionCreatedEventData(ReactionCreatedEventData),
ReactionDeletedEventData(ReactionDeletedEventData),
ReactionBatchCreatedEventData(ReactionBatchCreatedEventData),
ReactionBatchDeletedEventData(ReactionBatchDeletedEventData),
}
Variants§
MessageCreatedEventData(MessageCreatedEventData)
Event payload for a new message.
Event type: google.workspace.chat.message.v1.created
MessageUpdatedEventData(MessageUpdatedEventData)
Event payload for an updated message.
Event type: google.workspace.chat.message.v1.updated
MessageDeletedEventData(MessageDeletedEventData)
Event payload for a deleted message.
Event type: google.workspace.chat.message.v1.deleted
MessageBatchCreatedEventData(MessageBatchCreatedEventData)
Event payload for multiple new messages.
Event type: google.workspace.chat.message.v1.batchCreated
MessageBatchUpdatedEventData(MessageBatchUpdatedEventData)
Event payload for multiple updated messages.
Event type: google.workspace.chat.message.v1.batchUpdated
MessageBatchDeletedEventData(MessageBatchDeletedEventData)
Event payload for multiple deleted messages.
Event type: google.workspace.chat.message.v1.batchDeleted
SpaceUpdatedEventData(SpaceUpdatedEventData)
Event payload for a space update.
Event type: google.workspace.chat.space.v1.updated
SpaceBatchUpdatedEventData(SpaceBatchUpdatedEventData)
Event payload for multiple updates to a space.
Event type: google.workspace.chat.space.v1.batchUpdated
MembershipCreatedEventData(MembershipCreatedEventData)
Event payload for a new membership.
Event type: google.workspace.chat.membership.v1.created
MembershipUpdatedEventData(MembershipUpdatedEventData)
Event payload for an updated membership.
Event type: google.workspace.chat.membership.v1.updated
MembershipDeletedEventData(MembershipDeletedEventData)
Event payload for a deleted membership.
Event type: google.workspace.chat.membership.v1.deleted
MembershipBatchCreatedEventData(MembershipBatchCreatedEventData)
Event payload for multiple new memberships.
Event type: google.workspace.chat.membership.v1.batchCreated
MembershipBatchUpdatedEventData(MembershipBatchUpdatedEventData)
Event payload for multiple updated memberships.
Event type: google.workspace.chat.membership.v1.batchUpdated
MembershipBatchDeletedEventData(MembershipBatchDeletedEventData)
Event payload for multiple deleted memberships.
Event type: google.workspace.chat.membership.v1.batchDeleted
ReactionCreatedEventData(ReactionCreatedEventData)
Event payload for a new reaction.
Event type: google.workspace.chat.reaction.v1.created
ReactionDeletedEventData(ReactionDeletedEventData)
Event payload for a deleted reaction.
Event type: google.workspace.chat.reaction.v1.deleted
ReactionBatchCreatedEventData(ReactionBatchCreatedEventData)
Event payload for multiple new reactions.
Event type: google.workspace.chat.reaction.v1.batchCreated
ReactionBatchDeletedEventData(ReactionBatchDeletedEventData)
Event payload for multiple deleted reactions.
Event type: google.workspace.chat.reaction.v1.batchDeleted
Implementations§
Source§impl Payload
impl Payload
Sourcepub fn merge(
field: &mut Option<Payload>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Payload>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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