pub struct ReadonlyRejection {
pub rule: &'static str,
pub detail: String,
}Expand description
Why agent_readonly_verdict refused a command. The same code that
decides produces the reason, so the refusal text cannot drift from the
decision. Rendered as [shell.readonly.command] <rule>: <detail>.
Fields§
§rule: &'static strStable rule name: operator, quote, program, subcommand,
option, env_prefix, cd, or shape.
detail: StringHuman-readable specifics: the character, program or option refused.
Implementations§
Trait Implementations§
Source§impl Clone for ReadonlyRejection
impl Clone for ReadonlyRejection
Source§impl Debug for ReadonlyRejection
impl Debug for ReadonlyRejection
Source§impl Display for ReadonlyRejection
impl Display for ReadonlyRejection
impl Eq for ReadonlyRejection
Source§impl Error for ReadonlyRejection
impl Error for ReadonlyRejection
1.30.0 · 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 PartialEq for ReadonlyRejection
impl PartialEq for ReadonlyRejection
impl StructuralPartialEq for ReadonlyRejection
Auto Trait Implementations§
impl Freeze for ReadonlyRejection
impl RefUnwindSafe for ReadonlyRejection
impl Send for ReadonlyRejection
impl Sync for ReadonlyRejection
impl Unpin for ReadonlyRejection
impl UnsafeUnpin for ReadonlyRejection
impl UnwindSafe for ReadonlyRejection
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
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§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.