pub enum TemplateReturnForm {
Dict,
BareString,
}Expand description
How a CustomTemplate action returns its rendered value from the visitor.
Variants§
Dict
Return a host-native structured value (e.g. dict, hash, array, object)
carrying the rendered string under a custom key.
BareString
Return the rendered string directly, with no wrapper.
Trait Implementations§
Source§impl Clone for TemplateReturnForm
impl Clone for TemplateReturnForm
Source§fn clone(&self) -> TemplateReturnForm
fn clone(&self) -> TemplateReturnForm
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 TemplateReturnForm
impl Debug for TemplateReturnForm
Source§impl Default for TemplateReturnForm
impl Default for TemplateReturnForm
Source§fn default() -> TemplateReturnForm
fn default() -> TemplateReturnForm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemplateReturnForm
impl<'de> Deserialize<'de> for TemplateReturnForm
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 TemplateReturnForm
impl PartialEq for TemplateReturnForm
Source§fn eq(&self, other: &TemplateReturnForm) -> bool
fn eq(&self, other: &TemplateReturnForm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TemplateReturnForm
impl Serialize for TemplateReturnForm
impl Copy for TemplateReturnForm
impl Eq for TemplateReturnForm
impl StructuralPartialEq for TemplateReturnForm
Auto Trait Implementations§
impl Freeze for TemplateReturnForm
impl RefUnwindSafe for TemplateReturnForm
impl Send for TemplateReturnForm
impl Sync for TemplateReturnForm
impl Unpin for TemplateReturnForm
impl UnsafeUnpin for TemplateReturnForm
impl UnwindSafe for TemplateReturnForm
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,
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.