pub struct RemoteInputPolicy {
pub enabled: bool,
pub allowed_hosts: BTreeSet<String>,
pub allowed_ports: BTreeSet<u16>,
pub allow_private_networks: bool,
pub max_redirects: u8,
pub timeout: Duration,
pub max_url_bytes: usize,
}Expand description
Explicit policy controlling remote image access.
Fields§
§enabled: boolWhether remote inputs are enabled.
allowed_hosts: BTreeSet<String>Exact lower-case hostnames permitted. Empty allows any public hostname.
allowed_ports: BTreeSet<u16>Allowed destination ports.
allow_private_networks: boolWhether private, loopback, link-local, and reserved networks are allowed.
max_redirects: u8Maximum number of checked redirects.
timeout: DurationPer-hop request timeout.
max_url_bytes: usizeMaximum URL bytes.
Trait Implementations§
Source§impl Clone for RemoteInputPolicy
impl Clone for RemoteInputPolicy
Source§fn clone(&self) -> RemoteInputPolicy
fn clone(&self) -> RemoteInputPolicy
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 RemoteInputPolicy
impl Debug for RemoteInputPolicy
Auto Trait Implementations§
impl Freeze for RemoteInputPolicy
impl RefUnwindSafe for RemoteInputPolicy
impl Send for RemoteInputPolicy
impl Sync for RemoteInputPolicy
impl Unpin for RemoteInputPolicy
impl UnsafeUnpin for RemoteInputPolicy
impl UnwindSafe for RemoteInputPolicy
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