pub struct DomainService {
pub req_client: ReqClient,
}
Fields§
§req_client: ReqClient
Implementations§
Source§impl DomainService
impl DomainService
pub fn new(req_client: ReqClient) -> DomainService
pub async fn create<'a>( &self, params: &'a CreateDomainRequest, ) -> Result<APIResponse<CreateDomainResponse>, APIResponse<CreateDomainResponse>>
pub async fn verify<'a, T: Into<String>>( &self, domain_id: T, ) -> Result<APIResponse<VerifyDomainResponse>, APIResponse<VerifyDomainResponse>>
pub async fn get<'a, T: Into<String>>( &self, domain_id: T, ) -> Result<APIResponse<DomainDetails>, APIResponse<DomainDetails>>
pub async fn list<'a>( &self, ) -> Result<APIResponse<ListDomainsResponse>, APIResponse<ListDomainsResponse>>
pub async fn delete<'a, T: Into<String>>( &self, domain_id: T, ) -> Result<APIResponse<DeleteDomainResponse>, APIResponse<DeleteDomainResponse>>
Auto Trait Implementations§
impl Freeze for DomainService
impl !RefUnwindSafe for DomainService
impl Send for DomainService
impl Sync for DomainService
impl Unpin for DomainService
impl !UnwindSafe for DomainService
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