pub struct GuildBan {
pub reason: Option<String>,
pub user: User,
}Expand description
A guild ban object.
Fields§
§reason: Option<String>The reason for the ban, if applicable.
user: UserThe user who was banned.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GuildBan
impl<'de> Deserialize<'de> for GuildBan
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 GuildBan
impl RefUnwindSafe for GuildBan
impl Send for GuildBan
impl Sync for GuildBan
impl Unpin for GuildBan
impl UnwindSafe for GuildBan
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