pub struct ApiError {
pub raw_code: i32,
pub endpoint: Cow<'static, str>,
pub message: String,
pub source: Option<Box<dyn Error + Send + Sync>>,
pub code: ErrorCode,
pub ctx: Box<ErrorContext>,
}Expand description
API 错误
Fields§
§raw_code: i32原始错误码(飞书业务码或 HTTP 非 2xx 合成 status;与 RawResponse.code 同为双域共槽)
endpoint: Cow<'static, str>API 端点
message: String错误消息
source: Option<Box<dyn Error + Send + Sync>>源错误
code: ErrorCode错误码
ctx: Box<ErrorContext>错误上下文
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ApiError
impl !UnwindSafe for ApiError
impl Freeze for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
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