pub struct IconConfig {
pub enabled: bool,
pub directory: Option<String>,
pub executable: Option<String>,
pub regular: Option<String>,
pub symlink: Option<String>,
pub paths: HashMap<(u64, u64), String>,
pub patterns: Vec<IconPattern>,
}Fields§
§enabled: bool§directory: Option<String>§executable: Option<String>§regular: Option<String>§symlink: Option<String>§paths: HashMap<(u64, u64), String>Icons by filesystem identity, resolved from path keys when reading configuration.
patterns: Vec<IconPattern>Implementations§
Source§impl IconConfig
impl IconConfig
pub fn get_directory_icon(&self) -> String
pub fn get_executable_icon(&self) -> String
pub fn get_regular_icon(&self) -> String
pub fn get_symlink_icon(&self) -> String
Trait Implementations§
Source§impl Clone for IconConfig
impl Clone for IconConfig
Source§impl Debug for IconConfig
impl Debug for IconConfig
Source§impl Default for IconConfig
impl Default for IconConfig
Source§impl<'de> Deserialize<'de> for IconConfig
impl<'de> Deserialize<'de> for IconConfig
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 IconConfig
impl RefUnwindSafe for IconConfig
impl Send for IconConfig
impl Sync for IconConfig
impl Unpin for IconConfig
impl UnsafeUnpin for IconConfig
impl UnwindSafe for IconConfig
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