pub struct Client { /* private fields */ }Expand description
Client is the main entry for this library. Creation is done by using Client::try_from(configuration). After creation of a client, this client can be used to call a Transip API call. Each call starts with a check to see if we have a valid JWT token If the token is expired or non existant then the Transip API call for requesting a new token is called Tokens are persisted to disk on exit and reused if not expired on application startup
Implementations§
Trait Implementations§
source§impl AccountApi for Client
impl AccountApi for Client
source§impl DnsApi for Client
impl DnsApi for Client
source§fn dns_entry_delete_all<F>(&mut self, domain_name: &str, f: F) -> Result<()>
fn dns_entry_delete_all<F>(&mut self, domain_name: &str, f: F) -> Result<()>
Delete all entries which comply to Filter F
source§impl DomainApi for Client
impl DomainApi for Client
source§impl GeneralApi for Client
impl GeneralApi for Client
source§fn availability_zones(&mut self) -> Result<Vec<AvailabilityZone>>
fn availability_zones(&mut self) -> Result<Vec<AvailabilityZone>>
source§fn product_elements(&mut self, name: &str) -> Result<Vec<ProductElement>>
fn product_elements(&mut self, name: &str) -> Result<Vec<ProductElement>>
source§impl TransipApiVps for Client
impl TransipApiVps for Client
source§fn vps_list(&mut self) -> Result<Vec<Vps>>
fn vps_list(&mut self) -> Result<Vec<Vps>>
👎Deprecated since 0.1.2: This name is not consistent with the rest. Users should instead transip::api::vps::VpsApi
source§fn vps(&mut self, name: &str) -> Result<Vps>
fn vps(&mut self, name: &str) -> Result<Vps>
👎Deprecated since 0.1.2: This name is not consistent with the rest. Users should instead transip::api::vps::VpsApi
source§fn vps_stop(&mut self, name: &str) -> Result<()>
fn vps_stop(&mut self, name: &str) -> Result<()>
👎Deprecated since 0.1.2: This name is not consistent with the rest. Users should instead transip::api::vps::VpsApi
source§fn vps_start(&mut self, name: &str) -> Result<()>
fn vps_start(&mut self, name: &str) -> Result<()>
👎Deprecated since 0.1.2: This name is not consistent with the rest. Users should instead transip::api::vps::VpsApi
source§fn vps_reset(&mut self, name: &str) -> Result<()>
fn vps_reset(&mut self, name: &str) -> Result<()>
👎Deprecated since 0.1.2: This name is not consistent with the rest. Users should instead transip::api::vps::VpsApi
source§impl VpsApi for Client
impl VpsApi for Client
fn vps(&mut self, name: &str) -> Result<Vps>
fn vps_stop(&mut self, name: &str) -> Result<()>
fn vps_start(&mut self, name: &str) -> Result<()>
fn vps_reset(&mut self, name: &str) -> Result<()>
fn vps_set_is_locked(&mut self, name: &str, locked: bool) -> Result<()>
fn vps_set_description(&mut self, name: &str, description: &str) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !Send for Client
impl !Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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