pub enum HeatmapError {
QueryElement {
alias: String,
selector: String,
},
QueryAttribute {
attr: String,
on_alias: String,
},
ParseAttribute {
attr: String,
on_alias: String,
},
UnknownNodeFormat,
}
Expand description
A collection of error variants related to parsing a Github contribution heatmap.
Variants§
QueryElement
Represents a failure to query an element in the scraped document. This is usually caused by an update to the Github front end.
Fields
QueryAttribute
Represents a failure to select an attribute on an HTML Element. This is usually caused by an update to the Github front end.
Fields
ParseAttribute
Represents a failure to parse an attribute on an HTML Element. For example, attempting to parse a Rect element’s y attribute as a usize. This is usually caused by an update to the Github front end.
Fields
UnknownNodeFormat
Represents a failure to parse Heatmap node sizes from the SVG element belonging to the Github profile page. Elements are typically distanced either 13px or 15px depending on the density of the profile page (contains README.md, etc).
Trait Implementations§
Source§impl Debug for HeatmapError
impl Debug for HeatmapError
Source§impl Display for HeatmapError
impl Display for HeatmapError
Source§impl Error for HeatmapError
impl Error for HeatmapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for HeatmapError
impl PartialEq for HeatmapError
impl Eq for HeatmapError
impl StructuralPartialEq for HeatmapError
Auto Trait Implementations§
impl Freeze for HeatmapError
impl RefUnwindSafe for HeatmapError
impl Send for HeatmapError
impl Sync for HeatmapError
impl Unpin for HeatmapError
impl UnwindSafe for HeatmapError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.