# ResourceDefinitionModel

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

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

```rust
struct ResourceDefinitionModel
```



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

## Members

- [`node`](#struct_field-node)
- [`title`](#struct_field-title)
- [`type_name`](#struct_field-type_name)
- [`kind`](#struct_field-kind)
- [`key`](#struct_field-key)
- [`scope`](#struct_field-scope)
- [`source`](#struct_field-source)
- [`writable`](#struct_field-writable)
- [`can_preview`](#struct_field-can_preview)
- [`preview`](#struct_field-preview)
- [`apply_property`](#struct_field-apply_property)
- [`properties`](#struct_field-properties)
- [`definition_properties`](#struct_field-definition_properties)
- [`references`](#struct_field-references)
- [`primitive_value`](#struct_field-primitive_value)
- [`setter_properties`](#struct_field-setter_properties)

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

### node

```rust
node: ferroui_designer_core::NodeId
```



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

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

### title

```rust
title: String
```



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

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

### type_name

```rust
type_name: String
```



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

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

### kind

```rust
kind: ferroui_designer_tools::ComponentKind
```



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

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

### key

```rust
key: Option<String>
```



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

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

### scope

```rust
scope: String
```



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

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

### source

```rust
source: String
```



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

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

### writable

```rust
writable: bool
```



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

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

### can_preview

```rust
can_preview: bool
```



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

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

### preview

```rust
preview: DefinitionPreviewSettings
```



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

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

### apply_property

```rust
apply_property: String
```



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

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

### properties

```rust
properties: Vec<DefinitionPropertyField>
```



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

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

### definition_properties

```rust
definition_properties: Vec<DefinitionPropertyField>
```



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

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

### references

```rust
references: Vec<DefinitionReference>
```



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

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

### primitive_value

```rust
primitive_value: Option<String>
```



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

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

### setter_properties

```rust
setter_properties: Vec<String>
```



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

## 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/).
