pub struct ElementTemplate {
pub id: String,
pub labels: Vec<String>,
pub properties: Option<Value>,
pub from: Option<String>,
pub to: Option<String>,
}Expand description
Template for element creation using Handlebars expressions.
Fields§
§id: StringHandlebars template for element ID.
labels: Vec<String>Handlebars templates for element labels.
properties: Option<Value>Properties mapping (each value is a Handlebars template or literal).
from: Option<String>Template for relation source node ID (relations only).
to: Option<String>Template for relation target node ID (relations only).
Trait Implementations§
Source§impl Clone for ElementTemplate
impl Clone for ElementTemplate
Source§fn clone(&self) -> ElementTemplate
fn clone(&self) -> ElementTemplate
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 ElementTemplate
impl Debug for ElementTemplate
Source§impl<'de> Deserialize<'de> for ElementTemplate
impl<'de> Deserialize<'de> for ElementTemplate
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 PartialEq for ElementTemplate
impl PartialEq for ElementTemplate
Source§fn eq(&self, other: &ElementTemplate) -> bool
fn eq(&self, other: &ElementTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ElementTemplate
impl Serialize for ElementTemplate
impl StructuralPartialEq for ElementTemplate
Auto Trait Implementations§
impl Freeze for ElementTemplate
impl RefUnwindSafe for ElementTemplate
impl Send for ElementTemplate
impl Sync for ElementTemplate
impl Unpin for ElementTemplate
impl UnsafeUnpin for ElementTemplate
impl UnwindSafe for ElementTemplate
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