pub struct AuthoringConfig {
pub gleam_path: Option<PathBuf>,
pub project_root: Option<PathBuf>,
pub workspace_dir: Option<PathBuf>,
}Expand description
Server-side Gleam authoring API settings from [authoring].
The authoring surface is dark by default, gated on gleam_path: with no
gleam_path set (the section absent or gleam_path unset) the
/authoring/* routes are not mounted, the server deploys pre-built .aion
files only, and nothing ever invokes gleam (CN7). Setting gleam_path
commissions the authoring loop and makes project_root required — the
built Gleam project submitted source is written into and packaged from.
Fields§
§gleam_path: Option<PathBuf>Path to the external gleam binary the toolchain spawns. None
(the default) leaves the authoring surface dark; setting it gates the
/authoring/* endpoints on. There is no default binary — the operator
names it explicitly.
project_root: Option<PathBuf>Built Gleam workflow project root submitted source is written into and
packaged from. REQUIRED when gleam_path is set; no default (house
rule) — a Gleam project needs gleam.toml, the aion_flow dependency,
workflow.toml, and schemas/, so the operator provisions and names
the project root.
workspace_dir: Option<PathBuf>Root directory exposed by the /awl/documents workspace API. None
leaves document listing, reading, and writing unmounted while check and
formatting remain available.
Trait Implementations§
Source§impl Clone for AuthoringConfig
impl Clone for AuthoringConfig
Source§fn clone(&self) -> AuthoringConfig
fn clone(&self) -> AuthoringConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuthoringConfig
impl Debug for AuthoringConfig
Source§impl Default for AuthoringConfig
impl Default for AuthoringConfig
Source§fn default() -> AuthoringConfig
fn default() -> AuthoringConfig
Source§impl<'de> Deserialize<'de> for AuthoringConfigwhere
AuthoringConfig: Default,
impl<'de> Deserialize<'de> for AuthoringConfigwhere
AuthoringConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for AuthoringConfig
impl RefUnwindSafe for AuthoringConfig
impl Send for AuthoringConfig
impl Sync for AuthoringConfig
impl Unpin for AuthoringConfig
impl UnsafeUnpin for AuthoringConfig
impl UnwindSafe for AuthoringConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request