pub enum MappingError {
Empty,
TooMany(usize),
Duplicated {
endpoint: String,
},
Endpoint(EndpointError),
TooShortForObject(String),
Schema(SchemaError),
}Expand description
Error returned by the interface mappings.
Variants§
Empty
An interface must have at least one mapping.
TooMany(usize)
An interface can have at max MAX_INTERFACE_MAPPINGS mappings.
Duplicated
The endpoint of all the mappings of an interface must have an unique endpoint.
This includes the parameters.
Endpoint(EndpointError)
Couldn’t parse the mapping’s endpoint
TooShortForObject(String)
The object interface endpoints should have at least 2 levels.
Schema(SchemaError)
The interface schema is invalid for mapping.
Trait Implementations§
Source§impl Debug for MappingError
impl Debug for MappingError
Source§impl Display for MappingError
impl Display for MappingError
Source§impl Error for MappingError
impl Error for MappingError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<EndpointError> for MappingError
impl From<EndpointError> for MappingError
Source§fn from(source: EndpointError) -> Self
fn from(source: EndpointError) -> Self
Converts to this type from the input type.
Source§impl From<MappingError> for Error
impl From<MappingError> for Error
Source§fn from(source: MappingError) -> Self
fn from(source: MappingError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for MappingError
impl From<SchemaError> for MappingError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MappingError
impl RefUnwindSafe for MappingError
impl Send for MappingError
impl Sync for MappingError
impl Unpin for MappingError
impl UnsafeUnpin for MappingError
impl UnwindSafe for MappingError
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