pub struct LambdaTypeMapper { /* private fields */ }Expand description
Lambda-specific type mappings and conversions
Implementations§
Source§impl LambdaTypeMapper
impl LambdaTypeMapper
pub fn new() -> Self
Sourcepub fn get_event_mapping(
&self,
event_type: &LambdaEventType,
) -> Option<&EventTypeMapping>
pub fn get_event_mapping( &self, event_type: &LambdaEventType, ) -> Option<&EventTypeMapping>
Get event type mapping for a Lambda event type
Sourcepub fn get_response_mapping(
&self,
event_type: &LambdaEventType,
) -> Option<&ResponseTypeMapping>
pub fn get_response_mapping( &self, event_type: &LambdaEventType, ) -> Option<&ResponseTypeMapping>
Get response type mapping for a Lambda event type
Sourcepub fn get_type_conversion_rules(&self) -> Vec<TypeConversionRule>
pub fn get_type_conversion_rules(&self) -> Vec<TypeConversionRule>
Generate Python to Rust type conversion rules for Lambda context
Sourcepub fn generate_custom_eventbridge_types(
&self,
custom_type: &str,
) -> Result<String>
pub fn generate_custom_eventbridge_types( &self, custom_type: &str, ) -> Result<String>
Generate custom structs for EventBridge events with custom types
Sourcepub fn generate_response_builders(
&self,
event_type: &LambdaEventType,
) -> Result<String>
pub fn generate_response_builders( &self, event_type: &LambdaEventType, ) -> Result<String>
Generate type-safe response builders
Sourcepub fn add_custom_event_mapping(
&mut self,
event_type: LambdaEventType,
mapping: EventTypeMapping,
)
pub fn add_custom_event_mapping( &mut self, event_type: LambdaEventType, mapping: EventTypeMapping, )
Add custom event type mapping
Sourcepub fn add_custom_response_mapping(
&mut self,
event_type: LambdaEventType,
mapping: ResponseTypeMapping,
)
pub fn add_custom_response_mapping( &mut self, event_type: LambdaEventType, mapping: ResponseTypeMapping, )
Add custom response type mapping
Sourcepub fn get_required_imports(&self, event_type: &LambdaEventType) -> Vec<String>
pub fn get_required_imports(&self, event_type: &LambdaEventType) -> Vec<String>
Generate all required imports for an event type
Sourcepub fn generate_error_conversions(&self) -> String
pub fn generate_error_conversions(&self) -> String
Generate error handling conversion for Lambda-specific errors
Trait Implementations§
Source§impl Clone for LambdaTypeMapper
impl Clone for LambdaTypeMapper
Source§fn clone(&self) -> LambdaTypeMapper
fn clone(&self) -> LambdaTypeMapper
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 LambdaTypeMapper
impl Debug for LambdaTypeMapper
Auto Trait Implementations§
impl Freeze for LambdaTypeMapper
impl RefUnwindSafe for LambdaTypeMapper
impl Send for LambdaTypeMapper
impl Sync for LambdaTypeMapper
impl Unpin for LambdaTypeMapper
impl UnwindSafe for LambdaTypeMapper
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