Changed ElementCreateRequest
to optionally include a ContentUpdateStrategy
. Closes #13
This commit is contained in:
parent
6a5fce3070
commit
91142f7bfb
4 changed files with 14 additions and 7 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue