pub struct SSRFConfig {
pub whitelisted_domains: HashSet<String>,
pub whitelisted_ips: HashSet<String>,
pub allow_localhost: bool,
pub allow_private_ips: bool,
}Expand description
SSRF protection configuration
Fields§
§whitelisted_domains: HashSet<String>Whitelisted domains that are allowed
whitelisted_ips: HashSet<String>Whitelisted IP ranges (CIDR notation)
allow_localhost: boolWhether to allow localhost
allow_private_ips: boolWhether to allow private IPs
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 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