Struct fastobo_graphs::model::Graph
source · pub struct Graph {
pub nodes: Vec<Node>,
pub edges: Vec<Edge>,
pub id: String,
pub label: Option<String>,
pub meta: Option<Box<Meta>>,
pub equivalent_nodes_sets: Vec<EquivalentNodesSet>,
pub logical_definition_axioms: Vec<LogicalDefinitionAxiom>,
pub domain_range_axioms: Vec<DomainRangeAxiom>,
pub property_chain_axioms: Vec<PropertyChainAxiom>,
}
Fields§
§nodes: Vec<Node>
§edges: Vec<Edge>
§id: String
§label: Option<String>
§meta: Option<Box<Meta>>
§equivalent_nodes_sets: Vec<EquivalentNodesSet>
§logical_definition_axioms: Vec<LogicalDefinitionAxiom>
§domain_range_axioms: Vec<DomainRangeAxiom>
§property_chain_axioms: Vec<PropertyChainAxiom>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Graph
impl<'de> Deserialize<'de> for Graph
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 From<Graph> for GraphDocument
impl From<Graph> for GraphDocument
source§impl FromGraph<Graph> for OboDoc
impl FromGraph<Graph> for OboDoc
source§fn from_graph(graph: Graph) -> Result<Self>
fn from_graph(graph: Graph) -> Result<Self>
Available on crate feature
obo
only.source§impl FromIterator<Graph> for GraphDocument
impl FromIterator<Graph> for GraphDocument
impl Eq for Graph
impl StructuralEq for Graph
impl StructuralPartialEq for Graph
Auto Trait Implementations§
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.