pub struct AllowedCommandRule {
pub command: String,
pub args_allow: Vec<String>,
pub args_deny: Vec<String>,
}Expand description
One account-level command-allowlist rule – either a bare command name
(args_allow/args_deny both empty) or a command name plus argument
allow/deny regex lists.
The control-plane accepts and returns rules in either shape (a bare JSON
string or a {command, args_allow?, args_deny?} object); this type’s
Deserialize decodes both, while its Serialize always emits the object
form (which the control-plane accepts identically). Mirrors sdk-go’s
AllowedCommandRule custom marshaling.
Fields§
§command: String§args_allow: Vec<String>§args_deny: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for AllowedCommandRule
impl Clone for AllowedCommandRule
Source§impl Debug for AllowedCommandRule
impl Debug for AllowedCommandRule
Source§impl<'de> Deserialize<'de> for AllowedCommandRule
impl<'de> Deserialize<'de> for AllowedCommandRule
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
Auto Trait Implementations§
impl Freeze for AllowedCommandRule
impl RefUnwindSafe for AllowedCommandRule
impl Send for AllowedCommandRule
impl Sync for AllowedCommandRule
impl Unpin for AllowedCommandRule
impl UnsafeUnpin for AllowedCommandRule
impl UnwindSafe for AllowedCommandRule
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