pub struct CreateContainerRequestArgs { /* private fields */ }Expand description
Builder for CreateContainerRequest.
Implementations§
Source§impl CreateContainerRequestArgs
impl CreateContainerRequestArgs
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Name of the container to create.
Sourcepub fn file_ids<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn file_ids<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
IDs of files to copy to the container.
Sourcepub fn expires_after<VALUE: Into<ContainerExpiresAfter>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn expires_after<VALUE: Into<ContainerExpiresAfter>>( &mut self, value: VALUE, ) -> &mut Self
Container expiration time in minutes relative to the ‘anchor’ time.
Sourcepub fn build(&self) -> Result<CreateContainerRequest, OpenAIError>
pub fn build(&self) -> Result<CreateContainerRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateContainerRequestArgs
impl Clone for CreateContainerRequestArgs
Source§fn clone(&self) -> CreateContainerRequestArgs
fn clone(&self) -> CreateContainerRequestArgs
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 CreateContainerRequestArgs
impl Debug for CreateContainerRequestArgs
Auto Trait Implementations§
impl Freeze for CreateContainerRequestArgs
impl RefUnwindSafe for CreateContainerRequestArgs
impl Send for CreateContainerRequestArgs
impl Sync for CreateContainerRequestArgs
impl Unpin for CreateContainerRequestArgs
impl UnwindSafe for CreateContainerRequestArgs
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