pub struct ChannelMetadata {
pub name: String,
pub description: Option<String>,
pub created_at: SystemTime,
pub created_by: Option<ConnectionId>,
pub channel_type: ChannelType,
pub max_members: Option<usize>,
pub message_history_limit: Option<usize>,
}
Expand description
Channel metadata and configuration
Fields§
§name: String
§description: Option<String>
§created_at: SystemTime
§created_by: Option<ConnectionId>
§channel_type: ChannelType
§max_members: Option<usize>
§message_history_limit: Option<usize>
Trait Implementations§
Source§impl Clone for ChannelMetadata
impl Clone for ChannelMetadata
Source§fn clone(&self) -> ChannelMetadata
fn clone(&self) -> ChannelMetadata
Returns a duplicate 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 ChannelMetadata
impl Debug for ChannelMetadata
Source§impl<'de> Deserialize<'de> for ChannelMetadata
impl<'de> Deserialize<'de> for ChannelMetadata
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
Auto Trait Implementations§
impl Freeze for ChannelMetadata
impl RefUnwindSafe for ChannelMetadata
impl Send for ChannelMetadata
impl Sync for ChannelMetadata
impl Unpin for ChannelMetadata
impl UnwindSafe for ChannelMetadata
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