pub enum PeerRef {
User {
user_id: InlineId,
},
Chat {
chat_id: InlineId,
},
Thread {
thread_id: InlineId,
},
}Expand description
Inline peer reference used by client operations.
Variants§
User
Direct-message peer by user ID.
Chat
Chat peer by chat ID.
Thread
Thread peer by thread ID, used by existing Inline APIs that expose threads.
Trait Implementations§
impl Copy for PeerRef
Source§impl<'de> Deserialize<'de> for PeerRef
impl<'de> Deserialize<'de> for PeerRef
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 PeerRef
impl StructuralPartialEq for PeerRef
Auto Trait Implementations§
impl Freeze for PeerRef
impl RefUnwindSafe for PeerRef
impl Send for PeerRef
impl Sync for PeerRef
impl Unpin for PeerRef
impl UnsafeUnpin for PeerRef
impl UnwindSafe for PeerRef
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