@@ -140,7 +140,7 @@ pub struct ConciseSwidTag<'a> {
140140/// useful for identification, deployment, or management purposes. All fields
141141/// are optional except for global attributes.
142142#[ repr( C ) ]
143- #[ derive( Debug , Serialize , Deserialize , From ) ]
143+ #[ derive( Default , Debug , Serialize , Deserialize , From ) ]
144144pub struct SoftwareMetaEntry < ' a > {
145145 /// Current activation status of the software (e.g., "trial", "full", "deleted")
146146 #[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -338,15 +338,15 @@ pub enum PayloadOrEvidence<'a> {
338338}
339339
340340/// Container for payload information
341- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
341+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
342342#[ repr( C ) ]
343343pub struct Payload < ' a > {
344344 /// The payload entry containing resource information
345345 payload : PayloadEntry < ' a > ,
346346}
347347
348348/// Detailed payload information about software resources
349- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
349+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
350350#[ repr( C ) ]
351351pub struct PayloadEntry < ' a > {
352352 /// Collection of resources in the software
@@ -367,7 +367,7 @@ pub struct PayloadEntry<'a> {
367367/// This structure groups together all the resources that are part of the
368368/// software, including files, directories, processes, and other resource types.
369369/// It forms the core content description of what comprises the software.
370- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
370+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
371371#[ repr( C ) ]
372372pub struct ResourceCollection < ' a > {
373373 /// Group of filesystem path elements
@@ -387,7 +387,7 @@ pub struct ResourceCollection<'a> {
387387}
388388
389389/// Group of filesystem path elements in a resource collection
390- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
390+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
391391#[ repr( C ) ]
392392pub struct PathElementsGroup < ' a > {
393393 /// Optional list of directory entries
@@ -399,7 +399,7 @@ pub struct PathElementsGroup<'a> {
399399}
400400
401401/// Information about a directory in the filesystem
402- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
402+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
403403#[ repr( C ) ]
404404pub struct DirectoryEntry < ' a > {
405405 /// Basic filesystem item information
@@ -426,7 +426,7 @@ pub struct DirectoryEntry<'a> {
426426}
427427
428428/// Basic information about a filesystem item (file or directory)
429- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
429+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
430430#[ repr( C ) ]
431431pub struct FileSystemItem < ' a > {
432432 /// Indicates if this is a key/critical filesystem item
@@ -444,7 +444,7 @@ pub struct FileSystemItem<'a> {
444444}
445445
446446/// Information about a file in the filesystem
447- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
447+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
448448#[ repr( C ) ]
449449pub struct FileEntry < ' a > {
450450 /// Basic filesystem item information
@@ -471,7 +471,7 @@ pub struct FileEntry<'a> {
471471}
472472
473473/// Information about a running process
474- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
474+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
475475#[ repr( C ) ]
476476pub struct ProcessEntry < ' a > {
477477 /// Name of the process
@@ -490,7 +490,7 @@ pub struct ProcessEntry<'a> {
490490}
491491
492492/// Information about a general resource
493- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
493+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
494494#[ repr( C ) ]
495495pub struct ResourceEntry < ' a > {
496496 /// Type identifier for the resource
@@ -505,15 +505,15 @@ pub struct ResourceEntry<'a> {
505505}
506506
507507/// Container for evidence information about observed software state
508- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
508+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
509509#[ repr( C ) ]
510510pub struct Evidence < ' a > {
511511 /// The evidence entry containing observed resource information
512512 pub evidence : EvidenceEntry < ' a > ,
513513}
514514
515515/// Detailed evidence information about observed software state
516- #[ derive( Debug , Serialize , Deserialize , From , Constructor ) ]
516+ #[ derive( Default , Debug , Serialize , Deserialize , From , Constructor ) ]
517517#[ repr( C ) ]
518518pub struct EvidenceEntry < ' a > {
519519 /// Collection of observed resources
0 commit comments