pub struct PatternInstanceInput {
pub fingerprint: String,
pub category: String,
pub node_id: String,
pub location: Option<PatternLocationInput>,
}Expand description
A single pattern instance supplied by a foreign extractor.
§Examples
use sdivi_core::input::PatternInstanceInput;
let p = PatternInstanceInput {
fingerprint: "abc".to_string(),
category: "error_handling".to_string(),
node_id: "src/lib.rs".to_string(),
location: None,
};Fields§
§fingerprint: String64-char lowercase hex fingerprint string.
category: StringPattern category (e.g., "error_handling").
node_id: StringNode ID of the source file containing this instance.
location: Option<PatternLocationInput>Source position (optional — omit when position is unknown).
Trait Implementations§
Source§impl Clone for PatternInstanceInput
impl Clone for PatternInstanceInput
Source§fn clone(&self) -> PatternInstanceInput
fn clone(&self) -> PatternInstanceInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatternInstanceInput
impl Debug for PatternInstanceInput
Source§impl<'de> Deserialize<'de> for PatternInstanceInput
impl<'de> Deserialize<'de> for PatternInstanceInput
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 PatternInstanceInput
impl PartialEq for PatternInstanceInput
Source§fn eq(&self, other: &PatternInstanceInput) -> bool
fn eq(&self, other: &PatternInstanceInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatternInstanceInput
impl Serialize for PatternInstanceInput
impl StructuralPartialEq for PatternInstanceInput
Auto Trait Implementations§
impl Freeze for PatternInstanceInput
impl RefUnwindSafe for PatternInstanceInput
impl Send for PatternInstanceInput
impl Sync for PatternInstanceInput
impl Unpin for PatternInstanceInput
impl UnsafeUnpin for PatternInstanceInput
impl UnwindSafe for PatternInstanceInput
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