pub struct OracleDetection {
pub oracle_type: OracleType,
pub confidence: ConfidenceLevel,
pub locations: Vec<DetectionLocation>,
pub migration_suggestion: String,
}
Expand description
Represents a detected oracle usage in the codebase.
Fields§
§oracle_type: OracleType
Type of the detected oracle
confidence: ConfidenceLevel
Confidence level of the detection
locations: Vec<DetectionLocation>
Locations in the code where this oracle was detected
migration_suggestion: String
Suggested migration steps for this oracle
Trait Implementations§
Source§impl Clone for OracleDetection
impl Clone for OracleDetection
Source§fn clone(&self) -> OracleDetection
fn clone(&self) -> OracleDetection
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 OracleDetection
impl Debug for OracleDetection
Source§impl<'de> Deserialize<'de> for OracleDetection
impl<'de> Deserialize<'de> for OracleDetection
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 OracleDetection
impl RefUnwindSafe for OracleDetection
impl Send for OracleDetection
impl Sync for OracleDetection
impl Unpin for OracleDetection
impl UnwindSafe for OracleDetection
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