covert_sdk/
status.rs

1use std::sync::Arc;
2
3pub use covert_types::methods::system::StatusResponse;
4
5use crate::base::BaseClient;
6
7pub struct Client {
8    client: Arc<BaseClient>,
9}
10
11impl Client {
12    pub(crate) fn new(client: Arc<BaseClient>) -> Self {
13        Self { client }
14    }
15
16    pub async fn status(&self) -> Result<StatusResponse, String> {
17        self.client.get("/sys/status".into()).await
18    }
19}