pub struct LambdaTypeInferencer {
pub confidence_threshold: f64,
/* private fields */
}Expand description
Lambda event type inference engine that analyzes Python AST patterns to determine AWS Lambda event types with confidence scoring
Fields§
§confidence_threshold: f64Implementations§
Source§impl LambdaTypeInferencer
impl LambdaTypeInferencer
pub fn new() -> Self
pub fn with_confidence_threshold(self, threshold: f64) -> Self
Sourcepub fn infer_event_type(&self, ast: &Mod) -> Result<EventType, InferenceError>
pub fn infer_event_type(&self, ast: &Mod) -> Result<EventType, InferenceError>
Infer event type from Python module AST
Sourcepub fn get_patterns(&self) -> &HashMap<Pattern, EventType>
pub fn get_patterns(&self) -> &HashMap<Pattern, EventType>
Get all known event patterns for debugging
Sourcepub fn analyze_handler(
&self,
ast: &Mod,
) -> Result<AnalysisReport, InferenceError>
pub fn analyze_handler( &self, ast: &Mod, ) -> Result<AnalysisReport, InferenceError>
Analyze a handler function and provide detailed inference report
Trait Implementations§
Source§impl Clone for LambdaTypeInferencer
impl Clone for LambdaTypeInferencer
Source§fn clone(&self) -> LambdaTypeInferencer
fn clone(&self) -> LambdaTypeInferencer
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 LambdaTypeInferencer
impl Debug for LambdaTypeInferencer
Auto Trait Implementations§
impl Freeze for LambdaTypeInferencer
impl RefUnwindSafe for LambdaTypeInferencer
impl Send for LambdaTypeInferencer
impl Sync for LambdaTypeInferencer
impl Unpin for LambdaTypeInferencer
impl UnwindSafe for LambdaTypeInferencer
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