pub struct Options {
pub scope: Option<String>,
pub state: Option<String>,
pub nonce: Option<String>,
pub display: Option<Display>,
pub prompt: Option<HashSet<Prompt>>,
pub max_age: Option<Duration>,
pub ui_locales: Option<String>,
pub claims_locales: Option<String>,
pub id_token_hint: Option<String>,
pub login_hint: Option<String>,
pub acr_values: Option<String>,
}
Expand description
Optional parameters that OpenID specifies for the auth URI. Derives Default, so remember to ..Default::default() after you specify what you want.
Fields
scope: Option<String>
MUST contain openid. By default this is ONLY openid. Official optional scopes are
email, profile, address, phone, offline_access. Check the Discovery config
scopes_supported
to see what is available at your provider!
state: Option<String>
nonce: Option<String>
display: Option<Display>
prompt: Option<HashSet<Prompt>>
max_age: Option<Duration>
ui_locales: Option<String>
claims_locales: Option<String>
id_token_hint: Option<String>
login_hint: Option<String>
acr_values: Option<String>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more