Struct rincon_client::user::methods::CreateUser
[−]
[src]
pub struct CreateUser<E> where
E: UserExtra, { /* fields omitted */ }
Creates a new user.
You need 'Administrate server' access level in order to execute this method call.
Methods
impl<E> CreateUser<E> where
E: UserExtra,
[src]
E: UserExtra,
pub fn new(user: NewUser<E>) -> Self
[src]
Constructs a new CreateUser
method with the given user parameter.
pub fn user(&self) -> &NewUser<E>
[src]
Returns the user parameter of this CreateUser
method.
Trait Implementations
impl<E: Debug> Debug for CreateUser<E> where
E: UserExtra,
[src]
E: UserExtra,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: Clone> Clone for CreateUser<E> where
E: UserExtra,
[src]
E: UserExtra,
fn clone(&self) -> CreateUser<E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<E: PartialEq> PartialEq for CreateUser<E> where
E: UserExtra,
[src]
E: UserExtra,
fn eq(&self, __arg_0: &CreateUser<E>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CreateUser<E>) -> bool
[src]
This method tests for !=
.
impl<E> Method for CreateUser<E> where
E: UserExtra + DeserializeOwned,
[src]
E: UserExtra + DeserializeOwned,
type Result = User<E>
The type of the result of a method call.
const RETURN_TYPE: RpcReturnType
RETURN_TYPE: RpcReturnType = RpcReturnType{result_field: None, code_field: Some(FIELD_CODE),}
Specification of the fields of RPC-like return type. Read more
fn return_type(&self) -> RpcReturnType
[src]
Returns the specification of the RPC-like return type.
impl<E> Prepare for CreateUser<E> where
E: UserExtra + Serialize,
[src]
E: UserExtra + Serialize,
type Content = NewUser<E>
The type of the content of a method call. Read more
fn operation(&self) -> Operation
[src]
Returns the type of operation this method is executing.
fn path(&self) -> String
[src]
Returns the resource path of a REST operation.
fn parameters(&self) -> Parameters
[src]
Returns the query parameters of this method. Read more
fn header(&self) -> Parameters
[src]
Returns the header parameters of this method. Read more
fn content(&self) -> Option<&Self::Content>
[src]
Returns the content of this method if any. Read more
Auto Trait Implementations
impl<E> Send for CreateUser<E> where
E: Send,
E: Send,
impl<E> Sync for CreateUser<E> where
E: Sync,
E: Sync,