pub struct AgentMetadata {
pub agent_id: AgentId,
pub args: Vec<String>,
pub env: Vec<(String, String)>,
pub config_vars: Vec<(String, String)>,
pub status: AgentStatus,
pub component_revision: u64,
pub retry_count: u64,
pub environment_id: EnvironmentId,
}Expand description
Metadata about an agent
Fields§
§agent_id: AgentIdThe agent ID, consists of the component ID, agent type and agent parameters
args: Vec<String>Command line arguments seen by the agent
env: Vec<(String, String)>Environment variables seen by the agent
config_vars: Vec<(String, String)>Configuration variables seen by the agent
status: AgentStatusThe current agent status
component_revision: u64The component version the agent is running with
retry_count: u64The agent’s current retry count
environment_id: EnvironmentIdThe environment the agent belongs to
Trait Implementations§
Source§impl Clone for AgentMetadata
impl Clone for AgentMetadata
Source§fn clone(&self) -> AgentMetadata
fn clone(&self) -> AgentMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentMetadata
impl Debug for AgentMetadata
Source§impl FromValueAndType for AgentMetadata
impl FromValueAndType for AgentMetadata
fn from_extractor<'a, 'b>( extractor: &'a impl WitValueExtractor<'a, 'b>, ) -> Result<Self, String>
fn from_value_and_type(value_and_type: ValueAndType) -> Result<Self, String>
Source§impl IntoValue for AgentMetadata
impl IntoValue for AgentMetadata
fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result
fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result
fn into_value(self) -> WitValue
fn get_type() -> WitType
Auto Trait Implementations§
impl Freeze for AgentMetadata
impl RefUnwindSafe for AgentMetadata
impl Send for AgentMetadata
impl Sync for AgentMetadata
impl Unpin for AgentMetadata
impl UnsafeUnpin for AgentMetadata
impl UnwindSafe for AgentMetadata
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