Added add_float() function for Document
parent
75f2f0296d
commit
caf52766be
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue