Struct redmine_api::api::users::UpdateUserBuilder
source · [−]pub struct UpdateUserBuilder<'a> { /* private fields */ }
Expand description
Builder for UpdateUser
.
Implementations
sourceimpl<'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
sourceimpl<'a> Clone for UpdateUserBuilder<'a>
impl<'a> Clone for UpdateUserBuilder<'a>
sourcefn clone(&self) -> UpdateUserBuilder<'a>
fn clone(&self) -> UpdateUserBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more