pub enum ErrorKind {
SerializeError(String),
DeserializeError(String),
ValidateError(i64, String),
}Expand description
列举 afastdata 可能产生的错误类型。
Enumerates the kinds of errors produced by afastdata.
Variants§
SerializeError(String)
序列化失败,携带文本消息。
Serialization failure with a textual message.
DeserializeError(String)
反序列化失败,携带文本消息。
Deserialization failure with a textual message.
ValidateError(i64, String)
验证失败,包含无效值和错误信息。
Validation failure, carrying the invalid value and a message.
Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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