pub struct ShakrsConfig {
pub version: u32,
pub policies: PoliciesSection,
pub waivers: Vec<Waiver>,
}Expand description
A whole shakrs.json document.
Fields§
§version: u32Schema version. Only 1 is supported.
policies: PoliciesSectionWhich registered policies run, and with what parameters.
waivers: Vec<Waiver>Per-finding suppressions.
Trait Implementations§
Source§impl Clone for ShakrsConfig
impl Clone for ShakrsConfig
Source§fn clone(&self) -> ShakrsConfig
fn clone(&self) -> ShakrsConfig
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 ShakrsConfig
impl Debug for ShakrsConfig
Source§impl Default for ShakrsConfig
impl Default for ShakrsConfig
Source§impl<'de> Deserialize<'de> for ShakrsConfig
impl<'de> Deserialize<'de> for ShakrsConfig
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
Source§impl Serialize for ShakrsConfig
impl Serialize for ShakrsConfig
Source§impl Validate for ShakrsConfig
impl Validate for ShakrsConfig
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Freeze for ShakrsConfig
impl RefUnwindSafe for ShakrsConfig
impl Send for ShakrsConfig
impl Sync for ShakrsConfig
impl Unpin for ShakrsConfig
impl UnsafeUnpin for ShakrsConfig
impl UnwindSafe for ShakrsConfig
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