Struct scaleway_rs::ScalewayApi
source · pub struct ScalewayApi { /* private fields */ }Implementations§
source§impl<'a> ScalewayApi
impl<'a> ScalewayApi
pub fn new<S, S2>(secret_key: S, zone: S2) -> ScalewayApiwhere S: Into<String>, S2: Into<String>,
pub fn az_list() -> Vec<&'static str>
pub async fn get_server_types_async( &self ) -> Result<Vec<ServerType>, ScalewayError>
pub fn list_images(&self) -> ScalewayListInstanceImagesBuilder
pub fn list_instances(&self) -> ScalewayListInstanceBuilder
pub async fn get_instance_async( &self, server_id: &str ) -> Result<ScalewayInstance, ScalewayError>
pub async fn delete_instance_async( &self, server_id: &str ) -> Result<(), ScalewayError>
pub async fn perform_instance_action_async( &self, server_id: &str, action: &str ) -> Result<(), ScalewayError>
Trait Implementations§
source§impl Clone for ScalewayApi
impl Clone for ScalewayApi
source§fn clone(&self) -> ScalewayApi
fn clone(&self) -> ScalewayApi
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ScalewayApi
impl Send for ScalewayApi
impl Sync for ScalewayApi
impl Unpin for ScalewayApi
impl UnwindSafe for ScalewayApi
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