pub struct ProfileResponse {
pub user_id: ProfileResponseUserId,
pub email: Nullable<ProfileResponseEmail>,
pub display_name: Nullable<ProfileResponseDisplayName>,
pub created_at: ProfileResponseCreatedAt,
}Expand description
An account’s profile as it is served.
Deserialize is derived so the suite reads it back through the same type the server wrote —
a test pulling display_name out of a serde_json::Value would still pass if the field were
renamed on the way out.
Fields§
§user_id: ProfileResponseUserId§email: Nullable<ProfileResponseEmail>§display_name: Nullable<ProfileResponseDisplayName>§created_at: ProfileResponseCreatedAtImplementations§
Source§impl ProfileResponse
impl ProfileResponse
Sourcepub fn with_email(
self,
value: impl Into<Nullable<ProfileResponseEmail>>,
) -> Self
pub fn with_email( self, value: impl Into<Nullable<ProfileResponseEmail>>, ) -> Self
Set the email member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_email_null(self) -> Self
pub fn with_email_null(self) -> Self
Set the email member to an explicit null.
Sourcepub fn with_display_name(
self,
value: impl Into<Nullable<ProfileResponseDisplayName>>,
) -> Self
pub fn with_display_name( self, value: impl Into<Nullable<ProfileResponseDisplayName>>, ) -> Self
Set the display_name member: a value, or Nullable::Null for an explicit null.
Sourcepub fn with_display_name_null(self) -> Self
pub fn with_display_name_null(self) -> Self
Set the display_name member to an explicit null.
Trait Implementations§
Source§impl Clone for ProfileResponse
impl Clone for ProfileResponse
Source§fn clone(&self) -> ProfileResponse
fn clone(&self) -> ProfileResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileResponse
impl Debug for ProfileResponse
Source§impl<'de> Deserialize<'de> for ProfileResponse
impl<'de> Deserialize<'de> for ProfileResponse
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
Source§impl From<ProfileResponseRequired> for ProfileResponse
impl From<ProfileResponseRequired> for ProfileResponse
Source§fn from(required: ProfileResponseRequired) -> Self
fn from(required: ProfileResponseRequired) -> Self
A ProfileResponse holding the members ProfileResponseRequired holds, and every optional member unset, a member with a schema default included.
Source§impl PartialEq for ProfileResponse
impl PartialEq for ProfileResponse
Source§fn eq(&self, other: &ProfileResponse) -> bool
fn eq(&self, other: &ProfileResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProfileResponse
impl Serialize for ProfileResponse
impl StructuralPartialEq for ProfileResponse
Auto Trait Implementations§
impl Freeze for ProfileResponse
impl RefUnwindSafe for ProfileResponse
impl Send for ProfileResponse
impl Sync for ProfileResponse
impl Unpin for ProfileResponse
impl UnsafeUnpin for ProfileResponse
impl UnwindSafe for ProfileResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 more