pub struct SecretExposurePolicy {
pub ambient: AmbientSecretPolicy,
pub secret_mounts: Vec<SecretMountPolicy>,
pub env_secrets: Vec<SecretEnvPolicy>,
pub teardown_required: bool,
}Expand description
Describes the secret exposure policy portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§ambient: AmbientSecretPolicyAmbient used by this record or request.
secret_mounts: Vec<SecretMountPolicy>Collection of secret mounts values. Ordering and membership should be treated as part of the serialized contract when relevant.
env_secrets: Vec<SecretEnvPolicy>Collection of env secrets values. Ordering and membership should be treated as part of the serialized contract when relevant.
teardown_required: boolWhether teardown required is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
Implementations§
Source§impl SecretExposurePolicy
impl SecretExposurePolicy
Sourcepub fn no_ambient() -> Self
pub fn no_ambient() -> Self
Returns an updated package::isolation value with no ambient applied. This is data construction only and does not execute the configured behavior.
Trait Implementations§
Source§impl Clone for SecretExposurePolicy
impl Clone for SecretExposurePolicy
Source§fn clone(&self) -> SecretExposurePolicy
fn clone(&self) -> SecretExposurePolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecretExposurePolicy
impl Debug for SecretExposurePolicy
Source§impl<'de> Deserialize<'de> for SecretExposurePolicy
impl<'de> Deserialize<'de> for SecretExposurePolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SecretExposurePolicy
impl PartialEq for SecretExposurePolicy
Source§fn eq(&self, other: &SecretExposurePolicy) -> bool
fn eq(&self, other: &SecretExposurePolicy) -> bool
self and other values to be equal, and is used by ==.