pub enum MessageFormatError {
XmlFormat(Error),
SourceEncoding(Utf8Error),
VersionMismatch {
source: ValueSource,
target: String,
},
MissingRequiredValue {
source: ValueSource,
name: String,
},
ValueTypeMismatch {
source: ValueSource,
name: String,
expected: String,
found: String,
},
InvalidValue {
source: ValueSource,
name: String,
value: String,
},
InvalidValueForType {
for_type: String,
value: String,
},
}
Variants§
XmlFormat(Error)
SourceEncoding(Utf8Error)
VersionMismatch
MissingRequiredValue
ValueTypeMismatch
InvalidValue
InvalidValueForType
Trait Implementations§
Source§impl Debug for MessageFormatError
impl Debug for MessageFormatError
Source§impl Display for MessageFormatError
impl Display for MessageFormatError
Source§impl Error for MessageFormatError
impl Error for MessageFormatError
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<Error> for MessageFormatError
impl From<Error> for MessageFormatError
Source§impl From<MessageFormatError> for Error
impl From<MessageFormatError> for Error
Source§fn from(source: MessageFormatError) -> Self
fn from(source: MessageFormatError) -> Self
Converts to this type from the input type.
Source§impl<T> From<MessageFormatError> for Result<T, Error>
impl<T> From<MessageFormatError> for Result<T, Error>
Source§fn from(e: MessageFormatError) -> Self
fn from(e: MessageFormatError) -> Self
Converts to this type from the input type.
Source§impl<T> From<MessageFormatError> for Result<T, MessageFormatError>
impl<T> From<MessageFormatError> for Result<T, MessageFormatError>
Source§fn from(e: MessageFormatError) -> Self
fn from(e: MessageFormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageFormatError
impl !RefUnwindSafe for MessageFormatError
impl Send for MessageFormatError
impl Sync for MessageFormatError
impl Unpin for MessageFormatError
impl !UnwindSafe for MessageFormatError
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