pub struct UserResponse {Show 21 fields
pub allow_pay_as_you_go: bool,
pub block: Option<BlockReason>,
pub block_message: Option<String>,
pub can_train_on_data: bool,
pub company: Option<String>,
pub created_at: DateTime<Utc>,
pub deletion_scheduled: bool,
pub discord: Option<String>,
pub email: Option<String>,
pub email_verified: Option<DateTime<Utc>>,
pub first_name: Option<String>,
pub github: Option<String>,
pub id: Uuid,
pub image: String,
pub is_onboarded: bool,
pub is_service_account: bool,
pub last_name: Option<String>,
pub name: Option<String>,
pub phone: PhoneNumber,
pub updated_at: DateTime<Utc>,
pub username: Option<String>,
}Expand description
Public user payload returned by the API.
Fields§
§allow_pay_as_you_go: boolWhether the user has opted into pay-as-you-go charges after using their included credits.
block: Option<BlockReason>If the user should be blocked and the reason why.
block_message: Option<String>Human-friendly block reason message.
can_train_on_data: boolIf we can train on the user’s data. If the user is a member of an organization, the organization’s setting will override this.
company: Option<String>The user’s company.
created_at: DateTime<Utc>The date and time the user was created.
deletion_scheduled: boolIf the user is scheduled for deletion.
discord: Option<String>The user’s Discord handle.
email: Option<String>The email address of the user.
email_verified: Option<DateTime<Utc>>The date and time the email address was verified.
first_name: Option<String>The user’s first name.
github: Option<String>The user’s GitHub handle.
id: UuidThe unique identifier for the user.
image: StringThe image avatar for the user. This is a URL.
is_onboarded: boolIf the user has finished onboarding.
is_service_account: boolIf the user is tied to a service account.
last_name: Option<String>The user’s last name.
name: Option<String>The name of the user. This is auto populated at first from the authentication provider (if there was a name). It can be updated by the user by updating their first_name and last_name fields.
phone: PhoneNumberThe user’s phone number.
updated_at: DateTime<Utc>The date and time the user was last updated.
username: Option<String>Public username/handle for community-facing features.
Trait Implementations§
Source§impl Clone for UserResponse
impl Clone for UserResponse
Source§impl Debug for UserResponse
impl Debug for UserResponse
Source§impl<'de> Deserialize<'de> for UserResponse
impl<'de> Deserialize<'de> for UserResponse
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 Display for UserResponse
impl Display for UserResponse
Source§impl JsonSchema for UserResponse
impl JsonSchema for UserResponse
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 moreSource§impl PartialEq for UserResponse
impl PartialEq for UserResponse
Source§impl Serialize for UserResponse
impl Serialize for UserResponse
impl StructuralPartialEq for UserResponse
Source§impl Tabled for UserResponse
Available on crate feature tabled only.
impl Tabled for UserResponse
tabled only.Auto Trait Implementations§
impl Freeze for UserResponse
impl RefUnwindSafe for UserResponse
impl Send for UserResponse
impl Sync for UserResponse
impl Unpin for UserResponse
impl UnsafeUnpin for UserResponse
impl UnwindSafe for UserResponse
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 = !
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.