pub struct ErrorHandlingAdvice {
pub message: String,
pub category: ErrorHandlingCategory,
pub error_code: Option<LarkErrorCode>,
pub is_recoverable: bool,
pub is_retryable: bool,
pub retry_delay: Option<u64>,
pub actions: Vec<String>,
pub help_url: Option<String>,
}Expand description
错误处理建议
Fields§
§message: String错误消息
category: ErrorHandlingCategory错误类别
error_code: Option<LarkErrorCode>错误码(如果是API错误)
is_recoverable: bool是否可恢复
is_retryable: bool是否可重试
retry_delay: Option<u64>建议的重试延迟(秒)
actions: Vec<String>建议的操作
help_url: Option<String>帮助文档链接
Trait Implementations§
Source§impl Clone for ErrorHandlingAdvice
impl Clone for ErrorHandlingAdvice
Source§fn clone(&self) -> ErrorHandlingAdvice
fn clone(&self) -> ErrorHandlingAdvice
Returns a duplicate of the value. Read more
1.0.0 · 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 ErrorHandlingAdvice
impl Debug for ErrorHandlingAdvice
Auto Trait Implementations§
impl Freeze for ErrorHandlingAdvice
impl RefUnwindSafe for ErrorHandlingAdvice
impl Send for ErrorHandlingAdvice
impl Sync for ErrorHandlingAdvice
impl Unpin for ErrorHandlingAdvice
impl UnwindSafe for ErrorHandlingAdvice
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