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>>
Auto 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