pub struct AgendaCreate {
pub calendar_id: Option<i64>,
pub event_start_position: Option<i64>,
pub items: Option<Vec<AgendaItemListUpdate>>,
pub series: Option<Option<String>>,
pub extra: Map<String, Value>,
}Expand description
Create an agenda without copying a template or another event. Supply calendarId explicitly; it is not inferred from the event. Items are optional, so an empty agenda can be created.
Fields§
§calendar_id: Option<i64>Calendar assigned to this agenda. It is not automatically taken from the event.
event_start_position: Option<i64>Zero-based index in the complete items array where the event begins, including headers and hidden items.
items: Option<Vec<AgendaItemListUpdate>>Complete replacement list in the intended order. Existing IDs retain and update those items; entries without IDs create new ones. An empty array deletes all items. Cannot be combined with either copy-source query parameter.
series: Option<Option<String>>Free-text series name.
None leaves the field out, Some(None) sends null.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for AgendaCreate
impl Clone for AgendaCreate
Source§impl Debug for AgendaCreate
impl Debug for AgendaCreate
Source§impl Default for AgendaCreate
impl Default for AgendaCreate
Source§impl<'de> Deserialize<'de> for AgendaCreate
impl<'de> Deserialize<'de> for AgendaCreate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgendaCreate
impl PartialEq for AgendaCreate
Source§impl Serialize for AgendaCreate
impl Serialize for AgendaCreate
impl StructuralPartialEq for AgendaCreate
Auto Trait Implementations§
impl Freeze for AgendaCreate
impl RefUnwindSafe for AgendaCreate
impl Send for AgendaCreate
impl Sync for AgendaCreate
impl Unpin for AgendaCreate
impl UnsafeUnpin for AgendaCreate
impl UnwindSafe for AgendaCreate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more