pub struct ReportEnvelope<TData = DepguardData> {
pub schema: String,
pub tool: ToolMeta,
pub started_at: OffsetDateTime,
pub finished_at: OffsetDateTime,
pub verdict: Verdict,
pub findings: Vec<Finding>,
pub data: TData,
}Expand description
A generic receipt/envelope.
Keeping this generic allows Depguard to embed tool-specific data while still enforcing a stable outer shape.
Fields§
§schema: StringVersioned schema identifier for the envelope shape.
tool: ToolMeta§started_at: OffsetDateTime§finished_at: OffsetDateTime§verdict: Verdict§findings: Vec<Finding>§data: TDataTrait Implementations§
Source§impl<TData: Clone> Clone for ReportEnvelope<TData>
impl<TData: Clone> Clone for ReportEnvelope<TData>
Source§fn clone(&self) -> ReportEnvelope<TData>
fn clone(&self) -> ReportEnvelope<TData>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<TData: Debug> Debug for ReportEnvelope<TData>
impl<TData: Debug> Debug for ReportEnvelope<TData>
Source§impl<'de, TData> Deserialize<'de> for ReportEnvelope<TData>where
TData: Deserialize<'de>,
impl<'de, TData> Deserialize<'de> for ReportEnvelope<TData>where
TData: Deserialize<'de>,
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<TData> JsonSchema for ReportEnvelope<TData>where
TData: JsonSchema,
impl<TData> JsonSchema for ReportEnvelope<TData>where
TData: JsonSchema,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl<TData: PartialEq> PartialEq for ReportEnvelope<TData>
impl<TData: PartialEq> PartialEq for ReportEnvelope<TData>
Source§impl<TData> Serialize for ReportEnvelope<TData>where
TData: Serialize,
impl<TData> Serialize for ReportEnvelope<TData>where
TData: Serialize,
impl<TData> StructuralPartialEq for ReportEnvelope<TData>
Auto Trait Implementations§
impl<TData> Freeze for ReportEnvelope<TData>where
TData: Freeze,
impl<TData> RefUnwindSafe for ReportEnvelope<TData>where
TData: RefUnwindSafe,
impl<TData> Send for ReportEnvelope<TData>where
TData: Send,
impl<TData> Sync for ReportEnvelope<TData>where
TData: Sync,
impl<TData> Unpin for ReportEnvelope<TData>where
TData: Unpin,
impl<TData> UnsafeUnpin for ReportEnvelope<TData>where
TData: UnsafeUnpin,
impl<TData> UnwindSafe for ReportEnvelope<TData>where
TData: UnwindSafe,
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