/// return true if current selected item is a resource
return true if current selected item is a resource
return true if current selected item is a resource
pub fn is_resource(&self) -> bool {
        if self.depth != 2 {
            false
        } else {
            let mut sec_sub = self.sec_key[0].clone();
            sec_sub.push_str(&self.sec_key[1]);
            self.resource_sections.contains(&sec_sub)
        }
    }
pub fn is_resource ( & self ) -> bool { if self . depth != 2 { false } else { let mut sec_sub = self . sec_key [ 0 ] . clone ( ) ; sec_sub . push_str ( & self . sec_key [ 1 ] ) ; self . resource_sections . contains ( & sec_sub ) } }
return true if current selected item is a resource
return true if current selected item is a resource
&self