Added add_float() function for Document

master
Sidhant29 2023-01-17 10:48:18 +10:00
parent 75f2f0296d
commit caf52766be
No known key found for this signature in database
1 changed files with 9 additions and 0 deletions

View File

@ -292,6 +292,15 @@ impl Document {
add_value(self, field_name, value);
}
/// Add a float value to the document.
///
/// Args:
/// field_name (str): The field name for which we are adding the integer.
/// value (f64): The float that will be added to the document.
fn add_float(&mut self, field_name: String, value: f64) {
add_value(self, field_name, value);
}
/// Add a date value to the document.
///
/// Args: