pub struct ExecutionEnvironment {
pub environment_id: ExecutionEnvironmentId,
pub requirement_ref: IsolationRequirementRef,
pub sidecar_ref: PackageSidecarRef,
pub spec: EnvironmentSpec,
pub source: SourceRef,
pub destination: DestinationRef,
pub policy_refs: Vec<PolicyRef>,
pub runtime_package_fingerprint: RuntimePackageFingerprint,
}Expand description
Describes the execution environment 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§
§environment_id: ExecutionEnvironmentIdStable environment id used for typed lineage, lookup, or dedupe.
requirement_ref: IsolationRequirementRefTyped requirement ref reference. Resolving or executing it is a separate policy-gated step.
sidecar_ref: PackageSidecarRefTyped sidecar ref reference. Resolving or executing it is a separate policy-gated step.
spec: EnvironmentSpecSpec used by this record or request.
source: SourceRefSource label or ref for this item; it is metadata and does not fetch content by itself.
destination: DestinationRefDestination label or ref for this item; it is metadata and does not deliver content by itself.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
runtime_package_fingerprint: RuntimePackageFingerprintFingerprint of the runtime package snapshot in force when this value was produced. Use it for replay, dedupe, and package-lineage checks; the field is evidence and does not execute package behavior.
Implementations§
Source§impl ExecutionEnvironment
impl ExecutionEnvironment
Sourcepub fn require(requirement: IsolationRequirement) -> ExecutionEnvironmentBuilder
pub fn require(requirement: IsolationRequirement) -> ExecutionEnvironmentBuilder
Returns an updated package::isolation value with require applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn process(
&self,
argv: impl IntoIterator<Item = impl Into<String>>,
) -> IsolatedProcessSpecBuilder
pub fn process( &self, argv: impl IntoIterator<Item = impl Into<String>>, ) -> IsolatedProcessSpecBuilder
Returns an updated package::isolation value with process applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn subject_ref(&self) -> EntityRef
pub fn subject_ref(&self) -> EntityRef
Returns an updated package::isolation value with subject ref applied. This is data construction only and does not execute the configured behavior.
Trait Implementations§
Source§impl Clone for ExecutionEnvironment
impl Clone for ExecutionEnvironment
Source§fn clone(&self) -> ExecutionEnvironment
fn clone(&self) -> ExecutionEnvironment
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 ExecutionEnvironment
impl Debug for ExecutionEnvironment
Source§impl<'de> Deserialize<'de> for ExecutionEnvironment
impl<'de> Deserialize<'de> for ExecutionEnvironment
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 ExecutionEnvironment
impl PartialEq for ExecutionEnvironment
Source§fn eq(&self, other: &ExecutionEnvironment) -> bool
fn eq(&self, other: &ExecutionEnvironment) -> bool
self and other values to be equal, and is used by ==.