pub enum TileJsonError {
InvalidJson(String),
MissingField(&'static str),
InvalidField {
field: &'static str,
reason: String,
},
}Expand description
Errors that can occur when parsing TileJSON.
Variants§
InvalidJson(String)
The JSON was malformed.
MissingField(&'static str)
A required field was missing.
InvalidField
A field had an unexpected type or value.
Trait Implementations§
Source§impl Clone for TileJsonError
impl Clone for TileJsonError
Source§fn clone(&self) -> TileJsonError
fn clone(&self) -> TileJsonError
Returns a duplicate 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 TileJsonError
impl Debug for TileJsonError
Source§impl Display for TileJsonError
impl Display for TileJsonError
Source§impl Error for TileJsonError
impl Error for TileJsonError
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()
Source§impl PartialEq for TileJsonError
impl PartialEq for TileJsonError
impl Eq for TileJsonError
impl StructuralPartialEq for TileJsonError
Auto Trait Implementations§
impl Freeze for TileJsonError
impl RefUnwindSafe for TileJsonError
impl Send for TileJsonError
impl Sync for TileJsonError
impl Unpin for TileJsonError
impl UnsafeUnpin for TileJsonError
impl UnwindSafe for TileJsonError
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