pub struct FileReference {
pub device: DeviceId,
pub object: ObjectId,
pub key: FileKey,
}Expand description
A file’s fixed uploader, random storage name and decryption key. This identity carries neither upload status nor a device-local path.
Fields§
§device: DeviceIdDevice responsible for uploading the object.
object: ObjectIdThe stored object’s random id, its name in storage (§17.5).
key: FileKeyKey carried only inside encrypted rows and writes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileReference
impl RefUnwindSafe for FileReference
impl Send for FileReference
impl Sync for FileReference
impl Unpin for FileReference
impl UnsafeUnpin for FileReference
impl UnwindSafe for FileReference
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