Struct serde_sarif::sarif::Location
source · pub struct Location {
pub annotations: Option<Vec<Region>>,
pub id: Option<i64>,
pub logical_locations: Option<Vec<LogicalLocation>>,
pub message: Option<Message>,
pub physical_location: Option<PhysicalLocation>,
pub properties: Option<PropertyBag>,
pub relationships: Option<Vec<LocationRelationship>>,
}Expand description
A location within a programming artifact.
Fields§
§annotations: Option<Vec<Region>>A set of regions relevant to the location.
id: Option<i64>Value that distinguishes this location from all other locations within a single result object.
logical_locations: Option<Vec<LogicalLocation>>The logical locations associated with the result.
message: Option<Message>A message relevant to the location.
physical_location: Option<PhysicalLocation>Identifies the artifact and region.
properties: Option<PropertyBag>Key/value pairs that provide additional information about the location.
relationships: Option<Vec<LocationRelationship>>An array of objects that describe relationships between this location and others.
Implementations§
source§impl Location
impl Location
sourcepub fn builder() -> LocationBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> LocationBuilder<((), (), (), (), (), (), ())>
Create a builder for building Location.
On the builder, call .annotations(...)(optional), .id(...)(optional), .logical_locations(...)(optional), .message(...)(optional), .physical_location(...)(optional), .properties(...)(optional), .relationships(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Location.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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>,
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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
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)
clone_to_uninit)