#[non_exhaustive]pub struct TestingOptions {
pub testing_score: f32,
pub testing_challenge: TestingChallenge,
/* private fields */
}Expand description
Options for user acceptance testing.
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.testing_score: f32Optional. All assessments for this Key return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.
testing_challenge: TestingChallengeOptional. For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE.
Implementations§
Source§impl TestingOptions
impl TestingOptions
Sourcepub fn set_testing_score<T: Into<f32>>(self, v: T) -> Self
pub fn set_testing_score<T: Into<f32>>(self, v: T) -> Self
Sourcepub fn set_testing_challenge<T: Into<TestingChallenge>>(self, v: T) -> Self
pub fn set_testing_challenge<T: Into<TestingChallenge>>(self, v: T) -> Self
Sets the value of testing_challenge.
§Example
ⓘ
use google_cloud_recaptchaenterprise_v1::model::testing_options::TestingChallenge;
let x0 = TestingOptions::new().set_testing_challenge(TestingChallenge::Nocaptcha);
let x1 = TestingOptions::new().set_testing_challenge(TestingChallenge::UnsolvableChallenge);Trait Implementations§
Source§impl Clone for TestingOptions
impl Clone for TestingOptions
Source§fn clone(&self) -> TestingOptions
fn clone(&self) -> TestingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TestingOptions
impl Debug for TestingOptions
Source§impl Default for TestingOptions
impl Default for TestingOptions
Source§fn default() -> TestingOptions
fn default() -> TestingOptions
Returns the “default value” for a type. Read more
Source§impl Message for TestingOptions
impl Message for TestingOptions
Source§impl PartialEq for TestingOptions
impl PartialEq for TestingOptions
impl StructuralPartialEq for TestingOptions
Auto Trait Implementations§
impl Freeze for TestingOptions
impl RefUnwindSafe for TestingOptions
impl Send for TestingOptions
impl Sync for TestingOptions
impl Unpin for TestingOptions
impl UnsafeUnpin for TestingOptions
impl UnwindSafe for TestingOptions
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