#[non_exhaustive]pub struct CorroborateContentResponse {
pub corroboration_score: Option<f32>,
pub claims: Vec<Claim>,
/* private fields */
}Available on crate feature
vertex-rag-service only.Expand description
Response message for CorroborateContent.
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.corroboration_score: Option<f32>Confidence score of corroborating content. Value is [0,1] with 1 is the most confidence.
claims: Vec<Claim>Claims that are extracted from the input content and facts that support the claims.
Implementations§
Source§impl CorroborateContentResponse
impl CorroborateContentResponse
pub fn new() -> Self
Sourcepub fn set_corroboration_score<T>(self, v: T) -> Self
pub fn set_corroboration_score<T>(self, v: T) -> Self
Sets the value of corroboration_score.
§Example
ⓘ
let x = CorroborateContentResponse::new().set_corroboration_score(42.0);Sourcepub fn set_or_clear_corroboration_score<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_corroboration_score<T>(self, v: Option<T>) -> Self
Sets or clears the value of corroboration_score.
§Example
ⓘ
let x = CorroborateContentResponse::new().set_or_clear_corroboration_score(Some(42.0));
let x = CorroborateContentResponse::new().set_or_clear_corroboration_score(None::<f32>);Sourcepub fn set_claims<T, V>(self, v: T) -> Self
pub fn set_claims<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for CorroborateContentResponse
impl Clone for CorroborateContentResponse
Source§fn clone(&self) -> CorroborateContentResponse
fn clone(&self) -> CorroborateContentResponse
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 CorroborateContentResponse
impl Debug for CorroborateContentResponse
Source§impl Default for CorroborateContentResponse
impl Default for CorroborateContentResponse
Source§fn default() -> CorroborateContentResponse
fn default() -> CorroborateContentResponse
Returns the “default value” for a type. Read more
Source§impl Message for CorroborateContentResponse
impl Message for CorroborateContentResponse
impl StructuralPartialEq for CorroborateContentResponse
Auto Trait Implementations§
impl Freeze for CorroborateContentResponse
impl RefUnwindSafe for CorroborateContentResponse
impl Send for CorroborateContentResponse
impl Sync for CorroborateContentResponse
impl Unpin for CorroborateContentResponse
impl UnwindSafe for CorroborateContentResponse
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