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<ViewAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ViewAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ViewAction
impl Serialize for ViewAction
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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