# Invitation

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

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

```rust
struct Invitation
```



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

## Members

- [`protocol`](#struct_field-protocol)
- [`endpoint`](#struct_field-endpoint)
- [`room`](#struct_field-room)
- [`invite`](#struct_field-invite)
- [`encode`](#function-encode)
- [`decode`](#function-decode)

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

### protocol

```rust
protocol: u32
```



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

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

### endpoint

```rust
endpoint: Endpoint
```



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

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

### room

```rust
room: String
```



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

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

### invite

```rust
invite: Secret
```



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

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

### encode

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



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

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

### decode

```rust
fn decode(value: &str) -> Result<Self>
```



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

## 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`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `Serialize`
- `Deserialize<'de>`

## Availability

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