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