pub enum AuditQueryError {
OnBehalfOfNotUser(PrincipalKind),
}Expand description
Why an AuditQuery could not be constructed.
Variants§
OnBehalfOfNotUser(PrincipalKind)
on_behalf_of names a non-user principal. The on_behalf_of lane is
user-only by the same invariant the ownership table enforces in SQL
(CHECK (on_behalf_of IS NULL OR on_behalf_of LIKE 'user:%')), and
widening it would collapse the camp-vs-user audit distinction the
design doc requires.
Trait Implementations§
Source§impl Clone for AuditQueryError
impl Clone for AuditQueryError
Source§impl Debug for AuditQueryError
impl Debug for AuditQueryError
Source§impl Display for AuditQueryError
impl Display for AuditQueryError
impl Eq for AuditQueryError
Source§impl Error for AuditQueryError
impl Error for AuditQueryError
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 PartialEq for AuditQueryError
impl PartialEq for AuditQueryError
impl StructuralPartialEq for AuditQueryError
Auto Trait Implementations§
impl Freeze for AuditQueryError
impl RefUnwindSafe for AuditQueryError
impl Send for AuditQueryError
impl Sync for AuditQueryError
impl Unpin for AuditQueryError
impl UnsafeUnpin for AuditQueryError
impl UnwindSafe for AuditQueryError
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