pub struct CompileOptions<'a> {
pub files: Map<String, Value>,
pub loader: Option<&'a dyn FileLoader>,
pub basepath: String,
pub key_prefix: Option<String>,
}Expand description
Inputs used only during structure compilation.
Fields§
§files: Map<String, Value>Parsed documents indexed by their composition paths.
loader: Option<&'a dyn FileLoader>Optional explicit document loader.
basepath: StringDirectory for resolving relative references.
key_prefix: Option<String>Root prefix for input names.
Trait Implementations§
Source§impl<'a> Default for CompileOptions<'a>
impl<'a> Default for CompileOptions<'a>
Source§fn default() -> CompileOptions<'a>
fn default() -> CompileOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CompileOptions<'a>
impl<'a> !Send for CompileOptions<'a>
impl<'a> !Sync for CompileOptions<'a>
impl<'a> !UnwindSafe for CompileOptions<'a>
impl<'a> Freeze for CompileOptions<'a>
impl<'a> Unpin for CompileOptions<'a>
impl<'a> UnsafeUnpin for CompileOptions<'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