|
3 | 3 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
4 | 4 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
5 | 5 | #[cfg_attr(feature = "serde", serde(tag = "event"))] |
| 6 | +#[non_exhaustive] |
6 | 7 | pub enum Event { |
7 | 8 | DiscoverStart(DiscoverStart), |
8 | 9 | DiscoverCase(DiscoverCase), |
@@ -82,6 +83,7 @@ impl From<RunComplete> for Event { |
82 | 83 | #[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))] |
83 | 84 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
84 | 85 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
| 86 | +#[non_exhaustive] |
85 | 87 | pub struct DiscoverStart { |
86 | 88 | #[cfg_attr( |
87 | 89 | feature = "serde", |
@@ -122,6 +124,7 @@ impl DiscoverStart { |
122 | 124 | #[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))] |
123 | 125 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
124 | 126 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
| 127 | +#[non_exhaustive] |
125 | 128 | pub struct DiscoverCase { |
126 | 129 | /// An identifier that is unique across the entire run |
127 | 130 | pub name: String, |
@@ -191,6 +194,7 @@ impl DiscoverCase { |
191 | 194 | #[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))] |
192 | 195 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
193 | 196 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
| 197 | +#[non_exhaustive] |
194 | 198 | pub struct DiscoverComplete { |
195 | 199 | #[cfg_attr( |
196 | 200 | feature = "serde", |
@@ -228,6 +232,7 @@ impl DiscoverComplete { |
228 | 232 | #[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))] |
229 | 233 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
230 | 234 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
| 235 | +#[non_exhaustive] |
231 | 236 | pub struct RunStart { |
232 | 237 | #[cfg_attr( |
233 | 238 | feature = "serde", |
@@ -265,6 +270,7 @@ impl RunStart { |
265 | 270 | #[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))] |
266 | 271 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
267 | 272 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
| 273 | +#[non_exhaustive] |
268 | 274 | pub struct CaseStart { |
269 | 275 | /// An identifier that is unique across the entire run |
270 | 276 | pub name: String, |
@@ -309,6 +315,7 @@ impl CaseStart { |
309 | 315 | #[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))] |
310 | 316 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
311 | 317 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
| 318 | +#[non_exhaustive] |
312 | 319 | pub struct CaseMessage { |
313 | 320 | /// An identifier that is unique across the entire run |
314 | 321 | pub name: String, |
@@ -371,6 +378,7 @@ impl CaseMessage { |
371 | 378 | #[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))] |
372 | 379 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
373 | 380 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
| 381 | +#[non_exhaustive] |
374 | 382 | pub struct CaseComplete { |
375 | 383 | /// An identifier that is unique across the entire run |
376 | 384 | pub name: String, |
@@ -415,6 +423,7 @@ impl CaseComplete { |
415 | 423 | #[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))] |
416 | 424 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
417 | 425 | #[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))] |
| 426 | +#[non_exhaustive] |
418 | 427 | pub struct RunComplete { |
419 | 428 | #[cfg_attr( |
420 | 429 | feature = "serde", |
|
0 commit comments