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 EmailApi for Client
impl EmailApi for Client
fn mailbox_delete(&mut self, domain_name: &str, id: &str) -> Result<()>
fn mailbox_insert( &mut self, domain_name: &str, mailbox: MailboxInsert ) -> Result<()>
fn mailbox_item(&mut self, domain_name: &str, id: &str) -> Result<Mailbox>
fn mailbox_list(&mut self, domain_name: &str) -> Result<Vec<Mailbox>>
fn mailforward_delete(&mut self, domain_name: &str, id: &str) -> Result<()>
fn mailforward_insert( &mut self, domain_name: &str, mail_forward: MailForwardInsert ) -> Result<()>
fn mailforward_item( &mut self, domain_name: &str, id: &str ) -> Result<MailForward>
fn mailforward_list(&mut self, domain_name: &str) -> Result<Vec<MailForward>>
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 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 Freeze for Client
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