pub struct Account<'a> { /* private fields */ }Expand description
Corresponds to IdentityRequestAccount
Implementations§
Source§impl<'a> Account<'a>
impl<'a> Account<'a>
Sourcepub fn builder(
account_id: impl Into<Cow<'a, str>>,
email: impl Into<Cow<'a, str>>,
name: impl Into<Cow<'a, str>>,
given_name: impl Into<Cow<'a, str>>,
picture_url: impl Into<Cow<'a, str>>,
idp_config_url: impl Into<Cow<'a, str>>,
idp_login_url: impl Into<Cow<'a, str>>,
login_state: impl Into<LoginState>,
) -> AccountBuilder<'a>
pub fn builder( account_id: impl Into<Cow<'a, str>>, email: impl Into<Cow<'a, str>>, name: impl Into<Cow<'a, str>>, given_name: impl Into<Cow<'a, str>>, picture_url: impl Into<Cow<'a, str>>, idp_config_url: impl Into<Cow<'a, str>>, idp_login_url: impl Into<Cow<'a, str>>, login_state: impl Into<LoginState>, ) -> AccountBuilder<'a>
Creates a builder for this type with the required parameters:
account_id:email:name:given_name:picture_url:idp_config_url:idp_login_url:login_state:
pub fn account_id(&self) -> &str
pub fn email(&self) -> &str
pub fn name(&self) -> &str
pub fn given_name(&self) -> &str
pub fn picture_url(&self) -> &str
pub fn idp_config_url(&self) -> &str
pub fn idp_login_url(&self) -> &str
pub fn login_state(&self) -> &LoginState
Sourcepub fn terms_of_service_url(&self) -> Option<&str>
pub fn terms_of_service_url(&self) -> Option<&str>
These two are only set if the loginState is signUp
pub fn privacy_policy_url(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Account<'a>
impl<'de, 'a> Deserialize<'de> for Account<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for Account<'a>
impl<'a> RefUnwindSafe for Account<'a>
impl<'a> Send for Account<'a>
impl<'a> Sync for Account<'a>
impl<'a> Unpin for Account<'a>
impl<'a> UnsafeUnpin for Account<'a>
impl<'a> UnwindSafe for Account<'a>
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