pub struct Diagnostics {
pub errors: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Collected codegen diagnostics, separated by severity.
Errors are turned into compile_error! tokens (the build fails); warnings
are printed to stderr during macro expansion (the build proceeds). This
keeps unsupported OpenAPI constructs from being dropped silently.
Fields§
§errors: Vec<String>Fatal problems, emitted as compile_error! tokens.
warnings: Vec<String>Non-fatal skips, emitted as eprintln! warnings; the build proceeds.
Implementations§
Source§impl Diagnostics
impl Diagnostics
Sourcepub fn emit_warnings(&self)
pub fn emit_warnings(&self)
Print all collected warnings to stderr during macro expansion.
Trait Implementations§
Source§impl Debug for Diagnostics
impl Debug for Diagnostics
Source§impl Default for Diagnostics
impl Default for Diagnostics
Source§fn default() -> Diagnostics
fn default() -> Diagnostics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Diagnostics
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl UnsafeUnpin for Diagnostics
impl UnwindSafe for Diagnostics
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