pub struct Domains { /* private fields */ }Expand description
Operations on the /domains endpoints.
Implementations§
Source§impl Domains
impl Domains
Sourcepub async fn list(&self, params: ListParams) -> Result<Page>
pub async fn list(&self, params: ListParams) -> Result<Page>
List the team’s domains, newest-first. Returns one page.
Sourcepub async fn list_all(&self, params: ListParams) -> Result<Vec<Response>>
pub async fn list_all(&self, params: ListParams) -> Result<Vec<Response>>
List every domain, walking all pages.
Sourcepub async fn create(&self, body: impl Serialize) -> Result<Response>
pub async fn create(&self, body: impl Serialize) -> Result<Response>
Add a sending domain. The returned domain is pending until verified.
Sourcepub async fn update(&self, id: &str, body: impl Serialize) -> Result<Response>
pub async fn update(&self, id: &str, body: impl Serialize) -> Result<Response>
Update a domain’s tracking configuration. The domain name is immutable.
Auto Trait Implementations§
impl !RefUnwindSafe for Domains
impl !UnwindSafe for Domains
impl Freeze for Domains
impl Send for Domains
impl Sync for Domains
impl Unpin for Domains
impl UnsafeUnpin for Domains
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