pub struct FindEmailV2Builder<'a> { /* private fields */ }Expand description
Builder for the find_email_v2 API call.
§Example
use zero_bounce::ZeroBounce;
use zero_bounce::utility::ZBResult;
let zb = ZeroBounce::new("your_api_key");
let result = zb.find_email_v2()
.first_name("John")
.domain("example.com")
.last_name("Doe")
.call()?;Implementations§
Source§impl<'a> FindEmailV2Builder<'a>
impl<'a> FindEmailV2Builder<'a>
Sourcepub fn first_name(self, name: &'a str) -> Self
pub fn first_name(self, name: &'a str) -> Self
Set the first name (mandatory).
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 middle_name(self, name: &'a str) -> Self
pub fn middle_name(self, name: &'a str) -> Self
Set the middle name (optional).
Sourcepub fn call(self) -> ZBResult<FindEmailResponseV2>
pub fn call(self) -> ZBResult<FindEmailResponseV2>
Execute the API call and return the result.
Auto Trait Implementations§
impl<'a> Freeze for FindEmailV2Builder<'a>
impl<'a> !RefUnwindSafe for FindEmailV2Builder<'a>
impl<'a> Send for FindEmailV2Builder<'a>
impl<'a> Sync for FindEmailV2Builder<'a>
impl<'a> Unpin for FindEmailV2Builder<'a>
impl<'a> !UnwindSafe for FindEmailV2Builder<'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