Struct command::object::Grants
zaun_community_protocol::command::object::Grants · Struct
pub struct Grants { … }A bot’s grants: permission bits (its managed role) and capabilities.
Fields
Section titled “Fields”permissions: Permissions
Section titled “permissions: Permissions”The managed role’s bits.
capabilities: Capabilities
Section titled “capabilities: Capabilities”Capabilities.
Methods
Section titled “Methods”within
Section titled “within”pub fn within(&self, other: &Self) -> boolWhether self asks for nothing beyond other.
intersect
Section titled “intersect”pub fn intersect(&self, other: &Self) -> SelfWhat both allow.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Default, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq, Validate