pub struct BanListResult {
pub users: Vec<BannedUser>,
pub bans: Vec<ServerBan>,
}Fields§
§users: Vec<BannedUser>Users objects
bans: Vec<ServerBan>Ban objects
Implementations§
Source§impl BanListResult
impl BanListResult
pub fn new(users: Vec<BannedUser>, bans: Vec<ServerBan>) -> BanListResult
Trait Implementations§
Source§impl Clone for BanListResult
impl Clone for BanListResult
Source§fn clone(&self) -> BanListResult
fn clone(&self) -> BanListResult
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 BanListResult
impl Debug for BanListResult
Source§impl Default for BanListResult
impl Default for BanListResult
Source§fn default() -> BanListResult
fn default() -> BanListResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BanListResult
impl<'de> Deserialize<'de> for BanListResult
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 BanListResult
impl PartialEq for BanListResult
Source§fn eq(&self, other: &BanListResult) -> bool
fn eq(&self, other: &BanListResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BanListResult
impl Serialize for BanListResult
impl StructuralPartialEq for BanListResult
Auto Trait Implementations§
impl Freeze for BanListResult
impl RefUnwindSafe for BanListResult
impl Send for BanListResult
impl Sync for BanListResult
impl Unpin for BanListResult
impl UnsafeUnpin for BanListResult
impl UnwindSafe for BanListResult
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