pub struct OutputFile {
pub path: PathBuf,
pub hbs: Option<String>,
pub create_only: bool,
pub namespace: Option<String>,
pub params: BTreeMap<String, Value>,
}
Expand description
Output-file specific settings
Fields§
§path: PathBuf
path to output file, relative to language output_dir. Required.
hbs: Option<String>
name of handlebars template file (without hbs extension) Not used for files generated by codegen
create_only: bool
True if file should be generated only for ‘create’ operations
namespace: Option<String>
Optionally, limit code generation for this file to shapes in this namespace
params: BTreeMap<String, Value>
optional additional parameters for this file
Trait Implementations§
Source§impl Debug for OutputFile
impl Debug for OutputFile
Source§impl Default for OutputFile
impl Default for OutputFile
Source§fn default() -> OutputFile
fn default() -> OutputFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OutputFile
impl<'de> Deserialize<'de> for OutputFile
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 Freeze for OutputFile
impl RefUnwindSafe for OutputFile
impl Send for OutputFile
impl Sync for OutputFile
impl Unpin for OutputFile
impl UnwindSafe for OutputFile
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