pub struct RedirectChallenge {
pub type: ChallengeChoices,
pub flow_info: Option<Box<ContextualFlowInfo>>,
pub component: Option<String>,
pub response_errors: Option<HashMap<String, Vec<ErrorDetail>>>,
pub to: String,
}
Expand description
RedirectChallenge : Challenge type to redirect the client
Fields§
§type: ChallengeChoices
§flow_info: Option<Box<ContextualFlowInfo>>
§component: Option<String>
§response_errors: Option<HashMap<String, Vec<ErrorDetail>>>
§to: String
Implementations§
Source§impl RedirectChallenge
impl RedirectChallenge
Sourcepub fn new(type: ChallengeChoices, to: String) -> RedirectChallenge
pub fn new(type: ChallengeChoices, to: String) -> RedirectChallenge
Challenge type to redirect the client
Trait Implementations§
Source§impl Clone for RedirectChallenge
impl Clone for RedirectChallenge
Source§fn clone(&self) -> RedirectChallenge
fn clone(&self) -> RedirectChallenge
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 RedirectChallenge
impl Debug for RedirectChallenge
Source§impl Default for RedirectChallenge
impl Default for RedirectChallenge
Source§fn default() -> RedirectChallenge
fn default() -> RedirectChallenge
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RedirectChallenge
impl<'de> Deserialize<'de> for RedirectChallenge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RedirectChallenge
impl PartialEq for RedirectChallenge
Source§impl Serialize for RedirectChallenge
impl Serialize for RedirectChallenge
impl StructuralPartialEq for RedirectChallenge
Auto Trait Implementations§
impl Freeze for RedirectChallenge
impl RefUnwindSafe for RedirectChallenge
impl Send for RedirectChallenge
impl Sync for RedirectChallenge
impl Unpin for RedirectChallenge
impl UnwindSafe for RedirectChallenge
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