#[non_exhaustive]pub struct GroundedGenerationContent {
pub role: String,
pub parts: Vec<Part>,
/* private fields */
}Available on crate feature
grounded-generation-service only.Expand description
Base structured datatype containing multi-part content of a message.
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.role: StringProducer of the content. Must be either user or model.
Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
parts: Vec<Part>Ordered Parts that constitute a single message.
Implementations§
Trait Implementations§
Source§impl Clone for GroundedGenerationContent
impl Clone for GroundedGenerationContent
Source§fn clone(&self) -> GroundedGenerationContent
fn clone(&self) -> GroundedGenerationContent
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 GroundedGenerationContent
impl Debug for GroundedGenerationContent
Source§impl Default for GroundedGenerationContent
impl Default for GroundedGenerationContent
Source§fn default() -> GroundedGenerationContent
fn default() -> GroundedGenerationContent
Returns the “default value” for a type. Read more
Source§impl Message for GroundedGenerationContent
impl Message for GroundedGenerationContent
impl StructuralPartialEq for GroundedGenerationContent
Auto Trait Implementations§
impl Freeze for GroundedGenerationContent
impl RefUnwindSafe for GroundedGenerationContent
impl Send for GroundedGenerationContent
impl Sync for GroundedGenerationContent
impl Unpin for GroundedGenerationContent
impl UnwindSafe for GroundedGenerationContent
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