pub struct Bot {
pub id: String,
pub owner: String,
pub token: String,
pub public: bool,
pub analytics: bool,
pub discoverable: bool,
pub interactions_url: Option<String>,
pub terms_of_service_url: Option<String>,
pub privacy_policy_url: Option<String>,
pub flags: Option<BotFlags>,
}Expand description
Representation of a bot on Revolt
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: Option<String>Reserved; URL for handling interactions
terms_of_service_url: Option<String>URL for terms of service
privacy_policy_url: Option<String>URL for privacy policy
flags: Option<BotFlags>Enum of bot flags
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
Auto Trait Implementations§
impl Freeze for Bot
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