Struct command::object::Manifest
zaun_community_protocol::command::object::Manifest · Struct
pub struct Manifest { … }The manifest inside a bot package.
Fields
Section titled “Fields”app_id: String
Section titled “app_id: String”Lowercase reverse-DNS, equal to the signed header.
version: String
Section titled “version: String”Semantic version, equal to the signed header.
name: String
Section titled “name: String”The bot member’s display name, 1–32 scalars.
description: Option<String>
Section titled “description: Option<String>”≤ 400 scalars.
permissions: Permissions
Section titled “permissions: Permissions”Permission bits it asks for.
capabilities: Capabilities
Section titled “capabilities: Capabilities”Capabilities it asks for.
events: Vec<String>
Section titled “events: Vec<String>”Event types it wants delivered.
limits: Option<ManifestLimits>
Section titled “limits: Option<ManifestLimits>”Requested limits.
update_url: Option<String>
Section titled “update_url: Option<String>”Where newer packages are published.
config: BTreeMap<String, ConfigKey>
Section titled “config: BTreeMap<String, ConfigKey>”Settings the owner sets (bot.configure): key ([a-z][a-z0-9_]{0,63}, ≤ 32) to
description, default and whether it is secret.
Methods
Section titled “Methods”request
Section titled “request”pub fn request(&self) -> GrantsWhat the manifest asks for.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq, Validate