pub struct CsolutionTemplate {
pub name: String,
pub path: String,
pub file: String,
pub copy_to: Option<String>,
pub condition: Option<String>,
pub description: String,
}Expand description
Represents a template element
Defines a project template for initialising new csolution projects in an IDE.
Fields§
§name: StringTemplate display name
path: StringPath to the template directory relative to the pack root
file: StringTemplate project file name (e.g. .csolution.yml)
copy_to: Option<String>Optional destination path when copying the template into a project
condition: Option<String>References a condition ID; template is available only if the condition is met
description: StringBrief description of the template
Trait Implementations§
Source§impl Clone for CsolutionTemplate
impl Clone for CsolutionTemplate
Source§fn clone(&self) -> CsolutionTemplate
fn clone(&self) -> CsolutionTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CsolutionTemplate
impl Debug for CsolutionTemplate
Source§impl Default for CsolutionTemplate
impl Default for CsolutionTemplate
Source§fn default() -> CsolutionTemplate
fn default() -> CsolutionTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CsolutionTemplate
impl<'de> Deserialize<'de> for CsolutionTemplate
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 CsolutionTemplate
Source§impl PartialEq for CsolutionTemplate
impl PartialEq for CsolutionTemplate
Source§impl Serialize for CsolutionTemplate
impl Serialize for CsolutionTemplate
impl StructuralPartialEq for CsolutionTemplate
Auto Trait Implementations§
impl Freeze for CsolutionTemplate
impl RefUnwindSafe for CsolutionTemplate
impl Send for CsolutionTemplate
impl Sync for CsolutionTemplate
impl Unpin for CsolutionTemplate
impl UnsafeUnpin for CsolutionTemplate
impl UnwindSafe for CsolutionTemplate
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