pub enum RoleOpt {
Password(LitStr),
Login(bool),
Superuser(bool),
Options(MapLiteral),
AccessToDatacenters(SetLiteral),
AccessToAllDatacenters,
}Variants§
Password(LitStr)
Login(bool)
Superuser(bool)
Options(MapLiteral)
AccessToDatacenters(SetLiteral)
AccessToAllDatacenters
Implementations§
Source§impl RoleOpt
impl RoleOpt
pub fn password<T: Into<LitStr>>(password: T) -> Self
pub fn login(login: bool) -> Self
pub fn superuser(superuser: bool) -> Self
pub fn options<T: Into<MapLiteral>>(options: T) -> Self
pub fn access_to_datacenters<T: Into<SetLiteral>>(datacenters: T) -> Self
pub fn access_to_all_datacenters() -> Self
Trait Implementations§
Source§impl<'a> CustomToTokens<'a> for RoleOpt
impl<'a> CustomToTokens<'a> for RoleOpt
impl Eq for RoleOpt
Source§impl Ord for RoleOpt
impl Ord for RoleOpt
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RoleOpt
impl PartialOrd for RoleOpt
Source§impl ToTokens for RoleOpt
impl ToTokens for RoleOpt
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for RoleOpt
impl RefUnwindSafe for RoleOpt
impl Send for RoleOpt
impl Sync for RoleOpt
impl Unpin for RoleOpt
impl UnsafeUnpin for RoleOpt
impl UnwindSafe for RoleOpt
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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