pub enum TranslateError {
UnknownModel(String),
Translation(String),
MissingField(String),
}Expand description
Errors that can occur during API format translation.
Variants§
UnknownModel(String)
The model name did not match any entry in the translation config.
Translation(String)
A translation step failed (validation, unsupported feature with strict config, etc.).
MissingField(String)
A required field was missing from the input.
Trait Implementations§
Source§impl Clone for TranslateError
impl Clone for TranslateError
Source§fn clone(&self) -> TranslateError
fn clone(&self) -> TranslateError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TranslateError
impl Debug for TranslateError
Source§impl Display for TranslateError
impl Display for TranslateError
Source§impl Error for TranslateError
impl Error for TranslateError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for TranslateError
impl RefUnwindSafe for TranslateError
impl Send for TranslateError
impl Sync for TranslateError
impl Unpin for TranslateError
impl UnsafeUnpin for TranslateError
impl UnwindSafe for TranslateError
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