pub struct FileHandler {
pub action: String,
pub name: String,
pub icons: Option<Vec<ImageResource>>,
pub accepts: Option<Vec<FileFilter>>,
pub launchType: String,
}Fields§
§action: String§name: String§icons: Option<Vec<ImageResource>>§accepts: Option<Vec<FileFilter>>Mimic a map, name is the key, accepts is the value.
launchType: StringWon’t repeat the enums, using string for easy comparison. Same as the other enums below.
Trait Implementations§
Source§impl Clone for FileHandler
impl Clone for FileHandler
Source§fn clone(&self) -> FileHandler
fn clone(&self) -> FileHandler
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 FileHandler
impl Debug for FileHandler
Source§impl Default for FileHandler
impl Default for FileHandler
Source§fn default() -> FileHandler
fn default() -> FileHandler
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileHandler
impl<'de> Deserialize<'de> for FileHandler
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 FileHandler
impl RefUnwindSafe for FileHandler
impl Send for FileHandler
impl Sync for FileHandler
impl Unpin for FileHandler
impl UnsafeUnpin for FileHandler
impl UnwindSafe for FileHandler
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