pub struct GhConfig {
pub read_only: Vec<String>,
pub mutating: Vec<String>,
pub allowed_with_config: Vec<String>,
pub config_env: HashMap<String, String>,
}Expand description
GitHub CLI (gh) subcommand evaluation rules.
gh uses two-word subcommands (e.g. pr list, issue create), so
both two-word and one-word matches are checked.
Fields§
§read_only: Vec<String>Read-only subcommands (e.g. pr list, pr view, status, api).
mutating: Vec<String>Known mutating subcommands (e.g. pr create, pr merge, repo delete).
allowed_with_config: Vec<String>Subcommands allowed only when all config_env entries match.
config_env: HashMap<String, String>Environment variable requirements for allowed_with_config subcommands.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GhConfig
impl<'de> Deserialize<'de> for GhConfig
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 GhConfig
impl RefUnwindSafe for GhConfig
impl Send for GhConfig
impl Sync for GhConfig
impl Unpin for GhConfig
impl UnsafeUnpin for GhConfig
impl UnwindSafe for GhConfig
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