pub enum SandboxEgressBinding {
Gateway(SandboxEgressGateway),
Policy(SandboxEgress),
Defaults {
default_policy: EgressPolicy,
},
}Expand description
Gateway handoff, or a policy-only binding from deployments without a gateway. Policy-only bindings remain readable but cannot enforce per-sandbox changes.
Variants§
Gateway(SandboxEgressGateway)
Complete gateway configuration from the deployment controller.
Policy(SandboxEgress)
Legacy declaration; no runtime enforcement capability is implied.
Defaults
Default policy for a new Internet declaration, retained in controller state.
Fields
§
default_policy: EgressPolicyImplementations§
Source§impl SandboxEgressBinding
impl SandboxEgressBinding
Sourcepub fn declaration(&self) -> &SandboxEgress
pub fn declaration(&self) -> &SandboxEgress
Declaration used for validation before any backend call.
Sourcepub fn default_policy(&self) -> Option<&EgressPolicy>
pub fn default_policy(&self) -> Option<&EgressPolicy>
Default runtime policy for an Internet declaration.
Sourcepub fn gateway(&self) -> Option<&SandboxEgressGateway>
pub fn gateway(&self) -> Option<&SandboxEgressGateway>
Gateway configuration, absent on older deployments.
Trait Implementations§
Source§impl Clone for SandboxEgressBinding
impl Clone for SandboxEgressBinding
Source§impl Debug for SandboxEgressBinding
impl Debug for SandboxEgressBinding
Source§impl<'de> Deserialize<'de> for SandboxEgressBinding
impl<'de> Deserialize<'de> for SandboxEgressBinding
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SandboxEgressBinding
Source§impl From<&Sandbox> for SandboxEgressBinding
impl From<&Sandbox> for SandboxEgressBinding
Source§impl From<SandboxEgress> for SandboxEgressBinding
impl From<SandboxEgress> for SandboxEgressBinding
Source§fn from(value: SandboxEgress) -> Self
fn from(value: SandboxEgress) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SandboxEgressBinding
impl PartialEq for SandboxEgressBinding
Source§impl Serialize for SandboxEgressBinding
impl Serialize for SandboxEgressBinding
impl StructuralPartialEq for SandboxEgressBinding
Auto Trait Implementations§
impl Forget for SandboxEgressBinding
impl Freeze for SandboxEgressBinding
impl Move for SandboxEgressBinding
impl RefUnwindSafe for SandboxEgressBinding
impl Send for SandboxEgressBinding
impl Sync for SandboxEgressBinding
impl Unpin for SandboxEgressBinding
impl UnsafeUnpin for SandboxEgressBinding
impl UnwindSafe for SandboxEgressBinding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.