Browse Source

Document `dataflow_descriptor` methods

tags/v0.2.4-rc
Philipp Oppermann 3 years ago
parent
commit
482b282d92
Failed to extract signature
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      apis/python/node/src/lib.rs
  2. +3
    -0
      apis/rust/node/src/node/mod.rs

+ 3
- 0
apis/python/node/src/lib.rs View File

@@ -84,6 +84,9 @@ impl Node {
})
}

/// Returns the full dataflow descriptor that this node is part of.
///
/// This method returns the parsed dataflow YAML file.
pub fn dataflow_descriptor(&self, py: Python) -> pythonize::Result<PyObject> {
pythonize::pythonize(py, self.node.dataflow_descriptor())
}


+ 3
- 0
apis/rust/node/src/node/mod.rs View File

@@ -246,6 +246,9 @@ impl DoraNode {
}
}

/// Returns the full dataflow descriptor that this node is part of.
///
/// This method returns the parsed dataflow YAML file.
pub fn dataflow_descriptor(&self) -> &Descriptor {
&self.dataflow_descriptor
}


Loading…
Cancel
Save