pub struct FileSpec {
pub policy: Option<Policy>,
pub validate: Option<Format>,
pub template: bool,
pub scope: Scope,
pub comment: Option<Comment>,
pub executable: bool,
}Expand description
A profile’s [files."path"] entry.
Fields§
§policy: Option<Policy>How devset manages the file; owned unless set.
validate: Option<Format>How a merged result is checked; inferred from the extension unless set.
template: boolWhether the file is a template, rendered with the target’s answers.
scope: ScopeHow much of the file devset owns: all of it, the keys the payload defines, or a block.
comment: Option<Comment>The comment syntax of a block’s markers, where devset does not know the file type’s.
executable: boolWhether devset writes the file executable, mode 755, as a script it ships must be.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileSpec
impl<'de> Deserialize<'de> for FileSpec
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 FileSpec
impl JsonSchema for FileSpec
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for FileSpec
impl RefUnwindSafe for FileSpec
impl Send for FileSpec
impl Sync for FileSpec
impl Unpin for FileSpec
impl UnsafeUnpin for FileSpec
impl UnwindSafe for FileSpec
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