#[non_exhaustive]pub struct SummarizationVerbosityResult {
pub score: Option<f32>,
pub explanation: String,
pub confidence: Option<f32>,
/* private fields */
}Available on crate feature
evaluation-service only.Expand description
Spec for summarization verbosity 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. Summarization Verbosity score.
explanation: StringOutput only. Explanation for summarization verbosity score.
confidence: Option<f32>Output only. Confidence for summarization verbosity score.
Implementations§
Source§impl SummarizationVerbosityResult
impl SummarizationVerbosityResult
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
Sets the value of explanation.
§Example
ⓘ
let x = SummarizationVerbosityResult::new().set_explanation("example");Sourcepub fn set_confidence<T>(self, v: T) -> Self
pub fn set_confidence<T>(self, v: T) -> Self
Sets the value of confidence.
§Example
ⓘ
let x = SummarizationVerbosityResult::new().set_confidence(42.0);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 = SummarizationVerbosityResult::new().set_or_clear_confidence(Some(42.0));
let x = SummarizationVerbosityResult::new().set_or_clear_confidence(None::<f32>);Trait Implementations§
Source§impl Clone for SummarizationVerbosityResult
impl Clone for SummarizationVerbosityResult
Source§fn clone(&self) -> SummarizationVerbosityResult
fn clone(&self) -> SummarizationVerbosityResult
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 SummarizationVerbosityResult
impl Debug for SummarizationVerbosityResult
Source§impl Default for SummarizationVerbosityResult
impl Default for SummarizationVerbosityResult
Source§fn default() -> SummarizationVerbosityResult
fn default() -> SummarizationVerbosityResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for SummarizationVerbosityResult
impl PartialEq for SummarizationVerbosityResult
Source§fn eq(&self, other: &SummarizationVerbosityResult) -> bool
fn eq(&self, other: &SummarizationVerbosityResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SummarizationVerbosityResult
Auto Trait Implementations§
impl Freeze for SummarizationVerbosityResult
impl RefUnwindSafe for SummarizationVerbosityResult
impl Send for SummarizationVerbosityResult
impl Sync for SummarizationVerbosityResult
impl Unpin for SummarizationVerbosityResult
impl UnwindSafe for SummarizationVerbosityResult
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