pub struct BatchError {
pub code: Option<String>,
pub message: Option<String>,
pub param: Option<String>,
pub line: Option<u64>,
}
Fields§
§code: Option<String>
An error code identifying the error type.
message: Option<String>
A human-readable message providing more details about the error.
param: Option<String>
The name of the parameter that caused the error, if applicable.
line: Option<u64>
The line number of the input file where the error occurred, if applicable.
Implementations§
Source§impl BatchError
impl BatchError
Sourcepub fn builder() -> BatchErrorBuilder<((), (), (), ())>
pub fn builder() -> BatchErrorBuilder<((), (), (), ())>
Create a builder for building BatchError
.
On the builder, call .code(...)
(optional), .message(...)
(optional), .param(...)
(optional), .line(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of BatchError
.
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 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 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