Struct tgbot::types::ChatPeerId
source · pub struct ChatPeerId(/* private fields */);
Expand description
ID of a chat.
Trait Implementations§
source§impl Clone for ChatPeerId
impl Clone for ChatPeerId
source§fn clone(&self) -> ChatPeerId
fn clone(&self) -> ChatPeerId
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 ChatPeerId
impl Debug for ChatPeerId
source§impl<'de> Deserialize<'de> for ChatPeerId
impl<'de> Deserialize<'de> for ChatPeerId
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 Display for ChatPeerId
impl Display for ChatPeerId
source§impl From<ChatPeerId> for ChatId
impl From<ChatPeerId> for ChatId
source§fn from(value: ChatPeerId) -> Self
fn from(value: ChatPeerId) -> Self
Converts to this type from the input type.
source§impl From<ChatPeerId> for Integer
impl From<ChatPeerId> for Integer
source§fn from(value: ChatPeerId) -> Self
fn from(value: ChatPeerId) -> Self
Converts to this type from the input type.
source§impl From<i64> for ChatPeerId
impl From<i64> for ChatPeerId
source§impl Hash for ChatPeerId
impl Hash for ChatPeerId
source§impl Ord for ChatPeerId
impl Ord for ChatPeerId
source§fn cmp(&self, other: &ChatPeerId) -> Ordering
fn cmp(&self, other: &ChatPeerId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<i64> for ChatPeerId
impl PartialEq<i64> for ChatPeerId
source§impl PartialEq for ChatPeerId
impl PartialEq for ChatPeerId
source§fn eq(&self, other: &ChatPeerId) -> bool
fn eq(&self, other: &ChatPeerId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChatPeerId
impl PartialOrd for ChatPeerId
source§fn partial_cmp(&self, other: &ChatPeerId) -> Option<Ordering>
fn partial_cmp(&self, other: &ChatPeerId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ChatPeerId
impl Serialize for ChatPeerId
impl Copy for ChatPeerId
impl Eq for ChatPeerId
impl StructuralPartialEq for ChatPeerId
Auto Trait Implementations§
impl Freeze for ChatPeerId
impl RefUnwindSafe for ChatPeerId
impl Send for ChatPeerId
impl Sync for ChatPeerId
impl Unpin for ChatPeerId
impl UnwindSafe for ChatPeerId
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.