pub struct BatchRequestOutput {
pub id: Option<String>,
pub custom_id: Option<String>,
pub response: Option<BatchRequestOutputResponse>,
pub error: Option<BatchRequestOutputError>,
}
Expand description
The per-line object of the batch output and error files
Fields§
§id: Option<String>
§custom_id: Option<String>
A developer-provided per-request id that will be used to match outputs to inputs.
response: Option<BatchRequestOutputResponse>
§error: Option<BatchRequestOutputError>
For requests that failed with a non-HTTP error, this will contain more information on the cause of the failure.
Implementations§
Source§impl BatchRequestOutput
impl BatchRequestOutput
Sourcepub fn builder() -> BatchRequestOutputBuilder<((), (), (), ())>
pub fn builder() -> BatchRequestOutputBuilder<((), (), (), ())>
Create a builder for building BatchRequestOutput
.
On the builder, call .id(...)
(optional), .custom_id(...)
(optional), .response(...)
(optional), .error(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of BatchRequestOutput
.
Trait Implementations§
Source§impl Clone for BatchRequestOutput
impl Clone for BatchRequestOutput
Source§fn clone(&self) -> BatchRequestOutput
fn clone(&self) -> BatchRequestOutput
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 BatchRequestOutput
impl Debug for BatchRequestOutput
Source§impl Default for BatchRequestOutput
impl Default for BatchRequestOutput
Source§fn default() -> BatchRequestOutput
fn default() -> BatchRequestOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchRequestOutput
impl<'de> Deserialize<'de> for BatchRequestOutput
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 BatchRequestOutput
impl PartialEq for BatchRequestOutput
Source§impl Serialize for BatchRequestOutput
impl Serialize for BatchRequestOutput
impl StructuralPartialEq for BatchRequestOutput
Auto Trait Implementations§
impl Freeze for BatchRequestOutput
impl RefUnwindSafe for BatchRequestOutput
impl Send for BatchRequestOutput
impl Sync for BatchRequestOutput
impl Unpin for BatchRequestOutput
impl UnwindSafe for BatchRequestOutput
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