Struct serde_sarif::sarif::Edge
source · pub struct Edge {
pub id: String,
pub label: Option<Message>,
pub properties: Option<PropertyBag>,
pub source_node_id: String,
pub target_node_id: String,
}Expand description
Represents a directed edge in a graph.
Fields§
§id: StringA string that uniquely identifies the edge within its graph.
label: Option<Message>A short description of the edge.
properties: Option<PropertyBag>Key/value pairs that provide additional information about the edge.
source_node_id: StringIdentifies the source node (the node at which the edge starts).
target_node_id: StringIdentifies the target node (the node at which the edge ends).
Implementations§
source§impl Edge
impl Edge
sourcepub fn builder() -> EdgeBuilder<((), (), (), (), ())>
pub fn builder() -> EdgeBuilder<((), (), (), (), ())>
Create a builder for building Edge.
On the builder, call .id(...), .label(...)(optional), .properties(...)(optional), .source_node_id(...), .target_node_id(...) to set the values of the fields.
Finally, call .build() to create the instance of Edge.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
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 Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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)