pub struct FrameworkContext {
pub frameworks: Vec<DetectedFramework>,
pub inspected_langs: HashSet<&'static str>,
}Expand description
Frameworks detected in the project root.
Fields§
§frameworks: Vec<DetectedFramework>§inspected_langs: HashSet<&'static str>Language ecosystems whose root manifest existed and was inspected.
Lets lang_has_web_framework distinguish “no manifest at all” from
“manifest present but listed no matching framework” — the second
case is a positive signal that the project has no HTTP boundary in
that language, the first is just absence-of-information.
Implementations§
Source§impl FrameworkContext
impl FrameworkContext
pub fn has(&self, fw: DetectedFramework) -> bool
Sourcepub fn lang_has_web_framework(&self, lang: &str) -> Option<bool>
pub fn lang_has_web_framework(&self, lang: &str) -> Option<bool>
Three-valued web-framework presence query for a language slug.
Some(true)─ at least one framework forlangis inframeworks.Some(false)─ a manifest forlangwas inspected but listed no matching framework. The project genuinely has no HTTP boundary in this language.None─ no manifest forlangwas inspected (e.g. single-file scans without a project root). Caller should fall back to prior-behavior heuristics.
Trait Implementations§
Source§impl Clone for FrameworkContext
impl Clone for FrameworkContext
Source§fn clone(&self) -> FrameworkContext
fn clone(&self) -> FrameworkContext
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 FrameworkContext
impl Debug for FrameworkContext
Source§impl Default for FrameworkContext
impl Default for FrameworkContext
Source§fn default() -> FrameworkContext
fn default() -> FrameworkContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameworkContext
impl RefUnwindSafe for FrameworkContext
impl Send for FrameworkContext
impl Sync for FrameworkContext
impl Unpin for FrameworkContext
impl UnsafeUnpin for FrameworkContext
impl UnwindSafe for FrameworkContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more