pub struct UpdateUserInput {
pub name: Option<String>,
pub image: Option<Option<String>>,
pub username: Option<Option<String>>,
pub display_username: Option<Option<String>>,
pub fields: Vec<(String, DbValue)>,
pub additional_fields: DbRecord,
}Fields§
§name: Option<String>§image: Option<Option<String>>§username: Option<Option<String>>§display_username: Option<Option<String>>§fields: Vec<(String, DbValue)>§additional_fields: DbRecordImplementations§
Source§impl UpdateUserInput
impl UpdateUserInput
pub fn new() -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn image(self, image: Option<String>) -> Self
pub fn username(self, username: Option<String>) -> Self
pub fn display_username(self, display_username: Option<String>) -> Self
pub fn field(self, field: impl Into<String>, value: DbValue) -> Self
pub fn is_empty(&self) -> bool
pub fn additional_fields(self, additional_fields: DbRecord) -> Self
Trait Implementations§
Source§impl Clone for UpdateUserInput
impl Clone for UpdateUserInput
Source§fn clone(&self) -> UpdateUserInput
fn clone(&self) -> UpdateUserInput
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 UpdateUserInput
impl Debug for UpdateUserInput
Source§impl Default for UpdateUserInput
impl Default for UpdateUserInput
Source§fn default() -> UpdateUserInput
fn default() -> UpdateUserInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateUserInput
impl PartialEq for UpdateUserInput
Source§fn eq(&self, other: &UpdateUserInput) -> bool
fn eq(&self, other: &UpdateUserInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateUserInput
Auto Trait Implementations§
impl Freeze for UpdateUserInput
impl RefUnwindSafe for UpdateUserInput
impl Send for UpdateUserInput
impl Sync for UpdateUserInput
impl Unpin for UpdateUserInput
impl UnsafeUnpin for UpdateUserInput
impl UnwindSafe for UpdateUserInput
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