pub struct DataElement {
    pub tag: String,
    pub name: String,
    pub keyword: String,
    pub vr: String,
    pub vm: String,
    pub comment: Option<String>,
}
Expand description

A unit of information as defined by a single entry in the DICOM data dictionary.

Fields§

§tag: String

Unique identifier for a data element composed of an ordered pair of numbers (a Group Number followed by an Element Number) in the format “(gggg,eeee)”.

§name: String

The unique name of the data element as a human-readable string (e.g. “Specific Character Set”).

§keyword: String

The unique name of the data element with zero-width spaces instead of actual spaces.as one word. This can be used to e.g. transform it more easily into something like a function name or identifier. The format is: “Length\u{200b}To\u{200b}End” where “\u{200b}” is the code point for the zero-width space.

§vr: String

The Value Representation of the data element as two upper-case letters. The format is: “TM”.

§vm: String

The Value Multiplicity of the data element as single digit or range. The format is: “2-n”.

§comment: Option<String>

Additional comment for the data element (e.g. “RET” for retired elements).

Implementations§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.