#[non_exhaustive]pub struct FluencyResult {
pub score: Option<f32>,
pub explanation: String,
pub confidence: Option<f32>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for fluency result.
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.score: Option<f32>Output only. Fluency score.
explanation: StringOutput only. Explanation for fluency score.
confidence: Option<f32>Output only. Confidence for fluency score.
Implementations§
Source§impl FluencyResult
impl FluencyResult
pub fn new() -> Self
Sourcepub fn set_or_clear_score<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_score<T>(self, v: Option<T>) -> Self
Sourcepub fn set_explanation<T: Into<String>>(self, v: T) -> Self
pub fn set_explanation<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_confidence<T>(self, v: T) -> Self
pub fn set_confidence<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_confidence<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_confidence<T>(self, v: Option<T>) -> Self
Sets or clears the value of confidence.
§Example
ⓘ
let x = FluencyResult::new().set_or_clear_confidence(Some(42.0));
let x = FluencyResult::new().set_or_clear_confidence(None::<f32>);Trait Implementations§
Source§impl Clone for FluencyResult
impl Clone for FluencyResult
Source§fn clone(&self) -> FluencyResult
fn clone(&self) -> FluencyResult
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 FluencyResult
impl Debug for FluencyResult
Source§impl Default for FluencyResult
impl Default for FluencyResult
Source§fn default() -> FluencyResult
fn default() -> FluencyResult
Returns the “default value” for a type. Read more
Source§impl Message for FluencyResult
impl Message for FluencyResult
Source§impl PartialEq for FluencyResult
impl PartialEq for FluencyResult
impl StructuralPartialEq for FluencyResult
Auto Trait Implementations§
impl Freeze for FluencyResult
impl RefUnwindSafe for FluencyResult
impl Send for FluencyResult
impl Sync for FluencyResult
impl Unpin for FluencyResult
impl UnwindSafe for FluencyResult
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