Struct carapax::types::ChannelChat
source · pub struct ChannelChat {
pub id: ChatPeerId,
pub title: String,
pub username: Option<ChatUsername>,
}
Expand description
Represents a channel chat.
Fields§
§id: ChatPeerId
Unique identifier of the channel.
title: String
Title of the channel.
username: Option<ChatUsername>
Username of the channel.
Implementations§
source§impl ChannelChat
impl ChannelChat
sourcepub fn new<A, B>(id: A, title: B) -> ChannelChat
pub fn new<A, B>(id: A, title: B) -> ChannelChat
Creates a new ChannelChat
.
§Arguments
id
- Unique identifier of the channel.title
- Title of the channel.
sourcepub fn with_username<T>(self, value: T) -> ChannelChatwhere
T: Into<ChatUsername>,
pub fn with_username<T>(self, value: T) -> ChannelChatwhere
T: Into<ChatUsername>,
Trait Implementations§
source§impl Clone for ChannelChat
impl Clone for ChannelChat
source§fn clone(&self) -> ChannelChat
fn clone(&self) -> ChannelChat
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 ChannelChat
impl Debug for ChannelChat
source§impl<'de> Deserialize<'de> for ChannelChat
impl<'de> Deserialize<'de> for ChannelChat
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelChat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelChat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ChannelChat> for Chat
impl From<ChannelChat> for Chat
source§fn from(original: ChannelChat) -> Chat
fn from(original: ChannelChat) -> Chat
Converts to this type from the input type.
source§impl PartialEq for ChannelChat
impl PartialEq for ChannelChat
source§fn eq(&self, other: &ChannelChat) -> bool
fn eq(&self, other: &ChannelChat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChannelChat
impl Serialize for ChannelChat
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
impl StructuralPartialEq for ChannelChat
Auto Trait Implementations§
impl Freeze for ChannelChat
impl RefUnwindSafe for ChannelChat
impl Send for ChannelChat
impl Sync for ChannelChat
impl Unpin for ChannelChat
impl UnwindSafe for ChannelChat
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> 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