pub struct SsrfRejection {
pub reason: SsrfReason,
pub detail: String,
}Expand description
A rejection produced by the classify_* SSRF checks: a stable
SsrfReason discriminant plus a human-readable detail.
Converts to AcdpError::SchemaViolation (carrying detail) via
From, so the back-compat check_* wrappers preserve their existing
error shape exactly.
Fields§
§reason: SsrfReasonStable machine-readable reason code.
detail: StringHuman-readable explanation (the message the legacy check_*
methods surfaced).
Trait Implementations§
Source§impl Clone for SsrfRejection
impl Clone for SsrfRejection
Source§fn clone(&self) -> SsrfRejection
fn clone(&self) -> SsrfRejection
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 SsrfRejection
impl Debug for SsrfRejection
Source§impl Display for SsrfRejection
impl Display for SsrfRejection
Source§impl From<SsrfRejection> for AcdpError
impl From<SsrfRejection> for AcdpError
Source§fn from(r: SsrfRejection) -> Self
fn from(r: SsrfRejection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SsrfRejection
impl RefUnwindSafe for SsrfRejection
impl Send for SsrfRejection
impl Sync for SsrfRejection
impl Unpin for SsrfRejection
impl UnsafeUnpin for SsrfRejection
impl UnwindSafe for SsrfRejection
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