#[non_exhaustive]pub struct SqlServerUserDetails {
pub disabled: bool,
pub server_roles: Vec<String>,
/* private fields */
}
Expand description
Represents a Sql Server user on the Cloud SQL instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.disabled: bool
If the user has been disabled
server_roles: Vec<String>
The server roles for this user
Implementations§
Source§impl SqlServerUserDetails
impl SqlServerUserDetails
pub fn new() -> Self
Sourcepub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of disabled.
Sourcepub fn set_server_roles<T, V>(self, v: T) -> Self
pub fn set_server_roles<T, V>(self, v: T) -> Self
Sets the value of server_roles.
Trait Implementations§
Source§impl Clone for SqlServerUserDetails
impl Clone for SqlServerUserDetails
Source§fn clone(&self) -> SqlServerUserDetails
fn clone(&self) -> SqlServerUserDetails
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 SqlServerUserDetails
impl Debug for SqlServerUserDetails
Source§impl Default for SqlServerUserDetails
impl Default for SqlServerUserDetails
Source§fn default() -> SqlServerUserDetails
fn default() -> SqlServerUserDetails
Returns the “default value” for a type. Read more
Source§impl Message for SqlServerUserDetails
impl Message for SqlServerUserDetails
Source§impl PartialEq for SqlServerUserDetails
impl PartialEq for SqlServerUserDetails
impl StructuralPartialEq for SqlServerUserDetails
Auto Trait Implementations§
impl Freeze for SqlServerUserDetails
impl RefUnwindSafe for SqlServerUserDetails
impl Send for SqlServerUserDetails
impl Sync for SqlServerUserDetails
impl Unpin for SqlServerUserDetails
impl UnwindSafe for SqlServerUserDetails
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