pub struct Generate {
pub models: bool,
pub std_http_server: bool,
pub client: bool,
pub embedded_spec: bool,
pub server_urls: bool,
}Expand description
The set of artifacts a configuration requests.
Fields§
§models: boolGenerate data models (structs/enums) from component schemas.
std_http_server: boolGenerate an axum server interface from the spec’s paths.
client: boolGenerate a blocking reqwest client from the spec’s paths.
embedded_spec: boolEmbed the spec into the generated code (not yet implemented).
server_urls: boolEmit constants and builder functions for the spec’s servers URLs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Generate
impl<'de> Deserialize<'de> for Generate
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 Generate
impl RefUnwindSafe for Generate
impl Send for Generate
impl Sync for Generate
impl Unpin for Generate
impl UnsafeUnpin for Generate
impl UnwindSafe for Generate
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