pub struct Policy {
pub name: String,
pub pattern: QueryPattern,
pub message: String,
pub suggested_fix: Option<String>,
}Expand description
A named policy with a query pattern and a violation message.
Fields§
§name: String§pattern: QueryPattern§message: String§suggested_fix: Option<String>Implementations§
Trait Implementations§
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