pub trait GetEmailVerification {
// Required method
fn get_email_verification<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 EmailVerificationId,
) -> Pin<Box<dyn Future<Output = WorkOsResult<EmailVerification, GetEmailVerificationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Required Methods§
Sourcefn get_email_verification<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 EmailVerificationId,
) -> Pin<Box<dyn Future<Output = WorkOsResult<EmailVerification, GetEmailVerificationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_email_verification<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 EmailVerificationId,
) -> Pin<Box<dyn Future<Output = WorkOsResult<EmailVerification, GetEmailVerificationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the details of an existing email verification code that can be used to send an email to a user for verification.
WorkOS Docs: Get an email verification code
§Examples
use workos_sdk::{ApiKey, WorkOs};
let workos = WorkOs::new(&ApiKey::from("sk_example_123456789"));
let organization = workos
.user_management()
.get_email_verification(&EmailVerificationId::from("email_verification_01HYGGEB6FYMWQNWF3XDZG7VV3"))
.await?;