pub struct DraftInput {
pub message_content: Option<String>,
pub attachments: Vec<Attachment>,
pub voice: Option<VoiceAttachment>,
pub voice_transcript: Option<String>,
pub gif: Option<Gif>,
pub metadata: Metadata,
pub reply_to_message_id: Option<Uuid>,
}Fields§
§message_content: Option<String>§attachments: Vec<Attachment>§voice: Option<VoiceAttachment>§voice_transcript: Option<String>§gif: Option<Gif>§metadata: Metadata§reply_to_message_id: Option<Uuid>Trait Implementations§
Source§impl Clone for DraftInput
impl Clone for DraftInput
Source§fn clone(&self) -> DraftInput
fn clone(&self) -> DraftInput
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 DraftInput
impl Debug for DraftInput
Source§impl Default for DraftInput
impl Default for DraftInput
Source§fn default() -> DraftInput
fn default() -> DraftInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DraftInput
impl<'de> Deserialize<'de> for DraftInput
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
Auto Trait Implementations§
impl Freeze for DraftInput
impl RefUnwindSafe for DraftInput
impl Send for DraftInput
impl Sync for DraftInput
impl Unpin for DraftInput
impl UnsafeUnpin for DraftInput
impl UnwindSafe for DraftInput
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