pub struct PolicyRule {
pub id: Uuid,
pub org_id: Option<String>,
pub name: String,
pub description: String,
pub condition: PolicyCondition,
pub action: PolicyAction,
pub severity: PolicySeverity,
pub enabled: bool,
pub scope: PolicyScope,
}Fields§
§id: Uuid§org_id: Option<String>§name: String§description: String§condition: PolicyCondition§action: PolicyAction§severity: PolicySeverity§enabled: bool§scope: PolicyScopeTrait 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 Forget for PolicyRule
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