pub struct Policy {
pub warn_is_fail: bool,
pub max_highlights: usize,
pub max_per_sensor_findings: usize,
pub max_annotations: usize,
pub section_order: Vec<String>,
pub schema_validation: SchemaValidation,
pub max_receipt_size_bytes: usize,
}Fields§
§warn_is_fail: bool§max_highlights: usize§max_per_sensor_findings: usize§max_annotations: usize§section_order: Vec<String>§schema_validation: SchemaValidationSchema validation mode: “lax” (default) skips schema validation; “strict” validates receipts against the embedded sensor.report.v1 schema.
max_receipt_size_bytes: usizeMaximum receipt file size in bytes (default 2MB). Receipts exceeding this
limit are rejected with a cockpit.receipt_oversized finding.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
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
impl Eq for Policy
impl StructuralPartialEq for Policy
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