pub struct DetectionLocation {
pub file_path: String,
pub line_number: Option<usize>,
pub pattern_matched: String,
pub context: String,
}
Expand description
Represents a location in the source code where an oracle was detected
Fields§
§file_path: String
Path to the file where the oracle was detected
line_number: Option<usize>
Line number where the oracle was detected (if available)
pattern_matched: String
The code pattern that was matched
context: String
Additional context about the detection
Trait Implementations§
Source§impl Clone for DetectionLocation
impl Clone for DetectionLocation
Source§fn clone(&self) -> DetectionLocation
fn clone(&self) -> DetectionLocation
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 DetectionLocation
impl Debug for DetectionLocation
Source§impl<'de> Deserialize<'de> for DetectionLocation
impl<'de> Deserialize<'de> for DetectionLocation
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 DetectionLocation
impl RefUnwindSafe for DetectionLocation
impl Send for DetectionLocation
impl Sync for DetectionLocation
impl Unpin for DetectionLocation
impl UnwindSafe for DetectionLocation
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