pub struct BuiltinPolicy {
pub name: String,
pub policy: ParsedPolicy,
}Expand description
One statement of one policy compiled into the binary, under the id a
report calls it by: builtin/{name}/{statement}/{action}, the same
{key}/{statement}/{action} shape an operator’s record is registered
under, with the source in place of a record key.
Fields§
§name: StringWhat a report calls this policy.
policy: ParsedPolicyThe declaration crate::set::declarations made of it, which
crate::merge::build compiles exactly as it compiles an
operator’s.
Trait Implementations§
Source§impl Clone for BuiltinPolicy
impl Clone for BuiltinPolicy
Source§fn clone(&self) -> BuiltinPolicy
fn clone(&self) -> BuiltinPolicy
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 moreAuto Trait Implementations§
impl Freeze for BuiltinPolicy
impl RefUnwindSafe for BuiltinPolicy
impl Send for BuiltinPolicy
impl Sync for BuiltinPolicy
impl Unpin for BuiltinPolicy
impl UnsafeUnpin for BuiltinPolicy
impl UnwindSafe for BuiltinPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more