Enum InitUserCryptoMethod
pub enum InitUserCryptoMethod {
Password {
password: String,
user_key: String,
},
DecryptedKey {
decrypted_user_key: String,
},
Pin {
pin: String,
pin_protected_user_key: EncString,
},
AuthRequest {
request_private_key: String,
method: AuthRequestMethod,
},
DeviceKey {
device_key: String,
protected_device_private_key: EncString,
device_protected_user_key: AsymmetricEncString,
},
KeyConnector {
master_key: String,
user_key: String,
},
}
Variants§
Password
Fields
DecryptedKey
Fields
Pin
Fields
§
pin_protected_user_key: EncString
The user’s symmetric crypto key, encrypted with the PIN. Use derive_pin_key
to obtain
this.
AuthRequest
Fields
§
method: AuthRequestMethod
DeviceKey
Fields
§
protected_device_private_key: EncString
The Device Private Key
§
device_protected_user_key: AsymmetricEncString
The user’s symmetric crypto key, encrypted with the Device Key.
KeyConnector
Trait Implementations§
§impl Debug for InitUserCryptoMethod
impl Debug for InitUserCryptoMethod
§impl<'de> Deserialize<'de> for InitUserCryptoMethod
impl<'de> Deserialize<'de> for InitUserCryptoMethod
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InitUserCryptoMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InitUserCryptoMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl JsonSchema for InitUserCryptoMethod
impl JsonSchema for InitUserCryptoMethod
§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read more§impl Serialize for InitUserCryptoMethod
impl Serialize for InitUserCryptoMethod
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for InitUserCryptoMethod
impl RefUnwindSafe for InitUserCryptoMethod
impl Send for InitUserCryptoMethod
impl Sync for InitUserCryptoMethod
impl Unpin for InitUserCryptoMethod
impl UnwindSafe for InitUserCryptoMethod
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more