import

Function import 

Source
pub async fn import(
    client: &ItchClient,
    upload_id: UploadID,
    game_folder: &Path,
) -> Result<InstalledUpload, String>
Expand description

Import an already installed upload

§Arguments

  • client - An itch.io API client

  • upload_id - The ID of the upload which will be imported

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

§Returns

The installation info about the upload

§Errors

If something goes wrong