(self)
| 38 | } |
| 39 | |
| 40 | pub fn into_stripped(self) -> Self { |
| 41 | match self { |
| 42 | Self::Tdx { quote, event_log } => Self::Tdx { |
| 43 | quote, |
| 44 | event_log: event_log |
| 45 | .into_iter() |
| 46 | .filter(|event| event.imr == 3) |
| 47 | .map(|event| event.stripped()) |
| 48 | .collect(), |
| 49 | }, |
| 50 | other => other, |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | #[derive(Debug, Clone, Serialize, Deserialize)] |
no test coverage detected