Struct carapax::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<ChatPeerId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChatPeerId, <__D as Deserializer<'de>>::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) -> ChatId
fn from(value: ChatPeerId) -> ChatId
Converts to this type from the input type.
source§impl From<i64> for ChatPeerId
impl From<i64> for ChatPeerId
source§fn from(value: i64) -> ChatPeerId
fn from(value: i64) -> ChatPeerId
Converts to this type from the input type.
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
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFromInput for ChatPeerId
impl TryFromInput for ChatPeerId
§type Error = Infallible
type Error = Infallible
An error when conversion failed.
source§async fn try_from_input(
input: HandlerInput
) -> Result<Option<Self>, Self::Error>
async fn try_from_input( input: HandlerInput ) -> Result<Option<Self>, Self::Error>
Performs conversion. Read more
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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