# DefinitionEditorCommand

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/enum-definitioneditorcommand/

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

```rust
enum DefinitionEditorCommand
```



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

## Members

- [`Preview`](#variant-preview)
- [`Source`](#variant-source)
- [`Rename`](#variant-rename)
- [`Duplicate`](#variant-duplicate)
- [`CopyTemplate`](#variant-copytemplate)
- [`Remove`](#variant-remove)
- [`Apply`](#variant-apply)
- [`SetSetter`](#variant-setsetter)
- [`SetResourceValue`](#variant-setresourcevalue)
- [`ReplaceSource`](#variant-replacesource)
- [`SelectReference`](#variant-selectreference)
- [`CopyProvided`](#variant-copyprovided)
- [`InsertControl`](#variant-insertcontrol)
- [`OpenProvidedSource`](#variant-openprovidedsource)
- [`Create`](#variant-create)

<a id="variant-preview"></a>

### Preview

```rust
Preview(DefinitionPreviewSettings)
```



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

<a id="variant-source"></a>

### Source

```rust
Source
```



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

<a id="variant-rename"></a>

### Rename

```rust
Rename(String)
```



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

<a id="variant-duplicate"></a>

### Duplicate

```rust
Duplicate(String)
```



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

<a id="variant-copytemplate"></a>

### CopyTemplate

```rust
CopyTemplate(String)
```



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

<a id="variant-remove"></a>

### Remove

```rust
Remove
```



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

<a id="variant-apply"></a>

### Apply

```rust
Apply { property: String, dynamic: bool }
```



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

<a id="variant-setsetter"></a>

### SetSetter

```rust
SetSetter { property: String, value: String }
```



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

<a id="variant-setresourcevalue"></a>

### SetResourceValue

```rust
SetResourceValue(String)
```



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

<a id="variant-replacesource"></a>

### ReplaceSource

```rust
ReplaceSource(String)
```



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

<a id="variant-selectreference"></a>

### SelectReference

```rust
SelectReference(ferroui_designer_core::NodeId)
```



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

<a id="variant-copyprovided"></a>

### CopyProvided

```rust
CopyProvided { owner: ferroui_designer_core::NodeId, key: String }
```



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

<a id="variant-insertcontrol"></a>

### InsertControl

```rust
InsertControl
```



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

<a id="variant-openprovidedsource"></a>

### OpenProvidedSource

```rust
OpenProvidedSource
```



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

<a id="variant-create"></a>

### Create

```rust
Create { owner: ferroui_designer_core::NodeId, key: String, kind: DefinitionCreationKind, target_type: String, source: String }
```



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

## 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`
- `Same`
- `Clone`
- `Debug`

## Availability

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