Struct revolt_database::Bot
source · pub struct Bot {
pub id: String,
pub owner: String,
pub token: String,
pub public: bool,
pub analytics: bool,
pub discoverable: bool,
pub interactions_url: String,
pub terms_of_service_url: String,
pub privacy_policy_url: String,
pub flags: Option<i32>,
}Expand description
Bot
Fields§
§id: StringBot Id
This equals the associated bot user’s id.
owner: StringUser Id of the bot owner
token: StringToken used to authenticate requests for this bot
public: boolWhether the bot is public (may be invited by anyone)
analytics: boolWhether to enable analytics
discoverable: boolWhether this bot should be publicly discoverable
interactions_url: StringReserved; URL for handling interactions
terms_of_service_url: StringURL for terms of service
privacy_policy_url: StringURL for privacy policy
flags: Option<i32>Enum of bot flags
Implementations§
source§impl Bot
impl Bot
pub fn apply_options(&mut self, optional_struct: PartialBot)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Bot
impl<'de> Deserialize<'de> for Bot
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
impl Eq for Bot
impl StructuralEq for Bot
impl StructuralPartialEq for Bot
Auto Trait Implementations§
impl RefUnwindSafe for Bot
impl Send for Bot
impl Sync for Bot
impl Unpin for Bot
impl UnwindSafe for Bot
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.