pub struct SendTextRequest {
pub peer: PeerRef,
pub text: String,
pub external_id: Option<ExternalId>,
pub random_id: Option<RandomId>,
pub reply_to_message_id: Option<InlineId>,
}Expand description
Request to send a text message.
Fields§
§peer: PeerRefTarget peer.
text: StringMessage text.
external_id: Option<ExternalId>Optional host-provided idempotency key.
random_id: Option<RandomId>Optional deterministic random ID supplied by the host.
reply_to_message_id: Option<InlineId>Optional reply target.
Implementations§
Trait Implementations§
Source§impl Clone for SendTextRequest
impl Clone for SendTextRequest
Source§fn clone(&self) -> SendTextRequest
fn clone(&self) -> SendTextRequest
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 SendTextRequest
impl Debug for SendTextRequest
Source§impl<'de> Deserialize<'de> for SendTextRequest
impl<'de> Deserialize<'de> for SendTextRequest
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
impl Eq for SendTextRequest
Source§impl PartialEq for SendTextRequest
impl PartialEq for SendTextRequest
Source§impl Serialize for SendTextRequest
impl Serialize for SendTextRequest
impl StructuralPartialEq for SendTextRequest
Auto Trait Implementations§
impl Freeze for SendTextRequest
impl RefUnwindSafe for SendTextRequest
impl Send for SendTextRequest
impl Sync for SendTextRequest
impl Unpin for SendTextRequest
impl UnsafeUnpin for SendTextRequest
impl UnwindSafe for SendTextRequest
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