pub struct FileFilterDTO {
pub Name: String,
pub ExtensionList: Vec<String>,
}Expand description
A serializable struct that represents a single selectable filter in a file dialog’s “files of type” dropdown.
Fields§
§Name: StringThe human-readable name of the filter (e.g., “Image Files”).
ExtensionList: Vec<String>A list of file extensions associated with this filter (e.g., ["jpg", "png"]).
Trait Implementations§
Source§impl Clone for FileFilterDTO
impl Clone for FileFilterDTO
Source§fn clone(&self) -> FileFilterDTO
fn clone(&self) -> FileFilterDTO
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 FileFilterDTO
impl Debug for FileFilterDTO
Source§impl Default for FileFilterDTO
impl Default for FileFilterDTO
Source§fn default() -> FileFilterDTO
fn default() -> FileFilterDTO
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileFilterDTO
impl<'de> Deserialize<'de> for FileFilterDTO
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 FileFilterDTO
impl RefUnwindSafe for FileFilterDTO
impl Send for FileFilterDTO
impl Sync for FileFilterDTO
impl Unpin for FileFilterDTO
impl UnwindSafe for FileFilterDTO
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