Enum permissions::Invalid
zaun_community_protocol::permissions::Invalid · Enum
pub enum Invalid { … }A malformed request (BAD_REQUEST).
Variants
Section titled “Variants”AllowDenyOverlap
Section titled “AllowDenyOverlap”An override has a bit in both allow and deny.
NotChannelScoped
Section titled “NotChannelScoped”An override holds a known bit that is not channel-scoped.
SetsUnknownBits
Section titled “SetsUnknownBits”The command sets an unknown bit that was not already present.
NewcomerMaskHidesChannels
Section titled “NewcomerMaskHidesChannels”newcomer_restrictions contains VIEW_CHANNEL or READ_MESSAGE_HISTORY.
Everyone
Section titled “Everyone”@everyone was listed where it may not be (reorder, delete, assign).
DuplicateRole
Section titled “DuplicateRole”A role appears twice in one request.
BadPosition
Section titled “BadPosition”The resulting role positions are not unique, or a position is 0.
PreApprovedWithApproval
Section titled “PreApprovedWithApproval”pre_approved together with requires_approval.
LooserAdmission
Section titled “LooserAdmission”Invitation admission overrides are not stricter than the policy.
Duration
Section titled “Duration”A duration is outside its bounds (timeout, lockdown).
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Eq, From<Invalid>, Hash, PartialEq, StructuralPartialEq