#[non_exhaustive]pub struct SetVoiceChannelStatus {
pub status: Option<CompactString>,
}Expand description
The body of Set Voice Channel Status.
discord.js counterpart: RESTPutAPIChannelVoiceStatusJSONBody (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: Option<CompactString>The status (up to 500 characters); None removes it.
Implementations§
Source§impl SetVoiceChannelStatus
impl SetVoiceChannelStatus
Sourcepub fn new(status: Option<impl Into<CompactString>>) -> Self
pub fn new(status: Option<impl Into<CompactString>>) -> Self
Sets the status to status, or removes it.
discord.js counterpart: RESTPutAPIChannelVoiceStatusJSONBody (discord-api-types).
Trait Implementations§
Source§impl Clone for SetVoiceChannelStatus
impl Clone for SetVoiceChannelStatus
Source§impl Debug for SetVoiceChannelStatus
impl Debug for SetVoiceChannelStatus
Source§impl Default for SetVoiceChannelStatus
impl Default for SetVoiceChannelStatus
impl Eq for SetVoiceChannelStatus
Source§impl Hash for SetVoiceChannelStatus
impl Hash for SetVoiceChannelStatus
Source§impl PartialEq for SetVoiceChannelStatus
impl PartialEq for SetVoiceChannelStatus
Source§impl Serialize for SetVoiceChannelStatus
impl Serialize for SetVoiceChannelStatus
impl StructuralPartialEq for SetVoiceChannelStatus
Auto Trait Implementations§
impl Forget for SetVoiceChannelStatus
impl Freeze for SetVoiceChannelStatus
impl Move for SetVoiceChannelStatus
impl RefUnwindSafe for SetVoiceChannelStatus
impl Send for SetVoiceChannelStatus
impl Sync for SetVoiceChannelStatus
impl Unpin for SetVoiceChannelStatus
impl UnsafeUnpin for SetVoiceChannelStatus
impl UnwindSafe for SetVoiceChannelStatus
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