pub struct ChannelModerationPatch {
pub name: Option<String>,
pub roles: Option<Box<ChannelModeratedRolesPatch>>,
}Fields§
§name: Option<String>§roles: Option<Box<ChannelModeratedRolesPatch>>Implementations§
Source§impl ChannelModerationPatch
impl ChannelModerationPatch
pub fn new() -> ChannelModerationPatch
Trait Implementations§
Source§impl Clone for ChannelModerationPatch
impl Clone for ChannelModerationPatch
Source§fn clone(&self) -> ChannelModerationPatch
fn clone(&self) -> ChannelModerationPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChannelModerationPatch
impl Debug for ChannelModerationPatch
Source§impl Default for ChannelModerationPatch
impl Default for ChannelModerationPatch
Source§fn default() -> ChannelModerationPatch
fn default() -> ChannelModerationPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelModerationPatch
impl<'de> Deserialize<'de> for ChannelModerationPatch
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 ChannelModerationPatch
impl PartialEq for ChannelModerationPatch
Source§impl Serialize for ChannelModerationPatch
impl Serialize for ChannelModerationPatch
impl StructuralPartialEq for ChannelModerationPatch
Auto Trait Implementations§
impl Freeze for ChannelModerationPatch
impl RefUnwindSafe for ChannelModerationPatch
impl Send for ChannelModerationPatch
impl Sync for ChannelModerationPatch
impl Unpin for ChannelModerationPatch
impl UnsafeUnpin for ChannelModerationPatch
impl UnwindSafe for ChannelModerationPatch
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