pub struct Invite {
pub server: String,
pub name: Option<String>,
pub addrs: Vec<SocketAddr>,
pub relays: Vec<String>,
pub lookup: Option<String>,
pub code: Option<String>,
pub expires_at: Option<u64>,
pub role: Option<Role>,
pub kind: InviteLinkKind,
}Expand description
What an invite link holds.
Fields§
§server: StringThe server’s EndpointId, hex, lowercase.
name: Option<String>What the server calls itself, for the join form until it answers.
addrs: Vec<SocketAddr>Addresses it may be reached at.
relays: Vec<String>The URLs of relays it may be reached through.
lookup: Option<String>The pkarr relay it publishes where it is to (P6-05): a device looks it up there by its key when no hint reaches it.
code: Option<String>The invite’s code, normalized; None for a link that only finds
the server.
expires_at: Option<u64>When the code stops working, in Unix seconds: a hint.
role: Option<Role>The role the account is made with: a hint.
kind: InviteLinkKindWhat the code does: a hint.
Implementations§
Trait Implementations§
impl Eq for Invite
impl StructuralPartialEq for Invite
Auto Trait Implementations§
impl Freeze for Invite
impl RefUnwindSafe for Invite
impl Send for Invite
impl Sync for Invite
impl Unpin for Invite
impl UnsafeUnpin for Invite
impl UnwindSafe for Invite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more