pub struct Property {
pub type_: String,
pub value: String,
pub comment: String,
pub format: String,
}Expand description
A single XISF <Property>: its type, value text, and the optional
comment and format attributes, all kept verbatim.
Unlike FITS keywords, XISF property values are not FITS-formatted: they are stored raw, without any quote layer.
A parsed value round-trips unchanged, but its serialized shape may not: a
String property written as long-form child text (<Property id=…>text</Property>) is re-emitted in value= attribute form. The parsed
value is identical, so Header equality still holds.
use xisf_header::Property;
let p = Property::new("String", "NGC 7000");
assert_eq!(p.type_, "String");
assert_eq!(p.value, "NGC 7000");
assert_eq!(p.comment, "");Fields§
§type_: StringThe XISF type attribute (e.g. String, Float32, TimePoint),
kept verbatim.
value: StringThe raw value text. Read from the value attribute, or from the
element’s child text for the long String form; writes always emit it
as a value attribute.
comment: StringThe comment attribute (empty when absent).
format: StringThe format attribute (empty when absent).