pub struct NoObjectGeneratedDetails {
pub message: String,
pub text: Option<String>,
pub response: ResponseMetadata,
pub usage: Usage,
pub finish_reason: FinishReason,
pub cause: Option<BoxError>,
}Expand description
Payload of Error::NoObjectGenerated.
Fields§
§message: StringWhy parsing failed.
text: Option<String>The text the model produced, if any.
response: ResponseMetadataResponse metadata of the last step.
usage: UsageUsage of the last step.
finish_reason: FinishReasonFinish reason of the last step.
cause: Option<BoxError>Underlying cause.
Trait Implementations§
Source§impl Debug for NoObjectGeneratedDetails
impl Debug for NoObjectGeneratedDetails
Source§impl Display for NoObjectGeneratedDetails
impl Display for NoObjectGeneratedDetails
Source§impl Error for NoObjectGeneratedDetails
impl Error for NoObjectGeneratedDetails
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for NoObjectGeneratedDetails
impl !UnwindSafe for NoObjectGeneratedDetails
impl Freeze for NoObjectGeneratedDetails
impl Send for NoObjectGeneratedDetails
impl Sync for NoObjectGeneratedDetails
impl Unpin for NoObjectGeneratedDetails
impl UnsafeUnpin for NoObjectGeneratedDetails
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