pub enum UserInputPartPart {
Text(String),
Media(UserInputMedia),
SlashCommand(UserInputSlashCommand),
}Expand description
The part oneof of UserInputPart, as an owned value.
Variants§
Trait Implementations§
Source§impl Clone for UserInputPartPart
impl Clone for UserInputPartPart
Source§fn clone(&self) -> UserInputPartPart
fn clone(&self) -> UserInputPartPart
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 UserInputPartPart
impl Debug for UserInputPartPart
Source§impl PartialEq for UserInputPartPart
impl PartialEq for UserInputPartPart
impl StructuralPartialEq for UserInputPartPart
Auto Trait Implementations§
impl Freeze for UserInputPartPart
impl RefUnwindSafe for UserInputPartPart
impl Send for UserInputPartPart
impl Sync for UserInputPartPart
impl Unpin for UserInputPartPart
impl UnsafeUnpin for UserInputPartPart
impl UnwindSafe for UserInputPartPart
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