pub struct DefaultExt {
pub extension: String,
pub content_type: String,
}Expand description
默认 Content-Type(按扩展名匹配)。
Fields§
§extension: String扩展名(不带 .)。
content_type: StringContent-Type 字符串。
Implementations§
Source§impl DefaultExt
impl DefaultExt
Trait Implementations§
Source§impl Clone for DefaultExt
impl Clone for DefaultExt
Source§fn clone(&self) -> DefaultExt
fn clone(&self) -> DefaultExt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DefaultExt
impl RefUnwindSafe for DefaultExt
impl Send for DefaultExt
impl Sync for DefaultExt
impl Unpin for DefaultExt
impl UnsafeUnpin for DefaultExt
impl UnwindSafe for DefaultExt
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