Struct revolt_database::PartialBot
source · pub struct PartialBot {
pub id: Option<String>,
pub owner: Option<String>,
pub token: Option<String>,
pub public: Option<bool>,
pub analytics: Option<bool>,
pub discoverable: Option<bool>,
pub interactions_url: Option<String>,
pub terms_of_service_url: Option<String>,
pub privacy_policy_url: Option<String>,
pub flags: Option<i32>,
}Fields§
§id: Option<String>§owner: Option<String>§token: Option<String>§public: Option<bool>§analytics: Option<bool>§discoverable: Option<bool>§interactions_url: Option<String>§terms_of_service_url: Option<String>§privacy_policy_url: Option<String>§flags: Option<i32>Implementations§
source§impl PartialBot
impl PartialBot
pub fn empty() -> PartialBot
Trait Implementations§
source§impl Clone for PartialBot
impl Clone for PartialBot
source§fn clone(&self) -> PartialBot
fn clone(&self) -> PartialBot
Returns a copy of the value. Read more
1.0.0 · 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 PartialBot
impl Debug for PartialBot
source§impl Default for PartialBot
impl Default for PartialBot
source§fn default() -> PartialBot
fn default() -> PartialBot
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PartialBot
impl<'de> Deserialize<'de> for PartialBot
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<PartialBot> for PartialBot
impl PartialEq<PartialBot> for PartialBot
source§fn eq(&self, other: &PartialBot) -> bool
fn eq(&self, other: &PartialBot) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PartialBot
impl Serialize for PartialBot
impl Eq for PartialBot
impl StructuralEq for PartialBot
impl StructuralPartialEq for PartialBot
Auto Trait Implementations§
impl RefUnwindSafe for PartialBot
impl Send for PartialBot
impl Sync for PartialBot
impl Unpin for PartialBot
impl UnwindSafe for PartialBot
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.