#[non_exhaustive]pub struct ReauthSettings {
pub method: Method,
pub max_age: Option<Duration>,
pub policy_type: PolicyType,
/* private fields */
}Expand description
Configuration for IAP reauthentication policies.
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.method: MethodOptional. Reauth method requested.
max_age: Option<Duration>Optional. Reauth session lifetime, how long before a user has to reauthenticate again.
policy_type: PolicyTypeOptional. How IAP determines the effective policy in cases of hierarchical policies. Policies are merged from higher in the hierarchy to lower in the hierarchy.
Implementations§
Source§impl ReauthSettings
impl ReauthSettings
pub fn new() -> Self
Sourcepub fn set_method<T: Into<Method>>(self, v: T) -> Self
pub fn set_method<T: Into<Method>>(self, v: T) -> Self
Sets the value of method.
Sourcepub fn set_max_age<T>(self, v: T) -> Self
pub fn set_max_age<T>(self, v: T) -> Self
Sets the value of max_age.
Sourcepub fn set_or_clear_max_age<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_max_age<T>(self, v: Option<T>) -> Self
Sets or clears the value of max_age.
Sourcepub fn set_policy_type<T: Into<PolicyType>>(self, v: T) -> Self
pub fn set_policy_type<T: Into<PolicyType>>(self, v: T) -> Self
Sets the value of policy_type.
Trait Implementations§
Source§impl Clone for ReauthSettings
impl Clone for ReauthSettings
Source§fn clone(&self) -> ReauthSettings
fn clone(&self) -> ReauthSettings
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 ReauthSettings
impl Debug for ReauthSettings
Source§impl Default for ReauthSettings
impl Default for ReauthSettings
Source§fn default() -> ReauthSettings
fn default() -> ReauthSettings
Returns the “default value” for a type. Read more
Source§impl Message for ReauthSettings
impl Message for ReauthSettings
Source§impl PartialEq for ReauthSettings
impl PartialEq for ReauthSettings
impl StructuralPartialEq for ReauthSettings
Auto Trait Implementations§
impl Freeze for ReauthSettings
impl RefUnwindSafe for ReauthSettings
impl Send for ReauthSettings
impl Sync for ReauthSettings
impl Unpin for ReauthSettings
impl UnwindSafe for ReauthSettings
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