#[non_exhaustive]pub struct Delivery {
pub kind: String,
pub to: String,
pub token: Option<String>,
pub magic_link_url: Option<String>,
pub sign_in_url: Option<String>,
}Expand description
A message the auth API hands back for the application to send.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: Stringotp_email, otp_sms, magic_link_email or enrollment_invite_email.
to: StringAn email address or phone number.
token: Option<String>The one-time code, or the magic link’s token.
magic_link_url: Option<String>§sign_in_url: Option<String>Trait Implementations§
impl Eq for Delivery
impl StructuralPartialEq for Delivery
Auto Trait Implementations§
impl Freeze for Delivery
impl RefUnwindSafe for Delivery
impl Send for Delivery
impl Sync for Delivery
impl Unpin for Delivery
impl UnsafeUnpin for Delivery
impl UnwindSafe for Delivery
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