pub struct PolicyPack {
pub version: String,
pub policies: Vec<Policy>,
}Fields§
§version: String§policies: Vec<Policy>Implementations§
Source§impl PolicyPack
impl PolicyPack
pub fn load_dir(dir: &Path) -> Result<Self, PolicyError>
pub fn compile_rules(&self) -> Result<Vec<CompiledRule>, PolicyError>
Trait Implementations§
Source§impl Clone for PolicyPack
impl Clone for PolicyPack
Source§fn clone(&self) -> PolicyPack
fn clone(&self) -> PolicyPack
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyPack
impl Debug for PolicyPack
Source§impl<'de> Deserialize<'de> for PolicyPack
impl<'de> Deserialize<'de> for PolicyPack
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 PolicyPack
impl RefUnwindSafe for PolicyPack
impl Send for PolicyPack
impl Sync for PolicyPack
impl Unpin for PolicyPack
impl UnsafeUnpin for PolicyPack
impl UnwindSafe for PolicyPack
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