pub struct NetcupClient<State = Unauthorized> { /* private fields */ }Implementations§
Source§impl<State> NetcupClient<State>
impl<State> NetcupClient<State>
pub fn get_session_id(&self) -> String
Source§impl NetcupClient<Unauthorized>
impl NetcupClient<Unauthorized>
pub async fn login(self, api_password: &str) -> Result<NetcupClient<Authorized>>
Source§impl NetcupClient<Authorized>
impl NetcupClient<Authorized>
pub async fn logout(self) -> Result<NetcupClient<Unauthorized>>
pub async fn get_dns_zone(&self, domain_name: &str) -> Result<DnsZone>
pub async fn update_dns_zone(&self, dns_zone: DnsZone) -> Result<DnsZone>
pub async fn get_dns_records(&self, domain_name: &str) -> Result<Vec<DnsRecord>>
pub async fn update_dns_records( &self, domain_name: &str, records: Vec<DnsRecord>, ) -> Result<()>
Auto Trait Implementations§
impl<State> Freeze for NetcupClient<State>
impl<State> RefUnwindSafe for NetcupClient<State>where
State: RefUnwindSafe,
impl<State> Send for NetcupClient<State>where
State: Send,
impl<State> Sync for NetcupClient<State>where
State: Sync,
impl<State> Unpin for NetcupClient<State>where
State: Unpin,
impl<State> UnwindSafe for NetcupClient<State>where
State: UnwindSafe,
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