pub struct Api {
pub host: String,
pub token: String,
}
Fields§
§host: String
§token: String
Implementations§
Source§impl Api
impl Api
pub async fn get_envs(&self) -> Result<Value, Error>
pub async fn get_env_info(&self, env_name: &str) -> Result<Value, Error>
pub async fn get_logs( &self, env_name: &str, node_id: u32, ) -> Result<Value, Error>
pub async fn start_env(&self, env_name: &str) -> Result<Value, Error>
pub async fn stop_env(&self, env_name: &str) -> Result<Value, Error>
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
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