pub struct DedicatedServerApiService { /* private fields */ }Implementations§
Source§impl DedicatedServerApiService
impl DedicatedServerApiService
pub fn new(client: Arc<NodestyApiClient>) -> Self
pub async fn perform_action( &self, id: &str, action: DedicatedServerAction, ) -> Result<ApiResponse<()>, Error>
pub async fn get_details( &self, id: &str, ) -> Result<ApiResponse<DedicatedServerDetails>, Error>
pub async fn get_hardware_components( &self, id: &str, ) -> Result<ApiResponse<Vec<DedicatedServerHardwareComponent>>, Error>
pub async fn get_os_templates( &self, id: &str, ) -> Result<ApiResponse<Vec<DedicatedServerOsTemplate>>, Error>
pub async fn get_reinstall_status( &self, id: &str, ) -> Result<ApiResponse<DedicatedServerReinstallStatus>, Error>
pub async fn reinstall( &self, id: &str, data: DedicatedServerReinstallData, ) -> Result<ApiResponse<()>, Error>
pub async fn get_tasks( &self, id: &str, ) -> Result<ApiResponse<Vec<DedicatedServerTask>>, Error>
Auto Trait Implementations§
impl Freeze for DedicatedServerApiService
impl !RefUnwindSafe for DedicatedServerApiService
impl Send for DedicatedServerApiService
impl Sync for DedicatedServerApiService
impl Unpin for DedicatedServerApiService
impl !UnwindSafe for DedicatedServerApiService
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