Enum cargo_lambda_build::BinaryData
source · pub enum BinaryData<'a> {
Function(&'a str),
ExternalExtension(&'a str),
InternalExtension(&'a str),
}Variants§
Implementations§
source§impl<'a> BinaryData<'a>
impl<'a> BinaryData<'a>
sourcepub fn new(name: &'a str, extension: bool, internal: bool) -> Self
pub fn new(name: &'a str, extension: bool, internal: bool) -> Self
Create a BinaryData given the arguments of the CLI
sourcepub fn binary_name(&self) -> &str
pub fn binary_name(&self) -> &str
Name of the binary to copy inside the zip archive
sourcepub fn binary_location(&self) -> &str
pub fn binary_location(&self) -> &str
Location of the binary after building it
sourcepub fn parent_dir(&self) -> Option<&str>
pub fn parent_dir(&self) -> Option<&str>
Name of the parent directory to copy the binary into
sourcepub fn build_help(&self) -> &str
pub fn build_help(&self) -> &str
Command to use to build each kind of binary
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BinaryData<'a>
impl<'a> RefUnwindSafe for BinaryData<'a>
impl<'a> Send for BinaryData<'a>
impl<'a> Sync for BinaryData<'a>
impl<'a> Unpin for BinaryData<'a>
impl<'a> UnwindSafe for BinaryData<'a>
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> 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 moreCreates a shared type from an unshared type.