pub struct ExpiresAfterParamArgs { /* private fields */ }Expand description
Builder for ExpiresAfterParam.
Implementations§
Source§impl ExpiresAfterParamArgs
impl ExpiresAfterParamArgs
Sourcepub fn anchor<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn anchor<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Base timestamp used to calculate expiration. Currently fixed to created_at.
Sourcepub fn seconds<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
pub fn seconds<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
Number of seconds after the anchor when the session expires.
Sourcepub fn build(&self) -> Result<ExpiresAfterParam, OpenAIError>
pub fn build(&self) -> Result<ExpiresAfterParam, OpenAIError>
Trait Implementations§
Source§impl Clone for ExpiresAfterParamArgs
impl Clone for ExpiresAfterParamArgs
Source§fn clone(&self) -> ExpiresAfterParamArgs
fn clone(&self) -> ExpiresAfterParamArgs
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 ExpiresAfterParamArgs
impl Debug for ExpiresAfterParamArgs
Auto Trait Implementations§
impl Freeze for ExpiresAfterParamArgs
impl RefUnwindSafe for ExpiresAfterParamArgs
impl Send for ExpiresAfterParamArgs
impl Sync for ExpiresAfterParamArgs
impl Unpin for ExpiresAfterParamArgs
impl UnwindSafe for ExpiresAfterParamArgs
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