pub struct Invitation {
pub P: RistrettoPoint,
pub Q: RistrettoPoint,
pub inv_id: Scalar,
pub date: Scalar,
pub bucket: Scalar,
pub blockages: Scalar,
}Expand description
The Invitation credential.
These credentials allow a Lox user (the inviter) of sufficient trust (level 2 or higher) to invite someone else (the invitee) to join the system. The invitee ends up at trust level 1, in the same bucket as the inviter, and inherits the inviter’s blockages count (so that you can’t clear your blockages count simply by inviting yourself). Invitations expire after some amount of time.
Fields§
§P: RistrettoPoint§Q: RistrettoPoint§inv_id: Scalar§date: Scalar§bucket: Scalar§blockages: ScalarTrait Implementations§
Source§impl Debug for Invitation
impl Debug for Invitation
Source§impl<'de> Deserialize<'de> for Invitation
impl<'de> Deserialize<'de> for Invitation
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 Invitation
impl RefUnwindSafe for Invitation
impl Send for Invitation
impl Sync for Invitation
impl Unpin for Invitation
impl UnsafeUnpin for Invitation
impl UnwindSafe for Invitation
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