pub struct SendMessage {
pub to_user_name: String,
pub from_user_name: String,
pub msg_ty: SendMessageType,
}Fields§
§to_user_name: String§from_user_name: String§msg_ty: SendMessageTypeImplementations§
Source§impl SendMessage
impl SendMessage
pub fn new_text( content: String, to_user_name: String, from_user_name: String, ) -> SendMessage
pub fn new_pic( media_id: String, to_user_name: String, from_user_name: String, ) -> SendMessage
pub fn new_voice( media_id: String, to_user_name: String, from_user_name: String, ) -> SendMessage
pub fn new_video( video: SendVideo, to_user_name: String, from_user_name: String, ) -> SendMessage
pub fn new_pic_text( pt: PictureText, to_user_name: String, from_user_name: String, ) -> SendMessage
pub fn new_pic_texts( pts: Vec<PictureText>, to_user_name: String, from_user_name: String, ) -> SendMessage
Trait Implementations§
Source§impl Clone for SendMessage
impl Clone for SendMessage
Source§fn clone(&self) -> SendMessage
fn clone(&self) -> SendMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 SendMessage
impl RefUnwindSafe for SendMessage
impl Send for SendMessage
impl Sync for SendMessage
impl Unpin for SendMessage
impl UnwindSafe for SendMessage
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