Skip to content

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.

The managed role’s bits.

Capabilities.

pub fn within(&self, other: &Self) -> bool

Whether self asks for nothing beyond other.

pub fn intersect(&self, other: &Self) -> Self

What both allow.

Clone, Debug, Default, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq, Validate

Full rustdoc page