pub enum ReferenceType {
Advisory,
Article,
Detection,
Discussion,
Evidence,
Fix,
Git,
Introduced,
Package,
Report,
Web,
Other,
}Expand description
Reference types as defined in the OSV schema.
Uses #[serde(other)] to gracefully handle unknown variants.
Variants§
Advisory
Article
Detection
Discussion
Evidence
Fix
Git
Introduced
Package
Report
Web
Other
Fallback for unknown/future reference types.
Trait Implementations§
Source§impl Clone for ReferenceType
impl Clone for ReferenceType
Source§fn clone(&self) -> ReferenceType
fn clone(&self) -> ReferenceType
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 ReferenceType
impl Debug for ReferenceType
Source§impl Default for ReferenceType
impl Default for ReferenceType
Source§fn default() -> ReferenceType
fn default() -> ReferenceType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReferenceType
impl<'de> Deserialize<'de> for ReferenceType
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
Auto Trait Implementations§
impl Freeze for ReferenceType
impl RefUnwindSafe for ReferenceType
impl Send for ReferenceType
impl Sync for ReferenceType
impl Unpin for ReferenceType
impl UnwindSafe for ReferenceType
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