pub struct UserWriteBean {
pub param_self: Option<String>,
pub key: Option<String>,
pub name: Option<String>,
pub password: Option<String>,
pub email_address: String,
pub display_name: String,
pub application_keys: Option<Vec<String>>,
}
Fields§
§param_self: Option<String>
The URL of the user.
key: Option<String>
The key for the user. When provided with name
, overrides the value in name
to set both name
and key
. This property is deprecated because of privacy changes. See the migration guide for details.
name: Option<String>
The username for the user. This property is deprecated because of privacy changes. See the migration guide for details.
password: Option<String>
A password for the user. If a password is not set, a random password is generated.
email_address: String
The email address for the user.
display_name: String
The display name for the user.
application_keys: Option<Vec<String>>
Deprecated, do not use.
Implementations§
Source§impl UserWriteBean
impl UserWriteBean
pub fn new(email_address: String, display_name: String) -> UserWriteBean
Trait Implementations§
Source§impl Clone for UserWriteBean
impl Clone for UserWriteBean
Source§fn clone(&self) -> UserWriteBean
fn clone(&self) -> UserWriteBean
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 moreSource§impl Debug for UserWriteBean
impl Debug for UserWriteBean
Source§impl Default for UserWriteBean
impl Default for UserWriteBean
Source§fn default() -> UserWriteBean
fn default() -> UserWriteBean
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserWriteBean
impl<'de> Deserialize<'de> for UserWriteBean
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 PartialEq for UserWriteBean
impl PartialEq for UserWriteBean
Source§impl Serialize for UserWriteBean
impl Serialize for UserWriteBean
impl StructuralPartialEq for UserWriteBean
Auto Trait Implementations§
impl Freeze for UserWriteBean
impl RefUnwindSafe for UserWriteBean
impl Send for UserWriteBean
impl Sync for UserWriteBean
impl Unpin for UserWriteBean
impl UnwindSafe for UserWriteBean
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