Enum manganis_common::FileOptions
source · pub enum FileOptions {
Image(ImageOptions),
Video(VideoOptions),
Font(FontOptions),
Css(CssOptions),
Other(UnknownFileOptions),
}
Expand description
The options for a file asset
Variants§
Image(ImageOptions)
An image asset
Video(VideoOptions)
A video asset
Font(FontOptions)
A font asset
Css(CssOptions)
A css asset
Other(UnknownFileOptions)
Any other asset
Implementations§
Trait Implementations§
source§impl Clone for FileOptions
impl Clone for FileOptions
source§fn clone(&self) -> FileOptions
fn clone(&self) -> FileOptions
Returns a copy 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 FileOptions
impl Debug for FileOptions
source§impl Default for FileOptions
impl Default for FileOptions
source§impl<'de> Deserialize<'de> for FileOptions
impl<'de> Deserialize<'de> for FileOptions
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
source§impl Display for FileOptions
impl Display for FileOptions
source§impl Hash for FileOptions
impl Hash for FileOptions
source§impl PartialEq for FileOptions
impl PartialEq for FileOptions
source§fn eq(&self, other: &FileOptions) -> bool
fn eq(&self, other: &FileOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FileOptions
impl PartialOrd for FileOptions
source§fn partial_cmp(&self, other: &FileOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &FileOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for FileOptions
impl Serialize for FileOptions
impl StructuralPartialEq for FileOptions
Auto Trait Implementations§
impl Freeze for FileOptions
impl RefUnwindSafe for FileOptions
impl Send for FileOptions
impl Sync for FileOptions
impl Unpin for FileOptions
impl UnwindSafe for FileOptions
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