Use references for JSON metadata.

This commit is contained in:
Stephen Chung
2022-08-14 14:20:37 +08:00
parent 9813f657bb
commit f7d910fa55
4 changed files with 28 additions and 58 deletions

View File

@@ -22,6 +22,8 @@ use std::{
/// A type representing the namespace of a function.
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[cfg_attr(feature = "metadata", derive(serde::Serialize))]
#[cfg_attr(feature = "metadata", serde(rename_all = "camelCase"))]
#[non_exhaustive]
pub enum FnNamespace {
/// Module namespace only.