pub struct AsyncTemplateBuilder { /* private fields */ }Expand description
Async template builder for fluent configuration
Provides async versions of the template builder API
Implementations§
Source§impl AsyncTemplateBuilder
impl AsyncTemplateBuilder
Sourcepub fn variable<K: Into<String>, V: Into<String>>(
self,
key: K,
value: V,
) -> Self
pub fn variable<K: Into<String>, V: Into<String>>( self, key: K, value: V, ) -> Self
Add string variable
Sourcepub fn json_variable<K: Into<String>>(self, key: K, value: Value) -> Self
pub fn json_variable<K: Into<String>>(self, key: K, value: Value) -> Self
Add JSON variable
Sourcepub fn format(self, format: OutputFormat) -> Self
pub fn format(self, format: OutputFormat) -> Self
Set output format
Sourcepub fn context(self, context: TemplateContext) -> Self
pub fn context(self, context: TemplateContext) -> Self
Set custom context
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncTemplateBuilder
impl RefUnwindSafe for AsyncTemplateBuilder
impl Send for AsyncTemplateBuilder
impl Sync for AsyncTemplateBuilder
impl Unpin for AsyncTemplateBuilder
impl UnwindSafe for AsyncTemplateBuilder
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