pub struct CargoAllowActionV1 {
pub id: String,
pub kind: ActionKind,
pub applicability: ActionApplicability,
pub preconditions: Vec<String>,
pub mutation_scope: Option<String>,
pub expected_effect: String,
pub rollback: Option<String>,
pub required_proof: Option<RequiredProof>,
pub residual_claim: Vec<String>,
}Expand description
One typed next action bound to a diagnostic.
Fields§
§id: String§kind: ActionKind§applicability: ActionApplicability§preconditions: Vec<String>Preconditions that must hold before the action applies.
mutation_scope: Option<String>What part of the source the action touches (e.g. a path, a range, a
policy entry). None for actions that mutate nothing (navigation,
decision, external).
expected_effect: String§rollback: Option<String>How to undo the action, when it mutates source.
required_proof: Option<RequiredProof>§residual_claim: Vec<String>What remains unproven / claimed after the action (its claim boundary).
Implementations§
Source§impl CargoAllowActionV1
impl CargoAllowActionV1
A minimal navigation action for a location — never mutates source.
Sourcepub fn applicability_is_coherent(&self) -> bool
pub fn applicability_is_coherent(&self) -> bool
Invariant: only kinds that ActionKind::may_be_automatic may carry
ActionApplicability::Automatic. A navigation, decision, external,
preview, or exception-creating action can never be automatic.
Trait Implementations§
Source§impl Clone for CargoAllowActionV1
impl Clone for CargoAllowActionV1
Source§fn clone(&self) -> CargoAllowActionV1
fn clone(&self) -> CargoAllowActionV1
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 CargoAllowActionV1
impl Debug for CargoAllowActionV1
impl Eq for CargoAllowActionV1
Source§impl Hash for CargoAllowActionV1
impl Hash for CargoAllowActionV1
Source§impl PartialEq for CargoAllowActionV1
impl PartialEq for CargoAllowActionV1
impl StructuralPartialEq for CargoAllowActionV1
Auto Trait Implementations§
impl Freeze for CargoAllowActionV1
impl RefUnwindSafe for CargoAllowActionV1
impl Send for CargoAllowActionV1
impl Sync for CargoAllowActionV1
impl Unpin for CargoAllowActionV1
impl UnsafeUnpin for CargoAllowActionV1
impl UnwindSafe for CargoAllowActionV1
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