struct Codegen {
struct_name: Ident,
has_self: bool,
sqlname: TokenStream,
source: TokenStream,
skip_display: bool,
}Expand description
What the shared codegen needs that is not arity specific.
Fields§
§struct_name: Ident§has_self: boolTrue when the struct is defined at the call site, so expansion attaches an inherent method instead of defining a unit struct.
sqlname: TokenStream§source: TokenStreamThe registry’s record of this function’s source, generated as members of the
FuncName impl.
skip_display: boolSuppresses the generated Display impl, so a call site whose SQL name
depends on struct state can supply its own.
Auto Trait Implementations§
impl !Send for Codegen
impl !Sync for Codegen
impl Freeze for Codegen
impl RefUnwindSafe for Codegen
impl Unpin for Codegen
impl UnsafeUnpin for Codegen
impl UnwindSafe for Codegen
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