Enum bonsaidb_core::permissions::bonsai::DocumentAction   
source · pub enum DocumentAction {
    Get,
    List,
    ListHeaders,
    Count,
    Insert,
    Update,
    Overwrite,
    Delete,
}Expand description
Actions that operate on a document.
Variants§
Get
Allows document retrieval through
Connection::get() and
Connection::get_multiple().
See document_resource_name() for the format of document resource
names.
List
Allows listing documents through
Connection::list(). See
collection_resource_name() for the format of collection resource
names.
ListHeaders
Allows listing documents through
Connection::list_headers(). See
collection_resource_name() for the format of collection resource
names.
Count
Allows counting documents through
Connection::count(). See
collection_resource_name() for the format of collection resource
names.
Insert
Allows inserting a document through
Connection::apply_transaction().
See collection_resource_name() for the format of collection resource
names.
Update
Allows updating a document through
Connection::apply_transaction().
See document_resource_name() for the format of document resource
names.
Overwrite
Allows overwriting a document by id with
Connection::apply_transaction().
No revision information will be checked. See
document_resource_name() for the format of document resource names.
Delete
Allows deleting a document through
Connection::apply_transaction().
See document_resource_name() for the format of document resource
names.
Trait Implementations§
source§impl Action for DocumentAction
 
impl Action for DocumentAction
source§fn name(&self) -> ActionName
 
fn name(&self) -> ActionName
source§impl Clone for DocumentAction
 
impl Clone for DocumentAction
source§fn clone(&self) -> DocumentAction
 
fn clone(&self) -> DocumentAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more