pub struct Suggestions {
pub community: Community,
pub channel: Option<Channel>,
pub interaction: InteractionId,
pub choices: Vec<Choice>,
}Expand description
A bot’s suggestions for the option this member is typing.
Fields§
§community: CommunityThe community.
channel: Option<Channel>Where the interaction happened.
interaction: InteractionIdThe autocomplete interaction.
choices: Vec<Choice>Up to 25.
Trait Implementations§
Source§impl Clone for Suggestions
impl Clone for Suggestions
Source§fn clone(&self) -> Suggestions
fn clone(&self) -> Suggestions
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 moreAuto Trait Implementations§
impl Freeze for Suggestions
impl RefUnwindSafe for Suggestions
impl Send for Suggestions
impl Sync for Suggestions
impl Unpin for Suggestions
impl UnsafeUnpin for Suggestions
impl UnwindSafe for Suggestions
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