pub struct TemplateInstance {
pub key: String,
pub path: String,
pub index: usize,
pub instance: String,
}Expand description
One item a template renders.
Fields§
§key: StringThe item’s key (template_item_keys).
path: StringThe item’s data pointer (its scope).
index: usize§instance: StringThe suffix every node of the item wears: the enclosing instance’s
suffix + .<key> (instance_segment: .a~1b for key a.b). A
node’s painted id = its id + the suffix.
Trait Implementations§
Source§impl Clone for TemplateInstance
impl Clone for TemplateInstance
Source§impl Debug for TemplateInstance
impl Debug for TemplateInstance
Source§impl<'de> Deserialize<'de> for TemplateInstance
impl<'de> Deserialize<'de> for TemplateInstance
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
impl Eq for TemplateInstance
Source§impl PartialEq for TemplateInstance
impl PartialEq for TemplateInstance
Source§impl Serialize for TemplateInstance
impl Serialize for TemplateInstance
impl StructuralPartialEq for TemplateInstance
Auto Trait Implementations§
impl Freeze for TemplateInstance
impl RefUnwindSafe for TemplateInstance
impl Send for TemplateInstance
impl Sync for TemplateInstance
impl Unpin for TemplateInstance
impl UnsafeUnpin for TemplateInstance
impl UnwindSafe for TemplateInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.