pub struct Project { /* private fields */ }Implementations§
Source§impl Project
impl Project
pub fn remove_node(&self, label: &String) -> Result<(), Box<dyn Error>>
pub fn remove_rel( &self, src: &String, dst: &String, ) -> Result<(), Box<dyn Error>>
pub fn create(name: String) -> Result<Project, Box<dyn Error>>
pub fn open(name: String) -> Result<Project, Box<dyn Error>>
pub fn delete(&self) -> Result<()>
pub fn add_json_node(&self, label: &String) -> Result<(), Box<dyn Error>>
pub fn add_json_node_with_data( &self, label: &String, j: &Value, ) -> Result<(), Box<dyn Error>>
pub fn add_file_node( &self, label: &String, fname: &String, ) -> Result<(), Box<dyn Error>>
pub fn get_node_type(&self, label: &String) -> Option<String>
pub fn read_node(&self, label: &String) -> Result<(), Box<dyn Error>>
pub fn get_node(&self, label: &String) -> Result<Node, Box<dyn Error>>
pub fn edit_node(&self, label: &String)
pub fn add_json_relationship( &self, src: &String, dst: &String, ) -> Result<(), Box<dyn Error>>
pub fn nodes_list(&self, t: Option<String>) -> Result<Vec<Node>, Box<dyn Error>>
pub fn rels_list(&self, t: Option<Value>) -> Result<Vec<Node>, Box<dyn Error>>
pub fn types_list(&self) -> Result<Vec<String>, Box<dyn Error>>
pub fn export(&self) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more