Expose is_valid_field_name() to bindings (#151)

This commit is contained in:
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

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: