Struct V2EncryptedFileInfo
#[non_exhaustive]pub struct V2EncryptedFileInfo {
pub k: Base64<UrlSafe, [u8; 32]>,
pub iv: Base64<Standard, [u8; 16]>,
}Expand description
A file encrypted with the AES-CTR algorithm with a 256-bit key.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.k: Base64<UrlSafe, [u8; 32]>The 256-bit key used to encrypt or decrypt the file.
iv: Base64<Standard, [u8; 16]>The 128-bit unique counter block used by AES-CTR.
Implementations§
§impl V2EncryptedFileInfo
impl V2EncryptedFileInfo
Trait Implementations§
§impl Clone for V2EncryptedFileInfo
impl Clone for V2EncryptedFileInfo
§fn clone(&self) -> V2EncryptedFileInfo
fn clone(&self) -> V2EncryptedFileInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for V2EncryptedFileInfo
impl Debug for V2EncryptedFileInfo
§impl<'de> Deserialize<'de> for V2EncryptedFileInfo
impl<'de> Deserialize<'de> for V2EncryptedFileInfo
§fn deserialize<D>(
deserializer: D,
) -> Result<V2EncryptedFileInfo, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<V2EncryptedFileInfo, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Drop for V2EncryptedFileInfo
impl Drop for V2EncryptedFileInfo
§impl From<V2EncryptedFileInfo> for EncryptedFileInfo
impl From<V2EncryptedFileInfo> for EncryptedFileInfo
§fn from(value: V2EncryptedFileInfo) -> EncryptedFileInfo
fn from(value: V2EncryptedFileInfo) -> EncryptedFileInfo
Converts to this type from the input type.
§impl Serialize for V2EncryptedFileInfo
impl Serialize for V2EncryptedFileInfo
§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 V2EncryptedFileInfo
impl RefUnwindSafe for V2EncryptedFileInfo
impl Send for V2EncryptedFileInfo
impl Sync for V2EncryptedFileInfo
impl Unpin for V2EncryptedFileInfo
impl UnsafeUnpin for V2EncryptedFileInfo
impl UnwindSafe for V2EncryptedFileInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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