Enum scylladb_parse::RoleOpt
source · [−]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
sourceimpl 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
sourceimpl<'a> CustomToTokens<'a> for RoleOpt
impl<'a> CustomToTokens<'a> for RoleOpt
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl Ord for RoleOpt
impl Ord for RoleOpt
sourceimpl PartialOrd<RoleOpt> for RoleOpt
impl PartialOrd<RoleOpt> for RoleOpt
sourcefn partial_cmp(&self, other: &RoleOpt) -> Option<Ordering>
fn partial_cmp(&self, other: &RoleOpt) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl ToTokens for RoleOpt
impl ToTokens for RoleOpt
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self to the given TokenStream. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self directly into a TokenStream object. Read more
impl Eq for RoleOpt
impl StructuralEq for RoleOpt
Auto Trait Implementations
impl RefUnwindSafe for RoleOpt
impl Send for RoleOpt
impl Sync for RoleOpt
impl Unpin for RoleOpt
impl UnwindSafe for RoleOpt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more