orthanc_sdk
Idiomatic and hopefully safe abstractions for developing an Orthanc plugin in Rust.
Getting Started
Please refer to the example plugin.
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 bePostJsonResponse<IdAndPath<JobId>>
.- (The name is simpler to imply that it's what you are recommended to use.)