/// If the client did not specify a name, generate and set it. Otherwise, do nothing.
If the client did not specify a name, generate and set it. Otherwise, do nothing.
If the client did not specify a name generate and set it . Otherwise do nothing .
pub(crate) fn update_name(&mut self) {
        if self
            .options
            .as_ref()
            .and_then(|o| o.name.as_ref())
            .is_none()
        {
            let key_names: Vec<String> = self
                .keys
                .iter()
                .map(|(k, v)| format!("{}_{}", k, v.to_string()))
                .collect();
            self.options.get_or_insert(IndexOptions::default()).name = Some(key_names.join("_"));
        }
    }
pub ( crate ) fn update_name ( & mut self ) { if self . options . as_ref ( ) . and_then ( | o | o . name . as_ref ( ) ) . is_none ( ) { let key_names : Vec < String > = self . keys . iter ( ) . map ( | ( k , v ) | format ! ( " " k v to_string ( ) ) ) . collect ( ) ; self . options . get_or_insert ( IndexOptions :: default ( ) ) . name = Some ( key_names . join ( " " ) ) ; } }
If the client did not specify a name, generate and set it.
If the client did not specify a name generate and set it .
&mut self