Skip to main content

StaticNode

Struct StaticNode 

Source
pub struct StaticNode {
Show 21 fields pub nodeid: String, pub name: String, pub alias: Option<String>, pub datatype: String, pub nodegroup_id: Option<String>, pub graph_id: String, pub is_collector: bool, pub isrequired: bool, pub exportable: bool, pub sortorder: Option<i32>, pub config: HashMap<String, Value>, pub parentproperty: Option<String>, pub ontologyclass: Option<Vec<String>>, pub description: Option<StaticTranslatableString>, pub fieldname: Option<String>, pub hascustomalias: bool, pub issearchable: bool, pub istopnode: bool, pub sourcebranchpublication_id: Option<String>, pub source_identifier_id: Option<String>, pub is_immutable: Option<bool>,
}
Expand description

A node in the graph representing a data field or structural element

Fields§

§nodeid: String§name: String§alias: Option<String>§datatype: String§nodegroup_id: Option<String>§graph_id: String§is_collector: bool§isrequired: bool§exportable: bool§sortorder: Option<i32>§config: HashMap<String, Value>§parentproperty: Option<String>§ontologyclass: Option<Vec<String>>

Ontology class URIs for this node. Accepts a single string or an array of strings on the wire; a single-element list is serialised as a plain string for round-trip compatibility with upstream Arches.

§description: Option<StaticTranslatableString>§fieldname: Option<String>§hascustomalias: bool§issearchable: bool§istopnode: bool§sourcebranchpublication_id: Option<String>§source_identifier_id: Option<String>

Source identifier for import/export tracking

§is_immutable: Option<bool>

Whether node is immutable

Implementations§

Source§

impl StaticNode

Source

pub fn is_root(&self) -> bool

Check if this node is the root node (no nodegroup_id)

Source

pub fn display_name(&self) -> &str

Get the display name

Source

pub fn display_alias(&self) -> &str

Get the alias or empty string

Source

pub fn to_json(&self) -> Value

Serialize to JSON value

Trait Implementations§

Source§

impl Clone for StaticNode

Source§

fn clone(&self) -> StaticNode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StaticNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for StaticNode

Source§

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 Serialize for StaticNode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.