pub struct DockerLayer {
pub layer_type: DockerLayerType,
pub name: String,
}Expand description
Represents a specific Docker layer with its type and name
Fields§
§layer_type: DockerLayerTypeThe type of layer
name: StringThe name of the specific layer (e.g., “rust”, “claude”, “web-api”)
Implementations§
Source§impl DockerLayer
impl DockerLayer
Sourcepub fn new(layer_type: DockerLayerType, name: String) -> Self
pub fn new(layer_type: DockerLayerType, name: String) -> Self
Creates a new DockerLayer
Sourcepub fn tech_stack(name: impl Into<String>) -> Self
pub fn tech_stack(name: impl Into<String>) -> Self
Creates a tech stack layer
Sourcepub fn asset_path(&self) -> String
pub fn asset_path(&self) -> String
Get the directory path for this layer in the asset structure
Trait Implementations§
Source§impl Clone for DockerLayer
impl Clone for DockerLayer
Source§fn clone(&self) -> DockerLayer
fn clone(&self) -> DockerLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DockerLayer
impl Debug for DockerLayer
Source§impl Display for DockerLayer
impl Display for DockerLayer
Source§impl Hash for DockerLayer
impl Hash for DockerLayer
Source§impl PartialEq for DockerLayer
impl PartialEq for DockerLayer
impl Eq for DockerLayer
impl StructuralPartialEq for DockerLayer
Auto Trait Implementations§
impl Freeze for DockerLayer
impl RefUnwindSafe for DockerLayer
impl Send for DockerLayer
impl Sync for DockerLayer
impl Unpin for DockerLayer
impl UnwindSafe for DockerLayer
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