Crate orthanc_sdk

Source
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.
webappwebapp
Utilities for packaging a static web app as an Orthanc plugin. See serve_static_file.

Structs§

OrthancConfigurationBuffer
A wrapper for the pointer to the Orthanc configuration as JSON string.
OrthancLogger
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.