orthanc_sdk 0.1.1

Orthanc plugin SDK
Documentation
# orthanc_sdk

> [!CAUTION]
> Work in progress.
> Please reach out via [GitHub]https://github.com/FNNDSC/orthanc-rs/discussions
> or [Matrix]https://matrix.to/#/#chris-general:fedora.im if you're using this
> crate! It would motivate me to complete the missing features.

Idiomatic and hopefully safe abstractions for developing an Orthanc plugin in Rust.

## Getting Started

Please refer to the [example plugin](../example_plugin/src/plugin.rs).

## Naming Conventions

Orthanc can do many operations asynchronously using a built-in job queue.
This is requested by including `{ "Asynchronous": true }` in the POST body.
Doing so is recommended.

API client methods have the following name conventions:

- `*_request`, e.g. `DicomClient::anonymize_request`, are low-level methods for sending an arbitrary request (either synchronous or asynchronous) to the API endpoint with a generic return type.
- The name without a suffix, e.g. `DicomCLient::anonymize`, are high-level methods for making the request with `{ "Asynchronous": true }` in the POST body. The return type will always be `PostJsonResponse<IdAndPath<JobId>>`.
  - (The name is simpler to imply that it's what you are recommended to use.)