RustAppResource.withCargoExample

Method
📦 Aspire.Hosting.Rust v17.0.0-preview.1.26567.5
interface RustAppResource {
// ... omitted for brevity
withCargoExample(exampleName: string): RustAppResource;
}

Signature

methodwithCargoExamplebuilder
Configures an example target to run instead of a binary.
withCargoExample(exampleName: string): RustAppResource
exampleNamestringThe example name, as declared by a file or directory under `examples/`.
RustAppResource

Defined on

This method is defined on the following type: