Enum bonsaidb_core::permissions::bonsai::ViewAction
source · pub enum ViewAction {
Query,
Reduce,
DeleteDocs,
}
Expand description
Actions that operate on a view.
Variants§
Query
Allows querying a view with
Connection::query()
. See
view_resource_name
for the format of view resource names.
Reduce
Allows reducing a view with
Connection::reduce()
. See
view_resource_name
for the format of view resource names.
DeleteDocs
Allows deleting associated docs with
Connection::delete_docs()
.
See view_resource_name
for the format of view resource names.
Trait Implementations§
source§impl Action for ViewAction
impl Action for ViewAction
source§fn name(&self) -> ActionName
fn name(&self) -> ActionName
The full name of this action.
source§impl Clone for ViewAction
impl Clone for ViewAction
source§fn clone(&self) -> ViewAction
fn clone(&self) -> ViewAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ViewAction
impl Debug for ViewAction
source§impl<'de> Deserialize<'de> for ViewAction
impl<'de> Deserialize<'de> for ViewAction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ViewAction
impl Serialize for ViewAction
impl Copy for ViewAction
Auto Trait Implementations§
impl RefUnwindSafe for ViewAction
impl Send for ViewAction
impl Sync for ViewAction
impl Unpin for ViewAction
impl UnwindSafe for ViewAction
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