pub struct OverlayPatch {
pub level: Option<String>,
pub status: Option<String>,
pub description: Option<String>,
pub author: Option<String>,
pub tags: Option<Vec<String>>,
pub references: Option<Vec<String>>,
pub falsepositives: Option<Vec<String>>,
pub fields: Option<Vec<String>>,
pub custom_attributes: Option<BTreeMap<String, Value>>,
pub unknown: BTreeMap<String, Value>,
}Expand description
Metadata keys an overlay may set or append.
Fields§
§level: Option<String>Replacement level.
status: Option<String>Replacement status.
description: Option<String>Replacement description.
Replacement author.
Tags to set or append; appended tags are deduplicated.
references: Option<Vec<String>>References to set or append.
falsepositives: Option<Vec<String>>False positives to set or append.
fields: Option<Vec<String>>Fields to set or append.
custom_attributes: Option<BTreeMap<String, Value>>Custom attributes merged per key; null under set removes a key.
unknown: BTreeMap<String, Value>Unknown keys, rejected at validation time.
Trait Implementations§
Source§impl Clone for OverlayPatch
impl Clone for OverlayPatch
Source§impl Debug for OverlayPatch
impl Debug for OverlayPatch
Source§impl Default for OverlayPatch
impl Default for OverlayPatch
Source§impl<'de> Deserialize<'de> for OverlayPatch
impl<'de> Deserialize<'de> for OverlayPatch
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
Source§impl PartialEq for OverlayPatch
impl PartialEq for OverlayPatch
Source§impl Serialize for OverlayPatch
impl Serialize for OverlayPatch
impl StructuralPartialEq for OverlayPatch
Auto Trait Implementations§
impl Forget for OverlayPatch
impl Freeze for OverlayPatch
impl Move for OverlayPatch
impl RefUnwindSafe for OverlayPatch
impl Send for OverlayPatch
impl Sync for OverlayPatch
impl Unpin for OverlayPatch
impl UnsafeUnpin for OverlayPatch
impl UnwindSafe for OverlayPatch
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