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