#[non_exhaustive]pub struct OutdatedLibrary {
pub library_name: String,
pub version: String,
pub learn_more_urls: Vec<String>,
/* private fields */
}Expand description
Information reported for an outdated library.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.library_name: StringThe name of the outdated library.
version: StringThe version number.
learn_more_urls: Vec<String>URLs to learn more information about the vulnerabilities in the library.
Implementations§
Source§impl OutdatedLibrary
impl OutdatedLibrary
pub fn new() -> Self
Sourcepub fn set_library_name<T: Into<String>>(self, v: T) -> Self
pub fn set_library_name<T: Into<String>>(self, v: T) -> Self
Sets the value of library_name.
§Example
ⓘ
let x = OutdatedLibrary::new().set_library_name("example");Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_learn_more_urls<T, V>(self, v: T) -> Self
pub fn set_learn_more_urls<T, V>(self, v: T) -> Self
Sets the value of learn_more_urls.
§Example
ⓘ
let x = OutdatedLibrary::new().set_learn_more_urls(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for OutdatedLibrary
impl Clone for OutdatedLibrary
Source§fn clone(&self) -> OutdatedLibrary
fn clone(&self) -> OutdatedLibrary
Returns a duplicate 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 OutdatedLibrary
impl Debug for OutdatedLibrary
Source§impl Default for OutdatedLibrary
impl Default for OutdatedLibrary
Source§fn default() -> OutdatedLibrary
fn default() -> OutdatedLibrary
Returns the “default value” for a type. Read more
Source§impl Message for OutdatedLibrary
impl Message for OutdatedLibrary
Source§impl PartialEq for OutdatedLibrary
impl PartialEq for OutdatedLibrary
impl StructuralPartialEq for OutdatedLibrary
Auto Trait Implementations§
impl Freeze for OutdatedLibrary
impl RefUnwindSafe for OutdatedLibrary
impl Send for OutdatedLibrary
impl Sync for OutdatedLibrary
impl Unpin for OutdatedLibrary
impl UnwindSafe for OutdatedLibrary
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