relay_event_schema/protocol/
integrity.rs1use relay_protocol::{Annotated, Empty, FromValue, IntoValue, Object, Value};
4
5#[derive(Debug, Default, Clone, PartialEq, FromValue, IntoValue, Empty)]
8pub struct IntegrityBodyRaw {
9 #[metastructure(field = "documentURL")]
10 pub document_url: Annotated<String>,
11 #[metastructure(field = "blockedURL")]
12 pub blocked_url: Annotated<String>,
13 pub destination: Annotated<String>,
14 #[metastructure(field = "reportOnly")]
15 pub report_only: Annotated<bool>,
16 #[metastructure(additional_properties, pii = "maybe")]
17 pub other: Object<Value>,
18}
19
20#[derive(Debug, Default, Clone, PartialEq, FromValue, IntoValue, Empty)]
22pub struct IntegrityReportRaw {
23 pub age: Annotated<i64>,
25 #[metastructure(field = "type")]
27 pub ty: Annotated<String>,
28 #[metastructure(pii = "true")]
30 pub url: Annotated<String>,
31 pub user_agent: Annotated<String>,
33 pub body: Annotated<IntegrityBodyRaw>,
35 #[metastructure(additional_properties, pii = "maybe")]
37 pub other: Object<Value>,
38}