Struct csaf_walker::report::DocumentKey
source · pub struct DocumentKey {
pub distribution_url: Url,
pub url: String,
}Fields§
§distribution_url: Urlthe URL to the distribution folder
url: Stringthe URL to the document, relative to the distribution_url.
Implementations§
source§impl DocumentKey
impl DocumentKey
pub fn for_document(advisory: &DiscoveredAdvisory) -> Self
Trait Implementations§
source§impl Clone for DocumentKey
impl Clone for DocumentKey
source§fn clone(&self) -> DocumentKey
fn clone(&self) -> DocumentKey
Returns a copy of the value. Read more
1.0.0 · 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 DocumentKey
impl Debug for DocumentKey
source§impl Hash for DocumentKey
impl Hash for DocumentKey
source§impl Ord for DocumentKey
impl Ord for DocumentKey
source§fn cmp(&self, other: &DocumentKey) -> Ordering
fn cmp(&self, other: &DocumentKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DocumentKey
impl PartialEq for DocumentKey
source§fn eq(&self, other: &DocumentKey) -> bool
fn eq(&self, other: &DocumentKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for DocumentKey
impl PartialOrd for DocumentKey
source§fn partial_cmp(&self, other: &DocumentKey) -> Option<Ordering>
fn partial_cmp(&self, other: &DocumentKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for DocumentKey
impl StructuralPartialEq for DocumentKey
Auto Trait Implementations§
impl Freeze for DocumentKey
impl RefUnwindSafe for DocumentKey
impl Send for DocumentKey
impl Sync for DocumentKey
impl Unpin for DocumentKey
impl UnwindSafe for DocumentKey
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.