pub struct User {Show 14 fields
pub id: String,
pub created_at: String,
pub updated_at: String,
pub active: Option<bool>,
pub username: Option<String>,
pub name: Option<UserName>,
pub display_name: Option<String>,
pub emails: Option<Vec<Email>>,
pub phone_numbers: Option<Vec<UserPhoneNumber>>,
pub addresses: Option<Vec<UserAddress>>,
pub photos: Option<Vec<UserPhoto>>,
pub preferred_language: Option<String>,
pub locale: Option<String>,
pub timezone: Option<String>,
}
Expand description
User.
Fields§
§id: String
Identifier field
created_at: String
Record creation date
updated_at: String
Record update date
active: Option<bool>
Whether the user is able to access company resources, typically when they are in actively engaged with the company and not after off-boarding.
username: Option<String>
The unique identifier across Rippling used by the User for direct authentication into their associated company. Globally unique.
name: Option<UserName>
The user’s name.
display_name: Option<String>
The display name of the user using either the concatenated preferred given and family name or username depending on availability.
emails: Option<Vec<Email>>
The user’s email addresses.
phone_numbers: Option<Vec<UserPhoneNumber>>
The user’s phone numbers.
addresses: Option<Vec<UserAddress>>
The user’s addresses.
photos: Option<Vec<UserPhoto>>
The user’s photos.
preferred_language: Option<String>
The User’s preferred written or spoken language in the same format of the HTTP Accept-Language header, pursuant to Section 5.3.5 of RFC7231.
locale: Option<String>
The User’s default location for purposes of localization of currency, date time format, or numerical representations pursuant to RFC5646.
timezone: Option<String>
The User’s current time zone in IANA database Olson format
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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>,
Source§impl JsonSchema for User
impl JsonSchema for User
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreimpl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.