pub struct LoginResponseData {
pub api_key: SecUtf8,
pub master_keys_metadata: Option<String>,
pub private_key_metadata: Option<String>,
}Expand description
Response data for [LOGIN_PATH] endpoint.
Fields§
§api_key: SecUtf8Filen API key.
master_keys_metadata: Option<String>This string is a Filen metadata encrypted by the last master key and base64-encoded. It contains either a single master key string or multiple master keys strings delimited by ‘|’. Master key is in turn used to decrypt various metadata.
Empty when no keys were set (currently before the first login).
private_key_metadata: Option<String>A user’s RSA private key stored as Filen metadata encrypted by user’s last master key, containing a base64-encoded key bytes. Private key is currently used for decrypting name and metadata of the shared download folders.
Empty when no keys were set (currently before the first login).
Trait Implementations§
Source§impl Clone for LoginResponseData
impl Clone for LoginResponseData
Source§fn clone(&self) -> LoginResponseData
fn clone(&self) -> LoginResponseData
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 moreSource§impl Debug for LoginResponseData
impl Debug for LoginResponseData
Source§impl<'de> Deserialize<'de> for LoginResponseData
impl<'de> Deserialize<'de> for LoginResponseData
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
Source§impl Display for LoginResponseData
impl Display for LoginResponseData
Source§impl FilenResponse<LoginResponseData> for LoginResponsePayload
impl FilenResponse<LoginResponseData> for LoginResponsePayload
Source§fn status_ref(&self) -> bool
fn status_ref(&self) -> bool
True when API call was successful; false otherwise.
Source§fn message_ref(&self) -> Option<&str>
fn message_ref(&self) -> Option<&str>
Filen reason for success or failure.
Source§fn data_ref(&self) -> Option<&LoginResponseData>
fn data_ref(&self) -> Option<&LoginResponseData>
Reference to the data associated with response.
Source§impl HasMasterKeys for LoginResponseData
impl HasMasterKeys for LoginResponseData
Source§fn master_keys_metadata_ref(&self) -> Option<&str>
fn master_keys_metadata_ref(&self) -> Option<&str>
Gets a reference to master keys metadata, if present.
Source§impl HasPrivateKey for LoginResponseData
impl HasPrivateKey for LoginResponseData
Source§fn private_key_metadata_ref(&self) -> Option<&str>
fn private_key_metadata_ref(&self) -> Option<&str>
Gets a reference to private key metadata, if present.
Source§impl PartialEq for LoginResponseData
impl PartialEq for LoginResponseData
Source§fn eq(&self, other: &LoginResponseData) -> bool
fn eq(&self, other: &LoginResponseData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LoginResponseData
impl Serialize for LoginResponseData
impl Eq for LoginResponseData
impl StructuralPartialEq for LoginResponseData
Auto Trait Implementations§
impl Freeze for LoginResponseData
impl RefUnwindSafe for LoginResponseData
impl Send for LoginResponseData
impl Sync for LoginResponseData
impl Unpin for LoginResponseData
impl UnsafeUnpin for LoginResponseData
impl UnwindSafe for LoginResponseData
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