pub enum ActionProposalError {
ReadOnlyAction,
InvalidText {
field: &'static str,
reason: &'static str,
},
InvalidWorkspacePatch {
field: &'static str,
reason: &'static str,
},
EvidenceActionKindMismatch {
action_kind: ToolActionKind,
},
InvalidProcessAction {
source: ProcessActionError,
},
}Expand description
Validation errors for runtime-owned action proposal values.
Variants§
ReadOnlyAction
Read-only actions do not need mutating action proposals.
InvalidText
A compact proposal text field was invalid.
InvalidWorkspacePatch
Workspace patch proposal metadata was invalid.
EvidenceActionKindMismatch
Proposal evidence did not match the proposal action kind.
Fields
§
action_kind: ToolActionKindAction kind supplied for the proposal.
InvalidProcessAction
Process action proposal metadata was invalid.
Fields
§
source: ProcessActionErrorSource process action validation error.
Trait Implementations§
Source§impl Clone for ActionProposalError
impl Clone for ActionProposalError
Source§impl Debug for ActionProposalError
impl Debug for ActionProposalError
Source§impl Display for ActionProposalError
impl Display for ActionProposalError
impl Eq for ActionProposalError
Source§impl Error for ActionProposalError
impl Error for ActionProposalError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ProcessActionError> for ActionProposalError
impl From<ProcessActionError> for ActionProposalError
Source§fn from(source: ProcessActionError) -> Self
fn from(source: ProcessActionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ActionProposalError
impl PartialEq for ActionProposalError
impl StructuralPartialEq for ActionProposalError
Auto Trait Implementations§
impl Forget for ActionProposalError
impl Freeze for ActionProposalError
impl Move for ActionProposalError
impl RefUnwindSafe for ActionProposalError
impl Send for ActionProposalError
impl Sync for ActionProposalError
impl Unpin for ActionProposalError
impl UnsafeUnpin for ActionProposalError
impl UnwindSafe for ActionProposalError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.