# SharedEdit

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

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

```rust
enum SharedEdit
```

Each operation is one atomic transaction. A source replacement is compare-and-set: it is
never allowed to silently erase unrelated concurrent edits. Structural commands use the
source-preserving AST engine and are re-evaluated after out-of-order delivery.

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

## Members

- [`SetAttribute`](#variant-setattribute)
- [`RemoveAttribute`](#variant-removeattribute)
- [`UndoAttribute`](#variant-undoattribute)
- [`InsertChild`](#variant-insertchild)
- [`RemoveNode`](#variant-removenode)
- [`MoveNode`](#variant-movenode)
- [`ReplaceSource`](#variant-replacesource)

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

### SetAttribute

```rust
SetAttribute { node: SharedNodeId, name: String, value: String }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Collaboration/model.rs#L39)

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

### RemoveAttribute

```rust
RemoveAttribute { node: SharedNodeId, name: String }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Collaboration/model.rs#L44)

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

### UndoAttribute

```rust
UndoAttribute { node: SharedNodeId, name: String, expected_writer: OperationId, value: Option<String> }
```

Compensate only if the named operation still owns this property at replay
time. Operation identity matters even when another writer chose the same value.

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

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

### InsertChild

```rust
InsertChild { parent: SharedNodeId, index: usize, source: String }
```



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

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

### RemoveNode

```rust
RemoveNode { node: SharedNodeId }
```



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

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

### MoveNode

```rust
MoveNode { node: SharedNodeId, parent: SharedNodeId, index: usize }
```



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

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

### ReplaceSource

```rust
ReplaceSource { expected_source: String, source: String }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Collaboration/model.rs#L69)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `DeserializeOwned`
- `Same`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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