pub fn disable_keys(&mut self, name: &str) -> Vec<AuthorizedKeyEntry> {
        if let Some(keyset) = self.keys.get_mut(name) {
            let keys = keyset.keys.clone();
            keyset.disabled = true;
            keyset.keys = vec![];
            return keys;
        }
        self.keys.insert(
            name.to_string(),
            AuthorizedKeySet {
                filename: name.to_string(),
                disabled: true,
                keys: vec![],
            },
        );
        vec![]
    }
/// disable_keys disables keys with the given name. they can't be added
/// again unless force is set to true when adding the set. disable_keys will
/// succeed in disabling the key even if the key doesn't currently exist.
disable_keys disables keys with the given name. they can't be added
again unless force is set to true when adding the set. disable_keys will
succeed in disabling the key even if the key doesn't currently exist.
disable_keys disables keys with the given name . they can ' t be added again unless force is set to true when adding the set . disable_keys will succeed in disabling the key even if the key doesn ' t currently exist .
pub fn disable_keys(&mut self, name: &str) -> Vec<AuthorizedKeyEntry> {
        if let Some(keyset) = self.keys.get_mut(name) {
            let keys = keyset.keys.clone();
            keyset.disabled = true;
            keyset.keys = vec![];
            return keys;
        }
        self.keys.insert(
            name.to_string(),
            AuthorizedKeySet {
                filename: name.to_string(),
                disabled: true,
                keys: vec![],
            },
        );
        vec![]
    }
pub fn disable_keys ( & mut self , name : & str ) -> Vec < AuthorizedKeyEntry > { if let Some ( keyset ) = self . keys . get_mut ( name ) { let keys = keyset . keys . clone ( ) ; keyset . disabled = true ; keyset . keys = vec ! [ ] ; return keys ; } self . keys . insert ( name . to_string ( ) , AuthorizedKeySet { filename : name . to_string ( ) , disabled : true , keys : vec ! [ ] , } , ) ; vec ! [ ] }
disable_keys disables keys with the given name.
disable_keys disables keys with the given name .
&mut self
name
&str
&mut self
name
&str