pub struct AddSubgraphParams {
pub subgraph: StaticGraph,
pub target_node_id: String,
pub ontology_property: String,
pub alias_suffix: Option<String>,
pub alias_prefix: Option<String>,
pub name_prefix: Option<String>,
}Expand description
Parameters for adding an entire subgraph/branch
Fields§
§subgraph: StaticGraphThe subgraph to add (branch)
target_node_id: StringTarget node ID to attach the branch’s children to
ontology_property: StringOntology property for the connecting edges
alias_suffix: Option<String>Optional suffix to add to all aliases from the subgraph
alias_prefix: Option<String>Optional prefix for aliases (e.g. “monument” → alias “name” becomes “monument_name”)
name_prefix: Option<String>Optional prefix for display names (e.g. “Monument” → name “Name” becomes “Monument Name”)
Trait Implementations§
Source§impl Clone for AddSubgraphParams
impl Clone for AddSubgraphParams
Source§fn clone(&self) -> AddSubgraphParams
fn clone(&self) -> AddSubgraphParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddSubgraphParams
impl Debug for AddSubgraphParams
Source§impl<'de> Deserialize<'de> for AddSubgraphParams
impl<'de> Deserialize<'de> for AddSubgraphParams
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
Auto Trait Implementations§
impl Freeze for AddSubgraphParams
impl RefUnwindSafe for AddSubgraphParams
impl Send for AddSubgraphParams
impl Sync for AddSubgraphParams
impl Unpin for AddSubgraphParams
impl UnsafeUnpin for AddSubgraphParams
impl UnwindSafe for AddSubgraphParams
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