pub struct Clayer {
pub layer_type: String,
pub path: String,
pub file: String,
pub copy_to: Option<String>,
pub condition: Option<String>,
pub content: String,
}Expand description
Represents a clayer element
Provides access information for a software layer stored in a pack.
Fields§
§layer_type: StringLayer type identifier
path: StringPath to the layer directory relative to the pack root
file: StringLayer project file name (e.g. .clayer.yml)
copy_to: Option<String>Optional destination path when copying the layer into a project
condition: Option<String>References a condition ID; layer is available only if the condition is met
content: StringText content of the element
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Clayer
impl<'de> Deserialize<'de> for Clayer
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
impl Eq for Clayer
impl StructuralPartialEq for Clayer
Auto Trait Implementations§
impl Freeze for Clayer
impl RefUnwindSafe for Clayer
impl Send for Clayer
impl Sync for Clayer
impl Unpin for Clayer
impl UnsafeUnpin for Clayer
impl UnwindSafe for Clayer
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