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
Source§impl Ord for RoleOpt
impl Ord for RoleOpt
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,
impl Eq for RoleOpt
Auto Trait Implementations§
impl Freeze for RoleOpt
impl RefUnwindSafe for RoleOpt
impl Send for RoleOpt
impl Sync for RoleOpt
impl Unpin for RoleOpt
impl UnwindSafe for RoleOpt
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