Export EventFieldMetadata (#656)

* Export EventFieldMetadata

* Fix up comments for public api
This commit is contained in:
Andrew Jones
2022-09-21 12:59:14 +01:00
committed by GitHub
parent 52dd640b5e
commit c100b0b2ba
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -306,6 +306,7 @@ pub struct EventFieldMetadata {
}
impl EventFieldMetadata {
/// Construct a new [`EventFieldMetadata`]
pub fn new(name: Option<String>, type_name: Option<String>, type_id: u32) -> Self {
EventFieldMetadata {
name,
@@ -319,7 +320,7 @@ impl EventFieldMetadata {
self.name.as_deref()
}
// Get the type name of the field as it appears in the code
/// Get the type name of the field as it appears in the code
pub fn type_name(&self) -> Option<&str> {
self.type_name.as_deref()
}
+1
View File
@@ -14,6 +14,7 @@ pub use metadata_location::MetadataLocation;
pub use metadata_type::{
ErrorMetadata,
EventFieldMetadata,
EventMetadata,
InvalidMetadataError,
Metadata,