# SyncMessage

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

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

```rust
struct SyncMessage
```



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

## Members

- [`protocol`](#struct_field-protocol)
- [`document_id`](#struct_field-document_id)
- [`baseline_hash`](#struct_field-baseline_hash)
- [`operations`](#struct_field-operations)
- [`to_json`](#function-to_json)
- [`from_json`](#function-from_json)

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

### protocol

```rust
protocol: u32
```



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

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

### document_id

```rust
document_id: String
```



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

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

### baseline_hash

```rust
baseline_hash: String
```

SHA-256 of the exact UTF-8 baseline, rejecting accidental cross-session messages.

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

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

### operations

```rust
operations: Vec<Operation>
```



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

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

### to_json

```rust
fn to_json(self: &Self) -> Result<String>
```



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

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

### from_json

```rust
fn from_json(source: &str) -> Result<Self>
```



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

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