pub struct CreateGraphParams {
pub name: String,
pub is_resource: bool,
pub root_alias: String,
pub root_ontology_class: Option<Vec<String>>,
pub graph_id: Option<String>,
pub author: Option<String>,
pub description: Option<String>,
pub ontology_id: Option<Vec<String>>,
}Expand description
Parameters for creating a new graph from scratch
Fields§
§name: StringName for the graph
is_resource: boolWhether this is a resource model (true) or branch (false)
root_alias: StringAlias for the root node
root_ontology_class: Option<Vec<String>>Ontology class URI(s) for the root node. Accepts a single string or
an array; an empty list (or null) means no ontology class.
graph_id: Option<String>Optional custom graph ID (otherwise generated deterministically)
Optional author
description: Option<String>Optional description
ontology_id: Option<Vec<String>>Ontology ID(s) for the graph. Accepts a single string or an array. This sets the graph-level ontology (distinct from node-level ontology classes).
Trait Implementations§
Source§impl Clone for CreateGraphParams
impl Clone for CreateGraphParams
Source§fn clone(&self) -> CreateGraphParams
fn clone(&self) -> CreateGraphParams
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 CreateGraphParams
impl Debug for CreateGraphParams
Source§impl<'de> Deserialize<'de> for CreateGraphParams
impl<'de> Deserialize<'de> for CreateGraphParams
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 CreateGraphParams
impl RefUnwindSafe for CreateGraphParams
impl Send for CreateGraphParams
impl Sync for CreateGraphParams
impl Unpin for CreateGraphParams
impl UnsafeUnpin for CreateGraphParams
impl UnwindSafe for CreateGraphParams
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