pub struct AgentId {
pub component_id: ComponentId,
pub agent_id: String,
}Expand description
Native counterpart of golem:core/types@2.0.0::agent-id.
Fields§
§component_id: ComponentId§agent_id: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentId
impl<'de> Deserialize<'de> for AgentId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentId
Source§impl FromSchema for AgentId
impl FromSchema for AgentId
fn from_value(value: &SchemaValue) -> Result<AgentId, FromSchemaError>
Source§impl IntoSchema for AgentId
impl IntoSchema for AgentId
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl IntoWire for AgentId
impl IntoWire for AgentId
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<i32, 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 Serialize for AgentId
impl Serialize for AgentId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AgentId
Source§impl WireSchema for AgentId
impl WireSchema for AgentId
fn contains_stream(seen: &mut HashSet<&'static str>) -> bool
fn append_schema(builder: &mut WireSchemaBuilder) -> i32
fn wire_type_id() -> String
const IS_UNIT: bool = false
Auto Trait Implementations§
impl Freeze for AgentId
impl RefUnwindSafe for AgentId
impl Send for AgentId
impl Sync for AgentId
impl Unpin for AgentId
impl UnsafeUnpin for AgentId
impl UnwindSafe for AgentId
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