pub struct Preview {
pub name: String,
pub size: u64,
pub mime: String,
pub kind: Kind,
pub text: Option<String>,
pub data: Option<String>,
}Fields§
§name: String§size: u64§mime: String§kind: Kind§text: Option<String>§data: Option<String>base64 of the file (images, PDFs) within the preview limits.
Trait Implementations§
impl Eq for Preview
impl StructuralPartialEq for Preview
Auto Trait Implementations§
impl Freeze for Preview
impl RefUnwindSafe for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnsafeUnpin for Preview
impl UnwindSafe for Preview
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