pub struct AssetNode {
pub path: String,
pub files: Vec<Entry>,
pub dirs: Vec<(String, AssetNode)>,
}Expand description
One directory level of the assets tree (§18.5). path is the folder’s /-relative path under
resource/assets/ ("" at the root); each child directory renders as an AssetDir const AND
a nested module sharing its name, so res::assets::web::minisite names the folder and
res::assets::web::minisite::index_html a file within it.
Fields§
§path: String§files: Vec<Entry>§dirs: Vec<(String, AssetNode)>(module/const symbol, subtree), sorted by symbol.
Trait Implementations§
impl Eq for AssetNode
impl StructuralPartialEq for AssetNode
Auto Trait Implementations§
impl Freeze for AssetNode
impl RefUnwindSafe for AssetNode
impl Send for AssetNode
impl Sync for AssetNode
impl Unpin for AssetNode
impl UnsafeUnpin for AssetNode
impl UnwindSafe for AssetNode
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