pub struct FetchSettings {
pub ssrf_protection: bool,
pub allow_http: bool,
pub allow_localhost: bool,
pub allow_private_networks: bool,
pub timeout_seconds: f64,
}Fields§
§ssrf_protection: bool§allow_http: bool§allow_localhost: bool§allow_private_networks: bool§timeout_seconds: f64Implementations§
Source§impl FetchSettings
impl FetchSettings
pub fn from_dev_mode(dev_mode: bool) -> Self
Sourcepub fn from_dev_mode_env() -> Self
pub fn from_dev_mode_env() -> Self
Resolve dev-mode from the environment variable AUTHPLANE_DEV_MODE.
Truthy values: "true", "1", "yes" (case-insensitive).
Falls back to from_dev_mode(false) when the variable is absent or
not truthy.
Trait Implementations§
Source§impl Clone for FetchSettings
impl Clone for FetchSettings
Source§impl Debug for FetchSettings
impl Debug for FetchSettings
Source§impl Default for FetchSettings
impl Default for FetchSettings
Source§impl PartialEq for FetchSettings
impl PartialEq for FetchSettings
impl StructuralPartialEq for FetchSettings
Auto Trait Implementations§
impl Freeze for FetchSettings
impl RefUnwindSafe for FetchSettings
impl Send for FetchSettings
impl Sync for FetchSettings
impl Unpin for FetchSettings
impl UnsafeUnpin for FetchSettings
impl UnwindSafe for FetchSettings
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