You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -315,7 +289,7 @@ impl<'de> Deserialize<'de> for Ecosystem {
315
289
316
290
/// Type of the affected range supplied. This can be an ecosystem
317
291
/// specific value, semver, or a git commit hash.
318
-
#[derive(Debug,Serialize,Deserialize)]
292
+
#[derive(Debug,Serialize,Deserialize,Clone)]
319
293
#[serde(rename_all = "UPPERCASE")]
320
294
#[non_exhaustive]
321
295
pubenumRangeType{
@@ -335,7 +309,7 @@ pub enum RangeType {
335
309
336
310
/// The event captures information about the how and when
337
311
/// the package was affected by the vulnerability.
338
-
#[derive(Debug,Serialize,Deserialize)]
312
+
#[derive(Debug,Serialize,Deserialize,Clone)]
339
313
#[serde(rename_all = "lowercase")]
340
314
#[non_exhaustive]
341
315
pubenumEvent{
@@ -356,7 +330,7 @@ pub enum Event {
356
330
357
331
/// The range of versions of a package for which
358
332
/// it is affected by the vulnerability.
359
-
#[derive(Debug,Serialize,Deserialize)]
333
+
#[derive(Debug,Serialize,Deserialize,Clone)]
360
334
pubstructRange{
361
335
/// The format that the range events are specified in, for
362
336
/// example SEMVER or GIT.
@@ -378,7 +352,7 @@ pub struct Range {
378
352
/// by a particular vulnerability. The affected ranges can include
379
353
/// when the vulnerability was first introduced and also when it
380
354
/// was fixed.
381
-
#[derive(Debug,Serialize,Deserialize)]
355
+
#[derive(Clone,Debug,Serialize,Deserialize)]
382
356
pubstructAffected{
383
357
/// The package that is affected by the vulnerability
384
358
#[serde(skip_serializing_if = "Option::is_none")]
@@ -418,7 +392,7 @@ pub struct Affected {
418
392
/// The type of reference information that has been provided. Examples include
419
393
/// links to the original report, external advisories, or information about the
420
394
/// fix.
421
-
#[derive(Debug,Serialize,Deserialize)]
395
+
#[derive(Clone,Debug,Serialize,Deserialize)]
422
396
#[serde(rename_all = "UPPERCASE")]
423
397
#[non_exhaustive]
424
398
pubenumReferenceType{
@@ -461,7 +435,7 @@ pub enum ReferenceType {
461
435
}
462
436
463
437
/// Reference to additional information about the vulnerability.
464
-
#[derive(Debug,Serialize,Deserialize)]
438
+
#[derive(Clone,Debug,Serialize,Deserialize)]
465
439
pubstructReference{
466
440
/// The type of reference this URL points to.
467
441
#[serde(rename = "type")]
@@ -474,7 +448,7 @@ pub struct Reference {
474
448
475
449
/// The [`SeverityType`](SeverityType) describes the quantitative scoring method used to rate the
476
450
/// severity of the vulnerability.
477
-
#[derive(Debug,Serialize,Deserialize)]
451
+
#[derive(Clone,Debug,Serialize,Deserialize)]
478
452
#[non_exhaustive]
479
453
pubenumSeverityType{
480
454
/// A CVSS vector string representing the unique characteristics and severity of the vulnerability
@@ -503,7 +477,7 @@ pub enum SeverityType {
503
477
504
478
/// The type and score used to describe the severity of a vulnerability using one
505
479
/// or more quantitative scoring methods.
506
-
#[derive(Debug,Serialize,Deserialize)]
480
+
#[derive(Clone,Debug,Serialize,Deserialize)]
507
481
pubstructSeverity{
508
482
/// The severity type property must be a [`SeverityType`](SeverityType), which describes the
509
483
/// quantitative method used to calculate the associated score.
@@ -519,7 +493,7 @@ pub struct Severity {
519
493
/// the type or role of the individual or entity being credited.
520
494
///
521
495
/// These values and their definitions correspond directly to the [MITRE CVE specification](https://cveproject.github.io/cve-schema/schema/v5.0/docs/#collapseDescription_oneOf_i0_containers_cna_credits_items_type).
522
-
#[derive(Debug,Serialize,Deserialize)]
496
+
#[derive(Clone,Debug,Serialize,Deserialize)]
523
497
#[serde(rename_all = "UPPERCASE")]
524
498
#[non_exhaustive]
525
499
pubenumCreditType{
@@ -558,7 +532,7 @@ pub enum CreditType {
558
532
559
533
/// Provides a way to give credit for the discovery, confirmation, patch or other events in the
560
534
/// life cycle of a vulnerability.
561
-
#[derive(Debug,Serialize,Deserialize)]
535
+
#[derive(Clone,Debug,Serialize,Deserialize)]
562
536
pubstructCredit{
563
537
pubname:String,
564
538
#[serde(skip_serializing_if = "Option::is_none")]
@@ -573,7 +547,7 @@ pub struct Credit {
573
547
/// This is the entity that is returned when vulnerable data exists for
574
548
/// a given package or when requesting information about a specific vulnerability
575
549
/// by unique identifier.
576
-
#[derive(Debug,Serialize,Deserialize)]
550
+
#[derive(Clone,Debug,Serialize,Deserialize)]
577
551
pubstructVulnerability{
578
552
/// The schema_version field is used to indicate which version of the OSV schema a particular
0 commit comments