diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-11-04 19:16:01 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-11-04 19:16:01 -0700 |
commit | bc8493998d90799551c5e0703bbb4a6e69d2478a (patch) | |
tree | 482d0360ae7f395568e3cdf0fd48d2e5313e9eb9 /adenosine-pds/src/models.rs | |
parent | 5f220855db95d006e4168356759a5b871899d759 (diff) | |
download | adenosine-bc8493998d90799551c5e0703bbb4a6e69d2478a.tar.gz adenosine-bc8493998d90799551c5e0703bbb4a6e69d2478a.zip |
pds: basic repo CRUD coming together
Diffstat (limited to 'adenosine-pds/src/models.rs')
-rw-r--r-- | adenosine-pds/src/models.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/adenosine-pds/src/models.rs b/adenosine-pds/src/models.rs index 9da6104..afadeea 100644 --- a/adenosine-pds/src/models.rs +++ b/adenosine-pds/src/models.rs @@ -35,3 +35,19 @@ pub struct RepoDescribe { pub collections: Vec<String>, pub nameIsCorrect: bool, } + +#[allow(non_snake_case)] +#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)] +pub struct RepoBatchWriteBody { + pub writes: Vec<RepoBatchWrite>, +} + +#[allow(non_snake_case)] +#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)] +pub struct RepoBatchWrite { + #[serde(rename = "type")] + pub op_type: String, + pub collection: String, + pub rkey: Option<String>, + pub value: serde_json::Value, +} |