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<BotFlags>,
}Expand description
Partial representation of a bot on Revolt
Fields§
§id: Option<String>Bot Id
This equals the associated bot user’s id.
owner: Option<String>User Id of the bot owner
token: Option<String>Token used to authenticate requests for this bot
public: Option<bool>Whether the bot is public (may be invited by anyone)
analytics: Option<bool>Whether to enable analytics
discoverable: Option<bool>Whether 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 Clone for PartialBot
impl Clone for PartialBot
Source§fn clone(&self) -> PartialBot
fn clone(&self) -> PartialBot
Returns a duplicate 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
Auto Trait Implementations§
impl Freeze for PartialBot
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