pub struct UserFacingErrorContext {
pub provider: Option<String>,
pub model_id: Option<String>,
pub retry_after: Option<u64>,
}Fields§
§provider: Option<String>§model_id: Option<String>§retry_after: Option<u64>Implementations§
Source§impl UserFacingErrorContext
impl UserFacingErrorContext
pub fn with_provider(self, provider: impl Into<String>) -> Self
pub fn with_model_id(self, model_id: impl Into<String>) -> Self
pub fn with_retry_after(self, retry_after: u64) -> Self
Trait Implementations§
Source§impl Clone for UserFacingErrorContext
impl Clone for UserFacingErrorContext
Source§impl Debug for UserFacingErrorContext
impl Debug for UserFacingErrorContext
Auto Trait Implementations§
impl Freeze for UserFacingErrorContext
impl RefUnwindSafe for UserFacingErrorContext
impl Send for UserFacingErrorContext
impl Sync for UserFacingErrorContext
impl Unpin for UserFacingErrorContext
impl UnsafeUnpin for UserFacingErrorContext
impl UnwindSafe for UserFacingErrorContext
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