pub struct AlertMessage {
pub kind: AlertKind,
pub site_domain: String,
pub site_url: String,
pub crawl_id: Option<Uuid>,
pub headline: String,
pub items: Vec<AlertItem>,
pub more: u32,
}Fields§
§kind: AlertKind§site_domain: String§site_url: StringThe site’s dashboard link in CodoSEO.
crawl_id: Option<Uuid>None for a test message.
headline: String§items: Vec<AlertItem>§more: u32Changes beyond the listed ones.
Implementations§
Source§impl AlertMessage
impl AlertMessage
Sourcepub fn changes(
site_domain: impl Into<String>,
site_url: impl Into<String>,
crawl_id: Uuid,
headline: impl Into<String>,
items: Vec<AlertItem>,
) -> AlertMessage
pub fn changes( site_domain: impl Into<String>, site_url: impl Into<String>, crawl_id: Uuid, headline: impl Into<String>, items: Vec<AlertItem>, ) -> AlertMessage
A crawl’s changes. Lists the first MAX_ITEMS; the rest are counted in more.
Sourcepub fn unreachable(
site_domain: impl Into<String>,
site_url: impl Into<String>,
crawl_id: Uuid,
reason: &str,
) -> AlertMessage
pub fn unreachable( site_domain: impl Into<String>, site_url: impl Into<String>, crawl_id: Uuid, reason: &str, ) -> AlertMessage
“We couldn’t reach your site”; reason is the failure in plain words.
Trait Implementations§
Source§impl Clone for AlertMessage
impl Clone for AlertMessage
Source§impl Debug for AlertMessage
impl Debug for AlertMessage
impl Eq for AlertMessage
Source§impl PartialEq for AlertMessage
impl PartialEq for AlertMessage
impl StructuralPartialEq for AlertMessage
Auto Trait Implementations§
impl Freeze for AlertMessage
impl RefUnwindSafe for AlertMessage
impl Send for AlertMessage
impl Sync for AlertMessage
impl Unpin for AlertMessage
impl UnsafeUnpin for AlertMessage
impl UnwindSafe for AlertMessage
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.