pub struct NodeOptions {
pub exportable: Option<bool>,
pub fieldname: Option<String>,
pub hascustomalias: Option<bool>,
pub is_collector: Option<bool>,
pub isrequired: Option<bool>,
pub issearchable: Option<bool>,
pub istopnode: Option<bool>,
pub sortorder: Option<i32>,
}Expand description
Options for node creation.
These map to the per-node flags stored in Arches graph definitions.
Fields§
§exportable: Option<bool>Include this node’s data in exports.
fieldname: Option<String>Override the generated field name.
hascustomalias: Option<bool>Whether the node has a user-defined alias (as opposed to auto-generated).
is_collector: Option<bool>Force this node to own its own nodegroup (nodeid == nodegroup_id),
matching Arches’ collector semantics. When true, AddNode creates a
dedicated nodegroup even if the cardinality is 1 and the parent is not
root. Defaults to Some(true) for semantic nodes with cardinality N;
None otherwise.
isrequired: Option<bool>Whether this field is required for data entry.
issearchable: Option<bool>Whether this field is included in search indexes.
istopnode: Option<bool>Whether this is the root (top) node of the graph.
sortorder: Option<i32>Display order within the card/nodegroup.
Trait Implementations§
Source§impl Clone for NodeOptions
impl Clone for NodeOptions
Source§fn clone(&self) -> NodeOptions
fn clone(&self) -> NodeOptions
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 NodeOptions
impl Debug for NodeOptions
Source§impl Default for NodeOptions
impl Default for NodeOptions
Source§fn default() -> NodeOptions
fn default() -> NodeOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeOptions
impl<'de> Deserialize<'de> for NodeOptions
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 NodeOptions
impl RefUnwindSafe for NodeOptions
impl Send for NodeOptions
impl Sync for NodeOptions
impl Unpin for NodeOptions
impl UnsafeUnpin for NodeOptions
impl UnwindSafe for NodeOptions
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