Struct scaleway_rs::ScalewayApi
source · pub struct ScalewayApi { /* private fields */ }
Implementations§
source§impl<'a> ScalewayApi
impl<'a> ScalewayApi
pub fn new<S>(secret_key: S) -> ScalewayApiwhere S: Into<String>,
pub fn az_list() -> Vec<&'static str>
pub async fn get_server_types_async( &self ) -> Result<Vec<ServerType>, ScalewayError>
pub async fn get_images_async( &self ) -> Result<Vec<ScalewayImage>, ScalewayError>
pub fn get_instances(&self, zone: &str) -> ScalewayListInstanceBuilder
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