Struct subplot::TemplateSpec
source · pub struct TemplateSpec { /* private fields */ }
Expand description
A template specification.
Contains the information codegen needs to use a template for
generating a test program. The names and types of fields match the
files in the templates/.../template.yaml
files.
Implementations§
source§impl TemplateSpec
impl TemplateSpec
sourcepub fn from_file(filename: &Path) -> Result<TemplateSpec, SubplotError>
pub fn from_file(filename: &Path) -> Result<TemplateSpec, SubplotError>
Read a template.yaml file and create the corresponding TemplateSpec.
sourcepub fn template_filename(&self) -> &Path
pub fn template_filename(&self) -> &Path
Return the name of the template file.
Trait Implementations§
source§impl Debug for TemplateSpec
impl Debug for TemplateSpec
source§impl<'de> Deserialize<'de> for TemplateSpec
impl<'de> Deserialize<'de> for TemplateSpec
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
Auto Trait Implementations§
impl RefUnwindSafe for TemplateSpec
impl Send for TemplateSpec
impl Sync for TemplateSpec
impl Unpin for TemplateSpec
impl UnwindSafe for TemplateSpec
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