#[non_exhaustive]pub struct GroundingSpec {
pub grounding_sources: Vec<GroundingSource>,
/* private fields */
}Available on crate feature
grounded-generation-service only.Expand description
Grounding specification.
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.grounding_sources: Vec<GroundingSource>Grounding sources.
Implementations§
Source§impl GroundingSpec
impl GroundingSpec
pub fn new() -> Self
Sourcepub fn set_grounding_sources<T, V>(self, v: T) -> Self
pub fn set_grounding_sources<T, V>(self, v: T) -> Self
Sets the value of grounding_sources.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::generate_grounded_content_request::GroundingSource;
let x = GroundingSpec::new()
.set_grounding_sources([
GroundingSource::default()/* use setters */,
GroundingSource::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for GroundingSpec
impl Clone for GroundingSpec
Source§fn clone(&self) -> GroundingSpec
fn clone(&self) -> GroundingSpec
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 GroundingSpec
impl Debug for GroundingSpec
Source§impl Default for GroundingSpec
impl Default for GroundingSpec
Source§fn default() -> GroundingSpec
fn default() -> GroundingSpec
Returns the “default value” for a type. Read more
Source§impl Message for GroundingSpec
impl Message for GroundingSpec
Source§impl PartialEq for GroundingSpec
impl PartialEq for GroundingSpec
impl StructuralPartialEq for GroundingSpec
Auto Trait Implementations§
impl Freeze for GroundingSpec
impl RefUnwindSafe for GroundingSpec
impl Send for GroundingSpec
impl Sync for GroundingSpec
impl Unpin for GroundingSpec
impl UnwindSafe for GroundingSpec
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