pub enum BanValidationError {
MemberNotFound(MemberId),
BannerNotFound(MemberId),
NotInInviteChain(MemberId, MemberId),
SelfInvitationDetected(MemberId),
InviterNotFound(MemberId),
ExceededMaximumBans,
}Expand description
Represents different types of validation errors that can occur with bans
Variants§
MemberNotFound(MemberId)
The banned member was not found in the member list
BannerNotFound(MemberId)
The banning member was not found in the member list
NotInInviteChain(MemberId, MemberId)
The banning member is not in the invite chain of the banned member
SelfInvitationDetected(MemberId)
A circular invite chain was detected
InviterNotFound(MemberId)
The inviting member was not found for a member in the chain
ExceededMaximumBans
The number of bans exceeds the maximum allowed
Trait Implementations§
Source§impl Clone for BanValidationError
impl Clone for BanValidationError
Source§fn clone(&self) -> BanValidationError
fn clone(&self) -> BanValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BanValidationError
impl Debug for BanValidationError
Source§impl Display for BanValidationError
impl Display for BanValidationError
Source§impl PartialEq for BanValidationError
impl PartialEq for BanValidationError
Source§fn eq(&self, other: &BanValidationError) -> bool
fn eq(&self, other: &BanValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BanValidationError
Auto Trait Implementations§
impl Freeze for BanValidationError
impl RefUnwindSafe for BanValidationError
impl Send for BanValidationError
impl Sync for BanValidationError
impl Unpin for BanValidationError
impl UnsafeUnpin for BanValidationError
impl UnwindSafe for BanValidationError
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