You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-28 11:02:02 +03:00
storage: OAuth2 client repository
This commit is contained in:
@ -90,6 +90,11 @@ impl<T> Localized<T> {
|
||||
&self.non_localized
|
||||
}
|
||||
|
||||
/// Get the non-localized variant.
|
||||
pub fn to_non_localized(self) -> T {
|
||||
self.non_localized
|
||||
}
|
||||
|
||||
/// Get the variant corresponding to the given language, if it exists.
|
||||
pub fn get(&self, language: Option<&LanguageTag>) -> Option<&T> {
|
||||
match language {
|
||||
|
Reference in New Issue
Block a user