pub struct AlertItem {
pub severity: Severity,
pub kind: String,
pub kind_label: String,
pub url: Option<String>,
pub before: String,
pub after: String,
}Expand description
One change in the listing.
Fields§
§severity: Severity§kind: StringStable machine name of the change kind (became_noindex), for webhooks.
kind_label: StringHuman label of the change kind (“Became noindex”).
url: Option<String>§before: String§after: StringImplementations§
Source§impl AlertItem
impl AlertItem
Sourcepub fn severity_word(&self) -> &'static str
pub fn severity_word(&self) -> &'static str
“Critical”, “Warning” or “Notice”.
Sourcepub fn change_text(&self) -> String
pub fn change_text(&self) -> String
“index → noindex”; empty when neither side has a value.
Trait Implementations§
impl Eq for AlertItem
impl StructuralPartialEq for AlertItem
Auto Trait Implementations§
impl Freeze for AlertItem
impl RefUnwindSafe for AlertItem
impl Send for AlertItem
impl Sync for AlertItem
impl Unpin for AlertItem
impl UnsafeUnpin for AlertItem
impl UnwindSafe for AlertItem
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.