pub struct PairParams {
pub invite_line: String,
pub as_nickname: Option<String>,
}Expand description
Params of Request::Pair: the copyable mcpmesh-invite: line. Defaultable — an
absent field reads as an empty line, which simply fails to decode (a clean pair error).
Fields§
§invite_line: String§as_nickname: Option<String>YOUR local name for the inviter (#87), overriding the nickname their invite suggests.
An invite carries the inviter’s suggestion for what you should call them — usually their
hostname. If you already use that name for a different peer, the pairing is refused with
ERR_INVITE_NAME_CONFLICT and the message tells you to go ask them for a new invite.
This lets you resolve it yourself, without set_nickname (which rewrites your own GLOBAL
self-name — not what anyone wants in order to add one colleague).
Local only: never sent to the inviter. It does not bypass the collision check — an alias
that itself collides is refused identically, because a duplicate display name makes your own
<peer>/<service> routing ambiguous whoever chose it. api_minor >= 39.
Trait Implementations§
Source§impl Clone for PairParams
impl Clone for PairParams
Source§fn clone(&self) -> PairParams
fn clone(&self) -> PairParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more