@@ -28,7 +28,7 @@ fn replay_rtmr(history: Vec<String>) -> Result<String, FromHexError> {
2828}
2929
3030/// Represents an event log entry in the system
31- #[ derive( Serialize , Deserialize ) ]
31+ #[ derive( Debug , Serialize , Deserialize ) ]
3232pub struct EventLog {
3333 /// The index of the IMR (Integrity Measurement Register)
3434 pub imr : u32 ,
@@ -43,7 +43,7 @@ pub struct EventLog {
4343}
4444
4545/// Configuration for TLS key generation
46- #[ derive( bon:: Builder , Serialize ) ]
46+ #[ derive( Debug , bon:: Builder , Serialize ) ]
4747pub struct TlsKeyConfig {
4848 /// The subject name for the certificate
4949 #[ builder( into, default = String :: new( ) ) ]
@@ -63,7 +63,7 @@ pub struct TlsKeyConfig {
6363}
6464
6565/// Response containing a key and its signature chain
66- #[ derive( Serialize , Deserialize ) ]
66+ #[ derive( Debug , Serialize , Deserialize ) ]
6767pub struct GetKeyResponse {
6868 /// The key in hexadecimal format
6969 pub key : String ,
@@ -82,7 +82,7 @@ impl GetKeyResponse {
8282}
8383
8484/// Response containing a quote and associated event log
85- #[ derive( Serialize , Deserialize ) ]
85+ #[ derive( Debug , Serialize , Deserialize ) ]
8686pub struct GetQuoteResponse {
8787 /// The attestation quote in hexadecimal format
8888 pub quote : String ,
@@ -121,7 +121,7 @@ impl GetQuoteResponse {
121121}
122122
123123/// Response containing instance information and attestation data
124- #[ derive( Serialize , Deserialize ) ]
124+ #[ derive( Debug , Serialize , Deserialize ) ]
125125pub struct InfoResponse {
126126 /// The application identifier
127127 pub app_id : String ,
@@ -156,7 +156,7 @@ impl InfoResponse {
156156}
157157
158158/// Trusted Computing Base information structure
159- #[ derive( Serialize , Deserialize ) ]
159+ #[ derive( Debug , Serialize , Deserialize ) ]
160160pub struct TcbInfo {
161161 /// The measurement root of trust
162162 pub mrtd : String ,
@@ -182,7 +182,7 @@ pub struct TcbInfo {
182182}
183183
184184/// Response containing TLS key and certificate chain
185- #[ derive( Serialize , Deserialize ) ]
185+ #[ derive( Debug , Serialize , Deserialize ) ]
186186pub struct GetTlsKeyResponse {
187187 /// The TLS key in hexadecimal format
188188 pub key : String ,
0 commit comments