# RuntimeXamlLoaderConfiguration

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/struct-runtimexamlloaderconfiguration/

**struct** · [`ferroui-markup-xaml`](/docs/0.5.0/api/ferroui-markup-xaml/) · v0.5.0

```rust
struct RuntimeXamlLoaderConfiguration
```

How the runtime XAML loader loads a document.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L12)

## Members

- [`local_assembly`](#struct_field-local_assembly)
- [`use_compiled_bindings_by_default`](#struct_field-use_compiled_bindings_by_default)
- [`design_mode`](#struct_field-design_mode)
- [`diagnostic_handler`](#struct_field-diagnostic_handler)
- [`new`](#function-new)
- [`for_assembly`](#function-for_assembly)
- [`create_source_info`](#function-create_source_info)
- [`set_create_source_info`](#function-set_create_source_info)

<a id="struct_field-local_assembly"></a>

### local_assembly

```rust
local_assembly: Option<&'static ferroui_base::metadata::MarkupAssembly>
```

The assembly (crate) the document belongs to: names without an
assembly resolve against it first.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L17)

<a id="struct_field-use_compiled_bindings_by_default"></a>

### use_compiled_bindings_by_default

```rust
use_compiled_bindings_by_default: bool
```

Whether `{Binding}` is a compiled binding unless the document says
otherwise. Default is `false`, as upstream; a configuration for the
documents of an application (`for_assembly`)
takes it from the assembly, as the build does.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L23)

<a id="struct_field-design_mode"></a>

### design_mode

```rust
design_mode: bool
```

Whether the document is loaded for a designer. Default is `false`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L26)

<a id="struct_field-diagnostic_handler"></a>

### diagnostic_handler

```rust
diagnostic_handler: Option<XamlDiagnosticFunc>
```

Receives the diagnostics of the loader and may change their
severity. Without a handler, errors fail the load and warnings are
ignored.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L31)

<a id="function-new"></a>

### new

```rust
fn new() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L35)

<a id="function-for_assembly"></a>

### for_assembly

```rust
fn for_assembly(assembly: &'static MarkupAssembly) -> Self
```

A configuration for the documents of `assembly` (its
`local_assembly`), whose `{Binding}` compiles as
the build compiles the documents of the assembly: compiled bindings,
unless the metadata of the assembly states otherwise
(`MarkupAssembly::compiles_bindings_by_default`).

Not from upstream (#604): the configuration a run-time load of a
document of an application starts from (hot reload, the previewer of
the designer, a test that loads the documents of a sample), so that the
document binds as the built application does.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L49)

<a id="function-create_source_info"></a>

### create_source_info

```rust
fn create_source_info(self: &Self) -> bool
```

Whether source information (document, line, position) is attached to
the objects the loader creates.

When it was not set explicitly, the default comes from the metadata
of the local assembly (`MarkupAssembly::CREATE_SOURCE_INFO`, parsed
as a boolean); it is `false` without a local assembly, without the
entry and for a value that is not a boolean.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L64)

<a id="function-set_create_source_info"></a>

### set_create_source_info

```rust
fn set_create_source_info(self: &mut Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/runtime_xaml_loader_configuration.rs#L74)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Default`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
