Struct redmine_api::api::users::UpdateUserBuilder
source · pub struct UpdateUserBuilder<'a> { /* private fields */ }
Expand description
Builder for UpdateUser
.
Implementations§
source§impl<'a> UpdateUserBuilder<'a>
impl<'a> UpdateUserBuilder<'a>
sourcepub fn login<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn login<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The login for the user
sourcepub fn password<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn password<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The user’s password
It is recommended to use generate_password instead
sourcepub fn firstname<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn firstname<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The user’s firstname
sourcepub fn lastname<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn lastname<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The user’s lastname
sourcepub fn mail<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn mail<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The users primary email address
sourcepub fn auth_source_id(&mut self, value: u64) -> &mut Self
pub fn auth_source_id(&mut self, value: u64) -> &mut Self
allows setting users to be e.g. LDAP users
sourcepub fn mail_notification(&mut self, value: MailNotificationOptions) -> &mut Self
pub fn mail_notification(&mut self, value: MailNotificationOptions) -> &mut Self
what kind of mail notifications should be sent to the user
sourcepub fn must_change_passwd(&mut self, value: bool) -> &mut Self
pub fn must_change_passwd(&mut self, value: bool) -> &mut Self
if set the user must change their password after the next login
sourcepub fn generate_password(&mut self, value: bool) -> &mut Self
pub fn generate_password(&mut self, value: bool) -> &mut Self
generate a random password
sourcepub fn send_information(&mut self, value: bool) -> &mut Self
pub fn send_information(&mut self, value: bool) -> &mut Self
Send account information to the user
sourcepub fn build(&self) -> Result<UpdateUser<'a>, UpdateUserBuilderError>
pub fn build(&self) -> Result<UpdateUser<'a>, UpdateUserBuilderError>
Trait Implementations§
source§impl<'a> Clone for UpdateUserBuilder<'a>
impl<'a> Clone for UpdateUserBuilder<'a>
source§fn clone(&self) -> UpdateUserBuilder<'a>
fn clone(&self) -> UpdateUserBuilder<'a>
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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for UpdateUserBuilder<'a>
impl<'a> Send for UpdateUserBuilder<'a>
impl<'a> Sync for UpdateUserBuilder<'a>
impl<'a> Unpin for UpdateUserBuilder<'a>
impl<'a> UnwindSafe for UpdateUserBuilder<'a>
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