pub struct PolicySurface {
pub surface: &'static str,
pub file: &'static str,
pub declaration: &'static str,
pub fields: &'static [Policy],
}Expand description
A struct whose fields are serving-side policy, with a verdict on every one.
Fields§
§surface: &'static strThe surface’s name, for a failure message.
file: &'static strWorkspace-relative path to the file the struct is written in.
declaration: &'static strThe struct’s opening line, verbatim, so the guard can find it.
fields: &'static [Policy]Every field, in any order. The guard asserts this set equals the set in the source — in both directions, so a stale entry fails too.
Trait Implementations§
Source§impl Clone for PolicySurface
impl Clone for PolicySurface
impl Copy for PolicySurface
Source§impl Debug for PolicySurface
impl Debug for PolicySurface
impl Eq for PolicySurface
Source§impl PartialEq for PolicySurface
impl PartialEq for PolicySurface
impl StructuralPartialEq for PolicySurface
Auto Trait Implementations§
impl Freeze for PolicySurface
impl RefUnwindSafe for PolicySurface
impl Send for PolicySurface
impl Sync for PolicySurface
impl Unpin for PolicySurface
impl UnsafeUnpin for PolicySurface
impl UnwindSafe for PolicySurface
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