pub struct TenDiMetadata {
pub captcha_url: Option<String>,
pub aid_encrypted: Option<String>,
}Expand description
Optional TenDI (Tencent captcha) parameters.
Fields§
§captcha_url: Option<String>Link to the captcha script, usually TCaptcha.js / TCaptcha-global.js
(TJNCaptcha*.js / TJCaptcha*.js for the second version).
aid_encrypted: Option<String>Aid value obtained from the target website; single-use, fetch a new one for every task.
Not used on all websites: omit it if the site does not return an Aid.
Implementations§
Source§impl TenDiMetadata
impl TenDiMetadata
pub fn new() -> Self
pub fn with_captcha_url(self, value: impl Into<String>) -> Self
pub fn with_aid_encrypted(self, value: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for TenDiMetadata
impl Clone for TenDiMetadata
Source§impl Debug for TenDiMetadata
impl Debug for TenDiMetadata
Source§impl Default for TenDiMetadata
impl Default for TenDiMetadata
Auto Trait Implementations§
impl Freeze for TenDiMetadata
impl RefUnwindSafe for TenDiMetadata
impl Send for TenDiMetadata
impl Sync for TenDiMetadata
impl Unpin for TenDiMetadata
impl UnsafeUnpin for TenDiMetadata
impl UnwindSafe for TenDiMetadata
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