pub struct DiagnosticsHandler { /* private fields */ }
Expand description
Diagnostics handler
Implementations§
Source§impl DiagnosticsHandler
impl DiagnosticsHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn run(&self, request: DiagnosticRequest) -> Result<DiagnosticReport>
pub async fn run(&self, request: DiagnosticRequest) -> Result<DiagnosticReport>
Run diagnostic checks
Sourcepub async fn list_checks(&self) -> Result<Vec<String>>
pub async fn list_checks(&self) -> Result<Vec<String>>
Get available diagnostic checks
Sourcepub async fn get_last_report(&self) -> Result<DiagnosticReport>
pub async fn get_last_report(&self) -> Result<DiagnosticReport>
Get last diagnostic report
Sourcepub async fn get_report(&self, report_id: &str) -> Result<DiagnosticReport>
pub async fn get_report(&self, report_id: &str) -> Result<DiagnosticReport>
Get specific diagnostic report
Sourcepub async fn list_reports(&self) -> Result<Vec<DiagnosticReport>>
pub async fn list_reports(&self) -> Result<Vec<DiagnosticReport>>
List all diagnostic reports
Sourcepub async fn get_config(&self) -> Result<Value>
pub async fn get_config(&self) -> Result<Value>
Get diagnostics configuration/state - GET /v1/diagnostics
Sourcepub async fn update_config(&self, body: Value) -> Result<Value>
pub async fn update_config(&self, body: Value) -> Result<Value>
Update diagnostics configuration/state - PUT /v1/diagnostics
Auto Trait Implementations§
impl Freeze for DiagnosticsHandler
impl !RefUnwindSafe for DiagnosticsHandler
impl Send for DiagnosticsHandler
impl Sync for DiagnosticsHandler
impl Unpin for DiagnosticsHandler
impl !UnwindSafe for DiagnosticsHandler
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