Struct Environment Handle

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub struct EnvironmentHandle {
    pub environment_id: String,
    pub provider: String,
    pub control_location: ControlLocation,
    pub workspace: Option<PathBuf>,
    pub artifacts: Option<PathBuf>,
    pub env: BTreeMap<String, String>,
    pub ownership: EnvironmentOwnership,
    pub connection: BTreeMap<String, Value>,
    pub metadata: BTreeMap<String, Value>,
}

Resolved execution environment context.

Fields

environment_id: String

Environment handle id.

provider: String

Environment provider.

control_location: ControlLocation

Where NeMo Fabric control code runs.

workspace: Option<PathBuf>

Workspace visible to the harness runtime.

artifacts: Option<PathBuf>

Artifact root visible to the harness runtime.

env: BTreeMap<String, String>

Environment variables visible to the harness and its tools.

ownership: EnvironmentOwnership

Whether NeMo Fabric owns the environment resource.

connection: BTreeMap<String, Value>

Provider connection metadata.

metadata: BTreeMap<String, Value>

Provider-specific metadata.

Trait Implementations

impl Clone for EnvironmentHandle

impl Clone for EnvironmentHandle

clone

fn clone(&self) -> EnvironmentHandle

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for EnvironmentHandle

impl Debug for EnvironmentHandle

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for EnvironmentHandle

impl<'de> Deserialize<'de> for EnvironmentHandle

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl JsonSchema for EnvironmentHandle

impl JsonSchema for EnvironmentHandle

schema_name

fn schema_name() -> Cow<'static, str>

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

inline_schema

fn inline_schema() -> bool

impl PartialEq for EnvironmentHandle

impl PartialEq for EnvironmentHandle

eq

fn eq(&self, other: &EnvironmentHandle) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for EnvironmentHandle

impl Serialize for EnvironmentHandle

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for EnvironmentHandle

impl StructuralPartialEq for EnvironmentHandle