#[non_exhaustive]pub struct ChallengeInfo {
pub challenge_id: String,
pub challenge_metadata: String,
pub challenge_type: ChallengeType,
}Expand description
The challenge info returned by Roblox when a challenge is required to complete a request.
This challenge can be either a two step verification code or a captcha. This is specified by the challenge_type field.
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.challenge_id: StringThe string in the returned rblx-challenge-id header.
challenge_metadata: StringThe string in the returned rblx-challenge-metadata header.
This is encoded in base64 and can be decoded using the base64 crate.
challenge_type: ChallengeTypeThe type of challenge parsed from the rblx-challenge-type header.
Trait Implementations§
Source§impl Clone for ChallengeInfo
impl Clone for ChallengeInfo
Source§fn clone(&self) -> ChallengeInfo
fn clone(&self) -> ChallengeInfo
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 ChallengeInfo
impl Debug for ChallengeInfo
Source§impl Default for ChallengeInfo
impl Default for ChallengeInfo
Source§fn default() -> ChallengeInfo
fn default() -> ChallengeInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChallengeInfo
impl<'de> Deserialize<'de> for ChallengeInfo
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 Hash for ChallengeInfo
impl Hash for ChallengeInfo
Source§impl Ord for ChallengeInfo
impl Ord for ChallengeInfo
Source§fn cmp(&self, other: &ChallengeInfo) -> Ordering
fn cmp(&self, other: &ChallengeInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChallengeInfo
impl PartialEq for ChallengeInfo
Source§impl PartialOrd for ChallengeInfo
impl PartialOrd for ChallengeInfo
Source§impl Serialize for ChallengeInfo
impl Serialize for ChallengeInfo
impl Eq for ChallengeInfo
impl StructuralPartialEq for ChallengeInfo
Auto Trait Implementations§
impl Freeze for ChallengeInfo
impl RefUnwindSafe for ChallengeInfo
impl Send for ChallengeInfo
impl Sync for ChallengeInfo
impl Unpin for ChallengeInfo
impl UnwindSafe for ChallengeInfo
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