pub struct DomainClient {
pub client_id: String,
/* private fields */
}
Fields§
§client_id: String
Implementations§
Source§impl DomainClient
impl DomainClient
pub fn new(api_url: &str, dds_url: &str, client_id: &str) -> Self
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 + Send + Sync>>
pub async fn new_with_user_credential( api_url: &str, dds_url: &str, client_id: &str, email: &str, password: &str, remember_password: bool, ) -> Result<Self, Box<dyn Error + Send + Sync>>
pub fn with_oidc_access_token(&self, token: &str) -> Self
pub async fn download_domain_data( &self, domain_id: &str, query: &DownloadQuery, ) -> Result<Receiver<Result<DomainData, Box<dyn Error + Send + Sync>>>, Box<dyn Error + Send + Sync>>
pub async fn upload_domain_data( &self, domain_id: &str, data: Receiver<UploadDomainData>, ) -> Result<Vec<DomainDataMetadata>, Box<dyn Error + Send + Sync>>
pub async fn download_metadata( &self, domain_id: &str, query: &DownloadQuery, ) -> Result<Vec<DomainDataMetadata>, Box<dyn Error + Send + Sync>>
pub async fn download_domain_data_by_id( &self, domain_id: &str, id: &str, ) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>
pub async fn delete_domain_data_by_id( &self, domain_id: &str, id: &str, ) -> Result<(), Box<dyn Error + Send + Sync>>
Trait Implementations§
Source§impl Clone for DomainClient
impl Clone for DomainClient
Source§fn clone(&self) -> DomainClient
fn clone(&self) -> DomainClient
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 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