From 489c4ca24f6e99db9274dd5a44083a9a40f078b6 Mon Sep 17 00:00:00 2001 From: usamoi Date: Tue, 13 Feb 2024 05:09:03 +0800 Subject: [PATCH] add doc by concat Signed-off-by: usamoi --- pgrx/src/pg_catalog.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pgrx/src/pg_catalog.rs b/pgrx/src/pg_catalog.rs index a51b7a29bf..44063ecb4f 100644 --- a/pgrx/src/pg_catalog.rs +++ b/pgrx/src/pg_catalog.rs @@ -47,6 +47,7 @@ macro_rules! define_character { $table:ident, ($column:ident, character { $(($variant:ident, $value:literal))* } $($x:tt)*) } => { paste::paste! { + #[doc = concat!("The enum for column ", stringify!($column), " in catalog ", stringify!($table), ".")] #[non_exhaustive] #[repr(u8)] #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] @@ -201,6 +202,7 @@ macro_rules! define_catalog_or_cache { } } + #[doc = concat!("The search result for catalog ", stringify!($table), ".")] pub struct [<$table:camel Search>] { inner: Option>, cache_id: i32, @@ -232,6 +234,7 @@ macro_rules! define_catalog_or_cache { } } + #[doc = concat!("The search results for catalog ", stringify!($table), ".")] pub struct [<$table:camel SearchList>] { inner: std::ptr::NonNull, cache_id: i32,