pub struct BotInformation {
pub owner: String,
}Expand description
BotInformation : Bot information for if the user is a bot
Fields§
§owner: StringId of the owner of this bot
Implementations§
Source§impl BotInformation
impl BotInformation
Sourcepub fn new(owner: String) -> BotInformation
pub fn new(owner: String) -> BotInformation
Bot information for if the user is a bot
Trait Implementations§
Source§impl Clone for BotInformation
impl Clone for BotInformation
Source§fn clone(&self) -> BotInformation
fn clone(&self) -> BotInformation
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 BotInformation
impl Debug for BotInformation
Source§impl Default for BotInformation
impl Default for BotInformation
Source§fn default() -> BotInformation
fn default() -> BotInformation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BotInformation
impl<'de> Deserialize<'de> for BotInformation
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 BotInformation
impl PartialEq for BotInformation
Source§fn eq(&self, other: &BotInformation) -> bool
fn eq(&self, other: &BotInformation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BotInformation
impl Serialize for BotInformation
impl StructuralPartialEq for BotInformation
Auto Trait Implementations§
impl Freeze for BotInformation
impl RefUnwindSafe for BotInformation
impl Send for BotInformation
impl Sync for BotInformation
impl Unpin for BotInformation
impl UnsafeUnpin for BotInformation
impl UnwindSafe for BotInformation
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