pub enum CodegenOutcome {
InMemory(String),
Files(Vec<GeneratedAsset>),
}Expand description
Output of the engine run
Variants§
InMemory(String)
Generated code that should be printed to stdout (no file requested)
Files(Vec<GeneratedAsset>)
Files that were written to disk
Trait Implementations§
Source§impl Clone for CodegenOutcome
impl Clone for CodegenOutcome
Source§impl Debug for CodegenOutcome
impl Debug for CodegenOutcome
Source§impl JsonSchema for CodegenOutcome
impl JsonSchema for CodegenOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for CodegenOutcome
impl RefUnwindSafe for CodegenOutcome
impl Send for CodegenOutcome
impl Sync for CodegenOutcome
impl Unpin for CodegenOutcome
impl UnsafeUnpin for CodegenOutcome
impl UnwindSafe for CodegenOutcome
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