pub struct StaticAsset {
pub route: String,
pub headers: HashMap<String, String>,
pub body: Vec<u8>,
}Expand description
Pre-rendered static asset produced by the CLI bundler.
Fields§
§route: String§headers: HashMap<String, String>§body: Vec<u8>Implementations§
Source§impl StaticAsset
impl StaticAsset
Trait Implementations§
Source§impl Clone for StaticAsset
impl Clone for StaticAsset
Source§fn clone(&self) -> StaticAsset
fn clone(&self) -> StaticAsset
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 moreAuto Trait Implementations§
impl Freeze for StaticAsset
impl RefUnwindSafe for StaticAsset
impl Send for StaticAsset
impl Sync for StaticAsset
impl Unpin for StaticAsset
impl UnwindSafe for StaticAsset
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