#[non_exhaustive]pub struct SlashCommand {
pub command_id: i64,
/* private fields */
}Expand description
Metadata about a slash command in Google Chat.
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.command_id: i64The ID of the slash command.
Implementations§
Source§impl SlashCommand
impl SlashCommand
Sourcepub fn set_command_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_command_id<T: Into<i64>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SlashCommand
impl Clone for SlashCommand
Source§fn clone(&self) -> SlashCommand
fn clone(&self) -> SlashCommand
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 SlashCommand
impl Debug for SlashCommand
Source§impl Default for SlashCommand
impl Default for SlashCommand
Source§fn default() -> SlashCommand
fn default() -> SlashCommand
Returns the “default value” for a type. Read more
Source§impl Message for SlashCommand
impl Message for SlashCommand
Source§impl PartialEq for SlashCommand
impl PartialEq for SlashCommand
impl StructuralPartialEq for SlashCommand
Auto Trait Implementations§
impl Freeze for SlashCommand
impl RefUnwindSafe for SlashCommand
impl Send for SlashCommand
impl Sync for SlashCommand
impl Unpin for SlashCommand
impl UnsafeUnpin for SlashCommand
impl UnwindSafe for SlashCommand
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