# Struct command::object::InviteLink

> A `zaun://join/…` link. It embeds the `crate::ids::InviteSecret`, so `Debug` is redacted; the text is reachable only through `InviteLink::expose`.

`zaun_community_protocol::command::object::InviteLink` · Struct

```rust
pub struct InviteLink(…)
```

A `zaun://join/…` link. It embeds the `crate::ids::InviteSecret`, so `Debug` is
redacted; the text is reachable only through `InviteLink::expose`.

## Methods

### `new`

```rust
pub const fn new(link: String) -> Self
```

Wraps a link built by the host.

### `expose`

```rust
pub fn expose(&self) -> &str
```

The link text, for the one place it is shown.

## Trait implementations

`Clone`, `Debug`, `Deserialize<'de>`, `Eq`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/invite/struct.InviteLink.html)
