pub enum HarnessSessionTaskTargetV1 {
New,
Existing {
task_id: String,
},
Clear,
}Expand description
Mirrors the node’s own SessionTaskTargetV1 shape exactly (New starts
a fresh correlation, Existing binds to a caller-named task, Clear
removes the binding). The node’s task_id there is its own local
identifier space (format task-<24 lowercase hex>, unrelated to this
crate’s HarnessTaskId despite the similar name – the node layer has no
dependency on hatchery-harness-protocol and never mints one from a
HarnessTaskId), so task_id here stays a bounded opaque string rather
than the typed HarnessTaskId: the harness-service boundary parses and
validates it against the node’s own format when building the C2 request.
Variants§
Implementations§
Source§impl HarnessSessionTaskTargetV1
impl HarnessSessionTaskTargetV1
pub fn validate(&self) -> Result<(), HarnessOperatorApiError>
Trait Implementations§
Source§impl Clone for HarnessSessionTaskTargetV1
impl Clone for HarnessSessionTaskTargetV1
Source§impl Debug for HarnessSessionTaskTargetV1
impl Debug for HarnessSessionTaskTargetV1
Source§impl<'de> Deserialize<'de> for HarnessSessionTaskTargetV1
impl<'de> Deserialize<'de> for HarnessSessionTaskTargetV1
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 HarnessSessionTaskTargetV1
impl StructuralPartialEq for HarnessSessionTaskTargetV1
Auto Trait Implementations§
impl Freeze for HarnessSessionTaskTargetV1
impl RefUnwindSafe for HarnessSessionTaskTargetV1
impl Send for HarnessSessionTaskTargetV1
impl Sync for HarnessSessionTaskTargetV1
impl Unpin for HarnessSessionTaskTargetV1
impl UnsafeUnpin for HarnessSessionTaskTargetV1
impl UnwindSafe for HarnessSessionTaskTargetV1
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