Struct command::object::BotCard
zaun_community_protocol::command::object::BotCard · Struct
pub struct BotCard { … }The public description of an installed bot, visible to every member.
Fields
Section titled “Fields”bot_id: BotId
Section titled “bot_id: BotId”The installation.
member_id: MemberId
Section titled “member_id: MemberId”Its member.
app_id: String
Section titled “app_id: String”From the package; for an external bot, its name.
name: String
Section titled “name: String”Display name.
description: Option<String>
Section titled “description: Option<String>”≤ 400 scalars.
version: String
Section titled “version: String”Package version; "" for an external bot.
publisher: Option<PublisherId>
Section titled “publisher: Option<PublisherId>”The package signer; none for an external bot.
signed: bool
Section titled “signed: bool”False for an unsigned development package.
kind: BotKind
Section titled “kind: BotKind”Hosted or external.
state: BotState
Section titled “state: BotState”Running state.
permissions: Permissions
Section titled “permissions: Permissions”The managed role’s bits.
capabilities: Capabilities
Section titled “capabilities: Capabilities”Effective capabilities.
requested: Option<Grants>
Section titled “requested: Option<Grants>”While pending_approval: what the waiting update asks for.
events: Vec<String>
Section titled “events: Vec<String>”Event types delivered to it.
config: BTreeMap<String, ConfigKey>
Section titled “config: BTreeMap<String, ConfigKey>”The settings it declares (never their values): a member can see that it is configured with, say, an API key.
installed_at: u64
Section titled “installed_at: u64”Install time, ms.
installed_by: Option<MemberId>
Section titled “installed_by: Option<MemberId>”The owner who installed it; none when the operator did.
updated_at: u64
Section titled “updated_at: u64”Last package change, ms.
granted_at: u64
Section titled “granted_at: u64”Last grant change, ms.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq