Struct rincon_client::user::methods::SetCollectionAccessLevel
[−]
[src]
pub struct SetCollectionAccessLevel { /* fields omitted */ }
Set the collection access level for an user.
You need permission to the _system database in order to execute this method call.
Methods
impl SetCollectionAccessLevel
[src]
pub fn new(
user_name: String,
database: String,
collection: String,
grant: Permission
) -> Self
[src]
user_name: String,
database: String,
collection: String,
grant: Permission
) -> Self
Constructs a new instance of the SetCollectionAccessLevel
method.
pub fn user_name(&self) -> &str
[src]
Returns the user name for which the collection access level should be set.
pub fn database(&self) -> &str
[src]
Returns the name of the database for which the collection access level should be set.
pub fn collection(&self) -> &str
[src]
Returns the name of the collection for which the collection access level should be set.
pub fn access_level(&self) -> &NewAccessLevel
[src]
Returns the access level that should be set.
Trait Implementations
impl Debug for SetCollectionAccessLevel
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for SetCollectionAccessLevel
[src]
fn clone(&self) -> SetCollectionAccessLevel
[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 PartialEq for SetCollectionAccessLevel
[src]
fn eq(&self, __arg_0: &SetCollectionAccessLevel) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SetCollectionAccessLevel) -> bool
[src]
This method tests for !=
.
impl Method for SetCollectionAccessLevel
[src]
type Result = Empty
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 Prepare for SetCollectionAccessLevel
[src]
type Content = NewAccessLevel
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