Struct xplr::config::NodeTypesConfig
source · pub struct NodeTypesConfig {
pub directory: NodeTypeConfig,
pub file: NodeTypeConfig,
pub symlink: NodeTypeConfig,
pub mime_essence: HashMap<String, HashMap<String, NodeTypeConfig>>,
pub extension: HashMap<String, NodeTypeConfig>,
pub special: HashMap<String, NodeTypeConfig>,
}
Fields§
§directory: NodeTypeConfig
§file: NodeTypeConfig
§symlink: NodeTypeConfig
§mime_essence: HashMap<String, HashMap<String, NodeTypeConfig>>
§extension: HashMap<String, NodeTypeConfig>
§special: HashMap<String, NodeTypeConfig>
Implementations§
source§impl NodeTypesConfig
impl NodeTypesConfig
pub fn get(&self, node: &Node) -> NodeTypeConfig
Trait Implementations§
source§impl Clone for NodeTypesConfig
impl Clone for NodeTypesConfig
source§fn clone(&self) -> NodeTypesConfig
fn clone(&self) -> NodeTypesConfig
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 NodeTypesConfig
impl Debug for NodeTypesConfig
source§impl Default for NodeTypesConfig
impl Default for NodeTypesConfig
source§fn default() -> NodeTypesConfig
fn default() -> NodeTypesConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NodeTypesConfig
impl<'de> Deserialize<'de> for NodeTypesConfig
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 NodeTypesConfig
impl RefUnwindSafe for NodeTypesConfig
impl Send for NodeTypesConfig
impl Sync for NodeTypesConfig
impl Unpin for NodeTypesConfig
impl UnwindSafe for NodeTypesConfig
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