pub struct Provider {
pub id: &'static str,
pub status: Status,
pub before_login_hint: &'static str,
pub after_login_hint: &'static str,
pub overview_page: &'static str,
pub server: &'static [Server],
pub config_defaults: Option<&'static [ConfigDefault]>,
pub oauth2_authorizer: Option<Oauth2Authorizer>,
pub opt: ProviderOptions,
}
Expand description
Provider database entry.
Fields§
§id: &'static str
Unique ID, corresponding to provider database filename.
status: Status
Provider status according to manual testing.
before_login_hint: &'static str
Hint to be shown to the user on the login screen.
after_login_hint: &'static str
Hint to be added to the device chat after provider configuration.
overview_page: &'static str
URL of the page with provider overview.
server: &'static [Server]
List of provider servers.
config_defaults: Option<&'static [ConfigDefault]>
Default configuration values to set when provider is configured.
Type of OAuth 2 authorization if provider supports it.
opt: ProviderOptions
Options with good defaults.
Trait Implementations§
impl Eq for Provider
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnwindSafe for Provider
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.