pub struct VpsApiService { /* private fields */ }Implementations§
Source§impl VpsApiService
impl VpsApiService
pub fn new(client: Arc<NodestyApiClient>) -> Self
pub async fn perform_action( &self, id: &str, action: VpsAction, ) -> Result<ApiResponse<()>, Error>
pub async fn restore_backup( &self, id: &str, data: &VpsBackup, ) -> Result<ApiResponse<()>, Error>
pub async fn get_backups( &self, id: &str, ) -> Result<ApiResponse<Vec<VpsBackup>>, Error>
pub async fn change_password( &self, id: &str, data: VpsChangePasswordData, ) -> Result<ApiResponse<()>, Error>
pub async fn get_usage_statistics( &self, id: &str, ) -> Result<ApiResponse<VpsGraphs>, Error>
pub async fn get_details( &self, id: &str, ) -> Result<ApiResponse<VpsDetails>, Error>
pub async fn get_os_templates( &self, id: &str, ) -> Result<ApiResponse<Vec<VpsOsTemplate>>, Error>
pub async fn reinstall( &self, id: &str, data: VpsReinstallData, ) -> Result<ApiResponse<()>, Error>
pub async fn get_tasks( &self, id: &str, ) -> Result<ApiResponse<Vec<VpsTask>>, Error>
Auto Trait Implementations§
impl Freeze for VpsApiService
impl !RefUnwindSafe for VpsApiService
impl Send for VpsApiService
impl Sync for VpsApiService
impl Unpin for VpsApiService
impl !UnwindSafe for VpsApiService
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