pub struct Cloudflare5sSolution {
pub header: BTreeMap<String, String>,
pub cookies: BTreeMap<String, String>,
pub tls_version: String,
pub body: String,
pub s_token: String,
pub extra: BTreeMap<String, Value>,
}Expand description
Cloudflare five-second challenge solution.
Every field describes one part of the browser state the worker ended up with; replaying the headers and cookies against the protected site is what actually clears the challenge.
Fields§
§header: BTreeMap<String, String>Request headers to replay against the protected site.
Clearance cookies returned by the worker.
tls_version: StringBrowser fingerprint used by the worker, such as chrome149.
body: StringChallenge page body, empty when the worker captured none.
s_token: StringTurnstile token embedded in the challenge, empty when the flow did not produce one.
extra: BTreeMap<String, Value>Additional worker fields.
Implementations§
Source§impl Cloudflare5sSolution
impl Cloudflare5sSolution
pub fn serialize<__S>(
__self: &Cloudflare5sSolution,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> Cloudflare5sSolution
impl<'de> Cloudflare5sSolution
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<Cloudflare5sSolution, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for Cloudflare5sSolution
impl Clone for Cloudflare5sSolution
Source§impl Debug for Cloudflare5sSolution
impl Debug for Cloudflare5sSolution
Source§impl<'de> Deserialize<'de> for Cloudflare5sSolution
impl<'de> Deserialize<'de> for Cloudflare5sSolution
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 Cloudflare5sSolution
impl PartialEq for Cloudflare5sSolution
Source§impl Serialize for Cloudflare5sSolution
impl Serialize for Cloudflare5sSolution
impl StructuralPartialEq for Cloudflare5sSolution
Auto Trait Implementations§
impl Freeze for Cloudflare5sSolution
impl RefUnwindSafe for Cloudflare5sSolution
impl Send for Cloudflare5sSolution
impl Sync for Cloudflare5sSolution
impl Unpin for Cloudflare5sSolution
impl UnsafeUnpin for Cloudflare5sSolution
impl UnwindSafe for Cloudflare5sSolution
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