# RustAppResource

- Kind: `class`
- Package: [Aspire.Hosting.Rust](/reference/api/csharp/aspire.hosting.rust.md)
- Version: `13.6.0-preview.1.26478.8`
- Namespace: `Aspire.Hosting.Rust`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting.Rust/RustAppResource.cs)
- Inherits: `ExecutableResource`
- Implements: `IContainerFilesDestinationResource`, `IResource`, `IResourceWithEndpoints`, `IResourceWithServiceDiscovery`

Represents a Rust application resource in the distributed application model.

## Definition

```csharp
namespace Aspire.Hosting.Rust;

public class RustAppResource
    : Aspire.Hosting.ApplicationModel.ExecutableResource,
      Aspire.Hosting.ApplicationModel.IContainerFilesDestinationResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.IResourceWithServiceDiscovery
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Rust/RustAppResource`
- Public instance properties are exported as ATS capabilities.

## Constructors

- [RustAppResource(string, string)](/reference/api/csharp/aspire.hosting.rust/rustappresource/constructors.md#constructor-string-string) -- Represents a Rust application resource in the distributed application model.
