pub struct PolicyRule {
pub path: String,
pub version: u32,
pub description: Option<String>,
pub match_action: String,
pub deny: bool,
pub require_approval: Vec<String>,
pub reason: Option<String>,
pub agent_id: Option<String>,
}Fields§
§path: String§version: u32§description: Option<String>§match_action: String§deny: bool§require_approval: Vec<String>§reason: Option<String>§agent_id: Option<String>Trait Implementations§
Source§impl Clone for PolicyRule
impl Clone for PolicyRule
Source§impl Debug for PolicyRule
impl Debug for PolicyRule
Source§impl<'de> Deserialize<'de> for PolicyRule
impl<'de> Deserialize<'de> for PolicyRule
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 PolicyRule
impl RefUnwindSafe for PolicyRule
impl Send for PolicyRule
impl Sync for PolicyRule
impl Unpin for PolicyRule
impl UnsafeUnpin for PolicyRule
impl UnwindSafe for PolicyRule
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