#[non_exhaustive]pub struct CorroborateContentRequest {
pub parent: String,
pub content: Option<Content>,
pub facts: Vec<Fact>,
pub parameters: Option<Parameters>,
/* private fields */
}Available on crate feature
vertex-rag-service only.Expand description
Request 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.parent: StringRequired. The resource name of the Location from which to corroborate text.
The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}.
content: Option<Content>Optional. Input content to corroborate, only text format is supported for now.
facts: Vec<Fact>Optional. Facts used to generate the text can also be used to corroborate the text.
parameters: Option<Parameters>Optional. Parameters that can be set to override default settings per request.
Implementations§
Source§impl CorroborateContentRequest
impl CorroborateContentRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_content<T>(self, v: T) -> Self
pub fn set_content<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_content<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_content<T>(self, v: Option<T>) -> Self
Sourcepub fn set_parameters<T>(self, v: T) -> Selfwhere
T: Into<Parameters>,
pub fn set_parameters<T>(self, v: T) -> Selfwhere
T: Into<Parameters>,
Sets the value of parameters.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::corroborate_content_request::Parameters;
let x = CorroborateContentRequest::new().set_parameters(Parameters::default()/* use setters */);Sourcepub fn set_or_clear_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<Parameters>,
pub fn set_or_clear_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<Parameters>,
Sets or clears the value of parameters.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::corroborate_content_request::Parameters;
let x = CorroborateContentRequest::new().set_or_clear_parameters(Some(Parameters::default()/* use setters */));
let x = CorroborateContentRequest::new().set_or_clear_parameters(None::<Parameters>);Trait Implementations§
Source§impl Clone for CorroborateContentRequest
impl Clone for CorroborateContentRequest
Source§fn clone(&self) -> CorroborateContentRequest
fn clone(&self) -> CorroborateContentRequest
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 CorroborateContentRequest
impl Debug for CorroborateContentRequest
Source§impl Default for CorroborateContentRequest
impl Default for CorroborateContentRequest
Source§fn default() -> CorroborateContentRequest
fn default() -> CorroborateContentRequest
Returns the “default value” for a type. Read more
Source§impl Message for CorroborateContentRequest
impl Message for CorroborateContentRequest
impl StructuralPartialEq for CorroborateContentRequest
Auto Trait Implementations§
impl Freeze for CorroborateContentRequest
impl RefUnwindSafe for CorroborateContentRequest
impl Send for CorroborateContentRequest
impl Sync for CorroborateContentRequest
impl Unpin for CorroborateContentRequest
impl UnwindSafe for CorroborateContentRequest
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