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: abigen_target.rs
    path of file: ./repos/fuels-rs/packages/fuels-code-gen/src/program_bindings/abigen
    
    the code of the file until where you have to start completion: use std::{convert::TryFrom, path::PathBuf, str::FromStr};

use fuel_abi_types::abi::full_program::FullProgramABI;
use proc_macro2::Ident;

use crate::{
    error,
    error::{Error, Result},
    utils::Source
    
    fn from_str(string: &str) -> std::result::Result<Self, Self::Err> {
        let program_type = match string {
            "Script" => ProgramType::Script,
            "Contract" => ProgramType::Contract,
            "Predicate" => ProgramType::Predicate,
            _ => {
                return Err(error!(
                    "`{string}` is not a valid program type. Expected one of: `Script`, `Contract`, `Predicate`"
                ))
            }
        };

        Ok(program_type)
    }