pub struct BatchBuilder { /* private fields */ }
Expand description
Builder for synchronous batch content generation requests
Implementations§
Source§impl BatchBuilder
impl BatchBuilder
Sourcepub fn with_requests(self, requests: Vec<GenerateContentRequest>) -> Self
pub fn with_requests(self, requests: Vec<GenerateContentRequest>) -> Self
Set the requests for the batch request
Sourcepub fn with_request(self, request: GenerateContentRequest) -> Self
pub fn with_request(self, request: GenerateContentRequest) -> Self
Add a request to the batch request
Auto Trait Implementations§
impl Freeze for BatchBuilder
impl !RefUnwindSafe for BatchBuilder
impl Send for BatchBuilder
impl Sync for BatchBuilder
impl Unpin for BatchBuilder
impl !UnwindSafe for BatchBuilder
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