pub struct DomainsResource { /* private fields */ }Expand description
Manages custom domains.
Implementations§
Source§impl DomainsResource
impl DomainsResource
Sourcepub async fn create(&self, body: impl Serialize) -> Result<JsonObject>
pub async fn create(&self, body: impl Serialize) -> Result<JsonObject>
Registers a custom domain.
Sourcepub async fn list(&self) -> Result<JsonObject>
pub async fn list(&self) -> Result<JsonObject>
Returns the domain list envelope.
Sourcepub async fn get(&self, domain_id: &str) -> Result<JsonObject>
pub async fn get(&self, domain_id: &str) -> Result<JsonObject>
Returns a single domain.
Sourcepub async fn verify(&self, domain_id: &str) -> Result<JsonObject>
pub async fn verify(&self, domain_id: &str) -> Result<JsonObject>
Triggers domain verification.
Auto Trait Implementations§
impl !RefUnwindSafe for DomainsResource
impl !UnwindSafe for DomainsResource
impl Freeze for DomainsResource
impl Send for DomainsResource
impl Sync for DomainsResource
impl Unpin for DomainsResource
impl UnsafeUnpin for DomainsResource
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