pub struct MongoDbError {
pub code: Option<String>,
pub count: Option<i32>,
pub message: Option<String>,
pub type_: Option<Type>,
}
Expand description
Describes an error or warning that occurred during a MongoDB migration
Fields§
§code: Option<String>
The non-localized, machine-readable code that describes the error or warning
count: Option<i32>
The number of times the error or warning has occurred
message: Option<String>
The localized, human-readable message that describes the error or warning
type_: Option<Type>
The type of error or warning
Implementations§
source§impl MongoDbError
impl MongoDbError
Trait Implementations§
source§impl Clone for MongoDbError
impl Clone for MongoDbError
source§fn clone(&self) -> MongoDbError
fn clone(&self) -> MongoDbError
Returns a copy 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 MongoDbError
impl Debug for MongoDbError
source§impl Default for MongoDbError
impl Default for MongoDbError
source§fn default() -> MongoDbError
fn default() -> MongoDbError
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MongoDbError
impl<'de> Deserialize<'de> for MongoDbError
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<MongoDbError> for MongoDbError
impl PartialEq<MongoDbError> for MongoDbError
source§fn eq(&self, other: &MongoDbError) -> bool
fn eq(&self, other: &MongoDbError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MongoDbError
impl Serialize for MongoDbError
impl StructuralPartialEq for MongoDbError
Auto Trait Implementations§
impl RefUnwindSafe for MongoDbError
impl Send for MongoDbError
impl Sync for MongoDbError
impl Unpin for MongoDbError
impl UnwindSafe for MongoDbError
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