pub struct WebMimeType {
pub content_type: Option<String>,
pub is_image: Option<bool>,
pub is_svg_image: Option<bool>,
pub is_text: Option<bool>,
pub is_video: Option<bool>,
pub is_audio: Option<bool>,
pub is_pdf: Option<bool>,
pub externsion: Option<String>,
pub is_browsable_binary_type: Option<bool>,
pub is_representable_as_text: Option<bool>,
}
Expand description
WebMimeType 模型
Fields§
§content_type: Option<String>
§is_image: Option<bool>
§is_svg_image: Option<bool>
§is_text: Option<bool>
§is_video: Option<bool>
§is_audio: Option<bool>
§is_pdf: Option<bool>
§externsion: Option<String>
§is_browsable_binary_type: Option<bool>
§is_representable_as_text: Option<bool>
Trait Implementations§
Source§impl Clone for WebMimeType
impl Clone for WebMimeType
Source§fn clone(&self) -> WebMimeType
fn clone(&self) -> WebMimeType
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 moreSource§impl Debug for WebMimeType
impl Debug for WebMimeType
Source§impl<'de> Deserialize<'de> for WebMimeType
impl<'de> Deserialize<'de> for WebMimeType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WebMimeType
impl RefUnwindSafe for WebMimeType
impl Send for WebMimeType
impl Sync for WebMimeType
impl Unpin for WebMimeType
impl UnwindSafe for WebMimeType
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