Skip to main content

CompileRequest

Struct CompileRequest 

Source
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 Path

The 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 Path

Path 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 str

The 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.