pub struct InviteResult {
pub invite_line: String,
pub expires_at_epoch: u64,
}Expand description
Result of an Request::Invite request: the copyable mcpmesh-invite: artifact
(spec §1.5 surface #2 — the ONE pairing artifact deliberately carved out of the
transport-vocabulary blocklist, so this is NOT a transport-vocab leak) plus its
absolute expiry in epoch seconds (≤ now + 24h).
Additive-only (§6.1): any future field (e.g. the computed SAS, once the inviter side
surfaces it) MUST land as #[serde(default, skip_serializing_if = ...)] so older
payloads still deserialize.
Fields§
§invite_line: StringThe mcpmesh-invite:<base32> line, copied out-of-band to the redeemer.
expires_at_epoch: u64When the invite expires (epoch seconds); the daemon burns it at redemption or expiry.
Trait Implementations§
Source§impl Clone for InviteResult
impl Clone for InviteResult
Source§fn clone(&self) -> InviteResult
fn clone(&self) -> InviteResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InviteResult
impl Debug for InviteResult
Source§impl<'de> Deserialize<'de> for InviteResult
impl<'de> Deserialize<'de> for InviteResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InviteResult
Source§impl PartialEq for InviteResult
impl PartialEq for InviteResult
Source§impl Serialize for InviteResult
impl Serialize for InviteResult
impl StructuralPartialEq for InviteResult
Auto Trait Implementations§
impl Freeze for InviteResult
impl RefUnwindSafe for InviteResult
impl Send for InviteResult
impl Sync for InviteResult
impl Unpin for InviteResult
impl UnsafeUnpin for InviteResult
impl UnwindSafe for InviteResult
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