pub struct AttachmentDiagnostic {
pub total_attachments: usize,
pub total_bytes_referenced: u64,
pub total_bytes_on_disk: u64,
pub missing_files: usize,
pub no_path_provided: usize,
}Expand description
Diagnostic data for the attachment table
Fields§
§total_attachments: usizeThe total number of attachments in the table
total_bytes_referenced: u64The sum of total_bytes for all attachments referenced in the table
total_bytes_on_disk: u64The total size of attachment files present on disk
missing_files: usizeThe number of attachments with missing files (no path or file not found)
no_path_provided: usizeThe number of attachments with no path provided in the table
Implementations§
Source§impl AttachmentDiagnostic
impl AttachmentDiagnostic
Sourcepub fn no_file_located(&self) -> usize
pub fn no_file_located(&self) -> usize
The number of attachments where a path was provided but no file was found at that location
Sourcepub fn missing_percent(&self) -> Option<f64>
pub fn missing_percent(&self) -> Option<f64>
The percentage of attachments that are missing, or None if there are no attachments
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttachmentDiagnostic
impl RefUnwindSafe for AttachmentDiagnostic
impl Send for AttachmentDiagnostic
impl Sync for AttachmentDiagnostic
impl Unpin for AttachmentDiagnostic
impl UnsafeUnpin for AttachmentDiagnostic
impl UnwindSafe for AttachmentDiagnostic
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