[−][src]Struct vultr::VultrApi
Implementations
impl<'a> VultrApi
[src]
pub fn new<S>(token: S) -> VultrApi where
S: Into<String>,
[src]
S: Into<String>,
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]
&self,
domain: S
) -> Result<VultrDomain, Box<dyn Error>> where
S: Into<String>,
pub fn delete_dns_domain<S>(&self, domain: S) -> Result<(), Box<dyn Error>> where
S: Into<String>,
[src]
S: Into<String>,
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]
&self,
domain: S,
ip: Option<String>,
dns_sec: bool
) -> Result<VultrDomain, Box<dyn Error>> where
S: Into<String>,
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]
&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>,
pub fn get_dns_domain_records<S>(
&self,
domain: S
) -> Result<Vec<VultrDomainRecord>, Box<dyn Error>> where
S: Into<String>,
[src]
&self,
domain: S
) -> Result<Vec<VultrDomainRecord>, Box<dyn Error>> where
S: Into<String>,
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]
&self,
domain: S1,
record_id: S2
) -> Result<(), Box<dyn Error>> where
S1: Into<String>,
S2: Into<String>,
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]
S: Into<String>,
pub fn create_sshkey<S>(
&self,
name: S,
ssh_key: S
) -> Result<VultrSSHKey, Box<dyn Error>> where
S: Into<String>,
[src]
&self,
name: S,
ssh_key: S
) -> Result<VultrSSHKey, Box<dyn Error>> where
S: Into<String>,
pub fn delete_sshkey<S>(&self, key_id: S) -> Result<(), Box<dyn Error>> where
S: Into<String>,
[src]
S: Into<String>,
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]
&self,
instance_id: S
) -> Result<VultrInstance, Box<dyn Error>> where
S: Into<String>,
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]
&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>,
pub fn delete_instance<S>(&self, instance_id: S) -> Result<(), Box<dyn Error>> where
S: Into<String>,
[src]
S: Into<String>,
Auto Trait Implementations
impl RefUnwindSafe for VultrApi
[src]
impl Send for VultrApi
[src]
impl Sync for VultrApi
[src]
impl Unpin for VultrApi
[src]
impl UnwindSafe for VultrApi
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,