pub struct RenderDecision {
pub include: bool,
pub reason: String,
pub context: Option<String>,
}
Expand description
Decision about whether to include a file in analysis
Fields§
§include: bool
Whether to include the file in analysis
reason: String
Human-readable reason for the decision
context: Option<String>
Optional additional context
Implementations§
Source§impl RenderDecision
impl RenderDecision
Sourcepub fn with_context<S: Into<String>>(self, context: S) -> Self
pub fn with_context<S: Into<String>>(self, context: S) -> Self
Add context to the decision
Sourcepub fn should_include(&self) -> bool
pub fn should_include(&self) -> bool
Check if the file should be included
Sourcepub fn reason_category(&self) -> RenderDecisionCategory
pub fn reason_category(&self) -> RenderDecisionCategory
Get the reason as a standard category
Trait Implementations§
Source§impl Clone for RenderDecision
impl Clone for RenderDecision
Source§fn clone(&self) -> RenderDecision
fn clone(&self) -> RenderDecision
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 RenderDecision
impl Debug for RenderDecision
Source§impl<'de> Deserialize<'de> for RenderDecision
impl<'de> Deserialize<'de> for RenderDecision
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 RenderDecision
impl PartialEq for RenderDecision
Source§impl Serialize for RenderDecision
impl Serialize for RenderDecision
impl Eq for RenderDecision
impl StructuralPartialEq for RenderDecision
Auto Trait Implementations§
impl Freeze for RenderDecision
impl RefUnwindSafe for RenderDecision
impl Send for RenderDecision
impl Sync for RenderDecision
impl Unpin for RenderDecision
impl UnwindSafe for RenderDecision
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