#[non_exhaustive]pub struct PlaceAnswerSources {
pub review_snippets: Vec<ReviewSnippet>,
/* private fields */
}Available on crate feature
prediction-service only.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.review_snippets: Vec<ReviewSnippet>Snippets of reviews that are used to generate the answer.
Implementations§
Source§impl PlaceAnswerSources
impl PlaceAnswerSources
pub fn new() -> Self
Sourcepub fn set_review_snippets<T, V>(self, v: T) -> Self
pub fn set_review_snippets<T, V>(self, v: T) -> Self
Sets the value of review_snippets.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::grounding_chunk::maps::place_answer_sources::ReviewSnippet;
let x = PlaceAnswerSources::new()
.set_review_snippets([
ReviewSnippet::default()/* use setters */,
ReviewSnippet::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for PlaceAnswerSources
impl Clone for PlaceAnswerSources
Source§fn clone(&self) -> PlaceAnswerSources
fn clone(&self) -> PlaceAnswerSources
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 PlaceAnswerSources
impl Debug for PlaceAnswerSources
Source§impl Default for PlaceAnswerSources
impl Default for PlaceAnswerSources
Source§fn default() -> PlaceAnswerSources
fn default() -> PlaceAnswerSources
Returns the “default value” for a type. Read more
Source§impl Message for PlaceAnswerSources
impl Message for PlaceAnswerSources
Source§impl PartialEq for PlaceAnswerSources
impl PartialEq for PlaceAnswerSources
impl StructuralPartialEq for PlaceAnswerSources
Auto Trait Implementations§
impl Freeze for PlaceAnswerSources
impl RefUnwindSafe for PlaceAnswerSources
impl Send for PlaceAnswerSources
impl Sync for PlaceAnswerSources
impl Unpin for PlaceAnswerSources
impl UnwindSafe for PlaceAnswerSources
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