pub struct EmbeddedFile {
pub relative_path: &'static str,
pub contents: &'static [u8],
}Expand description
A file embedded in the ito-templates assets.
Fields§
§relative_path: &'static strPath relative to the template root directory.
contents: &'static [u8]Raw file contents.
Trait Implementations§
Source§impl Clone for EmbeddedFile
impl Clone for EmbeddedFile
Source§fn clone(&self) -> EmbeddedFile
fn clone(&self) -> EmbeddedFile
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 moreSource§impl Debug for EmbeddedFile
impl Debug for EmbeddedFile
Source§impl PartialEq for EmbeddedFile
impl PartialEq for EmbeddedFile
impl Copy for EmbeddedFile
impl Eq for EmbeddedFile
impl StructuralPartialEq for EmbeddedFile
Auto Trait Implementations§
impl Freeze for EmbeddedFile
impl RefUnwindSafe for EmbeddedFile
impl Send for EmbeddedFile
impl Sync for EmbeddedFile
impl Unpin for EmbeddedFile
impl UnwindSafe for EmbeddedFile
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