pub struct DecoratorTemplateBuilder { /* private fields */ }
Expand description
Builder for DecoratorTemplate
.
Implementations§
Source§impl DecoratorTemplateBuilder
impl DecoratorTemplateBuilder
pub fn name(&mut self, value: Parameter) -> &mut Self
pub fn params(&mut self, value: Vec<Parameter>) -> &mut Self
pub fn hash(&mut self, value: HashMap<String, Parameter>) -> &mut Self
pub fn template(&mut self, value: Template) -> &mut Self
pub fn indent<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn indent_before_write(&mut self, value: bool) -> &mut Self
Sourcepub fn build(&self) -> Result<DecoratorTemplate, DecoratorTemplateBuilderError>
pub fn build(&self) -> Result<DecoratorTemplate, DecoratorTemplateBuilderError>
Trait Implementations§
Source§impl Clone for DecoratorTemplateBuilder
impl Clone for DecoratorTemplateBuilder
Source§fn clone(&self) -> DecoratorTemplateBuilder
fn clone(&self) -> DecoratorTemplateBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DecoratorTemplateBuilder
impl RefUnwindSafe for DecoratorTemplateBuilder
impl Send for DecoratorTemplateBuilder
impl Sync for DecoratorTemplateBuilder
impl Unpin for DecoratorTemplateBuilder
impl UnwindSafe for DecoratorTemplateBuilder
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