pub struct Resolved {
pub file: &'static EmbeddedFile,
pub cache_control: Option<&'static str>,
}Expand description
The outcome of resolving a request path against an Assets set: which file to serve and the
Cache-Control to send with it. Returned by Assets::resolve.
Fields§
§file: &'static EmbeddedFileThe matched file.
cache_control: Option<&'static str>The Cache-Control to set, or None to send none for custom route tables.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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