pub struct SecurityIssue {
pub issue_type: SecurityIssueType,
pub message: String,
pub location: Option<CodeLocation>,
}Expand description
Potential security issues found during analysis.
Fields§
§issue_type: SecurityIssueTypeIssue type
message: StringHuman-readable message
location: Option<CodeLocation>Location in code (if applicable)
Implementations§
Source§impl SecurityIssue
impl SecurityIssue
pub fn new(issue_type: SecurityIssueType, message: impl Into<String>) -> Self
pub fn with_location(self, location: CodeLocation) -> Self
Sourcepub fn is_critical(&self) -> bool
pub fn is_critical(&self) -> bool
Returns true if this is a critical issue that should block execution. Note: DynamicTableName is NOT critical for REST APIs - it’s a common pattern for discovery-then-use workflows (e.g., search for station ID, then use in path).
Sourcepub fn is_sensitive(&self) -> bool
pub fn is_sensitive(&self) -> bool
Returns true if this issue involves sensitive data.
Trait Implementations§
Source§impl Clone for SecurityIssue
impl Clone for SecurityIssue
Source§fn clone(&self) -> SecurityIssue
fn clone(&self) -> SecurityIssue
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 SecurityIssue
impl Debug for SecurityIssue
Source§impl<'de> Deserialize<'de> for SecurityIssue
impl<'de> Deserialize<'de> for SecurityIssue
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 SecurityIssue
impl RefUnwindSafe for SecurityIssue
impl Send for SecurityIssue
impl Sync for SecurityIssue
impl Unpin for SecurityIssue
impl UnsafeUnpin for SecurityIssue
impl UnwindSafe for SecurityIssue
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