pub struct InviteToken {
pub token: String,
pub team_id: String,
pub bound_pubkey: String,
}Expand description
An opaque invite token produced by CollabRemote::create_invite.
The token carries the team ID and the invitee’s expected public key so that the confirm step can enforce the TOFU binding (ADR-028).
Fields§
§token: StringUnique token string delivered to the invitee out-of-band.
team_id: StringTeam the invite is for.
bound_pubkey: StringThe age public key the invite was bound to.
Trait Implementations§
Source§impl Clone for InviteToken
impl Clone for InviteToken
Source§fn clone(&self) -> InviteToken
fn clone(&self) -> InviteToken
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 InviteToken
impl Debug for InviteToken
Source§impl<'de> Deserialize<'de> for InviteToken
impl<'de> Deserialize<'de> for InviteToken
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
Auto Trait Implementations§
impl Freeze for InviteToken
impl RefUnwindSafe for InviteToken
impl Send for InviteToken
impl Sync for InviteToken
impl Unpin for InviteToken
impl UnsafeUnpin for InviteToken
impl UnwindSafe for InviteToken
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