[][src]Struct vultr::VultrApi

pub struct VultrApi { /* fields omitted */ }

Implementations

impl<'a> VultrApi[src]

pub fn new<S>(token: S) -> VultrApi where
    S: Into<String>, 
[src]

pub fn get_account_info(&self) -> Result<VultrAccount, Box<dyn Error>>[src]

pub fn get_dns_domain_list(&self) -> Result<Vec<VultrDomain>, Box<dyn Error>>[src]

pub fn get_dns_domain<S>(
    &self,
    domain: S
) -> Result<VultrDomain, Box<dyn Error>> where
    S: Into<String>, 
[src]

pub fn delete_dns_domain<S>(&self, domain: S) -> Result<(), Box<dyn Error>> where
    S: Into<String>, 
[src]

pub fn create_dns_domain<S>(
    &self,
    domain: S,
    ip: Option<String>,
    dns_sec: bool
) -> Result<VultrDomain, Box<dyn Error>> where
    S: Into<String>, 
[src]

pub fn create_dns_domain_record<S1, S2, S3, S4>(
    &self,
    domain: S1,
    record_type: S2,
    name: S3,
    ip: S4,
    ttl: Option<u32>,
    priority: Option<u32>
) -> Result<VultrDomainRecord, Box<dyn Error>> where
    S1: Into<String>,
    S2: Into<String>,
    S3: Into<String>,
    S4: Into<String>, 
[src]

pub fn get_dns_domain_records<S>(
    &self,
    domain: S
) -> Result<Vec<VultrDomainRecord>, Box<dyn Error>> where
    S: Into<String>, 
[src]

pub fn delete_dns_domain_record<S1, S2>(
    &self,
    domain: S1,
    record_id: S2
) -> Result<(), Box<dyn Error>> where
    S1: Into<String>,
    S2: Into<String>, 
[src]

pub fn get_plans(&self) -> Result<Vec<VultrPlan>, Box<dyn Error>>[src]

pub fn get_regions(&self) -> Result<Vec<VultrRegion>, Box<dyn Error>>[src]

pub fn get_os_list(&self) -> Result<Vec<VultrOS>, Box<dyn Error>>[src]

pub fn get_sshkey_list(&self) -> Result<Vec<VultrSSHKey>, Box<dyn Error>>[src]

pub fn get_sshkey<S>(&self, key_id: S) -> Result<VultrSSHKey, Box<dyn Error>> where
    S: Into<String>, 
[src]

pub fn create_sshkey<S>(
    &self,
    name: S,
    ssh_key: S
) -> Result<VultrSSHKey, Box<dyn Error>> where
    S: Into<String>, 
[src]

pub fn delete_sshkey<S>(&self, key_id: S) -> Result<(), Box<dyn Error>> where
    S: Into<String>, 
[src]

pub fn get_instance_list(&self) -> Result<Vec<VultrInstance>, Box<dyn Error>>[src]

pub fn get_instance<S>(
    &self,
    instance_id: S
) -> Result<VultrInstance, Box<dyn Error>> where
    S: Into<String>, 
[src]

pub fn create_instance<S1, S2, S3, S4, S5, S6>(
    &self,
    region_id: S1,
    plan_id: S2,
    instance_type: VultrInstanceType,
    enable_ipv6: bool,
    label: S3,
    sshkey_id: S4,
    backups: bool,
    ddos_protection: bool,
    activation_email: bool,
    hostname: S5,
    tag: S6
) -> Result<VultrInstance, Box<dyn Error>> where
    S1: Into<String>,
    S2: Into<String>,
    S3: Into<String>,
    S4: Into<String>,
    S5: Into<String>,
    S6: Into<String>, 
[src]

pub fn delete_instance<S>(&self, instance_id: S) -> Result<(), Box<dyn Error>> where
    S: Into<String>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.