pub struct PatternNode {
pub role: String,
pub node_type: Option<String>,
pub required_tags: Vec<String>,
pub label_contains: Option<String>,
}Expand description
A single node in an antibody pattern with matching constraints.
Fields§
§role: StringRole name for this node slot (e.g. “caller”, “callee”).
node_type: Option<String>Required node type string (e.g. “function”, “file”). None = any type.
Tags that the matched graph node must have (all required).
label_contains: Option<String>Substring the matched node’s label must contain. None = no constraint.
Trait Implementations§
Source§impl Clone for PatternNode
impl Clone for PatternNode
Source§fn clone(&self) -> PatternNode
fn clone(&self) -> PatternNode
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 PatternNode
impl Debug for PatternNode
Source§impl<'de> Deserialize<'de> for PatternNode
impl<'de> Deserialize<'de> for PatternNode
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 PatternNode
impl RefUnwindSafe for PatternNode
impl Send for PatternNode
impl Sync for PatternNode
impl Unpin for PatternNode
impl UnsafeUnpin for PatternNode
impl UnwindSafe for PatternNode
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