pub struct SimpleSSOUserData {
pub id: Option<String>,
pub locale: Option<String>,
pub display_name: Option<String>,
pub display_label: Option<String>,
pub is_profile_activity_private: Option<bool>,
pub username: String,
pub email: String,
pub avatar: String,
pub website_url: Option<String>,
}Fields§
§id: Option<String>If you don’t set id, it defaults to their email.
locale: Option<String>Their locale, for email notifications etc, in the format “en_us”.
display_name: Option<String>Set a non-unique name (since username must be unique within your tenant).
display_label: Option<String>Show a nice label with their comments, like “VIP User”.
is_profile_activity_private: Option<bool>Defaults to true when null.
username: StringThis must be unique when paired with an email.
email: StringThe user’s email.
avatar: StringThe user’s avatar.
website_url: Option<String>The user’s website, blog, or personal account page to show with their comments.
Implementations§
Trait Implementations§
Source§impl Clone for SimpleSSOUserData
impl Clone for SimpleSSOUserData
Source§fn clone(&self) -> SimpleSSOUserData
fn clone(&self) -> SimpleSSOUserData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SimpleSSOUserData
impl Default for SimpleSSOUserData
Source§fn default() -> SimpleSSOUserData
fn default() -> SimpleSSOUserData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimpleSSOUserData
impl<'de> Deserialize<'de> for SimpleSSOUserData
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 Freeze for SimpleSSOUserData
impl RefUnwindSafe for SimpleSSOUserData
impl Send for SimpleSSOUserData
impl Sync for SimpleSSOUserData
impl Unpin for SimpleSSOUserData
impl UnwindSafe for SimpleSSOUserData
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