Expose `is_valid_field_name()` to bindings (#151)

master
Chris Tam 2023-11-14 07:44:32 -05:00 committed by GitHub
parent cdb2aeccc8
commit cd8dd29097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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: