pub struct ShellChallenge {
pub type: ChallengeChoices,
pub flow_info: Option<Box<ContextualFlowInfo>>,
pub component: Option<String>,
pub response_errors: Option<HashMap<String, Vec<ErrorDetail>>>,
pub body: String,
}
Expand description
ShellChallenge : challenge type to render HTML as-is
Fields§
§type: ChallengeChoices
§flow_info: Option<Box<ContextualFlowInfo>>
§component: Option<String>
§response_errors: Option<HashMap<String, Vec<ErrorDetail>>>
§body: String
Implementations§
Source§impl ShellChallenge
impl ShellChallenge
Sourcepub fn new(type: ChallengeChoices, body: String) -> ShellChallenge
pub fn new(type: ChallengeChoices, body: String) -> ShellChallenge
challenge type to render HTML as-is
Trait Implementations§
Source§impl Clone for ShellChallenge
impl Clone for ShellChallenge
Source§fn clone(&self) -> ShellChallenge
fn clone(&self) -> ShellChallenge
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 ShellChallenge
impl Debug for ShellChallenge
Source§impl Default for ShellChallenge
impl Default for ShellChallenge
Source§fn default() -> ShellChallenge
fn default() -> ShellChallenge
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShellChallenge
impl<'de> Deserialize<'de> for ShellChallenge
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 ShellChallenge
impl PartialEq for ShellChallenge
Source§impl Serialize for ShellChallenge
impl Serialize for ShellChallenge
impl StructuralPartialEq for ShellChallenge
Auto Trait Implementations§
impl Freeze for ShellChallenge
impl RefUnwindSafe for ShellChallenge
impl Send for ShellChallenge
impl Sync for ShellChallenge
impl Unpin for ShellChallenge
impl UnwindSafe for ShellChallenge
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