pub struct AclUserCreateRequest {
pub name: String,
pub role: String,
pub password: String,
pub command_type: Option<String>,
pub extra: Value,
}
Expand description
ACL user create request
Fields§
§name: String
Access control user name.
role: String
Name of the database access role to assign to this user. Use GET ‘/acl/roles’ to get a list of database access roles.
password: String
The database password for this user.
command_type: Option<String>
§extra: Value
Additional fields from the API
Trait Implementations§
Source§impl Clone for AclUserCreateRequest
impl Clone for AclUserCreateRequest
Source§fn clone(&self) -> AclUserCreateRequest
fn clone(&self) -> AclUserCreateRequest
Returns a duplicate 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 moreSource§impl Debug for AclUserCreateRequest
impl Debug for AclUserCreateRequest
Source§impl<'de> Deserialize<'de> for AclUserCreateRequest
impl<'de> Deserialize<'de> for AclUserCreateRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AclUserCreateRequest
impl RefUnwindSafe for AclUserCreateRequest
impl Send for AclUserCreateRequest
impl Sync for AclUserCreateRequest
impl Unpin for AclUserCreateRequest
impl UnwindSafe for AclUserCreateRequest
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