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