pub struct ReplyTarget {
pub conversation: ConversationKey,
pub in_reply_to: Option<MessageId>,
}Expand description
Where a reply goes.
Fields§
§conversation: ConversationKeyThe conversation to post into.
in_reply_to: Option<MessageId>The message being answered, on platforms that can quote or thread under it.
Implementations§
Source§impl ReplyTarget
impl ReplyTarget
Sourcepub fn to_event(event: &InboundEvent) -> Self
pub fn to_event(event: &InboundEvent) -> Self
The target that answers event.
Trait Implementations§
Source§impl Clone for ReplyTarget
impl Clone for ReplyTarget
Source§impl Debug for ReplyTarget
impl Debug for ReplyTarget
Source§impl<'de> Deserialize<'de> for ReplyTarget
impl<'de> Deserialize<'de> for ReplyTarget
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 ReplyTarget
Source§impl PartialEq for ReplyTarget
impl PartialEq for ReplyTarget
Source§impl Serialize for ReplyTarget
impl Serialize for ReplyTarget
impl StructuralPartialEq for ReplyTarget
Auto Trait Implementations§
impl Freeze for ReplyTarget
impl RefUnwindSafe for ReplyTarget
impl Send for ReplyTarget
impl Sync for ReplyTarget
impl Unpin for ReplyTarget
impl UnsafeUnpin for ReplyTarget
impl UnwindSafe for ReplyTarget
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