#[non_exhaustive]pub struct PredicateAnswer {
pub probability: f64,
}Expand description
The probability that the answer to a yes/no question is yes.
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.probability: f64Implementations§
Trait Implementations§
Source§impl Clone for PredicateAnswer
impl Clone for PredicateAnswer
impl Copy for PredicateAnswer
Source§impl Debug for PredicateAnswer
impl Debug for PredicateAnswer
Source§impl Default for PredicateAnswer
impl Default for PredicateAnswer
Source§impl<'de> Deserialize<'de> for PredicateAnswer
impl<'de> Deserialize<'de> for PredicateAnswer
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 PredicateAnswer
impl PartialEq for PredicateAnswer
Source§impl Serialize for PredicateAnswer
impl Serialize for PredicateAnswer
impl StructuralPartialEq for PredicateAnswer
Auto Trait Implementations§
impl Forget for PredicateAnswer
impl Freeze for PredicateAnswer
impl Move for PredicateAnswer
impl RefUnwindSafe for PredicateAnswer
impl Send for PredicateAnswer
impl Sync for PredicateAnswer
impl Unpin for PredicateAnswer
impl UnsafeUnpin for PredicateAnswer
impl UnwindSafe for PredicateAnswer
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