pub struct SsrfConfig {
pub enabled: bool,
pub blocked_domains: Vec<String>,
pub allowed_domains: Vec<String>,
}Expand description
Configuration for the SSRF guard.
Fields§
§enabled: boolWhen false all checks are skipped (for testing only — never in production).
blocked_domains: Vec<String>Additional domain suffixes to block (e.g., “internal.corp”).
allowed_domains: Vec<String>If non-empty, only these domain suffixes are allowed.
Takes priority over blocked_domains and IP checks.
Trait Implementations§
Source§impl Clone for SsrfConfig
impl Clone for SsrfConfig
Source§fn clone(&self) -> SsrfConfig
fn clone(&self) -> SsrfConfig
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 SsrfConfig
impl Debug for SsrfConfig
Auto Trait Implementations§
impl Freeze for SsrfConfig
impl RefUnwindSafe for SsrfConfig
impl Send for SsrfConfig
impl Sync for SsrfConfig
impl Unpin for SsrfConfig
impl UnsafeUnpin for SsrfConfig
impl UnwindSafe for SsrfConfig
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