OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

ConfigLoadReport

pub struct ConfigLoadReport

What an import did.

Produced by Camera::load_config_checked, on success and on failure alike. Read ConfigLoadReport::outcome first; the section sets say what moved, and the diagnosis is for a person.

ConfigLoadReport — fields

outcome: ConfigLoadOutcome

How it ended. Read this first.

present: ConfigSections

The sections the file carried, whether or not they took effect.

applied: ConfigSections

The sections now in effect on the camera.

omitted: ConfigSections

The sections the file carried that are not in effect.

serial_matched: bool

Whether the file's serial is this camera's, or the file named none.

False is not in itself a failure, see the require_matching_serial argument to Camera::load_config_checked.

file_serial: String

The serial recorded in the file, or empty if it had none.

diagnosis: String

What happened, in words. Empty when there is nothing to say.

Log it or show it; do not parse it: the fields above are what a program branches on.