# PropertyObjectDraft

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

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

```rust
struct PropertyObjectDraft
```



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

## Members

- [`new`](#function-new)
- [`document`](#function-document)
- [`source`](#function-source)
- [`nodes`](#function-nodes)
- [`set_attribute`](#function-set_attribute)
- [`set_object`](#function-set_object)
- [`insert`](#function-insert)
- [`remove`](#function-remove)
- [`move_by`](#function-move_by)

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

### new

```rust
fn new(source: &str) -> Result<Self, String>
```



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

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

### document

```rust
fn document(self: &Self) -> &Document
```



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

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

### source

```rust
fn source(self: &Self) -> String
```



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

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

### nodes

```rust
fn nodes(self: &Self) -> Vec<NodeId>
```



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

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

### set_attribute

```rust
fn set_attribute(self: &mut Self, node: NodeId, name: &str, value: Option<&str>) -> Result<(), String>
```



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

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

### set_object

```rust
fn set_object(self: &mut Self, node: NodeId, name: &str, source: Option<&str>) -> Result<(), String>
```



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

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

### insert

```rust
fn insert(self: &mut Self, parent: Option<NodeId>, source: &str) -> Result<(), String>
```



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

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

### remove

```rust
fn remove(self: &mut Self, node: NodeId) -> Result<(), String>
```



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

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

### move_by

```rust
fn move_by(self: &mut Self, node: NodeId, delta: isize) -> Result<(), String>
```



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

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