Skip to content

Struct command::object::InviteLink

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

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.

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

Wraps a link built by the host.

pub fn expose(&self) -> &str

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

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

Full rustdoc page