Struct pgx_utils::sql_entity_graph::PgExternArgument
source · Expand description
A parsed #[pg_extern]
argument.
It is created during PgExtern
parsing.
Fields§
§fn_arg: FnArg
§pat: Ident
§used_ty: UsedType
Implementations§
source§impl PgExternArgument
impl PgExternArgument
pub fn build(fn_arg: FnArg) -> Result<Self, Error>
pub fn build_from_pat_type(fn_arg: FnArg, value: PatType) -> Result<Self, Error>
pub fn entity_tokens(&self) -> TokenStream2
Trait Implementations§
source§impl Clone for PgExternArgument
impl Clone for PgExternArgument
source§fn clone(&self) -> PgExternArgument
fn clone(&self) -> PgExternArgument
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more