#[non_exhaustive]pub struct DeleteMessageRequest {
pub name: String,
pub force: bool,
/* private fields */
}Expand description
Request to delete a message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Resource name of the message.
Format: spaces/{space}/messages/{message}
If you’ve set a custom ID for your message, you can use the value from the
clientAssignedMessageId field for {message}. For details, see [Name a
message]
(https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
force: boolOptional. When true, deleting a message also deletes its threaded
replies. When false, if a message has threaded replies, deletion fails.
Only applies when authenticating as a user. Has no effect when [authenticating as a Chat app] (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
Implementations§
Trait Implementations§
Source§impl Clone for DeleteMessageRequest
impl Clone for DeleteMessageRequest
Source§fn clone(&self) -> DeleteMessageRequest
fn clone(&self) -> DeleteMessageRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeleteMessageRequest
impl Debug for DeleteMessageRequest
Source§impl Default for DeleteMessageRequest
impl Default for DeleteMessageRequest
Source§fn default() -> DeleteMessageRequest
fn default() -> DeleteMessageRequest
Returns the “default value” for a type. Read more
Source§impl Message for DeleteMessageRequest
impl Message for DeleteMessageRequest
Source§impl PartialEq for DeleteMessageRequest
impl PartialEq for DeleteMessageRequest
impl StructuralPartialEq for DeleteMessageRequest
Auto Trait Implementations§
impl Freeze for DeleteMessageRequest
impl RefUnwindSafe for DeleteMessageRequest
impl Send for DeleteMessageRequest
impl Sync for DeleteMessageRequest
impl Unpin for DeleteMessageRequest
impl UnsafeUnpin for DeleteMessageRequest
impl UnwindSafe for DeleteMessageRequest
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
Mutably borrows from an owned value. Read more