Changed ElementCreateRequest to optionally include a ContentUpdateStrategy. Closes #13

This commit is contained in:
Philip (a-0) 2024-02-13 18:31:35 +01:00
parent 6a5fce3070
commit 91142f7bfb
4 changed files with 14 additions and 7 deletions

View file

@ -1,7 +1,7 @@
use reqwest::Method;
use serde::{Deserialize, Serialize};
use crate::types::{Element, ElementContent, ElementId, PotId};
use crate::types::{ContentUpdateStrategy, Element, ElementContent, ElementId, PotId};
use super::UbisyncRequest;
@ -9,6 +9,7 @@ use super::UbisyncRequest;
pub struct ElementCreateRequest {
pub content: ElementContent,
pub pot: Option<PotId>,
pub update_strategy: Option<ContentUpdateStrategy>,
}
#[derive(Serialize, Deserialize)]