pub struct UpdateAdmin {
pub password: Option<String>,
pub privileges: Option<Vec<Privileges>>,
pub description: Option<String>,
pub instance_id: Option<f64>,
}Fields§
§password: Option<String>Пароль пользователя базы данных
privileges: Option<Vec<Privileges>>Список привилегий пользователя базы данных
description: Option<String>Описание пользователя базы данных
instance_id: Option<f64>ID инстанса базы данных для применения привилегий. В данных момент поле доступно только для кластеров MySQL. Если поле не передано, то привилегии будут применены ко всем инстансам
Implementations§
Source§impl UpdateAdmin
impl UpdateAdmin
pub fn new() -> UpdateAdmin
Trait Implementations§
Source§impl Clone for UpdateAdmin
impl Clone for UpdateAdmin
Source§fn clone(&self) -> UpdateAdmin
fn clone(&self) -> UpdateAdmin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateAdmin
impl Debug for UpdateAdmin
Source§impl Default for UpdateAdmin
impl Default for UpdateAdmin
Source§fn default() -> UpdateAdmin
fn default() -> UpdateAdmin
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateAdmin
impl<'de> Deserialize<'de> for UpdateAdmin
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
Source§impl PartialEq for UpdateAdmin
impl PartialEq for UpdateAdmin
Source§fn eq(&self, other: &UpdateAdmin) -> bool
fn eq(&self, other: &UpdateAdmin) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateAdmin
impl Serialize for UpdateAdmin
impl StructuralPartialEq for UpdateAdmin
Auto Trait Implementations§
impl Freeze for UpdateAdmin
impl RefUnwindSafe for UpdateAdmin
impl Send for UpdateAdmin
impl Sync for UpdateAdmin
impl Unpin for UpdateAdmin
impl UnsafeUnpin for UpdateAdmin
impl UnwindSafe for UpdateAdmin
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