pub struct InstallParams<'a> {
pub user_id: &'a str,
pub device_id: &'a str,
pub token: &'a str,
pub relay_url: &'a str,
pub hostname: &'a str,
pub device_private_key: Option<&'a str>,
pub email: &'a str,
pub identity_provider: &'a str,
}Expand description
Inputs for an atomic credential install. Everything the relay returned for a fresh device-code or pair handshake.
Fields§
§user_id: &'a str§device_id: &'a str§token: &'a str§relay_url: &'a str§hostname: &'a str§device_private_key: Option<&'a str>Optional pre-supplied X25519 device private key (base64url). When
None, install_credentials generates a fresh keypair if the user
does not already have one on this machine.
email: &'a strVerified email returned by the OAuth provider. Empty string when not available.
identity_provider: &'a strOAuth identity provider name (“google” or “github”). Empty string when not available.
Auto Trait Implementations§
impl<'a> Freeze for InstallParams<'a>
impl<'a> RefUnwindSafe for InstallParams<'a>
impl<'a> Send for InstallParams<'a>
impl<'a> Sync for InstallParams<'a>
impl<'a> Unpin for InstallParams<'a>
impl<'a> UnsafeUnpin for InstallParams<'a>
impl<'a> UnwindSafe for InstallParams<'a>
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