pub struct DocumentHandle {
pub file_hash: String,
pub filename: String,
pub mime_type: String,
pub size: u64,
pub storage_path: String,
}Expand description
A stored file, as a :document field holds it.
This is a pointer to the contents rather than the contents: it is what an upload answers with, what a record stores, and what identifies the file afterwards.
Fields§
§file_hash: StringThe SHA-256 of the contents, which is the file’s identity in the store.
filename: StringThe name the file is stored under.
mime_type: StringThe media type of the contents, such as application/pdf.
size: u64The size of the contents in bytes.
storage_path: StringWhere the store keeps the file.
Trait Implementations§
Source§impl Clone for DocumentHandle
impl Clone for DocumentHandle
Source§impl Debug for DocumentHandle
impl Debug for DocumentHandle
Source§impl Default for DocumentHandle
impl Default for DocumentHandle
Source§impl<'de> Deserialize<'de> for DocumentHandle
impl<'de> Deserialize<'de> for DocumentHandle
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
impl Eq for DocumentHandle
Source§impl PartialEq for DocumentHandle
impl PartialEq for DocumentHandle
Source§impl Serialize for DocumentHandle
impl Serialize for DocumentHandle
impl StructuralPartialEq for DocumentHandle
Auto Trait Implementations§
impl Freeze for DocumentHandle
impl RefUnwindSafe for DocumentHandle
impl Send for DocumentHandle
impl Sync for DocumentHandle
impl Unpin for DocumentHandle
impl UnsafeUnpin for DocumentHandle
impl UnwindSafe for DocumentHandle
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