Expand description
Idiomatic and hopefully safe abstractions for developing an Orthanc plugin in Rust.
The documentation here aims to be concise. Please refer to the basic example plugin code as a gentler introduction on how to use this crate.
Re-exports§
pub use webapp::serve_static_file;
webapp
Modules§
- api
- Orthanc built-in API.
- bindings
- Orthanc plugin bindings generated by rust-bindgen.
- http
- Safe Rust-friendly types for Orthanc HTTP callbacks.
- openapi
- Orthanc OpenAPI request and response models.
- utils
- Miscellaneous utilities.
- webapp
webapp
- Utilities for packaging a static web app as an Orthanc plugin. See
serve_static_file
.
Structs§
- Orthanc
Configuration Buffer - A wrapper for the pointer to the Orthanc configuration as JSON string.
- Orthanc
Logger - A tracing::Subscriber which calls OrthancPluginLogMessage.
Functions§
- create_
json_ rest_ callback - Create an Orthanc REST callback that uses JSON in its request and response bodies.
- get_
configuration - Return the content of the configuration file(s).
- register_
on_ change - Register a callback function that is called whenever a change happens to some DICOM resource.
- register_
rest - Register a REST callback.
- register_
rest_ no_ lock - Register a REST callback, without locking.