pub struct AuditorError {
pub code: AuditorErrorCode,
pub message: String,
pub reason: Option<AuditReasonCode>,
pub detail: Option<Value>,
}Expand description
Raised only for operational failures the SDK could not reduce to a structured AuditReport step.
Fields§
§code: AuditorErrorCode§message: String§reason: Option<AuditReasonCode>§detail: Option<Value>Implementations§
Source§impl AuditorError
impl AuditorError
pub fn invalid_input(message: impl Into<String>) -> Self
pub fn with_reason(self, reason: AuditReasonCode) -> Self
pub fn with_detail(self, detail: Value) -> Self
pub fn keys_malformed(message: impl Into<String>) -> Self
pub fn platform_response(message: impl Into<String>) -> Self
pub fn internal(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for AuditorError
impl Debug for AuditorError
Source§impl Display for AuditorError
impl Display for AuditorError
Source§impl Error for AuditorError
impl Error for AuditorError
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()
Auto Trait Implementations§
impl Freeze for AuditorError
impl RefUnwindSafe for AuditorError
impl Send for AuditorError
impl Sync for AuditorError
impl Unpin for AuditorError
impl UnsafeUnpin for AuditorError
impl UnwindSafe for AuditorError
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