# RustAppResource Constructors

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

Represents a Rust application resource in the distributed application model.

<a id="constructor"></a>
<a id="constructor-string-string"></a>

## RustAppResource(string, string)

- Name: `Constructor(string, string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Rust/RustAppResource.cs#L15)

Represents a Rust application resource in the distributed application model.

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

## Parameters

- `name` (`string`)
  The name of the resource in the application model.
- `workingDirectory` (`string`)
  The working directory for the Rust application.
