refactor: use slices instead of vectors in provider database

This commit is contained in:
link2xt
2023-09-02 19:55:31 +00:00
parent a270db1d87
commit 9d7bdf369d
4 changed files with 72 additions and 72 deletions

View File

@@ -123,10 +123,10 @@ pub struct Provider {
pub overview_page: &'static str,
/// List of provider servers.
pub server: Vec<Server>,
pub server: &'static [Server],
/// Default configuration values to set when provider is configured.
pub config_defaults: Option<Vec<ConfigDefault>>,
pub config_defaults: Option<&'static [ConfigDefault]>,
/// Type of OAuth 2 authorization if provider supports it.
pub oauth2_authorizer: Option<Oauth2Authorizer>,