pub(crate) enum DocumentTargetError {
UnknownFormat {
path: PathBuf,
},
MissingKey {
path: PathBuf,
key: ManagedPath,
},
NotString {
path: PathBuf,
key: ManagedPath,
},
Document {
path: PathBuf,
source: DocumentError,
},
}Expand description
A document cannot hold or take the version.
Variants§
UnknownFormat
The file extension names no supported format.
MissingKey
The key path is absent from the document.
NotString
The value at the key path is not a string.
Document
The document cannot be read or rewritten.
Trait Implementations§
Source§impl Debug for DocumentTargetError
impl Debug for DocumentTargetError
Source§impl Display for DocumentTargetError
impl Display for DocumentTargetError
Source§impl Error for DocumentTargetError
impl Error for DocumentTargetError
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<DocumentTargetError> for HolderError
impl From<DocumentTargetError> for HolderError
Source§fn from(source: DocumentTargetError) -> Self
fn from(source: DocumentTargetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocumentTargetError
impl RefUnwindSafe for DocumentTargetError
impl Send for DocumentTargetError
impl Sync for DocumentTargetError
impl Unpin for DocumentTargetError
impl UnsafeUnpin for DocumentTargetError
impl UnwindSafe for DocumentTargetError
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