# ResourceDefinitionEditor

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-resourcedefinitioneditor/

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

```rust
struct ResourceDefinitionEditor
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/resource_editor.rs#L112)

## Members

- [`new`](#function-new)
- [`control`](#function-control)
- [`on_command`](#function-on_command)
- [`show_error`](#function-show_error)
- [`configure`](#function-configure)
- [`configure_create`](#function-configure_create)
- [`configure_external`](#function-configure_external)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/resource_editor.rs#L133)

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

### control

```rust
fn control(self: &Self) -> Ref<Control>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/resource_editor.rs#L169)

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

### on_command

```rust
fn on_command(self: &Self, callback: impl Fn(DefinitionEditorCommand) -> Result<(), String> + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/resource_editor.rs#L172)

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

### show_error

```rust
fn show_error(self: &Self, error: Option<&str>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/resource_editor.rs#L178)

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

### configure

```rust
fn configure(self: &Rc<Self>, model: ResourceDefinitionModel)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/resource_editor.rs#L197)

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

### configure_create

```rust
fn configure_create(self: &Rc<Self>, owners: Vec<(NodeId, String)>, writable: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/resource_editor.rs#L521)

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

### configure_external

```rust
fn configure_external(self: &Rc<Self>, title: &str, kind: ComponentKind, origin: Option<&str>, source: &str, owners: Vec<(NodeId, String)>, writable: bool)
```

Registered library sources are immutable. Copying creates an authored resource
in the active document; the provider's original source is never rewritten.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/resource_editor.rs#L608)

## Trait implementations

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

## Availability

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