pub struct TemplatedExtraFile {
pub src: String,
pub dst: Option<String>,
pub mode: Option<String>,
}Expand description
A file whose contents are rendered through the template engine before use.
Used by templated_extra_files across multiple stages (GoReleaser Pro feature).
Fields§
§src: StringSource template file path.
dst: Option<String>Destination filename for the rendered output.
Supports template variables (e.g. "{{ .ProjectName }}-NOTES.txt").
mode: Option<String>File permissions in octal notation as a string, e.g. "0755".
Parsed at runtime via parse_octal_mode() to avoid YAML interpreting as decimal.
Trait Implementations§
Source§impl Clone for TemplatedExtraFile
impl Clone for TemplatedExtraFile
Source§fn clone(&self) -> TemplatedExtraFile
fn clone(&self) -> TemplatedExtraFile
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 TemplatedExtraFile
impl Debug for TemplatedExtraFile
Source§impl Default for TemplatedExtraFile
impl Default for TemplatedExtraFile
Source§fn default() -> TemplatedExtraFile
fn default() -> TemplatedExtraFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemplatedExtraFilewhere
TemplatedExtraFile: Default,
impl<'de> Deserialize<'de> for TemplatedExtraFilewhere
TemplatedExtraFile: Default,
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 JsonSchema for TemplatedExtraFile
impl JsonSchema for TemplatedExtraFile
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TemplatedExtraFile
impl PartialEq for TemplatedExtraFile
Source§fn eq(&self, other: &TemplatedExtraFile) -> bool
fn eq(&self, other: &TemplatedExtraFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TemplatedExtraFile
impl Serialize for TemplatedExtraFile
impl StructuralPartialEq for TemplatedExtraFile
Auto Trait Implementations§
impl Freeze for TemplatedExtraFile
impl RefUnwindSafe for TemplatedExtraFile
impl Send for TemplatedExtraFile
impl Sync for TemplatedExtraFile
impl Unpin for TemplatedExtraFile
impl UnsafeUnpin for TemplatedExtraFile
impl UnwindSafe for TemplatedExtraFile
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