pub struct RecaptchaSolution {
pub token: String,
pub sec_ch_ua: String,
pub user_agent: String,
pub extra: BTreeMap<String, Value>,
}Expand description
ReCaptcha token solution observed from V2 and V3 workers.
Only the token is guaranteed. The two header companions are emitted by some worker builds and not others, so they default to an empty string rather than failing the decode — a task that solved and was billed must not be thrown away over a field the caller may not even need.
Fields§
§token: StringToken submitted to the protected website.
sec_ch_ua: StringMatching Sec-CH-UA request header, empty when the worker omits it.
user_agent: StringMatching user agent, empty when the worker omits it.
extra: BTreeMap<String, Value>Additional worker fields.
Implementations§
Source§impl RecaptchaSolution
impl RecaptchaSolution
pub fn serialize<__S>(
__self: &RecaptchaSolution,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> RecaptchaSolution
impl<'de> RecaptchaSolution
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecaptchaSolution, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for RecaptchaSolution
impl Clone for RecaptchaSolution
Source§impl Debug for RecaptchaSolution
impl Debug for RecaptchaSolution
Source§impl<'de> Deserialize<'de> for RecaptchaSolution
impl<'de> Deserialize<'de> for RecaptchaSolution
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 RecaptchaSolution
impl PartialEq for RecaptchaSolution
Source§impl Serialize for RecaptchaSolution
impl Serialize for RecaptchaSolution
impl StructuralPartialEq for RecaptchaSolution
Auto Trait Implementations§
impl Freeze for RecaptchaSolution
impl RefUnwindSafe for RecaptchaSolution
impl Send for RecaptchaSolution
impl Sync for RecaptchaSolution
impl Unpin for RecaptchaSolution
impl UnsafeUnpin for RecaptchaSolution
impl UnwindSafe for RecaptchaSolution
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