#[non_exhaustive]pub struct Generated {
pub path: String,
pub run: Vec<String>,
}Expand description
One file release asset writes from a command’s output and packs into a
tarball. A host that installs the tarball then gets a file it cannot
generate at install time, such as a man page, which mise installs only from
a file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringWhere the file lands under the directory the tarball is cut from, with
{bin}, {id}, {os}, {arch}, and {triple}. The load checks it
for each target: it stays inside the tarball, names one file, and
replaces nothing the tarball packs.
run: Vec<String>The command whose standard output is the file’s content, run without a
shell. {binary} is the binary the target built, or the one
--prebuilt-self staged, and the placeholders of path and
{version} are replaced too.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Generated
impl<'de> Deserialize<'de> for Generated
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 Generated
impl StructuralPartialEq for Generated
Source§impl Validate for Generated
impl Validate for Generated
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Forget for Generated
impl Freeze for Generated
impl Move for Generated
impl RefUnwindSafe for Generated
impl Send for Generatedwhere
RawVecInner: Send,
impl Sync for Generatedwhere
RawVecInner: Sync,
impl Unpin for Generated
impl UnsafeUnpin for Generatedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Generatedwhere
RawVecInner: UnwindSafe,
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.