pub struct UpdateChannelRequest {
pub id: String,
pub name: Option<String>,
pub display_name: Option<String>,
pub purpose: Option<String>,
pub header: Option<String>,
}
Fields§
§id: String
The channel’s id, not updatable
name: Option<String>
The unique handle for the channel, will be present in the channel URL
display_name: Option<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
Implementations§
Source§impl UpdateChannelRequest
impl UpdateChannelRequest
pub fn new(id: String) -> UpdateChannelRequest
Trait Implementations§
Source§impl Clone for UpdateChannelRequest
impl Clone for UpdateChannelRequest
Source§fn clone(&self) -> UpdateChannelRequest
fn clone(&self) -> UpdateChannelRequest
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 UpdateChannelRequest
impl Debug for UpdateChannelRequest
Source§impl Default for UpdateChannelRequest
impl Default for UpdateChannelRequest
Source§fn default() -> UpdateChannelRequest
fn default() -> UpdateChannelRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateChannelRequest
impl<'de> Deserialize<'de> for UpdateChannelRequest
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 UpdateChannelRequest
impl PartialEq for UpdateChannelRequest
Source§impl Serialize for UpdateChannelRequest
impl Serialize for UpdateChannelRequest
impl StructuralPartialEq for UpdateChannelRequest
Auto Trait Implementations§
impl Freeze for UpdateChannelRequest
impl RefUnwindSafe for UpdateChannelRequest
impl Send for UpdateChannelRequest
impl Sync for UpdateChannelRequest
impl Unpin for UpdateChannelRequest
impl UnwindSafe for UpdateChannelRequest
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