pub struct ResponseObject { /* private fields */ }Implementations§
Source§impl ResponseObject
impl ResponseObject
pub fn created_at<T>(self, value: T) -> Self
pub fn error<T>(self, value: T) -> Self
pub fn id<T>(self, value: T) -> Self
pub fn job_id<T>(self, value: T) -> Self
pub fn model<T>(self, value: T) -> Self
pub fn object<T>(self, value: T) -> Self
pub fn output<T>(self, value: T) -> Self
pub fn previous_response_id<T>(self, value: T) -> Self
pub fn receipt<T>(self, value: T) -> Self
pub fn status<T>(self, value: T) -> Self
pub fn usage<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for ResponseObject
impl Clone for ResponseObject
Source§fn clone(&self) -> ResponseObject
fn clone(&self) -> ResponseObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResponseObject
impl Debug for ResponseObject
Source§impl Default for ResponseObject
impl Default for ResponseObject
Source§impl From<ResponseObject> for ResponseObject
impl From<ResponseObject> for ResponseObject
Source§fn from(value: ResponseObject) -> Self
fn from(value: ResponseObject) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ResponseObject> for ResponseObject
impl TryFrom<ResponseObject> for ResponseObject
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ResponseObject) -> Result<Self, ConversionError>
fn try_from(value: ResponseObject) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ResponseObject
impl RefUnwindSafe for ResponseObject
impl Send for ResponseObject
impl Sync for ResponseObject
impl Unpin for ResponseObject
impl UnsafeUnpin for ResponseObject
impl UnwindSafe for ResponseObject
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