pub struct AssetFallbackConfig {
pub scope: String,
pub status_code: Option<StatusCode>,
}Expand description
Configuration for an asset to be used as a fallback for a specific scope.
See the fallback_for configuration of the AssetConfig interface for more information.
Fields§
§scope: StringThe scope to use this asset as a fallback for.
See the fallback_for configuration of the AssetConfig interface for more information.
status_code: Option<StatusCode>The HTTP status code to return when serving the asset. If this value is not provided, the default status code will be 200.
Trait Implementations§
Source§impl Clone for AssetFallbackConfig
impl Clone for AssetFallbackConfig
Source§fn clone(&self) -> AssetFallbackConfig
fn clone(&self) -> AssetFallbackConfig
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 AssetFallbackConfig
impl RefUnwindSafe for AssetFallbackConfig
impl Send for AssetFallbackConfig
impl Sync for AssetFallbackConfig
impl Unpin for AssetFallbackConfig
impl UnwindSafe for AssetFallbackConfig
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