pub enum RunAddressTarget {
Run {
run_id: RunId,
},
Agent {
agent_id: AgentId,
},
Topic {
topic_id: TopicId,
},
Pool {
pool_id: AgentPoolId,
},
}Expand description
Enumerates the finite run address target cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Run
Use this variant when the contract needs to represent run; selecting it has no side effect by itself.
Agent
Use this variant when the contract needs to represent agent; selecting it has no side effect by itself.
Topic
Use this variant when the contract needs to represent topic; selecting it has no side effect by itself.
Pool
Use this variant when the contract needs to represent pool; selecting it has no side effect by itself.
Fields
§
pool_id: AgentPoolIdStable pool id used for typed lineage, lookup, or dedupe.
Implementations§
Trait Implementations§
Source§impl Clone for RunAddressTarget
impl Clone for RunAddressTarget
Source§fn clone(&self) -> RunAddressTarget
fn clone(&self) -> RunAddressTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RunAddressTarget
impl Debug for RunAddressTarget
Source§impl<'de> Deserialize<'de> for RunAddressTarget
impl<'de> Deserialize<'de> for RunAddressTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunAddressTarget
Source§impl From<RunAddressTarget> for RunMessageAddressTargetRecord
impl From<RunAddressTarget> for RunMessageAddressTargetRecord
Source§fn from(value: RunAddressTarget) -> Self
fn from(value: RunAddressTarget) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RunAddressTarget
impl PartialEq for RunAddressTarget
Source§fn eq(&self, other: &RunAddressTarget) -> bool
fn eq(&self, other: &RunAddressTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RunAddressTarget
impl Serialize for RunAddressTarget
impl StructuralPartialEq for RunAddressTarget
Auto Trait Implementations§
impl Freeze for RunAddressTarget
impl RefUnwindSafe for RunAddressTarget
impl Send for RunAddressTarget
impl Sync for RunAddressTarget
impl Unpin for RunAddressTarget
impl UnsafeUnpin for RunAddressTarget
impl UnwindSafe for RunAddressTarget
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