pub struct Checkr { /* private fields */ }
Expand description
Entrypoint for interacting with the Checker API.
Implementations§
Source§impl Checkr
impl Checkr
Sourcepub fn new<K>(key: K) -> Selfwhere
K: ToString,
pub fn new<K>(key: K) -> Selfwhere
K: ToString,
Create a new Checker client struct. It takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key your requests will work.
Sourcepub fn new_from_env() -> Self
pub fn new_from_env() -> Self
Create a new Checker client struct from environment variables. It
takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key and domain and your requests will work.
Sourcepub async fn create_candidate(&self, email: &str) -> Result<Candidate, APIError>
pub async fn create_candidate(&self, email: &str) -> Result<Candidate, APIError>
Create a new candidate.
Sourcepub async fn list_invitations(&self) -> Result<Vec<Invitation>, APIError>
pub async fn list_invitations(&self) -> Result<Vec<Invitation>, APIError>
List invitations.
Sourcepub async fn create_invitation(
&self,
candidate_id: &str,
package: &str,
) -> Result<Invitation, APIError>
pub async fn create_invitation( &self, candidate_id: &str, package: &str, ) -> Result<Invitation, APIError>
Create a new invitation.
Auto Trait Implementations§
impl Freeze for Checkr
impl !RefUnwindSafe for Checkr
impl Send for Checkr
impl Sync for Checkr
impl Unpin for Checkr
impl !UnwindSafe for Checkr
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