Enum pliantdb_local::core::networking::DatabaseResponse [−][src]
pub enum DatabaseResponse { Documents(Vec<Document<'static>, Global>), TransactionResults(Vec<OperationResult, Global>), ViewMappings(Vec<Serialized, Global>), ViewMappingsWithDocs(Vec<MappedDocument, Global>), ViewReduction(Vec<u8, Global>), ViewGroupedReduction(Vec<MappedValue<Vec<u8, Global>, Vec<u8, Global>>, Global>), ExecutedTransactions(Vec<Executed<'static>, Global>), LastTransactionId(Option<u64>), SubscriberCreated { subscriber_id: u64, }, MessageReceived { subscriber_id: u64, topic: String, payload: Vec<u8, Global>, }, KvOutput(Output), }
Expand description
A response to a DatabaseRequest
.
Variants
One or more documents.
TransactionResults(Vec<OperationResult, Global>)
Results of DatabaseRequest::ApplyTransaction
.
ViewMappings(Vec<Serialized, Global>)
Results of DatabaseRequest::Query
when with_docs
is false.
ViewMappingsWithDocs(Vec<MappedDocument, Global>)
Results of DatabaseRequest::Query
when with_docs
is true.
Result of DatabaseRequest::Reduce
when grouped
is false.
Result of DatabaseRequest::Reduce
when grouped
is true.
Results of DatabaseRequest::ListExecutedTransactions
.
Result of DatabaseRequest::LastTransactionId
.
A new PubSub
subscriber was created.
Show fields
Fields of SubscriberCreated
subscriber_id: u64
The unique ID of the subscriber.
A PubSub message was received.
Show fields
KvOutput(Output)
Output from a KeyOperation
being executed.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<DatabaseResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<DatabaseResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for DatabaseResponse
impl Send for DatabaseResponse
impl Sync for DatabaseResponse
impl Unpin for DatabaseResponse
impl UnwindSafe for DatabaseResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self