pub struct DomainClient {
pub client_id: String,
/* private fields */
}
Fields§
§client_id: String
Implementations§
Source§impl DomainClient
impl DomainClient
pub async fn new_with_app_credential( api_url: &str, dds_url: &str, client_id: &str, app_key: &str, app_secret: &str, ) -> Result<Self, Box<dyn Error>>
pub async fn new_with_user_credential( api_url: &str, dds_url: &str, client_id: &str, email: &str, password: &str, ) -> Result<Self, Box<dyn Error>>
pub async fn download_domain_data( &self, domain_id: &str, query: &DownloadQuery, ) -> Result<Receiver<Result<DomainData, Box<dyn Error + Send + Sync>>>, Box<dyn Error>>
pub async fn upload_domain_data( &self, domain_id: &str, data: Receiver<UploadDomainData>, ) -> Result<Vec<DomainData>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for DomainClient
impl !RefUnwindSafe for DomainClient
impl Send for DomainClient
impl Sync for DomainClient
impl Unpin for DomainClient
impl !UnwindSafe for DomainClient
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