pub enum Action {
Show 13 variants
Query,
Pull,
Datoms,
TxRange,
Subscribe,
Inspect,
Transact,
CreateDatabase,
DeleteDatabase,
ForkDatabase,
ListDatabases,
GarbageCollect,
ManageIndex,
}Expand description
The operation a request wants to perform, for authorization.
One variant per public RPC family; the mapping from concrete RPCs is in
docs/design/auth.md. Action::is_write and Action::is_admin let
coarse policies grant by category instead of enumerating every action.
Variants§
Query
Datalog query against a database view.
Pull
Pull expression against a database view.
Datoms
Raw datom access against a database view.
TxRange
Transaction-log range read.
Subscribe
Live subscription to a database.
Inspect
Stats / status read.
Transact
Submit a transaction.
CreateDatabase
Create a database.
DeleteDatabase
Delete a database.
ForkDatabase
Fork a database.
ListDatabases
List databases in the catalog.
GarbageCollect
Garbage-collect deleted databases or old segments.
ManageIndex
Request or reconfigure indexing.
Implementations§
Trait Implementations§
impl Copy for Action
impl Eq for Action
Source§impl Ord for Action
impl Ord for Action
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 Action
impl PartialOrd for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request