# RustAppExecutableResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Rust](/reference/api/csharp/communitytoolkit.aspire.hosting.rust.md)
- Type: [RustAppExecutableResource](/reference/api/csharp/communitytoolkit.aspire.hosting.rust/rustappexecutableresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a Rust application.

## RustAppExecutableResource(string, string, string)

- Name: `Constructor(string, string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Rust/RustAppExecutableResource.cs#L10)

A resource that represents a Rust application.

```csharp
public class RustAppExecutableResource
{
    public RustAppExecutableResource(
        string name,
        string workingDirectory,
        string command = "cargo")
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory to use for the command.
- `command` (`string`) `optional`
  The command used to run the Rust application.
