Enum libcnb_test::BuildpackReference
source · pub enum BuildpackReference {
CurrentCrate,
WorkspaceBuildpack(BuildpackId),
Other(String),
}
Expand description
References a Cloud Native Buildpack.
Variants§
CurrentCrate
References the buildpack in the Rust Crate currently being tested.
Is equivalent to BuildpackReference::WorkspaceBuildpack(buildpack_id!("<buildpack ID of current crate"))
.
WorkspaceBuildpack(BuildpackId)
References a libcnb.rs or composite buildpack within the Cargo workspace that needs to be packaged into a buildpack.
Other(String)
References another buildpack by id, local directory or tarball.
Trait Implementations§
source§impl Clone for BuildpackReference
impl Clone for BuildpackReference
source§fn clone(&self) -> BuildpackReference
fn clone(&self) -> BuildpackReference
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 BuildpackReference
impl Debug for BuildpackReference
source§impl PartialEq for BuildpackReference
impl PartialEq for BuildpackReference
source§fn eq(&self, other: &BuildpackReference) -> bool
fn eq(&self, other: &BuildpackReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BuildpackReference
impl StructuralPartialEq for BuildpackReference
Auto Trait Implementations§
impl Freeze for BuildpackReference
impl RefUnwindSafe for BuildpackReference
impl Send for BuildpackReference
impl Sync for BuildpackReference
impl Unpin for BuildpackReference
impl UnwindSafe for BuildpackReference
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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 more