fn permissions(&self, user: User) -> Option<Permissions> {
        match user {
            User::Anyone => None,
            User::Key(key) => self.permissions.get(&key).map(|p| Permissions::Private(*p)),
        }
    }
/// Gets the permissions for a user if applicable.
Gets the permissions for a user if applicable.
Gets the permissions for a user if applicable .
fn permissions(&self, user: User) -> Option<Permissions> {
        match user {
            User::Anyone => None,
            User::Key(key) => self.permissions.get(&key).map(|p| Permissions::Private(*p)),
        }
    }
fn permissions ( & self , user : User ) -> Option < Permissions > { match user { User :: Anyone => None , User :: Key ( key ) => self . permissions . get ( & key ) . map ( | p | Permissions :: Private ( * p ) ) , } }
Gets the permissions for a user if applicable.
Gets the permissions for a user if applicable .
&self
user
User
&self
user
User