pub struct AgentEnvironment {
pub definition_id: String,
pub definition_version: String,
pub runtime_type: String,
}Expand description
Definition identity loaded from the process environment.
These values identify Agent behavior. They are deliberately separate from
AGENT_INFRA_AGENT_ID and AGENT_INFRA_RUNTIME_ID, which identify Infra
resources and are consumed by Runtime Config/Bootstrap instead.
Fields§
§definition_id: String§definition_version: String§runtime_type: StringImplementations§
Source§impl AgentEnvironment
impl AgentEnvironment
Sourcepub fn load() -> Result<Option<Self>, DefinitionBuildError>
pub fn load() -> Result<Option<Self>, DefinitionBuildError>
Load the three Definition identity variables as one atomic group.
Ok(None) means that none of the variables is present. Supplying only a
subset is rejected so a deployment cannot accidentally combine a new ID
with a source-default version or Runtime type.
Sourcepub fn require() -> Result<Self, DefinitionBuildError>
pub fn require() -> Result<Self, DefinitionBuildError>
Require a complete Definition identity in the process environment.
Trait Implementations§
Source§impl Clone for AgentEnvironment
impl Clone for AgentEnvironment
Source§impl Debug for AgentEnvironment
impl Debug for AgentEnvironment
impl Eq for AgentEnvironment
Source§impl PartialEq for AgentEnvironment
impl PartialEq for AgentEnvironment
impl StructuralPartialEq for AgentEnvironment
Auto Trait Implementations§
impl Freeze for AgentEnvironment
impl RefUnwindSafe for AgentEnvironment
impl Send for AgentEnvironment
impl Sync for AgentEnvironment
impl Unpin for AgentEnvironment
impl UnsafeUnpin for AgentEnvironment
impl UnwindSafe for AgentEnvironment
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