pub struct CreateUserOption {
pub created_at: Option<String>,
pub email: String,
pub full_name: Option<String>,
pub login_name: Option<String>,
pub must_change_password: Option<bool>,
pub password: Option<String>,
pub restricted: Option<bool>,
pub send_notify: Option<bool>,
pub source_id: Option<i64>,
pub username: String,
pub visibility: Option<String>,
}
Expand description
CreateUserOption : CreateUserOption create user options
Fields§
§created_at: Option<String>
For explicitly setting the user creation timestamp. Useful when users are migrated from other systems. When omitted, the user’s creation timestamp will be set to "now".
email: String
§full_name: Option<String>
§login_name: Option<String>
§must_change_password: Option<bool>
§password: Option<String>
§restricted: Option<bool>
§send_notify: Option<bool>
§source_id: Option<i64>
§username: String
§visibility: Option<String>
Implementations§
Source§impl CreateUserOption
impl CreateUserOption
Sourcepub fn new(email: String, username: String) -> CreateUserOption
pub fn new(email: String, username: String) -> CreateUserOption
CreateUserOption create user options
Trait Implementations§
Source§impl Clone for CreateUserOption
impl Clone for CreateUserOption
Source§fn clone(&self) -> CreateUserOption
fn clone(&self) -> CreateUserOption
Returns a copy 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 CreateUserOption
impl Debug for CreateUserOption
Source§impl Default for CreateUserOption
impl Default for CreateUserOption
Source§fn default() -> CreateUserOption
fn default() -> CreateUserOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateUserOption
impl<'de> Deserialize<'de> for CreateUserOption
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 CreateUserOption
impl PartialEq for CreateUserOption
Source§impl Serialize for CreateUserOption
impl Serialize for CreateUserOption
impl StructuralPartialEq for CreateUserOption
Auto Trait Implementations§
impl Freeze for CreateUserOption
impl RefUnwindSafe for CreateUserOption
impl Send for CreateUserOption
impl Sync for CreateUserOption
impl Unpin for CreateUserOption
impl UnwindSafe for CreateUserOption
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