You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: supported_versions.rs
    path of file: ./repos/fuels-rs/packages/fuels-accounts/src/provider
    
    the code of the file until where you have to start completion: use semver::Version;

fn get_supported_fuel_core_version() -> Version {
    "0.22.0".parse().expect("is valid version")
}

#[derive(Debug, PartialEq, Eq)]
pub(crate) struct VersionCompatibility {
    pub(crate) supported_version: Version,
    pub(crate) is_major_supported: bool,
    pub(crate) is_minor_supported: bool,
    pub(crate) is_patch_supported: bool,
}

pub(crate) fn check_fuel_core_version_compatibility(
    network_version: Version,
) -> VersionCompatibility {
    let supported_version = get_supported_fuel_core_version();
    check_version_compatibility(network_version, supported_version)
}

fn check_version_compatibility(
    actual_version: Version,
    expected_version: Version,
) -> VersionCompatibility {
    let is_major_supported = expected_version.major == actual_version.major;
    let is_minor_supported = expected_version.minor == actual_version.minor;
    let is_patch_supported = expected_version.patch == actual_version.patch;

    VersionCompatibility {
        supported_version: expected_version,
        is_major_supported,
        is_minor_supported,
        is_patch_supported,
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn should_validate_all_possible_version_mismatches() {
        let expected_version = "0.1.2".parse::<Version>().unwrap();

        assert_eq!(
            check_version_compatibility("1.1.2".parse().unwrap(), expected_version.clone()),
            VersionCompatibility {
                is_major_supported: false,
                is_minor_supported: true,
                is_patch_supported: true,
                supported_version: expected_version.clone()
            }
        );

        assert_eq!(
            check_version_compatibility("1.2.2".parse().unwrap(), expected_version.clone()),
            VersionCom
    
    fn should_validate_all_possible_version_mismatches() {
        let expected_version = "0.1.2".parse::<Version>().unwrap();

        assert_eq!(
            check_version_compatibility("1.1.2".parse().unwrap(), expected_version.clone()),
            VersionCompatibility {
                is_major_supported: false,
                is_minor_supported: true,
                is_patch_supported: true,
                supported_version: expected_version.clone()
            }
        );

        assert_eq!(
            check_version_compatibility("1.2.2".parse().unwrap(), expected_version.clone()),
            VersionCompatibility {
                is_major_supported: false,
                is_minor_supported: false,
                is_patch_supported: true,
                supported_version: expected_version.clone()
            }
        );

        assert_eq!(
            check_version_compatibility("1.1.3".parse().unwrap(), expected_version.clone()),
            VersionCompatibility {
                is_major_supported: false,
                is_minor_supported: true,
                is_patch_supported: false,
                supported_version: expected_version.clone()
            }
        );

        assert_eq!(
            check_version_compatibility("0.2.2".parse().unwrap(), expected_version.clone()),
            VersionCompatibility {
                is_major_supported: true,
                is_minor_supported: false,
                is_patch_supported: true,
                supported_version: expected_version.clone()
            }
        );

        assert_eq!(
            check_version_compatibility("0.2.3".parse().unwrap(), expected_version.clone()),
            VersionCompatibility {
                is_major_supported: true,
                is_minor_supported: false,
                is_patch_supported: false,
                supported_version: expected_version.clone()
            }
        );

        assert_eq!(
            check_version_compatibility("0.1.3".parse().unwrap(), expected_version.clone()),
            VersionCompatibility {
                is_major_supported: true,
                is_minor_supported: true,
                is_patch_supported: false,
                supported_version: expected_version.clone()
            }
        );

        assert_eq!(
            check_version_compatibility("0.1.2".parse().unwrap(), expected_version.clone()),
            VersionCompatibility {
                is_major_supported: true,
                is_minor_supported: true,
                is_patch_supported: true,
                supported_version: expected_version.clone()
            }
        );
    }