pub struct GraphDocument {
pub schema_version: String,
pub id: String,
pub name: String,
pub revision: u64,
pub nodes: Vec<GraphNode>,
pub edges: Vec<GraphEdge>,
pub metadata: HashMap<String, String>,
}Fields§
§schema_version: String§id: String§name: String§revision: u64§nodes: Vec<GraphNode>§edges: Vec<GraphEdge>§metadata: HashMap<String, String>Implementations§
Source§impl GraphDocument
impl GraphDocument
pub fn validate(&self) -> Result<(), GraphError>
pub fn reachable_from(&self, start: &str) -> HashSet<String>
Trait Implementations§
Source§impl Clone for GraphDocument
impl Clone for GraphDocument
Source§impl Debug for GraphDocument
impl Debug for GraphDocument
Source§impl<'de> Deserialize<'de> for GraphDocument
impl<'de> Deserialize<'de> for GraphDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GraphDocument
impl PartialEq for GraphDocument
Source§impl Serialize for GraphDocument
impl Serialize for GraphDocument
impl StructuralPartialEq for GraphDocument
Auto Trait Implementations§
impl Freeze for GraphDocument
impl RefUnwindSafe for GraphDocument
impl Send for GraphDocument
impl Sync for GraphDocument
impl Unpin for GraphDocument
impl UnsafeUnpin for GraphDocument
impl UnwindSafe for GraphDocument
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