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

@@ -6,6 +6,8 @@ use std::prelude::v1::*;
/// A type representing the access mode 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 FnAccess {
/// Private function.