pub struct SecurityAdvisory {
pub id: String,
pub date: String,
pub title: String,
pub summary: Option<String>,
pub url: Option<String>,
pub severity: AdvisorySeverity,
pub packages: Vec<String>,
}Expand description
What: A security advisory from security.archlinux.org.
Inputs:
- Produced by
news::parse_advisories_atom()/news::fetch_security_advisories().
Output:
- Advisory metadata: id, date, title, optional summary/URL, severity, packages.
Details:
idfalls back from URL → title → raw date, matching Pacsea’s behavior.severityandpackagesare best-effort extracted from the advisory title (format:ASA-YYYYMM-N: package: issue type); severity defaults to Unknown.dateis normalized toYYYY-MM-DD.
Fields§
§id: StringStable identifier (advisory URL, or title/date fallback).
date: StringPublication or update date, normalized to YYYY-MM-DD.
title: StringAdvisory headline.
summary: Option<String>Optional summary text from the feed.
url: Option<String>Optional link to the advisory page.
severity: AdvisorySeverityParsed severity (Unknown when the feed does not state one).
packages: Vec<String>Affected package names extracted from the advisory title (best-effort).
Trait Implementations§
Source§impl Clone for SecurityAdvisory
impl Clone for SecurityAdvisory
Source§fn clone(&self) -> SecurityAdvisory
fn clone(&self) -> SecurityAdvisory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityAdvisory
impl Debug for SecurityAdvisory
Source§impl<'de> Deserialize<'de> for SecurityAdvisory
impl<'de> Deserialize<'de> for SecurityAdvisory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SecurityAdvisory
Source§impl PartialEq for SecurityAdvisory
impl PartialEq for SecurityAdvisory
Source§impl Serialize for SecurityAdvisory
impl Serialize for SecurityAdvisory
impl StructuralPartialEq for SecurityAdvisory
Auto Trait Implementations§
impl Freeze for SecurityAdvisory
impl RefUnwindSafe for SecurityAdvisory
impl Send for SecurityAdvisory
impl Sync for SecurityAdvisory
impl Unpin for SecurityAdvisory
impl UnsafeUnpin for SecurityAdvisory
impl UnwindSafe for SecurityAdvisory
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.