pub struct Nodes { /* private fields */ }Expand description
Represents a collection of nodes from MEGA.
Implementations§
source§impl Nodes
impl Nodes
sourcepub fn roots(&self) -> impl Iterator<Item = &Node>
pub fn roots(&self) -> impl Iterator<Item = &Node>
Creates an iterator over all the root nodes.
sourcepub fn get_node_by_hash(&self, hash: &str) -> Option<&Node>
pub fn get_node_by_hash(&self, hash: &str) -> Option<&Node>
Gets a node, identified by its hash (or handle).
sourcepub fn get_node_by_path(&self, path: &str) -> Option<&Node>
pub fn get_node_by_path(&self, path: &str) -> Option<&Node>
Gets a node, identified by its path.
sourcepub fn cloud_drive(&self) -> Option<&Node>
pub fn cloud_drive(&self) -> Option<&Node>
Gets the root node for the Cloud Drive.
sourcepub fn rubbish_bin(&self) -> Option<&Node>
pub fn rubbish_bin(&self) -> Option<&Node>
Gets the root node for the Rubbish Bin.