Identity

A provider identity of the signed-in supporter.

On this page

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: Provider

JSON key: provider

The provider.

id#

pub id: String

JSON key: id

Immutable provider user id.

handle#

pub handle: Option<String>

JSON key: handle

Login or slug.

needs_reconnect#

pub needs_reconnect: bool

JSON key: needsReconnect

The provider token expired; call sign_in with this provider again.

Trait implementations#

  • impl Clone for Identity
  • impl Debug for Identity
  • impl Eq for Identity
  • impl Hash for Identity
  • impl PartialEq for Identity
  • impl Serialize for Identity
  • impl<'de> Deserialize<'de> for Identity