Struct xmp_toolkit::IterOptions
source · pub struct IterOptions { /* private fields */ }
Expand description
Provides options for configuring the XMP iteration behavior
provided by XmpMeta::iter
.
This struct defines a starting point for the iteration, and options that control how it proceeds.
By default, iteration starts at the root and visits all nodes beneath it in a depth-first manner. The root node iteself is never visited; the first visited node is a schema node. You can provide a schema name or property path to select a different starting node. In those cases, this visits the named root node first then all nodes beneath it in a depth-first manner.
Implementations§
source§impl IterOptions
impl IterOptions
sourcepub fn schema_ns(self, schema_ns: &str) -> Self
pub fn schema_ns(self, schema_ns: &str) -> Self
Restrict iteration to those properties that are part of the named schema.
sourcepub fn property(self, schema_ns: &str, prop_name: &str) -> Self
pub fn property(self, schema_ns: &str, prop_name: &str) -> Self
Restrict iteration to properties within a specific property.
sourcepub fn immediate_children_only(self) -> Self
pub fn immediate_children_only(self) -> Self
Restrict iteration to immediate children of the root.
sourcepub fn leaf_nodes_only(self) -> Self
pub fn leaf_nodes_only(self) -> Self
Restrict iteration to leaf nodes only.
sourcepub fn leaf_name_only(self) -> Self
pub fn leaf_name_only(self) -> Self
Return only the leaf part of the path.
sourcepub fn omit_qualifiers(self) -> Self
pub fn omit_qualifiers(self) -> Self
Omit all qualifiers.
Trait Implementations§
source§impl Clone for IterOptions
impl Clone for IterOptions
source§fn clone(&self) -> IterOptions
fn clone(&self) -> IterOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IterOptions
impl Debug for IterOptions
source§impl Default for IterOptions
impl Default for IterOptions
source§fn default() -> IterOptions
fn default() -> IterOptions
source§impl PartialEq for IterOptions
impl PartialEq for IterOptions
source§fn eq(&self, other: &IterOptions) -> bool
fn eq(&self, other: &IterOptions) -> bool
self
and other
values to be equal, and is used
by ==
.