pub struct Policy {
pub id: String,
pub name: String,
pub version: u32,
pub created_at: String,
pub rules: Vec<PolicyRule>,
pub executable: Option<String>,
pub config: Option<Value>,
pub action: PolicyAction,
}Expand description
A stored policy definition.
Fields§
§id: String§name: String§version: u32§created_at: String§rules: Vec<PolicyRule>§executable: Option<String>Path to a custom executable policy program (optional).
config: Option<Value>Opaque configuration passed to the executable (optional).
action: PolicyActionTrait Implementations§
Source§impl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
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 Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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