pub struct TemplateFile {
pub source: ProjectRelativePath,
pub target: String,
pub mode: String,
pub when: Option<String>,
}Expand description
Template file declaration.
Fields§
§source: ProjectRelativePathTemplate source path.
target: StringRender target expression.
mode: StringRender mode.
when: Option<String>Optional condition expression.
Trait Implementations§
Source§impl Clone for TemplateFile
impl Clone for TemplateFile
Source§fn clone(&self) -> TemplateFile
fn clone(&self) -> TemplateFile
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 TemplateFile
impl Debug for TemplateFile
Source§impl<'de> Deserialize<'de> for TemplateFile
impl<'de> Deserialize<'de> for TemplateFile
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 TemplateFile
Source§impl PartialEq for TemplateFile
impl PartialEq for TemplateFile
Source§fn eq(&self, other: &TemplateFile) -> bool
fn eq(&self, other: &TemplateFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TemplateFile
impl Serialize for TemplateFile
impl StructuralPartialEq for TemplateFile
Auto Trait Implementations§
impl Freeze for TemplateFile
impl RefUnwindSafe for TemplateFile
impl Send for TemplateFile
impl Sync for TemplateFile
impl Unpin for TemplateFile
impl UnsafeUnpin for TemplateFile
impl UnwindSafe for TemplateFile
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.