pub struct CreateInvitationRequest {
pub email_address: String,
pub public_metadata: Option<Value>,
pub redirect_url: Option<String>,
pub notify: Option<Option<bool>>,
pub ignore_existing: Option<Option<bool>>,
}Fields§
§email_address: StringThe email address the invitation will be sent to
public_metadata: Option<Value>Metadata that will be attached to the newly created invitation. The value of this property should be a well-formed JSON object. Once the user accepts the invitation and signs up, these metadata will end up in the user’s public metadata.
redirect_url: Option<String>Optional URL which specifies where to redirect the user once they click the invitation link. This is only required if you have implemented a custom flow and you’re not using Clerk Hosted Pages or Clerk Components.
notify: Option<Option<bool>>Optional flag which denotes whether an email invitation should be sent to the given email address. Defaults to true.
ignore_existing: Option<Option<bool>>Whether an invitation should be created if there is already an existing invitation for this email address, or it’s claimed by another user.
Implementations§
Source§impl CreateInvitationRequest
impl CreateInvitationRequest
pub fn new(email_address: String) -> CreateInvitationRequest
Trait Implementations§
Source§impl Clone for CreateInvitationRequest
impl Clone for CreateInvitationRequest
Source§fn clone(&self) -> CreateInvitationRequest
fn clone(&self) -> CreateInvitationRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more