pub struct ResourceSpec {
pub file: String,
pub alias: Option<String>,
pub recurse: bool,
}Expand description
A file or a folder to bundle as resources.
Fields§
§file: StringThe file or folder.
alias: Option<String>The name to give it in the image (file=alias), if not the
file’s own path written as a URL.
recurse: boolFor a folder, whether the folders in it are bundled too.
Trait Implementations§
Source§impl Clone for ResourceSpec
impl Clone for ResourceSpec
Source§impl Debug for ResourceSpec
impl Debug for ResourceSpec
impl Eq for ResourceSpec
Source§impl PartialEq for ResourceSpec
impl PartialEq for ResourceSpec
impl StructuralPartialEq for ResourceSpec
Auto Trait Implementations§
impl Forget for ResourceSpec
impl Freeze for ResourceSpec
impl Move for ResourceSpec
impl RefUnwindSafe for ResourceSpec
impl Send for ResourceSpecwhere
RawVecInner: Send,
impl Sync for ResourceSpecwhere
RawVecInner: Sync,
impl Unpin for ResourceSpec
impl UnsafeUnpin for ResourceSpec
impl UnwindSafe for ResourceSpecwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.