pub struct SupportBundle {
pub version: u8,
pub generated_at: DateTime<Utc>,
pub hardware: HardwareSummary,
pub clock_state: ClockState,
pub license_status: Option<LicenseStatusSummary>,
pub verification_log: Vec<VerificationEvent>,
pub environment: EnvironmentInfo,
pub state_files: StateFileSummary,
pub metadata: HashMap<String, String>,
}Expand description
A diagnostic support bundle containing system and license state information
Fields§
§version: u8Bundle format version
generated_at: DateTime<Utc>When this bundle was generated
hardware: HardwareSummaryHardware fingerprint information (sanitized)
clock_state: ClockStateSystem clock state
license_status: Option<LicenseStatusSummary>License status summary
verification_log: Vec<VerificationEvent>Recent verification events/errors
environment: EnvironmentInfoEnvironment information
state_files: StateFileSummaryState file observations
metadata: HashMap<String, String>Bundle metadata
Implementations§
Source§impl SupportBundle
impl SupportBundle
Sourcepub fn generate_with_license(
license_id: &str,
state_integrity_key: &[u8; 32],
) -> Self
pub fn generate_with_license( license_id: &str, state_integrity_key: &[u8; 32], ) -> Self
Generate a support bundle with license information (state_integrity_key for LicenseState files).
Sourcepub fn add_event(&mut self, event: VerificationEvent)
pub fn add_event(&mut self, event: VerificationEvent)
Add a verification event to the log
Sourcepub fn add_metadata(&mut self, key: impl Into<String>, value: impl Into<String>)
pub fn add_metadata(&mut self, key: impl Into<String>, value: impl Into<String>)
Add metadata to the bundle
Sourcepub fn set_license_status(&mut self, status: LicenseStatusSummary)
pub fn set_license_status(&mut self, status: LicenseStatusSummary)
Set license status summary
Sourcepub fn to_json_compact(&self) -> Result<String>
pub fn to_json_compact(&self) -> Result<String>
Serialize the bundle to compact JSON
Sourcepub fn save_encrypted(&self, path: &Path) -> Result<()>
pub fn save_encrypted(&self, path: &Path) -> Result<()>
Save the bundle as encrypted binary
Trait Implementations§
Source§impl Clone for SupportBundle
impl Clone for SupportBundle
Source§fn clone(&self) -> SupportBundle
fn clone(&self) -> SupportBundle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupportBundle
impl Debug for SupportBundle
Source§impl<'de> Deserialize<'de> for SupportBundle
impl<'de> Deserialize<'de> for SupportBundle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SupportBundle
impl RefUnwindSafe for SupportBundle
impl Send for SupportBundle
impl Sync for SupportBundle
impl Unpin for SupportBundle
impl UnsafeUnpin for SupportBundle
impl UnwindSafe for SupportBundle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more