#[repr(C)]pub struct QarPanelContentFile {
pub path: *const c_char,
pub mime_type: *const c_char,
pub data: *const u8,
pub size: usize,
}Expand description
@brief One file handed to qar_panel_content_publish_files().
Every pointer is read during the call only; the bytes are copied.
Fields§
§path: *const c_charRelative, ‘/’-separated path inside the bundle.
mime_type: *const c_charNULL or empty: taken from the path’s extension. Otherwise it must be the type that extension is served as.
data: *const u8§size: usizeTrait Implementations§
Source§impl Clone for QarPanelContentFile
impl Clone for QarPanelContentFile
impl Copy for QarPanelContentFile
Source§impl Debug for QarPanelContentFile
impl Debug for QarPanelContentFile
Source§impl PartialEq for QarPanelContentFile
impl PartialEq for QarPanelContentFile
impl StructuralPartialEq for QarPanelContentFile
Auto Trait Implementations§
impl !Send for QarPanelContentFile
impl !Sync for QarPanelContentFile
impl Freeze for QarPanelContentFile
impl RefUnwindSafe for QarPanelContentFile
impl Unpin for QarPanelContentFile
impl UnsafeUnpin for QarPanelContentFile
impl UnwindSafe for QarPanelContentFile
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