pub struct VultrApi { /* private fields */ }
Implementations§
source§impl<'a> VultrApi
impl<'a> VultrApi
pub fn new<S>(token: S) -> VultrApi
pub async fn get_account_info_async(&self) -> Result<VultrAccount, VultrError>
pub async fn get_dns_domain_list_async( &self ) -> Result<Vec<VultrDomain>, VultrError>
pub async fn get_dns_domain_async<S>( &self, domain: S ) -> Result<VultrDomain, VultrError>
pub async fn delete_dns_domain_async<S>( &self, domain: S ) -> Result<(), VultrError>
pub async fn create_dns_domain_async<S>( &self, domain: S, ip: Option<String>, dns_sec: bool ) -> Result<VultrDomain, VultrError>
pub async fn create_dns_domain_record_async<S1, S2, S3, S4>( &self, domain: S1, record_type: S2, name: S3, ip: S4, ttl: Option<u32>, priority: Option<u32> ) -> Result<VultrDomainRecord, VultrError>
pub async fn get_dns_domain_records_async<S>( &self, domain: S ) -> Result<Vec<VultrDomainRecord>, VultrError>
pub async fn delete_dns_domain_record_async<S1, S2>( &self, domain: S1, record_id: S2 ) -> Result<(), VultrError>
pub async fn get_plans_async(&self) -> Result<Vec<VultrPlan>, VultrError>
pub async fn get_regions_async(&self) -> Result<Vec<VultrRegion>, VultrError>
pub async fn get_os_list_async(&self) -> Result<Vec<VultrOS>, VultrError>
pub async fn get_sshkey_list_async( &self ) -> Result<Vec<VultrSSHKey>, VultrError>
pub async fn get_sshkey_async<S>( &self, key_id: S ) -> Result<VultrSSHKey, VultrError>
pub async fn create_sshkey_async<S>( &self, name: S, ssh_key: S ) -> Result<VultrSSHKey, VultrError>
pub async fn delete_sshkey_async<S>(&self, key_id: S) -> Result<(), VultrError>
pub async fn get_instance_list_async( &self ) -> Result<Vec<VultrInstance>, VultrError>
pub async fn get_instance_async<S>( &self, instance_id: S ) -> Result<VultrInstance, VultrError>
sourcepub fn create_instance<S1, S2>(
&self,
region_id: S1,
plan_id: S2,
instance_type: VultrInstanceType
) -> CreateInstanceBuilder
pub fn create_instance<S1, S2>( &self, region_id: S1, plan_id: S2, instance_type: VultrInstanceType ) -> CreateInstanceBuilder
More information at https://www.vultr.com/api/#tag/instances/operation/create-instance
pub async fn delete_instance_async<S>( &self, instance_id: S ) -> Result<(), VultrError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VultrApi
impl Send for VultrApi
impl Sync for VultrApi
impl Unpin for VultrApi
impl UnwindSafe for VultrApi
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