pub struct BatchRequestOutputResponse {
pub status_code: Option<i64>,
pub request_id: Option<String>,
pub body: Option<IndexMap<String, Value>>,
}
Fields§
§status_code: Option<i64>
The HTTP status code of the response
request_id: Option<String>
An unique identifier for the OpenAI API request. Please include this request ID when contacting support.
body: Option<IndexMap<String, Value>>
The JSON body of the response
Implementations§
Source§impl BatchRequestOutputResponse
impl BatchRequestOutputResponse
Sourcepub fn builder() -> BatchRequestOutputResponseBuilder<((), (), ())>
pub fn builder() -> BatchRequestOutputResponseBuilder<((), (), ())>
Create a builder for building BatchRequestOutputResponse
.
On the builder, call .status_code(...)
(optional), .request_id(...)
(optional), .body(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of BatchRequestOutputResponse
.
Trait Implementations§
Source§impl Clone for BatchRequestOutputResponse
impl Clone for BatchRequestOutputResponse
Source§fn clone(&self) -> BatchRequestOutputResponse
fn clone(&self) -> BatchRequestOutputResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BatchRequestOutputResponse
impl Debug for BatchRequestOutputResponse
Source§impl Default for BatchRequestOutputResponse
impl Default for BatchRequestOutputResponse
Source§fn default() -> BatchRequestOutputResponse
fn default() -> BatchRequestOutputResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchRequestOutputResponse
impl<'de> Deserialize<'de> for BatchRequestOutputResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BatchRequestOutputResponse
impl PartialEq for BatchRequestOutputResponse
Source§fn eq(&self, other: &BatchRequestOutputResponse) -> bool
fn eq(&self, other: &BatchRequestOutputResponse) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for BatchRequestOutputResponse
Auto Trait Implementations§
impl Freeze for BatchRequestOutputResponse
impl RefUnwindSafe for BatchRequestOutputResponse
impl Send for BatchRequestOutputResponse
impl Sync for BatchRequestOutputResponse
impl Unpin for BatchRequestOutputResponse
impl UnwindSafe for BatchRequestOutputResponse
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