This plugin allows applications to obtain certain information about their runtime environment.
Add shuttle-metadata
to the dependencies for your service.
You can get this resource using the shuttle_metadata::ShuttleMetadata
attribute to get a Metadata
. This struct will contain information such as the Shuttle service name.
```rust
async fn app( #[shuttlemetadata::ShuttleMetadata] metadata: shuttlemetadata::Metadata, ) -> __ { ... } ```
shuttle-metadata
| Framework | Link | | --------- | -------------------------------------------------------------------------------------- | | Axum | axum example |