Enum scylladb_parse::Resource
source · [−]pub enum Resource {
AllKeyspaces,
Keyspace(Name),
Table(KeyspaceQualifiedName),
AllRoles,
Role(Name),
AllFunctions {
keyspace: Option<Name>,
},
Function(FunctionReference),
AllMBeans,
MBean(LitStr),
}Variants
AllKeyspaces
Keyspace(Name)
Table(KeyspaceQualifiedName)
AllRoles
Role(Name)
AllFunctions
Function(FunctionReference)
AllMBeans
MBean(LitStr)
Implementations
sourceimpl Resource
impl Resource
pub fn all_keyspaces() -> Self
pub fn keyspace(name: impl Into<Name>) -> Self
pub fn table(name: impl Into<KeyspaceQualifiedName>) -> Self
pub fn all_roles() -> Self
pub fn role(name: impl Into<Name>) -> Self
pub fn all_functions() -> Self
pub fn all_functions_in_keyspace(keyspace: impl Into<Name>) -> Self
pub fn function(name: impl Into<FunctionReference>) -> Self
pub fn all_mbeans() -> Self
pub fn mbean(name: impl Into<LitStr>) -> Self
Trait Implementations
sourceimpl<'a> CustomToTokens<'a> for Resource
impl<'a> CustomToTokens<'a> for Resource
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl ToTokens for Resource
impl ToTokens for Resource
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 Resource
impl StructuralEq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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