# 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)

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

A resource that represents a Rust application.

```csharp
public class RustAppExecutableResource
{
    public RustAppExecutableResource(
        string name,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `workingDirectory` (`string`)
  The working directory to use for the command.
