pub struct CategoryTreeNode {
pub category: Option<Box<Category>>,
pub category_tree_node_level: Option<i32>,
pub child_category_tree_nodes: Option<Vec<CategoryTreeNode>>,
pub leaf_category_tree_node: Option<bool>,
pub parent_category_tree_node_href: Option<String>,
}
Expand description
CategoryTreeNode : This type contains information about all nodes of a category tree or subtree hierarchy, including and below the specified Category, down to the leaf nodes. It is a recursive structure.
Fields§
§category: Option<Box<Category>>
§category_tree_node_level: Option<i32>
The absolute level of the current category tree node in the hierarchy of its category tree.
<span class="tablenote"> Note: The root node of any full category tree is always at level 0
.
child_category_tree_nodes: Option<Vec<CategoryTreeNode>>
An array of one or more category tree nodes that are the immediate children of the current category tree node, as well as their children, recursively down to the leaf nodes.
Returned only if the current category tree node is not a leaf node (the value of leafCategoryTreeNode is false
).
leaf_category_tree_node: Option<bool>
A value of true
indicates that the current category tree node is a leaf node (it has no child nodes). A value of false
indicates that the current node has one or more child nodes, which are identified by the childCategoryTreeNodes array.
Returned only if the value of this field is true
.
parent_category_tree_node_href: Option<String>
The href portion of the getCategorySubtree call that retrieves the subtree below the parent of this category tree node.
Not returned if the current category tree node is the root node of its tree.
Implementations§
Source§impl CategoryTreeNode
impl CategoryTreeNode
Sourcepub fn new() -> CategoryTreeNode
pub fn new() -> CategoryTreeNode
This type contains information about all nodes of a category tree or subtree hierarchy, including and below the specified Category, down to the leaf nodes. It is a recursive structure.
Trait Implementations§
Source§impl Clone for CategoryTreeNode
impl Clone for CategoryTreeNode
Source§fn clone(&self) -> CategoryTreeNode
fn clone(&self) -> CategoryTreeNode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more