pub struct CompileRequest<'a> {
pub template_root: &'a Path,
pub gleam_path: &'a Path,
pub source: &'a str,
}Expand description
A request to compile, type-check, and package submitted Gleam source.
Fields§
§template_root: &'a PathThe built Gleam workflow project template the submission is built
against. It must contain gleam.toml, workflow.toml, the aion_flow
dependency, and schemas/ — exactly as aion new produces one. It is
read-only at request time: the toolchain copies it into a fresh
per-submission workspace and never writes to or builds in it.
gleam_path: &'a PathPath to the external gleam binary the toolchain spawns. There is no
default: the caller supplies it (the server resolves it from the
operator-configured [authoring].gleam_path).
source: &'a strThe submitted Gleam source written verbatim to the workspace copy’s single entry-module source file before building.
Auto Trait Implementations§
impl<'a> Freeze for CompileRequest<'a>
impl<'a> RefUnwindSafe for CompileRequest<'a>
impl<'a> Send for CompileRequest<'a>
impl<'a> Sync for CompileRequest<'a>
impl<'a> Unpin for CompileRequest<'a>
impl<'a> UnsafeUnpin for CompileRequest<'a>
impl<'a> UnwindSafe for CompileRequest<'a>
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