# RustAppResource

- Kind: `class`
- Package: [Aspire.Hosting.Rust](/reference/api/csharp/aspire.hosting.rust.md)
- Version: `17.0.0-preview.1.26567.5`
- Namespace: `Aspire.Hosting.Rust`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/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.

## Properties

- [ResourceTypeDisplayName](/reference/api/csharp/aspire.hosting.rust/rustappresource/properties.md#resourcetypedisplayname) : `string` `get` -- Gets the default human-readable name of this resource's type.
