Identity
A provider identity of the signed-in supporter.
A provider identity of the signed-in supporter.
use sponsorkit::Identity;
pub struct Identity {
pub provider: Provider,
pub id: String,
pub handle: Option<String>,
pub needs_reconnect: bool,
}Fields#
provider#
pub provider: ProviderJSON key: provider
The provider.
id#
pub id: StringJSON key: id
Immutable provider user id.
handle#
pub handle: Option<String>JSON key: handle
Login or slug.
needs_reconnect#
pub needs_reconnect: boolJSON key: needsReconnect
The provider token expired; call sign_in with this provider again.
Trait implementations#
impl Clone for Identityimpl Debug for Identityimpl Eq for Identityimpl Hash for Identityimpl PartialEq for Identityimpl Serialize for Identityimpl<'de> Deserialize<'de> for Identity