pub fn ensure_geo_lat_lng_index<Lat, Lng>(
        &self,
        latitude_field: Lat,
        longitude_field: Lng,
    ) -> Result<Index>
    where
        Lat: Into<String>,
        Lng: Into<String>,
    {
        self.execute(CreateIndex::new(
            self.name(),
            NewGeoIndex::with_lat_lng_fields(latitude_field, longitude_field),
        ))
    }
/// Creates a geo spatial index for this collection if it does not exist
/// already.
///
/// # Arguments
///
/// * `latitude_field` : The attribute path of the latitude field
/// * `longitude_field` : The attribute path of the longitude field
Creates a geo spatial index for this collection if it does not exist
already.
Creates a geo spatial index for this collection if it does not exist already .
pub fn ensure_geo_lat_lng_index<Lat, Lng>(
        &self,
        latitude_field: Lat,
        longitude_field: Lng,
    ) -> Result<Index>
    where
        Lat: Into<String>,
        Lng: Into<String>,
    {
        self.execute(CreateIndex::new(
            self.name(),
            NewGeoIndex::with_lat_lng_fields(latitude_field, longitude_field),
        ))
    }
pub fn ensure_geo_lat_lng_index < Lat , Lng > ( & self , latitude_field : Lat , longitude_field : Lng , ) -> Result < Index > where Lat : Into < String > , Lng : Into < String > , { self . execute ( CreateIndex :: new ( self . name ( ) , NewGeoIndex :: with_lat_lng_fields ( latitude_field , longitude_field ) , ) ) }
Creates a geo spatial index for this collection if it does not exist
already.
Creates a geo spatial index for this collection if it does not exist already .
&self
latitude_field
Lat
longitude_field
Lng
&self
latitude_field
Lat
longitude_field
Lng