pub struct StructuredOutputError {
pub kind: StructuredOutputErrorKind,
pub message: String,
pub line: Option<usize>,
pub column: Option<usize>,
}Expand description
A local failure while decoding a model response into a Rust type.
This error never includes the complete model output, which may contain sensitive application data. Line and column are retained for diagnostics.
Fields§
§kind: StructuredOutputErrorKindStable failure category.
message: StringSafe diagnostic message.
line: Option<usize>One-based JSON line, when parsing reached textual input.
column: Option<usize>One-based JSON column, when parsing reached textual input.
Trait Implementations§
Source§impl Clone for StructuredOutputError
impl Clone for StructuredOutputError
Source§fn clone(&self) -> StructuredOutputError
fn clone(&self) -> StructuredOutputError
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 StructuredOutputError
impl Debug for StructuredOutputError
Source§impl<'de> Deserialize<'de> for StructuredOutputError
impl<'de> Deserialize<'de> for StructuredOutputError
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 Display for StructuredOutputError
impl Display for StructuredOutputError
impl Eq for StructuredOutputError
Source§impl Error for StructuredOutputError
impl Error for StructuredOutputError
1.30.0 · 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()
Source§impl PartialEq for StructuredOutputError
impl PartialEq for StructuredOutputError
Source§impl Serialize for StructuredOutputError
impl Serialize for StructuredOutputError
impl StructuralPartialEq for StructuredOutputError
Auto Trait Implementations§
impl Freeze for StructuredOutputError
impl RefUnwindSafe for StructuredOutputError
impl Send for StructuredOutputError
impl Sync for StructuredOutputError
impl Unpin for StructuredOutputError
impl UnsafeUnpin for StructuredOutputError
impl UnwindSafe for StructuredOutputError
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