import

Function import 

Source
pub async fn import(
    client: &Client,
    api_key: &str,
    upload_id: u64,
    game_folder: &Path,
) -> Result<InstalledUpload, String>
Expand description

Import an already installed upload

§Arguments

  • client - An asynchronous reqwest Client

  • api_key - A valid Itch.io API key to make the request

  • upload_id - The ID of upload which will be imported

  • game_folder - The folder where the game files are currectly placed

§Returns

The installation info about the upload

An error if something goes wrong