pub struct AgentMetadata {
pub agent_id: AgentId,
pub args: Vec<String>,
pub env: Vec<(String, String)>,
pub config: Vec<(String, String)>,
pub status: AgentStatus,
pub component_revision: u64,
pub retry_count: u64,
pub environment_id: EnvironmentId,
}Fields§
§agent_id: AgentId§args: Vec<String>§env: Vec<(String, String)>§config: Vec<(String, String)>§status: AgentStatus§component_revision: u64§retry_count: u64§environment_id: EnvironmentIdTrait Implementations§
Source§impl Clone for AgentMetadata
impl Clone for AgentMetadata
Source§impl Debug for AgentMetadata
impl Debug for AgentMetadata
impl Eq for AgentMetadata
Source§impl FromSchema for AgentMetadata
impl FromSchema for AgentMetadata
fn from_value(value: &SchemaValue) -> Result<Self, FromSchemaError>
Source§impl FromWire for AgentMetadata
impl FromWire for AgentMetadata
fn read_wire( reader: &mut WireReader, index: ValueNodeIndex, ) -> Result<Self, WireError>
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Source§impl IntoSchema for AgentMetadata
impl IntoSchema for AgentMetadata
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl IntoWire for AgentMetadata
impl IntoWire for AgentMetadata
fn preflight(&self, resources: &mut WirePreflight) -> Result<(), WireError>
Source§async fn prepare_wire(&self) -> Result<(), WireError>
async fn prepare_wire(&self) -> Result<(), WireError>
Wrap native stream endpoints without reading from them. This is called
only after the complete value has passed resource preflight.
fn write_wire( &self, writer: &mut WireWriter, ) -> Result<ValueNodeIndex, WireError>
Source§const NEEDS_PREPARATION: bool = true
const NEEDS_PREPARATION: bool = true
False only when
prepare_wire is a no-op for every value of this type.
Resource preflight still runs regardless of this flag. Custom and derived
implementations prepare by default, including those with no stream schema.fn write_result_payload( &self, writer: &mut WireWriter, ) -> Result<Option<i32>, WireError>
Source§impl PartialEq for AgentMetadata
impl PartialEq for AgentMetadata
impl StructuralPartialEq for AgentMetadata
Source§impl WireSchema for AgentMetadata
impl WireSchema for AgentMetadata
fn contains_stream(seen: &mut HashSet<&'static str>) -> bool
fn append_schema(builder: &mut WireSchemaBuilder) -> TypeNodeIndex
fn wire_type_id() -> String
const IS_UNIT: bool = false
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