pub struct ProviderInfo {
pub id: &'static str,
pub name: &'static str,
pub api_key: Option<ApiKeyMethod>,
pub oauth: Option<&'static str>,
}Expand description
A built-in provider’s display name and sign-in methods.
Fields§
§id: &'static strProvider id, as in the catalog.
name: &'static strDisplay name.
api_key: Option<ApiKeyMethod>API key method, when the provider accepts keys.
oauth: Option<&'static str>OAuth method name, when pi offers an account sign-in for the provider.
Trait Implementations§
Source§impl Clone for ProviderInfo
impl Clone for ProviderInfo
impl Copy for ProviderInfo
Source§impl Debug for ProviderInfo
impl Debug for ProviderInfo
impl Eq for ProviderInfo
Source§impl PartialEq for ProviderInfo
impl PartialEq for ProviderInfo
impl StructuralPartialEq for ProviderInfo
Auto Trait Implementations§
impl Freeze for ProviderInfo
impl RefUnwindSafe for ProviderInfo
impl Send for ProviderInfo
impl Sync for ProviderInfo
impl Unpin for ProviderInfo
impl UnsafeUnpin for ProviderInfo
impl UnwindSafe for ProviderInfo
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.