pub struct Channel {
pub id: String,
pub provider: Option<String>,
pub account_id: Option<String>,
pub name: String,
pub type: String,
pub description: Option<String>,
pub topic: Option<String>,
pub is_member: bool,
pub is_archived: bool,
pub member_count: Option<i32>,
pub created_at: Option<DateTime<FixedOffset>>,
}Expand description
Channel : A chat conversation. The same struct backs both group channels (type: channel | private) and direct-message threads (type: im | mpim); the Channels and DirectMessages HTTP surfaces filter on type to give each its dedicated URL space.
Fields§
§id: String§provider: Option<String>Registered provider id (e.g. slack, native-chat).
account_id: Option<String>§name: String§type: StringProvider-specific. Common canonicals: channel and private (group channels), im (1:1 DM), mpim (group DM).
description: Option<String>§topic: Option<String>§is_member: bool§is_archived: bool§member_count: Option<i32>§created_at: Option<DateTime<FixedOffset>>Implementations§
Source§impl Channel
impl Channel
Sourcepub fn new(
id: String,
name: String,
type: String,
is_member: bool,
is_archived: bool,
) -> Channel
pub fn new( id: String, name: String, type: String, is_member: bool, is_archived: bool, ) -> Channel
A chat conversation. The same struct backs both group channels (type: channel | private) and direct-message threads (type: im | mpim); the Channels and DirectMessages HTTP surfaces filter on type to give each its dedicated URL space.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
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 StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
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