pub struct FileCredential {
pub id: B64Url,
pub name: String,
pub decrypted_size: u64,
pub integrity_hash: B64Url,
}Expand description
A FileCredential acts as a placeholder to an arbitrary binary file holding its associated metadata. When an importing provider encounters a file credential, they MAY request the file afterwards if they have a direct exchange. If the exchange will produce an export response file, then the associated encrypted file MUST be stored in the documents folder of the zip archive.
Fields§
§id: B64UrlThe file’s identifier, used as the file name in the zip archive.
name: StringThe file name with the file extension if applicable.
decrypted_size: u64The file’s decrypted size in bytes.
integrity_hash: B64UrlThe SHA256 hash of the decrypted file. This hash MUST be used by the importing provider when the file is decrypted to ensure that it has not been corrupted.
Trait Implementations§
Source§impl Clone for FileCredential
impl Clone for FileCredential
Source§fn clone(&self) -> FileCredential
fn clone(&self) -> FileCredential
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 moreSource§impl Debug for FileCredential
impl Debug for FileCredential
Source§impl<'de> Deserialize<'de> for FileCredential
impl<'de> Deserialize<'de> for FileCredential
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
Auto Trait Implementations§
impl Freeze for FileCredential
impl RefUnwindSafe for FileCredential
impl Send for FileCredential
impl Sync for FileCredential
impl Unpin for FileCredential
impl UnwindSafe for FileCredential
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