pub struct ModelInvokeError {
pub kind: ModelInvokeErrorKind,
pub message: String,
}Expand description
A model-invocation failure: a ModelInvokeErrorKind plus human-readable
detail (provider text included where available).
Fields§
§kind: ModelInvokeErrorKindThe failure classification.
message: StringHuman-readable failure detail.
Implementations§
Source§impl ModelInvokeError
impl ModelInvokeError
Sourcepub fn new(kind: ModelInvokeErrorKind, message: impl Into<String>) -> Self
pub fn new(kind: ModelInvokeErrorKind, message: impl Into<String>) -> Self
Assembles an error from its kind and message.
Sourcepub fn kind(&self) -> &ModelInvokeErrorKind
pub fn kind(&self) -> &ModelInvokeErrorKind
The failure classification.
Trait Implementations§
Source§impl Debug for ModelInvokeError
impl Debug for ModelInvokeError
Source§impl Display for ModelInvokeError
impl Display for ModelInvokeError
Source§impl Error for ModelInvokeError
impl Error for ModelInvokeError
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()
Auto Trait Implementations§
impl Freeze for ModelInvokeError
impl RefUnwindSafe for ModelInvokeError
impl Send for ModelInvokeError
impl Sync for ModelInvokeError
impl Unpin for ModelInvokeError
impl UnsafeUnpin for ModelInvokeError
impl UnwindSafe for ModelInvokeError
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