|
@@ -23,6 +23,7 @@ use std::collections::HashMap;
|
|
/// security that its content was not altered.
|
|
/// security that its content was not altered.
|
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
|
pub struct Revision {
|
|
pub struct Revision {
|
|
|
|
+ #[serde(rename = "_prev_rev")]
|
|
/// Any previous transaction that this transaction is replacing.
|
|
/// Any previous transaction that this transaction is replacing.
|
|
previous: Option<RevisionId>,
|
|
previous: Option<RevisionId>,
|
|
/// A human-readable description of the transaction changes.
|
|
/// A human-readable description of the transaction changes.
|
|
@@ -157,12 +158,15 @@ impl Revision {
|
|
/// The transaction ID, and the revision ID, are the cryptographic hash of the transactions
|
|
/// The transaction ID, and the revision ID, are the cryptographic hash of the transactions
|
|
#[derive(Debug, Clone, Serialize)]
|
|
#[derive(Debug, Clone, Serialize)]
|
|
pub struct Transaction {
|
|
pub struct Transaction {
|
|
|
|
+ #[serde(rename = "_id")]
|
|
/// The RevisionId is the RevisionID of the first revision of the transaction.
|
|
/// The RevisionId is the RevisionID of the first revision of the transaction.
|
|
pub id: RevisionId,
|
|
pub id: RevisionId,
|
|
|
|
|
|
|
|
+ #[serde(rename = "_rev")]
|
|
/// Current Revision ID.
|
|
/// Current Revision ID.
|
|
pub revision_id: RevisionId,
|
|
pub revision_id: RevisionId,
|
|
|
|
|
|
|
|
+ #[serde(rename = "_latest_rev")]
|
|
/// Latest revision of this transaction
|
|
/// Latest revision of this transaction
|
|
pub lastest_revision: RevisionId,
|
|
pub lastest_revision: RevisionId,
|
|
|
|
|