Struct libcnb_data::layer_content_metadata::LayerTypes
source · pub struct LayerTypes {
pub launch: bool,
pub build: bool,
pub cache: bool,
}Expand description
Used to specify layer availability based on buildpack phase.
Fields§
§launch: boolWhether the layer is intended for launch.
build: boolWhether the layer is intended for build.
cache: boolWhether the layer is cached.
Trait Implementations§
source§impl Clone for LayerTypes
impl Clone for LayerTypes
source§fn clone(&self) -> LayerTypes
fn clone(&self) -> LayerTypes
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 LayerTypes
impl Debug for LayerTypes
source§impl Default for LayerTypes
impl Default for LayerTypes
source§fn default() -> LayerTypes
fn default() -> LayerTypes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LayerTypes
impl<'de> Deserialize<'de> for LayerTypes
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<LayerTypes> for LayerTypes
impl PartialEq<LayerTypes> for LayerTypes
source§fn eq(&self, other: &LayerTypes) -> bool
fn eq(&self, other: &LayerTypes) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for LayerTypes
impl Serialize for LayerTypes
impl Copy for LayerTypes
impl Eq for LayerTypes
impl StructuralEq for LayerTypes
impl StructuralPartialEq for LayerTypes
Auto Trait Implementations§
impl RefUnwindSafe for LayerTypes
impl Send for LayerTypes
impl Sync for LayerTypes
impl Unpin for LayerTypes
impl UnwindSafe for LayerTypes
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.