pub struct ClientRegistration {
pub id: String,
pub rsa_public_key: RsaPublicKey,
pub encrypted_keys: KeysPayload,
/* private fields */
}Fields§
§id: String§rsa_public_key: RsaPublicKey§encrypted_keys: KeysPayloadImplementations§
Source§impl ClientRegistration
impl ClientRegistration
pub fn new_from_creds( id: &str, password: &str, domain: Option<&str>, ) -> Result<Self, ClientError>
pub fn random_number(&self) -> &Vec<u8> ⓘ
pub fn hashed_auth_key(&self) -> &Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for ClientRegistration
impl Clone for ClientRegistration
Source§fn clone(&self) -> ClientRegistration
fn clone(&self) -> ClientRegistration
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 moreAuto Trait Implementations§
impl Freeze for ClientRegistration
impl RefUnwindSafe for ClientRegistration
impl Send for ClientRegistration
impl Sync for ClientRegistration
impl Unpin for ClientRegistration
impl UnsafeUnpin for ClientRegistration
impl UnwindSafe for ClientRegistration
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