pub struct DataEditChannel {
pub name: Option<String>,
pub description: Option<String>,
pub owner: Option<String>,
pub icon: Option<String>,
pub nsfw: Option<bool>,
pub archived: Option<bool>,
pub remove: Option<Vec<FieldsChannel>>,
}Fields§
§name: Option<String>Channel name length min: 1, max: 32
description: Option<String>Channel description length min: 0, max: 1024
owner: Option<String>Group owner
icon: Option<String>Icon
Provide an Autumn attachment Id. length min: 1, max: 128
nsfw: Option<bool>Whether this channel is age-restricted
archived: Option<bool>Whether this channel is archived
remove: Option<Vec<FieldsChannel>>length min: 1
Implementations§
Source§impl DataEditChannel
impl DataEditChannel
pub fn new() -> Self
pub fn set_name(&mut self, name: impl Into<String>) -> Self
pub fn set_description(&mut self, description: impl Into<String>) -> Self
pub fn set_owner(&mut self, owner: impl Into<String>) -> Self
pub fn set_icon(&mut self, icon: impl Into<String>) -> Self
pub fn set_nsfw(&mut self, nsfw: bool) -> Self
pub fn set_archived(&mut self, archived: bool) -> Self
pub fn add_remove(&mut self, channel: FieldsChannel) -> Self
Trait Implementations§
Source§impl Clone for DataEditChannel
impl Clone for DataEditChannel
Source§fn clone(&self) -> DataEditChannel
fn clone(&self) -> DataEditChannel
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 DataEditChannel
impl Debug for DataEditChannel
Source§impl Default for DataEditChannel
impl Default for DataEditChannel
Source§fn default() -> DataEditChannel
fn default() -> DataEditChannel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DataEditChannel
impl<'de> Deserialize<'de> for DataEditChannel
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 DataEditChannel
impl RefUnwindSafe for DataEditChannel
impl Send for DataEditChannel
impl Sync for DataEditChannel
impl Unpin for DataEditChannel
impl UnwindSafe for DataEditChannel
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