pub struct NodeData { /* private fields */ }Expand description
A representation of the internal data of the Node.
Cannot be constructed, but is returned by galaxy_rs::Node::parsed_data.
Implementations§
Source§impl NodeData
impl NodeData
Sourcepub fn title(&self) -> Result<String, PyErr>
pub fn title(&self) -> Result<String, PyErr>
Gets the title stored in the NodeData as a Result<String, PyErr>.
Sourcepub fn data_type(&self) -> Result<String, PyErr>
pub fn data_type(&self) -> Result<String, PyErr>
Gets the data type stored in the NodeData as a Result<String, PyErr>.
By default, Galaxy databases support a “txt” datatype, which is used to ingest all input data. Modules may implement more using the extensible Galaxy Python API.
Sourcepub fn source(&self) -> Result<String, PyErr>
pub fn source(&self) -> Result<String, PyErr>
Returns the source the data was retrieved from as a Result<String, PyErr>.
Sourcepub fn links(&self) -> Result<Vec<Link>, PyErr>
pub fn links(&self) -> Result<Vec<Link>, PyErr>
Returns the links stored in this NodeData as a Result<Vec<Link>, PyErr>.
Sourcepub fn flush(&self) -> Result<(), PyErr>
pub fn flush(&self) -> Result<(), PyErr>
Flushes an individual node to disk. Returns a Result<(), PyErr> for error handling.
Galaxy demands that all module-added node types implement this method, but dependent on the
implementation this may or may not actually flush the node’s cache to disk. See
galaxy_rs::Galaxy::flush for more details.