Skip to content

Commit 1813f42

Browse files
committed
add some comment
1 parent b943c29 commit 1813f42

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/meta/app/src/data_mask/data_mask_id_to_name_ident.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ use crate::data_mask::DataMaskId;
1616
use crate::tenant_key::ident::TIdent;
1717
use crate::tenant_key::raw::TIdentRaw;
1818

19+
/// Tenantless key mapping a masking policy id back to its name.
20+
/// This enables reverse lookup for SHOW GRANTS and ownership listings.
1921
pub type DataMaskIdToNameIdent = TIdent<Resource, DataMaskId>;
22+
/// Raw form of [`DataMaskIdToNameIdent`] used for serde/protobuf.
2023
pub type DataMaskIdToNameIdentRaw = TIdentRaw<Resource, DataMaskId>;
2124

2225
pub use kvapi_impl::Resource;

src/meta/app/src/row_access_policy/row_access_policy_id_to_name_ident.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ use crate::row_access_policy::RowAccessPolicyId;
1616
use crate::tenant_key::ident::TIdent;
1717
use crate::tenant_key::raw::TIdentRaw;
1818

19+
/// Tenantless key mapping a row access policy id back to its name for reverse lookups.
1920
pub type RowAccessPolicyIdToNameIdent = TIdent<Resource, RowAccessPolicyId>;
21+
/// Raw form of [`RowAccessPolicyIdToNameIdent`] used for serde/protobuf.
2022
pub type RowAccessPolicyIdToNameIdentRaw = TIdentRaw<Resource, RowAccessPolicyId>;
2123

2224
pub use kvapi_impl::Resource;

0 commit comments

Comments
 (0)