pub(crate) fn get_path_type(path: Path) -> Option<Ident>
Returns the final type name from a path in format path::to::Type.
path::to::Type