pub struct Emailvalidation { /* private fields */ }
Expand description
The main struct of the crate giving access to the emailvalidation.. Create a new instance of the struct with your api key as parameter.
Implementations§
Source§impl<'a> Emailvalidation
impl<'a> Emailvalidation
Sourcepub fn new(api_key: &'a str) -> Result<Self, EmailvalidationError>
pub fn new(api_key: &'a str) -> Result<Self, EmailvalidationError>
Creates a new instance of the Emailvalidation struct by passing your api key as function parameter.
pub async fn status(&self) -> Result<DetailsResponse, EmailvalidationError>
pub async fn info( &self, email: &'a str, catch_all: &'a str, ) -> Result<DetailsResponse, EmailvalidationError>
Trait Implementations§
Source§impl Clone for Emailvalidation
impl Clone for Emailvalidation
Source§fn clone(&self) -> Emailvalidation
fn clone(&self) -> Emailvalidation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Emailvalidation
impl !RefUnwindSafe for Emailvalidation
impl Send for Emailvalidation
impl Sync for Emailvalidation
impl Unpin for Emailvalidation
impl !UnwindSafe for Emailvalidation
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