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§
Source§impl 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§
Source§impl<'a> CustomToTokens<'a> for Resource
impl<'a> CustomToTokens<'a> for Resource
Source§impl ToTokens for Resource
impl ToTokens for Resource
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 Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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