pub struct SendMessageRequest {
pub content: String,
pub msg_type: u32,
pub msg_id: Option<String>,
pub msg_seq: Option<u32>,
pub media: Option<MediaFileInfo>,
}Expand description
Request body for POSTing a message to a group or user.
Fields§
§content: String§msg_type: u32§msg_id: Option<String>The incoming message ID this reply references (QQ requires this for passive replies within 5 minutes of the original message).
msg_seq: Option<u32>Monotonic sequence to dedupe replies within a msg_id.
media: Option<MediaFileInfo>Media file info (required for msg_type=7, the URL returned by upload API).
Trait Implementations§
Source§impl Clone for SendMessageRequest
impl Clone for SendMessageRequest
Source§fn clone(&self) -> SendMessageRequest
fn clone(&self) -> SendMessageRequest
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 SendMessageRequest
impl Debug for SendMessageRequest
Auto Trait Implementations§
impl Freeze for SendMessageRequest
impl RefUnwindSafe for SendMessageRequest
impl Send for SendMessageRequest
impl Sync for SendMessageRequest
impl Unpin for SendMessageRequest
impl UnsafeUnpin for SendMessageRequest
impl UnwindSafe for SendMessageRequest
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