pub struct LambdaCodeGenerator { /* private fields */ }Expand description
Lambda-specific code generation for Rust output
Implementations§
Source§impl LambdaCodeGenerator
impl LambdaCodeGenerator
pub fn new() -> Self
pub fn with_optimization_profile(self, profile: OptimizationProfile) -> Self
Sourcepub fn generate_lambda_project(
&self,
context: &LambdaGenerationContext,
) -> Result<LambdaProject>
pub fn generate_lambda_project( &self, context: &LambdaGenerationContext, ) -> Result<LambdaProject>
Generate complete Lambda Rust project from Python handler
Sourcepub fn generate_handler(
&self,
context: &LambdaGenerationContext,
) -> Result<String>
pub fn generate_handler( &self, context: &LambdaGenerationContext, ) -> Result<String>
Generate the main handler Rust code
Sourcepub fn generate_cargo_toml(
&self,
context: &LambdaGenerationContext,
) -> Result<String>
pub fn generate_cargo_toml( &self, context: &LambdaGenerationContext, ) -> Result<String>
Generate Cargo.toml for Lambda project
Sourcepub fn generate_build_script(
&self,
context: &LambdaGenerationContext,
) -> Result<String>
pub fn generate_build_script( &self, context: &LambdaGenerationContext, ) -> Result<String>
Generate build script for cargo-lambda
Sourcepub fn generate_sam_template(
&self,
context: &LambdaGenerationContext,
) -> Result<String>
pub fn generate_sam_template( &self, context: &LambdaGenerationContext, ) -> Result<String>
Generate SAM template
Sourcepub fn generate_cdk_construct(
&self,
context: &LambdaGenerationContext,
) -> Result<String>
pub fn generate_cdk_construct( &self, context: &LambdaGenerationContext, ) -> Result<String>
Generate CDK construct
Trait Implementations§
Source§impl Clone for LambdaCodeGenerator
impl Clone for LambdaCodeGenerator
Source§fn clone(&self) -> LambdaCodeGenerator
fn clone(&self) -> LambdaCodeGenerator
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 LambdaCodeGenerator
impl Debug for LambdaCodeGenerator
Auto Trait Implementations§
impl Freeze for LambdaCodeGenerator
impl RefUnwindSafe for LambdaCodeGenerator
impl Send for LambdaCodeGenerator
impl Sync for LambdaCodeGenerator
impl Unpin for LambdaCodeGenerator
impl UnwindSafe for LambdaCodeGenerator
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