pub struct ConsentChallenge {
pub type: ChallengeChoices,
pub flow_info: Option<Box<ContextualFlowInfo>>,
pub component: Option<String>,
pub response_errors: Option<HashMap<String, Vec<ErrorDetail>>>,
pub pending_user: String,
pub pending_user_avatar: String,
pub header_text: Option<String>,
pub permissions: Vec<ConsentPermission>,
pub additional_permissions: Vec<ConsentPermission>,
pub token: String,
}
Expand description
ConsentChallenge : Challenge info for consent screens
Fields§
§type: ChallengeChoices
§flow_info: Option<Box<ContextualFlowInfo>>
§component: Option<String>
§response_errors: Option<HashMap<String, Vec<ErrorDetail>>>
§pending_user: String
§pending_user_avatar: String
§header_text: Option<String>
§permissions: Vec<ConsentPermission>
§additional_permissions: Vec<ConsentPermission>
§token: String
Implementations§
Source§impl ConsentChallenge
impl ConsentChallenge
Sourcepub fn new(
type: ChallengeChoices,
pending_user: String,
pending_user_avatar: String,
permissions: Vec<ConsentPermission>,
additional_permissions: Vec<ConsentPermission>,
token: String,
) -> ConsentChallenge
pub fn new( type: ChallengeChoices, pending_user: String, pending_user_avatar: String, permissions: Vec<ConsentPermission>, additional_permissions: Vec<ConsentPermission>, token: String, ) -> ConsentChallenge
Challenge info for consent screens
Trait Implementations§
Source§impl Clone for ConsentChallenge
impl Clone for ConsentChallenge
Source§fn clone(&self) -> ConsentChallenge
fn clone(&self) -> ConsentChallenge
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 ConsentChallenge
impl Debug for ConsentChallenge
Source§impl Default for ConsentChallenge
impl Default for ConsentChallenge
Source§fn default() -> ConsentChallenge
fn default() -> ConsentChallenge
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsentChallenge
impl<'de> Deserialize<'de> for ConsentChallenge
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 ConsentChallenge
impl PartialEq for ConsentChallenge
Source§impl Serialize for ConsentChallenge
impl Serialize for ConsentChallenge
impl StructuralPartialEq for ConsentChallenge
Auto Trait Implementations§
impl Freeze for ConsentChallenge
impl RefUnwindSafe for ConsentChallenge
impl Send for ConsentChallenge
impl Sync for ConsentChallenge
impl Unpin for ConsentChallenge
impl UnwindSafe for ConsentChallenge
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