pub enum InviteServiceError {
EntityNotFound(String),
MemberNotFound {
entity_id: String,
member_id: String,
},
InviteNotFound(String),
PermissionDenied(String),
InvalidFourWords(String),
InviteExpired,
AlreadyResolved(InviteStatus),
RoleEscalation {
granter_role: String,
target_role: String,
},
AlreadyMember {
entity_id: String,
member_id: String,
},
CrdtError(String),
EntityServiceError(String),
InviteActionFailed(String),
}Expand description
Errors from invite service operations.
Variants§
EntityNotFound(String)
Entity not found.
MemberNotFound
Member not found in entity.
InviteNotFound(String)
Invite not found.
PermissionDenied(String)
Permission denied for this operation.
InvalidFourWords(String)
Invalid four-word identity format.
InviteExpired
Invite has expired.
AlreadyResolved(InviteStatus)
Invite already resolved (accepted, rejected, etc.).
RoleEscalation
Cannot grant a role higher than your own.
AlreadyMember
Recipient is already a member.
CrdtError(String)
CRDT operation failed.
EntityServiceError(String)
Entity service error.
InviteActionFailed(String)
Invite action failed.
Trait Implementations§
Source§impl Clone for InviteServiceError
impl Clone for InviteServiceError
Source§fn clone(&self) -> InviteServiceError
fn clone(&self) -> InviteServiceError
Returns a duplicate of the value. Read more
1.0.0 · 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 InviteServiceError
impl Debug for InviteServiceError
Source§impl Display for InviteServiceError
impl Display for InviteServiceError
Source§impl Error for InviteServiceError
impl Error for InviteServiceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<InviteActionError> for InviteServiceError
impl From<InviteActionError> for InviteServiceError
Source§fn from(err: InviteActionError) -> Self
fn from(err: InviteActionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InviteServiceError
impl PartialEq for InviteServiceError
impl Eq for InviteServiceError
impl StructuralPartialEq for InviteServiceError
Auto Trait Implementations§
impl Freeze for InviteServiceError
impl RefUnwindSafe for InviteServiceError
impl Send for InviteServiceError
impl Sync for InviteServiceError
impl Unpin for InviteServiceError
impl UnwindSafe for InviteServiceError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.