pub struct GenerateContentRequest<'a> {
pub contents: Vec<Content>,
pub system_instruction: Option<Content>,
pub generation_config: Option<GenerationConfig>,
pub safety_settings: Vec<SafetySetting>,
/* private fields */
}Fields§
§contents: Vec<Content>§system_instruction: Option<Content>§generation_config: Option<GenerationConfig>§safety_settings: Vec<SafetySetting>Implementations§
Source§impl GenerateContentRequest<'_>
impl GenerateContentRequest<'_>
pub fn from_batch<'b>( b: &'b ExecuteBatch, safety: Vec<SafetySetting>, ) -> GenerateContentRequest<'b>
Trait Implementations§
Source§impl<'a> Debug for GenerateContentRequest<'a>
impl<'a> Debug for GenerateContentRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for GenerateContentRequest<'a>
impl<'a> RefUnwindSafe for GenerateContentRequest<'a>
impl<'a> Send for GenerateContentRequest<'a>
impl<'a> Sync for GenerateContentRequest<'a>
impl<'a> Unpin for GenerateContentRequest<'a>
impl<'a> UnsafeUnpin for GenerateContentRequest<'a>
impl<'a> UnwindSafe for GenerateContentRequest<'a>
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