pub struct UserInputPart {
pub text: Option<String>,
pub media: Option<UserInputMedia>,
pub slash_command: Option<UserInputSlashCommand>,
}Expand description
antigravity.localharness.UserInput.Part
Fields§
§text: Option<String>§media: Option<UserInputMedia>§slash_command: Option<UserInputSlashCommand>Implementations§
Source§impl UserInputPart
impl UserInputPart
Trait Implementations§
Source§impl Clone for UserInputPart
impl Clone for UserInputPart
Source§fn clone(&self) -> UserInputPart
fn clone(&self) -> UserInputPart
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 UserInputPart
impl Debug for UserInputPart
Source§impl Default for UserInputPart
impl Default for UserInputPart
Source§fn default() -> UserInputPart
fn default() -> UserInputPart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserInputPart
impl<'de> Deserialize<'de> for UserInputPart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UserInputPart
impl PartialEq for UserInputPart
Source§impl Serialize for UserInputPart
impl Serialize for UserInputPart
impl StructuralPartialEq for UserInputPart
Auto Trait Implementations§
impl Freeze for UserInputPart
impl RefUnwindSafe for UserInputPart
impl Send for UserInputPart
impl Sync for UserInputPart
impl Unpin for UserInputPart
impl UnsafeUnpin for UserInputPart
impl UnwindSafe for UserInputPart
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