pub struct BatchResultLine {
pub key: String,
pub response: Option<JsonValue>,
pub error: Option<RpcStatus>,
}Expand description
One line of a batch results file ({key, response?, error?}).
Fields§
§key: StringCaller-assigned request id.
response: Option<JsonValue>generateContent response.
error: Option<RpcStatus>Error of a failed request.
Trait Implementations§
Source§impl Clone for BatchResultLine
impl Clone for BatchResultLine
Source§fn clone(&self) -> BatchResultLine
fn clone(&self) -> BatchResultLine
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 BatchResultLine
impl Debug for BatchResultLine
Source§impl Default for BatchResultLine
impl Default for BatchResultLine
Source§fn default() -> BatchResultLine
fn default() -> BatchResultLine
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchResultLine
impl<'de> Deserialize<'de> for BatchResultLine
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 BatchResultLine
impl PartialEq for BatchResultLine
impl StructuralPartialEq for BatchResultLine
Auto Trait Implementations§
impl Freeze for BatchResultLine
impl RefUnwindSafe for BatchResultLine
impl Send for BatchResultLine
impl Sync for BatchResultLine
impl Unpin for BatchResultLine
impl UnsafeUnpin for BatchResultLine
impl UnwindSafe for BatchResultLine
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