From cd8dd29097589ccb615ff2a2fc7c00c25eb7afae Mon Sep 17 00:00:00 2001 From: Chris Tam Date: Tue, 14 Nov 2023 07:44:32 -0500 Subject: [PATCH] Expose `is_valid_field_name()` to bindings (#151) --- src/schemabuilder.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/schemabuilder.rs b/src/schemabuilder.rs index b23e893..4984b6d 100644 --- a/src/schemabuilder.rs +++ b/src/schemabuilder.rs @@ -41,6 +41,11 @@ impl SchemaBuilder { } } + #[staticmethod] + fn is_valid_field_name(name: &str) -> bool { + schema::is_valid_field_name(name) + } + /// Add a new text field to the schema. /// /// Args: