pub struct Template<'a> { /* private fields */ }Implementations§
Source§impl<'a> Template<'a>
impl<'a> Template<'a>
pub fn new() -> Result<Self, String>
pub fn from_file_value( file_path: &'a str, schema: Value, ) -> Result<Self, String>
pub fn set_src_path(&mut self, file_path: &'a str) -> Result<(), String>
pub fn set_src_str(&mut self, source: &str)
pub fn merge_schema_path(&mut self, schema_path: &str) -> Result<(), String>
pub fn merge_schema_str(&mut self, schema: &str) -> Result<(), String>
pub fn merge_schema_value(&mut self, schema: Value)
pub fn render(&mut self) -> String
pub fn get_status_code(&self) -> &String
pub fn get_status_text(&self) -> &String
pub fn get_status_param(&self) -> &String
pub fn has_error(&self) -> bool
pub fn get_error(&self) -> String
pub fn get_time_duration(&self) -> Duration
Auto Trait Implementations§
impl<'a> Freeze for Template<'a>
impl<'a> RefUnwindSafe for Template<'a>
impl<'a> Send for Template<'a>
impl<'a> Sync for Template<'a>
impl<'a> Unpin for Template<'a>
impl<'a> UnwindSafe for Template<'a>
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