Struct UserProfileUpdate
pub struct UserProfileUpdate(/* private fields */);Available on crate feature
api and (crate features client or server) only.Expand description
An update to the profile information for a user.
This type is not supposed to be used directly, but merged into a
UserProfile.
Implementations§
§impl UserProfileUpdate
impl UserProfileUpdate
pub fn new() -> UserProfileUpdate
pub fn new() -> UserProfileUpdate
Creates a new empty UserProfileUpdate.
pub fn get_static<F>(
&self,
) -> Result<Option<<F as StaticProfileField>::Value>, Error>where
F: StaticProfileField,
pub fn get_static<F>(
&self,
) -> Result<Option<<F as StaticProfileField>::Value>, Error>where
F: StaticProfileField,
Returns the value of the given StaticProfileField.
Returns Ok(Some(_)) if the field is present and the value was deserialized
successfully, Ok(None) if the field is not set, or an error if deserialization of the
value failed.
Trait Implementations§
§impl Clone for UserProfileUpdate
impl Clone for UserProfileUpdate
§fn clone(&self) -> UserProfileUpdate
fn clone(&self) -> UserProfileUpdate
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 more§impl Debug for UserProfileUpdate
impl Debug for UserProfileUpdate
§impl Default for UserProfileUpdate
impl Default for UserProfileUpdate
§fn default() -> UserProfileUpdate
fn default() -> UserProfileUpdate
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for UserProfileUpdate
impl<'de> Deserialize<'de> for UserProfileUpdate
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserProfileUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserProfileUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Extend<(ProfileFieldName, Value)> for UserProfileUpdate
impl Extend<(ProfileFieldName, Value)> for UserProfileUpdate
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
§impl Extend<(String, Value)> for UserProfileUpdate
impl Extend<(String, Value)> for UserProfileUpdate
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
§impl Extend<ProfileFieldValue> for UserProfileUpdate
impl Extend<ProfileFieldValue> for UserProfileUpdate
§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ProfileFieldValue>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ProfileFieldValue>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
§impl FromIterator<(ProfileFieldName, Value)> for UserProfileUpdate
impl FromIterator<(ProfileFieldName, Value)> for UserProfileUpdate
§fn from_iter<T>(iter: T) -> UserProfileUpdate
fn from_iter<T>(iter: T) -> UserProfileUpdate
Creates a value from an iterator. Read more
§impl FromIterator<(String, Value)> for UserProfileUpdate
impl FromIterator<(String, Value)> for UserProfileUpdate
§fn from_iter<T>(iter: T) -> UserProfileUpdate
fn from_iter<T>(iter: T) -> UserProfileUpdate
Creates a value from an iterator. Read more
§impl FromIterator<ProfileFieldValue> for UserProfileUpdate
impl FromIterator<ProfileFieldValue> for UserProfileUpdate
§fn from_iter<T>(iter: T) -> UserProfileUpdatewhere
T: IntoIterator<Item = ProfileFieldValue>,
fn from_iter<T>(iter: T) -> UserProfileUpdatewhere
T: IntoIterator<Item = ProfileFieldValue>,
Creates a value from an iterator. Read more
§impl IntoIterator for UserProfileUpdate
impl IntoIterator for UserProfileUpdate
§impl Serialize for UserProfileUpdate
impl Serialize for UserProfileUpdate
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UserProfileUpdate
impl RefUnwindSafe for UserProfileUpdate
impl Send for UserProfileUpdate
impl Sync for UserProfileUpdate
impl Unpin for UserProfileUpdate
impl UnsafeUnpin for UserProfileUpdate
impl UnwindSafe for UserProfileUpdate
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
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
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
§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 moreSource§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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