pub fn add_key_with_direction(
        &mut self,
        key: impl Into<Cow<'static, str>>,
        direction: SortOrder,
    ) {
        self.keys.push(IndexKey {
            name: key.into(),
            direction,
        });
    }
/// Make this index compound adding the given key with a direction.
///
/// [Mongo manual](https://docs.mongodb.com/manual/core/index-compound/).
Make this index compound adding the given key with a direction.
[Mongo manual].
Make this index compound adding the given key with a direction . [ Mongo manual ] .
pub fn add_key_with_direction(
        &mut self,
        key: impl Into<Cow<'static, str>>,
        direction: SortOrder,
    ) {
        self.keys.push(IndexKey {
            name: key.into(),
            direction,
        });
    }
pub fn add_key_with_direction ( & mut self , key : impl Into < Cow < ' static , str > > , direction : SortOrder , ) { self . keys . push ( IndexKey { name : key . into ( ) , direction , } ) ; }
Make this index compound adding the given key with a direction.
Make this index compound adding the given key with a direction .
&mut self
key
impl Into<Cow<'static, str>>
direction
SortOrder