pub enum Request {
Show 21 variants
CreateDatabase {
db_name: String,
},
DropDatabase {
db_name: String,
},
ListDatabases,
ListCollections,
CreateCollection {
db_name: String,
collection_name: String,
},
DropCollection {
db_name: String,
collection_name: String,
},
GetStats,
Flush,
CreateIndex {
db_name: String,
collection: String,
field_name: String,
},
DropIndex {
db_name: String,
collection: String,
field_name: String,
},
ListIndexes {
db_name: String,
collection: String,
},
CreateRecord {
db_name: String,
collection: String,
record_id: String,
data: Record,
},
UpdateRecord {
db_name: String,
collection: String,
record_id: String,
data: Record,
},
UpsertRecord {
db_name: String,
collection: String,
record_id: String,
data: Record,
},
GetRecord {
db_name: String,
collection: String,
record_id: String,
},
DeleteRecord {
db_name: String,
collection: String,
record_id: String,
cascade: bool,
},
GetLastInsertId,
FindRecords {
db_name: String,
collection: String,
filter: Filter,
options: Option<QueryOptions>,
},
CountRecords {
db_name: String,
collection: String,
filter: Filter,
},
GetRecordWithRelated {
db_name: String,
primary_collection: String,
primary_record_id: String,
relation_key_field: String,
related_collection: String,
},
ExecuteBatchGet(BatchRequest),
}Expand description
The primary enum representing all possible client requests.
Variants§
CreateDatabase
DropDatabase
ListDatabases
ListCollections
CreateCollection
DropCollection
GetStats
Flush
CreateIndex
DropIndex
ListIndexes
CreateRecord
UpdateRecord
UpsertRecord
GetRecord
DeleteRecord
GetLastInsertId
FindRecords
CountRecords
GetRecordWithRelated
Fields
ExecuteBatchGet(BatchRequest)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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