pub struct ExecPolicyAmendment { /* private fields */ }Expand description
A proposed amendment to the execution policy.
When a command requires approval but isn’t explicitly forbidden, this amendment can be proposed to allow similar commands in the future.
Implementations§
Source§impl ExecPolicyAmendment
impl ExecPolicyAmendment
Sourcepub fn command_pattern(&self) -> &[String]
pub fn command_pattern(&self) -> &[String]
Get the command pattern for Codex compatibility.
Trait Implementations§
Source§impl Clone for ExecPolicyAmendment
impl Clone for ExecPolicyAmendment
Source§fn clone(&self) -> ExecPolicyAmendment
fn clone(&self) -> ExecPolicyAmendment
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 ExecPolicyAmendment
impl Debug for ExecPolicyAmendment
Source§impl<'de> Deserialize<'de> for ExecPolicyAmendment
impl<'de> Deserialize<'de> for ExecPolicyAmendment
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 ExecPolicyAmendment
Source§impl PartialEq for ExecPolicyAmendment
impl PartialEq for ExecPolicyAmendment
Source§impl Serialize for ExecPolicyAmendment
impl Serialize for ExecPolicyAmendment
impl StructuralPartialEq for ExecPolicyAmendment
Auto Trait Implementations§
impl Freeze for ExecPolicyAmendment
impl RefUnwindSafe for ExecPolicyAmendment
impl Send for ExecPolicyAmendment
impl Sync for ExecPolicyAmendment
impl Unpin for ExecPolicyAmendment
impl UnsafeUnpin for ExecPolicyAmendment
impl UnwindSafe for ExecPolicyAmendment
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.