Struct xmp_toolkit::XmpValue

source ·
pub struct XmpValue<T: Clone + Debug + Default + PartialEq> {
    pub value: T,
    /* private fields */
}
Expand description

An XMP value consists describes a simple property or an item in an array property.

Fields

value: T

Core value for this item (typically a String or scalar value).

Implementations

Creates a new value with default flags.

Returns true if none of the other is... or has... flags for this value are true.

Returns true if the XML string form of this property value is a URI, meaning it uses the rdf:resource attribute.

This is flagged as “discouraged” in the C++ XMP Toolkit API documentation.

Set this flag if the XML string form of this property value is a URI, meaning it uses the rdf:resource attribute.

This is flagged as “discouraged” in the C++ XMP Toolkit API documentation.

Returns true if the property has qualifiers, such as rdf:type xml:lang.

Set this flag if the property has qualifiers, such as rdf:type xml:lang.

Returns true if this property is a qualifier for some other property, such as rdf:type and xml:lang.

Qualifiers can have arbitrary structure, and can themselves have qualifiers. If the qualifier itself has a structured value, this flag is only set for the top node of the qualifier’s subtree.

Set this flag if this property is a qualifier for some other property, such as rdf:type and xml:lang.

Qualifiers can have arbitrary structure, and can themselves have qualifiers. If the qualifier itself has a structured value, this flag is only set for the top node of the qualifier’s subtree.

Returns true if this property has an xml:lang qualifier.

Implies has_qualifiers will also be true.

Set this flag if this property has an xml:lang qualifier.

Implies has_qualifiers will also be true.

Returns true if this property has an rdf:type qualifier.

Implies has_qualifiers will also be true.

Set this flag if this property has an rdf:type qualifier.

Implies has_qualifiers will also be true.

Returns true if this value is a structure with nested fields.

Set this flag if this value is a structure with nested fields.

Returns true if this value is an array (RDF alt/bag/seq).

This may mean the array is ordered or unordered. Use the is_ordered query to discern between the two.

Set this flag if this value is an array (RDF alt/bag/seq).

This may mean the array is ordered or unordered. Use the is_ordered query to discern between the two.

Returns true if the item order matters. In other words, this array has been serialized using an rdf:Seq container.

Implies that is_array is also true.

Set this flag if the item order matters. In other words, this array has been serialized using an rdf:Seq container.

Implies that is_array is also true.

Returns true if the items in this array are alternates. In other words, this array has been serialized using an rdf:Alt container.

Implies that is_array and is_ordered are also true.

Set this flag if the items in this array are alternates. In other words, this array has been serialized using an rdf:Alt container.

Implies that is_array and is_ordered are also true.

Returns true if items are localized text. Each array element will be a simple property with an xml:lang attribute.

Implies is_alternate is also true.

Set this flag if items are localized text. Each array element will be a simple property with an xml:lang attribute.

Implies is_alternate is also true.

Returns true if this property is an alias name for another property.

This is only returned by XmpMeta::property and then only if the property name is simple, not a path expression.

Set this flag if this property is an alias name for another property.

Returns true if this property is the base value (actual) for a set of aliases.

This is only returned by XmpMeta::property and then only if the property name is simple, not a path expression.

Set this flag if this property is the base value (actual) for a set of aliases.

Returns true if this property is “owned” by the application, and should not generally be editable in a UI.

Set this flag if this property is “owned” by the application, and should not generally be editable in a UI.

Returns true if the value of this property is not derived from the document content.

Set this flag if the value of this property is not derived from the document content.

Returns true if the value of this property is derived from the document content.

Set this flag if the value of this property is derived from the document content.

Returns true if this property is an schema node, which is created implicitly during iteration via XmpIterator.

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
Converts to this type from the input type.
Converts to this type from the input type.
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
Converts to this type from the input type.

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
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.