pub struct LoginParams {
pub return_to: Option<String>,
pub inputs: HashMap<String, String>,
}Expand description
Parameters a caller passes when initiating a login flow.
Intentionally minimal. Providers that need extra inputs (username,
OAuth provider hint, magic-link address) read them from inputs
as a flat HashMap<String, String> — same escape-hatch convention
used by AuthUser::attributes.
Fields§
§return_to: Option<String>Where to send the user after a successful login. The runtime treats this as an opaque string; providers that validate it (e.g. OAuth redirect URI allowlists) do so themselves.
inputs: HashMap<String, String>Free-form inputs (username, provider hint, email for magic-link).
Trait Implementations§
Source§impl Clone for LoginParams
impl Clone for LoginParams
Source§fn clone(&self) -> LoginParams
fn clone(&self) -> LoginParams
Returns a duplicate 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 moreSource§impl Debug for LoginParams
impl Debug for LoginParams
Source§impl Default for LoginParams
impl Default for LoginParams
Source§fn default() -> LoginParams
fn default() -> LoginParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoginParams
impl RefUnwindSafe for LoginParams
impl Send for LoginParams
impl Sync for LoginParams
impl Unpin for LoginParams
impl UnsafeUnpin for LoginParams
impl UnwindSafe for LoginParams
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