pub struct DocumentRef {
pub id: String,
pub file_path: String,
pub source: String,
pub metadata: Option<String>,
pub spool_offset: Option<u64>,
pub spool_length: Option<u32>,
}Expand description
Document reference (points to compressed file OR spool location)
Fields§
§id: String§file_path: String§source: String§metadata: Option<String>§spool_offset: Option<u64>If present, this document is in a spool at this byte offset
spool_length: Option<u32>Length of the document in the spool
Trait Implementations§
Source§impl Clone for DocumentRef
impl Clone for DocumentRef
Source§fn clone(&self) -> DocumentRef
fn clone(&self) -> DocumentRef
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 moreAuto Trait Implementations§
impl Freeze for DocumentRef
impl RefUnwindSafe for DocumentRef
impl Send for DocumentRef
impl Sync for DocumentRef
impl Unpin for DocumentRef
impl UnwindSafe for DocumentRef
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