Struct rincon_client::user::types::NewUser [] [src]

pub struct NewUser<E> where
    E: UserExtra
{ /* fields omitted */ }

This struct specifies the properties for a new user that is going to be created.

The type parameter E defines the type of the extra data about the user. If users are created without any extra data one can use the provided Empty type.

Methods

impl<E> NewUser<E> where
    E: UserExtra
[src]

[src]

Constructs an new instance of NewUser with all attributes explicitly set.

[src]

Constructs a new instance of NewUser with given name and password.

The user will be active by default and will not have any extra data assigned.

[src]

Constructs a new instance of NewUser with given name and the default root password configured for the ArangoDB-Server.

The user will be active by default and will not have any extra data assigned.

[src]

Sets the extra data for this NewUser.

[src]

Sets the active flag for this NewUser.

[src]

Returns the name of the user to be created.

[src]

Returns the password of the user to be created.

[src]

Returns whether the user will be created as active or inactive.

[src]

Returns the extra data that will be stored with the user to be created.

Trait Implementations

impl<E: Debug> Debug for NewUser<E> where
    E: UserExtra
[src]

[src]

Formats the value using the given formatter. Read more

impl<E: Clone> Clone for NewUser<E> where
    E: UserExtra
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<E: PartialEq> PartialEq for NewUser<E> where
    E: UserExtra
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl<E> Send for NewUser<E> where
    E: Send

impl<E> Sync for NewUser<E> where
    E: Sync