Struct serde_sarif::sarif::Sarif
source · pub struct Sarif {
pub schema: Option<String>,
pub inline_external_properties: Option<Vec<ExternalProperties>>,
pub properties: Option<PropertyBag>,
pub runs: Vec<Run>,
pub version: Value,
}Fields§
§schema: Option<String>The URI of the JSON schema corresponding to the version.
inline_external_properties: Option<Vec<ExternalProperties>>References to external property files that share data between runs.
properties: Option<PropertyBag>Key/value pairs that provide additional information about the log file.
runs: Vec<Run>The set of runs contained in this log file.
version: ValueThe SARIF format version of this log file.
Implementations§
source§impl Sarif
impl Sarif
sourcepub fn builder() -> SarifBuilder<((), (), (), (), ())>
pub fn builder() -> SarifBuilder<((), (), (), (), ())>
Create a builder for building Sarif.
On the builder, call .schema(...)(optional), .inline_external_properties(...)(optional), .properties(...)(optional), .runs(...)(optional), .version(...) to set the values of the fields.
Finally, call .build() to create the instance of Sarif.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sarif
impl<'de> Deserialize<'de> for Sarif
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 StructuralPartialEq for Sarif
Auto Trait Implementations§
impl Freeze for Sarif
impl RefUnwindSafe for Sarif
impl Send for Sarif
impl Sync for Sarif
impl Unpin for Sarif
impl UnwindSafe for Sarif
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)