pub struct Artifact {
pub location: ArtifactLocation,
pub path: String,
pub body: String,
}Expand description
One generated artifact ready to be written to disk.
The path is relative to the base directory chosen by
location. The body is the exact bytes to
write; the renderer already appended a trailing newline where the
artifact family expects one.
Fields§
§location: ArtifactLocationWhich base directory path is relative to.
path: StringPath relative to the artifact’s base directory (uses forward slashes).
body: StringFull file contents.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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