pub struct SiteDigest {
pub domain: String,
pub score: u8,
pub score_delta: Option<i32>,
pub checks_passed: u32,
pub checks_total: u32,
pub new_issues: Vec<(String, u32)>,
pub resolved_issues: Vec<(String, u32)>,
pub changes_by_severity: SeverityCounts,
pub top_changes: Vec<AlertItem>,
pub dashboard_url: String,
pub rankorg_url: Option<String>,
}Expand description
One site’s week.
Fields§
§domain: String§score: u8§score_delta: Option<i32>Against the crawl a week earlier; None in the first week, when there is nothing to
compare with.
checks_passed: u32§checks_total: u32§new_issues: Vec<(String, u32)>(issue title, affected pages) for checks failing now that did not fail a week ago.
resolved_issues: Vec<(String, u32)>The reverse: failing a week ago, passing now.
changes_by_severity: SeverityCounts§top_changes: Vec<AlertItem>The most severe changes of the week (a handful, not all of them).
dashboard_url: String§rankorg_url: Option<String>Cloud only: where RankOrg picks up from this audit.
Implementations§
Source§impl SiteDigest
impl SiteDigest
Sourcepub fn score_label(&self) -> String
pub fn score_label(&self) -> String
“92 (+3)”, “88 (-2)”, “80 (no change)”, or just “71” in the first week.
Sourcepub fn changes_line(&self) -> String
pub fn changes_line(&self) -> String
“1 critical, 4 warnings, 11 notices”, or “No changes this week.”
Sourcepub fn more_changes(&self) -> u32
pub fn more_changes(&self) -> u32
Changes counted in the week beyond the ones listed.
Trait Implementations§
Source§impl Clone for SiteDigest
impl Clone for SiteDigest
Source§impl Debug for SiteDigest
impl Debug for SiteDigest
impl Eq for SiteDigest
Source§impl PartialEq for SiteDigest
impl PartialEq for SiteDigest
impl StructuralPartialEq for SiteDigest
Auto Trait Implementations§
impl Freeze for SiteDigest
impl RefUnwindSafe for SiteDigest
impl Send for SiteDigest
impl Sync for SiteDigest
impl Unpin for SiteDigest
impl UnsafeUnpin for SiteDigest
impl UnwindSafe for SiteDigest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.