pub struct CreateChannelRequest {
pub team_id: String,
pub name: String,
pub display_name: String,
pub purpose: Option<String>,
pub header: Option<String>,
pub type: String,
}
Fields§
§team_id: String
The team ID of the team to create the channel on
name: String
The unique handle for the channel, will be present in the channel URL
display_name: String
The non-unique UI name for the channel
purpose: Option<String>
A short description of the purpose of the channel
header: Option<String>
Markdown-formatted text to display in the header of the channel
type: String
‘O’ for a public channel, ‘P’ for a private channel
Implementations§
Trait Implementations§
Source§impl Clone for CreateChannelRequest
impl Clone for CreateChannelRequest
Source§fn clone(&self) -> CreateChannelRequest
fn clone(&self) -> CreateChannelRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateChannelRequest
impl Debug for CreateChannelRequest
Source§impl Default for CreateChannelRequest
impl Default for CreateChannelRequest
Source§fn default() -> CreateChannelRequest
fn default() -> CreateChannelRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateChannelRequest
impl<'de> Deserialize<'de> for CreateChannelRequest
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 PartialEq for CreateChannelRequest
impl PartialEq for CreateChannelRequest
Source§impl Serialize for CreateChannelRequest
impl Serialize for CreateChannelRequest
impl StructuralPartialEq for CreateChannelRequest
Auto Trait Implementations§
impl Freeze for CreateChannelRequest
impl RefUnwindSafe for CreateChannelRequest
impl Send for CreateChannelRequest
impl Sync for CreateChannelRequest
impl Unpin for CreateChannelRequest
impl UnwindSafe for CreateChannelRequest
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