#[non_exhaustive]pub enum RemoteClaim {
#[non_exhaustive] Agent {
agent_id: String,
},
#[non_exhaustive] Worker {
owner_module_id: String,
worker_ref: String,
on_behalf_of: Option<String>,
},
#[non_exhaustive] Run {
agent_id: String,
},
#[non_exhaustive] Flow {
flow_id: String,
flow_version: u64,
flow_install_id: String,
flow_code_hash: String,
},
}Expand description
Identity asserted by the paired stack, not a local agent identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]Agent
Construct with RemoteClaim::agent so future fields can be added.
ⓘ
use subc_protocol::scope::RemoteClaim;
let _ = RemoteClaim::Agent { agent_id: "agent".into() };Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]Worker
Construct with RemoteClaim::worker so future fields can be added.
ⓘ
use subc_protocol::scope::RemoteClaim;
let _ = RemoteClaim::Worker { owner_module_id: "owner".into(), worker_ref: "a".repeat(64), on_behalf_of: None };Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]Run
Construct with RemoteClaim::run so future fields can be added.
ⓘ
use subc_protocol::scope::RemoteClaim;
let _ = RemoteClaim::Run { agent_id: "agent".into() };Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]Flow
Construct with RemoteClaim::flow so future fields can be added.
ⓘ
use subc_protocol::scope::RemoteClaim;
let _ = RemoteClaim::Flow { flow_id: "flow".into(), flow_version: 1, flow_install_id: "install".into(), flow_code_hash: "a".repeat(64) };Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Implementations§
Source§impl RemoteClaim
impl RemoteClaim
pub fn agent(agent_id: impl Into<String>) -> Self
pub fn worker( owner_module_id: impl Into<String>, worker_ref: impl Into<String>, on_behalf_of: Option<String>, ) -> Self
pub fn run(agent_id: impl Into<String>) -> Self
pub fn flow( flow_id: impl Into<String>, flow_version: u64, flow_install_id: impl Into<String>, flow_code_hash: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for RemoteClaim
impl Clone for RemoteClaim
Source§impl Debug for RemoteClaim
impl Debug for RemoteClaim
Source§impl<'de> Deserialize<'de> for RemoteClaim
impl<'de> Deserialize<'de> for RemoteClaim
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 RemoteClaim
Source§impl PartialEq for RemoteClaim
impl PartialEq for RemoteClaim
Source§impl Serialize for RemoteClaim
impl Serialize for RemoteClaim
impl StructuralPartialEq for RemoteClaim
Auto Trait Implementations§
impl Forget for RemoteClaim
impl Freeze for RemoteClaim
impl RefUnwindSafe for RemoteClaim
impl Send for RemoteClaim
impl Sync for RemoteClaim
impl Unpin for RemoteClaim
impl UnsafeUnpin for RemoteClaim
impl UnwindSafe for RemoteClaim
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