pub struct Linked {
pub subject: String,
pub telegram_user_id: i64,
pub chat_id: i64,
}Expand description
A Telegram account has been linked to a subject — the end of a
successful /start <code> in a private chat.
Fields§
§subject: StringThe subject the account is now linked to.
telegram_user_id: i64The Telegram user id that pressed /start.
chat_id: i64The private chat the link was made in — where this subject’s prompts and notifications go.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Linked
impl<'de> Deserialize<'de> for Linked
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 Linked
impl StructuralPartialEq for Linked
Auto Trait Implementations§
impl Freeze for Linked
impl RefUnwindSafe for Linked
impl Send for Linked
impl Sync for Linked
impl Unpin for Linked
impl UnsafeUnpin for Linked
impl UnwindSafe for Linked
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.