pub struct InterventionOperation {
pub id: String,
pub target: String,
pub schedule: CaptureSchedule,
pub slices: Vec<CaptureSlice>,
pub action: InterventionAction,
pub evidence: InterventionEvidence,
}Expand description
One exact operation. List order is deterministic for activation composition.
Fields§
§id: StringUnique, nonempty caller identity, at most 128 UTF-8 bytes.
target: StringExact path from loaded-session intervention discovery.
schedule: CaptureSchedulePrediction schedule; does not select prompt tensor rows.
slices: Vec<CaptureSlice>Explicit within-tensor semantic slices. Unmentioned axes remain whole.
action: InterventionActionTyped operation and complete bounded payload.
evidence: InterventionEvidenceRequested bounded evidence, charged in addition to ordinary captures.
Implementations§
Source§impl InterventionOperation
impl InterventionOperation
Sourcepub fn resolve_slice(
&self,
point: &InterventionPoint,
shape: &[u64],
) -> Result<ResolvedCaptureSlice, CaptureError>
pub fn resolve_slice( &self, point: &InterventionPoint, shape: &[u64], ) -> Result<ResolvedCaptureSlice, CaptureError>
Resolves semantic selection with the same half-open/stride rules as capture.
Trait Implementations§
Source§impl Clone for InterventionOperation
impl Clone for InterventionOperation
Source§fn clone(&self) -> InterventionOperation
fn clone(&self) -> InterventionOperation
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 InterventionOperation
impl Debug for InterventionOperation
Source§impl<'de> Deserialize<'de> for InterventionOperation
impl<'de> Deserialize<'de> for InterventionOperation
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
Source§impl PartialEq for InterventionOperation
impl PartialEq for InterventionOperation
Source§impl Serialize for InterventionOperation
impl Serialize for InterventionOperation
impl StructuralPartialEq for InterventionOperation
Auto Trait Implementations§
impl Freeze for InterventionOperation
impl RefUnwindSafe for InterventionOperation
impl Send for InterventionOperation
impl Sync for InterventionOperation
impl Unpin for InterventionOperation
impl UnsafeUnpin for InterventionOperation
impl UnwindSafe for InterventionOperation
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