#[non_exhaustive]pub struct GenerativeSource {
pub snippets: Vec<Snippet>,
/* private fields */
}Available on crate feature
participants only.Expand description
Details about source of Generative answer.
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.snippets: Vec<Snippet>All snippets used for this Generative Prediction, with their source URI and data.
Implementations§
Source§impl GenerativeSource
impl GenerativeSource
pub fn new() -> Self
Sourcepub fn set_snippets<T, V>(self, v: T) -> Self
pub fn set_snippets<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GenerativeSource
impl Clone for GenerativeSource
Source§fn clone(&self) -> GenerativeSource
fn clone(&self) -> GenerativeSource
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 GenerativeSource
impl Debug for GenerativeSource
Source§impl Default for GenerativeSource
impl Default for GenerativeSource
Source§fn default() -> GenerativeSource
fn default() -> GenerativeSource
Returns the “default value” for a type. Read more
Source§impl Message for GenerativeSource
impl Message for GenerativeSource
Source§impl PartialEq for GenerativeSource
impl PartialEq for GenerativeSource
impl StructuralPartialEq for GenerativeSource
Auto Trait Implementations§
impl Freeze for GenerativeSource
impl RefUnwindSafe for GenerativeSource
impl Send for GenerativeSource
impl Sync for GenerativeSource
impl Unpin for GenerativeSource
impl UnwindSafe for GenerativeSource
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