pub struct PanelContentFile {
pub path: String,
pub mime_type: Option<String>,
pub data: Vec<u8>,
}Expand description
One file of PanelContent::publish_files (QarPanelContentFile).
Fields§
§path: StringRelative, /-separated path inside the bundle.
mime_type: Option<String>None: taken from the path’s extension. Otherwise it must be the type that extension
is served as.
data: Vec<u8>Trait Implementations§
Source§impl Clone for PanelContentFile
impl Clone for PanelContentFile
Source§impl Debug for PanelContentFile
impl Debug for PanelContentFile
impl Eq for PanelContentFile
Source§impl PartialEq for PanelContentFile
impl PartialEq for PanelContentFile
impl StructuralPartialEq for PanelContentFile
Auto Trait Implementations§
impl Freeze for PanelContentFile
impl RefUnwindSafe for PanelContentFile
impl Send for PanelContentFile
impl Sync for PanelContentFile
impl Unpin for PanelContentFile
impl UnsafeUnpin for PanelContentFile
impl UnwindSafe for PanelContentFile
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