pub struct DomainSearchV2Builder<'a> { /* private fields */ }Expand description
Builder for the domain_search_v2 API call.
§Example
use zero_bounce::ZeroBounce;
use zero_bounce::utility::ZBResult;
let zb = ZeroBounce::new("your_api_key");
let result = zb.domain_search_v2()
.domain("example.com")
.call()?;Implementations§
Source§impl<'a> DomainSearchV2Builder<'a>
impl<'a> DomainSearchV2Builder<'a>
Sourcepub fn domain(self, domain: &'a str) -> Self
pub fn domain(self, domain: &'a str) -> Self
Set the domain name (exactly one of domain or company_name must be provided).
Sourcepub fn company_name(self, company: &'a str) -> Self
pub fn company_name(self, company: &'a str) -> Self
Set the company name (exactly one of domain or company_name must be provided).
Sourcepub fn call(self) -> ZBResult<DomainSearchResponseV2>
pub fn call(self) -> ZBResult<DomainSearchResponseV2>
Execute the API call and return the result.
Auto Trait Implementations§
impl<'a> Freeze for DomainSearchV2Builder<'a>
impl<'a> !RefUnwindSafe for DomainSearchV2Builder<'a>
impl<'a> Send for DomainSearchV2Builder<'a>
impl<'a> Sync for DomainSearchV2Builder<'a>
impl<'a> Unpin for DomainSearchV2Builder<'a>
impl<'a> !UnwindSafe for DomainSearchV2Builder<'a>
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