pub struct UpdateGuildMute {
pub mute_end_timestamp: String,
pub mute_seconds: String,
pub user_ids: Vec<String>,
}Expand description
Body for guild mute endpoints.
Fields§
§mute_end_timestamp: StringMute end timestamp in seconds
mute_seconds: StringMute duration in seconds
user_ids: Vec<String>User IDs for batch mute
Implementations§
Source§impl UpdateGuildMute
impl UpdateGuildMute
Sourcepub fn new(mute_end_timestamp: Option<&str>, mute_seconds: Option<&str>) -> Self
pub fn new(mute_end_timestamp: Option<&str>, mute_seconds: Option<&str>) -> Self
Creates a mute request body.
Sourcepub fn new_multi(
user_ids: Vec<String>,
mute_end_timestamp: Option<&str>,
mute_seconds: Option<&str>,
) -> Self
pub fn new_multi( user_ids: Vec<String>, mute_end_timestamp: Option<&str>, mute_seconds: Option<&str>, ) -> Self
Creates a batch mute request body.
Sourcepub fn cancel_multi(user_ids: Vec<String>) -> Self
pub fn cancel_multi(user_ids: Vec<String>) -> Self
Creates a request body that cancels mute for multiple users.
Trait Implementations§
Source§impl Clone for UpdateGuildMute
impl Clone for UpdateGuildMute
Source§fn clone(&self) -> UpdateGuildMute
fn clone(&self) -> UpdateGuildMute
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 UpdateGuildMute
impl Debug for UpdateGuildMute
Source§impl Default for UpdateGuildMute
impl Default for UpdateGuildMute
Source§fn default() -> UpdateGuildMute
fn default() -> UpdateGuildMute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateGuildMute
impl<'de> Deserialize<'de> for UpdateGuildMute
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 UpdateGuildMute
impl PartialEq for UpdateGuildMute
Source§fn eq(&self, other: &UpdateGuildMute) -> bool
fn eq(&self, other: &UpdateGuildMute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateGuildMute
impl Serialize for UpdateGuildMute
impl StructuralPartialEq for UpdateGuildMute
Auto Trait Implementations§
impl Freeze for UpdateGuildMute
impl RefUnwindSafe for UpdateGuildMute
impl Send for UpdateGuildMute
impl Sync for UpdateGuildMute
impl Unpin for UpdateGuildMute
impl UnsafeUnpin for UpdateGuildMute
impl UnwindSafe for UpdateGuildMute
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