pub struct DiscoveryService { /* private fields */ }
Implementations§
Source§impl DiscoveryService
impl DiscoveryService
pub fn new(api_url: &str, dds_url: &str, client_id: &str) -> Self
pub async fn list_domains( &self, access_token: &str, ) -> Result<Vec<DomainWithServer>, Box<dyn Error>>
pub async fn sign_in_with_auki_account( &mut self, email: &str, password: &str, ) -> Result<(), Box<dyn Error>>
pub async fn sign_in_as_auki_app( &mut self, app_key: &str, app_secret: &str, ) -> Result<(), Box<dyn Error>>
pub async fn auth_domain( &self, domain_id: &str, ) -> Result<DomainWithToken, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for DiscoveryService
impl Clone for DiscoveryService
Source§fn clone(&self) -> DiscoveryService
fn clone(&self) -> DiscoveryService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DiscoveryService
impl !RefUnwindSafe for DiscoveryService
impl Send for DiscoveryService
impl Sync for DiscoveryService
impl Unpin for DiscoveryService
impl !UnwindSafe for DiscoveryService
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