We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
From<Node>
NodeMetadata
1 parent 4a9d77c commit 9f1c816Copy full SHA for 9f1c816
CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
10
### Added
11
- Add `Node::[async_]get_direct_child_nodes`
12
+- Impl `From<Node>` for `NodeMetadata`
13
14
### Changed
15
- Reduce metadata code duplication in the `Node` module
zarrs/src/node.rs
@@ -61,6 +61,12 @@ pub struct Node {
61
children: Vec<Node>,
62
}
63
64
+impl From<Node> for NodeMetadata {
65
+ fn from(value: Node) -> Self {
66
+ value.metadata
67
+ }
68
+}
69
+
70
/// A node creation error.
71
#[derive(Debug, Error)]
72
pub enum NodeCreateError {
0 commit comments