Struct mogram::message::SendMessageRequest
source · pub struct SendMessageRequest {
pub chat_id: i64,
pub text: String,
pub reply_to_message_id: Option<i64>,
}Fields§
§chat_id: i64Unique identifier for the target chat or username of the target
text: StringText of the message to be sent
reply_to_message_id: Option<i64>If the message is a reply, ID of the original message
Trait Implementations§
source§impl Clone for SendMessageRequest
impl Clone for SendMessageRequest
source§fn clone(&self) -> SendMessageRequest
fn clone(&self) -> SendMessageRequest
Returns a copy 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 moresource§impl Debug for SendMessageRequest
impl Debug for SendMessageRequest
source§impl Serialize for SendMessageRequest
impl Serialize for SendMessageRequest
impl Request for SendMessageRequest
Auto Trait Implementations§
impl RefUnwindSafe for SendMessageRequest
impl Send for SendMessageRequest
impl Sync for SendMessageRequest
impl Unpin 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