pub struct BotCard {Show 19 fields
pub bot_id: BotId,
pub member_id: MemberId,
pub app_id: String,
pub name: String,
pub description: Option<String>,
pub version: String,
pub publisher: Option<PublisherId>,
pub signed: bool,
pub kind: BotKind,
pub state: BotState,
pub permissions: Permissions,
pub capabilities: Capabilities,
pub requested: Option<Grants>,
pub events: Vec<String>,
pub config: BTreeMap<String, ConfigKey>,
pub installed_at: u64,
pub installed_by: Option<MemberId>,
pub updated_at: u64,
pub granted_at: u64,
}Expand description
The public description of an installed bot, visible to every member (§8.13).
Fields§
§bot_id: BotIdThe installation.
member_id: MemberIdIts member.
app_id: StringFrom the package; for an external bot, its name.
name: StringDisplay name.
description: Option<String>≤ 400 scalars.
version: StringPackage version; "" for an external bot.
publisher: Option<PublisherId>The package signer; none for an external bot.
signed: boolFalse for an unsigned development package.
kind: BotKindHosted or external.
state: BotStateRunning state.
permissions: PermissionsThe managed role’s bits.
capabilities: CapabilitiesEffective capabilities.
requested: Option<Grants>While pending_approval: what the waiting update asks for.
events: Vec<String>Event types delivered to it.
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: u64Install time, ms.
installed_by: Option<MemberId>The owner who installed it; none when the operator did.
updated_at: u64Last package change, ms.
granted_at: u64Last grant change, ms.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BotCard
impl<'de> Deserialize<'de> for BotCard
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
impl Eq for BotCard
impl StructuralPartialEq for BotCard
Auto Trait Implementations§
impl Freeze for BotCard
impl RefUnwindSafe for BotCard
impl Send for BotCard
impl Sync for BotCard
impl Unpin for BotCard
impl UnsafeUnpin for BotCard
impl UnwindSafe for BotCard
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