pub struct RunObjectLastError {
pub code: RunObjectLastErrorCode,
pub message: String,
}
Expand description
The last error associated with this run. Will be null
if there are no errors.
Fields§
§code: RunObjectLastErrorCode
One of server_error
, rate_limit_exceeded
, or invalid_prompt
.
message: String
A human-readable description of the error.
Implementations§
Trait Implementations§
Source§impl Clone for RunObjectLastError
impl Clone for RunObjectLastError
Source§fn clone(&self) -> RunObjectLastError
fn clone(&self) -> RunObjectLastError
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 RunObjectLastError
impl Debug for RunObjectLastError
Source§impl<'de> Deserialize<'de> for RunObjectLastError
impl<'de> Deserialize<'de> for RunObjectLastError
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 RunObjectLastError
impl PartialEq for RunObjectLastError
Source§impl Serialize for RunObjectLastError
impl Serialize for RunObjectLastError
impl StructuralPartialEq for RunObjectLastError
Auto Trait Implementations§
impl Freeze for RunObjectLastError
impl RefUnwindSafe for RunObjectLastError
impl Send for RunObjectLastError
impl Sync for RunObjectLastError
impl Unpin for RunObjectLastError
impl UnwindSafe for RunObjectLastError
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