Struct rive_models::bot::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<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 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