pub struct ProbeExpectation {
pub expected_provider: AntiBotProvider,
pub min_confidence: f64,
}Expand description
Expected detection outcome for a probe.
A probe passes when the classified provider matches expected_provider and
the confidence is at least min_confidence.
Fields§
§expected_provider: AntiBotProviderProvider the probe expects to detect.
min_confidence: f64Minimum confidence threshold in [0.0, 1.0]. 0.0 accepts any confidence.
Trait Implementations§
Source§impl Clone for ProbeExpectation
impl Clone for ProbeExpectation
Source§fn clone(&self) -> ProbeExpectation
fn clone(&self) -> ProbeExpectation
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 ProbeExpectation
impl Debug for ProbeExpectation
Source§impl<'de> Deserialize<'de> for ProbeExpectation
impl<'de> Deserialize<'de> for ProbeExpectation
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 ProbeExpectation
impl PartialEq for ProbeExpectation
Source§impl Serialize for ProbeExpectation
impl Serialize for ProbeExpectation
impl StructuralPartialEq for ProbeExpectation
Auto Trait Implementations§
impl Freeze for ProbeExpectation
impl RefUnwindSafe for ProbeExpectation
impl Send for ProbeExpectation
impl Sync for ProbeExpectation
impl Unpin for ProbeExpectation
impl UnsafeUnpin for ProbeExpectation
impl UnwindSafe for ProbeExpectation
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