pub struct LambdaBuilder {
pub repo: String,
pub rev: String,
pub container_cmd: String,
pub project: PathBuf,
}
Expand description
Options for running the build.
Fields§
§repo: String
The lambda-rust repo URL.
rev: String
Branch/tag/commit from which to build.
container_cmd: String
Container command. Defaults to “docker”, but “podman” should work as well.
project: PathBuf
Path of the project to build.
Implementations§
Source§impl LambdaBuilder
impl LambdaBuilder
Sourcepub fn run(&self) -> Result<Vec<PathBuf>, Error>
pub fn run(&self) -> Result<Vec<PathBuf>, Error>
Run the build in a container.
This will produce zip files ready for use with AWS Lambda in the lambda-target subdirectory, one zip file per binary target. The lambda-target/latest file will be updated with a list of the latest zip names.
Returns the full paths of each zip file.
Trait Implementations§
Source§impl Clone for LambdaBuilder
impl Clone for LambdaBuilder
Source§fn clone(&self) -> LambdaBuilder
fn clone(&self) -> LambdaBuilder
Returns a copy 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 LambdaBuilder
impl Debug for LambdaBuilder
Source§impl Default for LambdaBuilder
impl Default for LambdaBuilder
Source§impl PartialEq for LambdaBuilder
impl PartialEq for LambdaBuilder
impl Eq for LambdaBuilder
impl StructuralPartialEq for LambdaBuilder
Auto Trait Implementations§
impl Freeze for LambdaBuilder
impl RefUnwindSafe for LambdaBuilder
impl Send for LambdaBuilder
impl Sync for LambdaBuilder
impl Unpin for LambdaBuilder
impl UnwindSafe for LambdaBuilder
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