pub struct Registration {
pub relay: String,
pub secret: [u8; 32],
pub fingerprint: [u8; 16],
}Expand description
A registration token, as the logged-in user hands it to the machine to register: the relay’s URL, the enrollment secret, and the fingerprint of the account’s public keys, which the machine checks the keys the relay gives it against (#86), so a relay cannot swap the account’s keys.
Fields§
§relay: StringThe relay’s URL.
secret: [u8; 32]The enrollment secret.
fingerprint: [u8; 16]The fingerprint of the account’s public keys.
Implementations§
Trait Implementations§
Source§impl Clone for Registration
impl Clone for Registration
Source§impl Debug for Registration
impl Debug for Registration
impl Eq for Registration
Source§impl PartialEq for Registration
impl PartialEq for Registration
impl StructuralPartialEq for Registration
Auto Trait Implementations§
impl Forget for Registration
impl Freeze for Registration
impl Move for Registration
impl RefUnwindSafe for Registration
impl Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl UnsafeUnpin for Registration
impl UnwindSafe for Registration
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