pub enum TargetMessage {
Common {
chat_id: Recipient,
message_id: MessageId,
},
Inline {
inline_message_id: String,
},
}Expand description
A message in chat or inline message.
Variants§
Trait Implementations§
source§impl Clone for TargetMessage
impl Clone for TargetMessage
source§fn clone(&self) -> TargetMessage
fn clone(&self) -> TargetMessage
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 TargetMessage
impl Debug for TargetMessage
source§impl<'de> Deserialize<'de> for TargetMessage
impl<'de> Deserialize<'de> for TargetMessage
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
source§impl From<String> for TargetMessage
impl From<String> for TargetMessage
source§impl Hash for TargetMessage
impl Hash for TargetMessage
source§impl PartialEq for TargetMessage
impl PartialEq for TargetMessage
source§impl Serialize for TargetMessage
impl Serialize for TargetMessage
impl Eq for TargetMessage
impl StructuralPartialEq for TargetMessage
Auto Trait Implementations§
impl Freeze for TargetMessage
impl RefUnwindSafe for TargetMessage
impl Send for TargetMessage
impl Sync for TargetMessage
impl Unpin for TargetMessage
impl UnwindSafe for TargetMessage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Erasable for T
impl<T> Erasable for T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more