pub enum AuthFailure {
AccessDenied,
DoesNotExist,
IdConflict,
}Expand description
AuthRepository methods are expected to enforce various restrictions on user access. In particular, if a client-generated ID conflicts with one already present in the system, an error must be returned. If a bidder tries to obtain information on a different bidder’s auth, this action must fail.
Variants§
AccessDenied
Returned when a bidder attempts to access or modify an auth they don’t have permission for
DoesNotExist
Returned when the requested authorization does not exist in the system
IdConflict
Returned when attempting to create an auth with an ID that already exists
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthFailure
impl RefUnwindSafe for AuthFailure
impl Send for AuthFailure
impl Sync for AuthFailure
impl Unpin for AuthFailure
impl UnwindSafe for AuthFailure
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more