pub struct GateConfig {
pub enforce_policy: bool,
pub enable_ward: bool,
pub enable_schema_pin: bool,
pub enable_rate_limit: bool,
pub enable_budget: bool,
pub allow_anonymous: bool,
pub block_outbound_injection: bool,
}Expand description
Configuration for the Gate proxy.
Fields§
§enforce_policy: boolWhether to enforce policy (false = transparent pass-through mode).
enable_ward: boolWhether to enable injection scanning.
enable_schema_pin: boolWhether to enable schema pinning.
enable_rate_limit: boolWhether to enable rate limiting.
enable_budget: boolWhether to enable budget tracking.
allow_anonymous: boolWhether to allow anonymous access.
block_outbound_injection: boolWhether to block outbound responses that contain injection patterns. When false (default), outbound injection is logged but not blocked.
Trait Implementations§
Source§impl Clone for GateConfig
impl Clone for GateConfig
Source§fn clone(&self) -> GateConfig
fn clone(&self) -> GateConfig
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 GateConfig
impl Debug for GateConfig
Auto Trait Implementations§
impl Freeze for GateConfig
impl RefUnwindSafe for GateConfig
impl Send for GateConfig
impl Sync for GateConfig
impl Unpin for GateConfig
impl UnsafeUnpin for GateConfig
impl UnwindSafe for GateConfig
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