pub enum ValidationIssue {
MissingRequiredKey(String),
InvalidBounds(String),
InvalidCenter(String),
ZoomOutOfRange {
value: i64,
},
MinZoomGreaterThanMaxZoom {
minzoom: u8,
maxzoom: u8,
},
UnknownFormat(String),
InvalidType(String),
}Expand description
A single MBTiles 1.3 metadata conformance finding.
Each variant carries enough context to render an actionable message via
its Display implementation.
Variants§
MissingRequiredKey(String)
A required (name/format) or recommended (bounds/minzoom/
maxzoom) metadata key was absent. The string is the key name.
InvalidBounds(String)
The bounds value is malformed or out of the WGS84 range. The string
describes the specific problem.
InvalidCenter(String)
The center value is malformed, out of range, or lies outside
bounds. The string describes the specific problem.
ZoomOutOfRange
A zoom value lies outside the supported 0..=30 range.
Fields
MinZoomGreaterThanMaxZoom
minzoom is strictly greater than maxzoom.
UnknownFormat(String)
The format value is not one of the MBTiles 1.3 recognised formats
(pbf, jpg, png, webp). The string is the offending value.
InvalidType(String)
The type value is not one of overlay / baselayer. The string is
the offending value.
Implementations§
Source§impl ValidationIssue
impl ValidationIssue
Sourcepub fn severity(&self) -> IssueSeverity
pub fn severity(&self) -> IssueSeverity
Return the IssueSeverity of this issue per the MBTiles 1.3 policy.
Trait Implementations§
Source§impl Clone for ValidationIssue
impl Clone for ValidationIssue
Source§fn clone(&self) -> ValidationIssue
fn clone(&self) -> ValidationIssue
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationIssue
impl Debug for ValidationIssue
Source§impl Display for ValidationIssue
impl Display for ValidationIssue
Source§impl PartialEq for ValidationIssue
impl PartialEq for ValidationIssue
Source§fn eq(&self, other: &ValidationIssue) -> bool
fn eq(&self, other: &ValidationIssue) -> bool
self and other values to be equal, and is used by ==.