pub struct BatchError {
pub code: Option<String>,
pub line: Option<u64>,
pub message: Option<String>,
pub param: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 batch 的单条错误。
Fields§
§code: Option<String>错误码。
line: Option<u64>输入文件中的行号。
message: Option<String>错误消息。
param: Option<String>相关参数名。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for BatchError
impl Clone for BatchError
Source§fn clone(&self) -> BatchError
fn clone(&self) -> BatchError
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 BatchError
impl Debug for BatchError
Source§impl Default for BatchError
impl Default for BatchError
Source§fn default() -> BatchError
fn default() -> BatchError
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchError
impl<'de> Deserialize<'de> for BatchError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BatchError
impl PartialEq for BatchError
Source§impl Serialize for BatchError
impl Serialize for BatchError
impl Eq for BatchError
impl StructuralPartialEq for BatchError
Auto Trait Implementations§
impl Freeze for BatchError
impl RefUnwindSafe for BatchError
impl Send for BatchError
impl Sync for BatchError
impl Unpin for BatchError
impl UnsafeUnpin for BatchError
impl UnwindSafe for BatchError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.