pub struct AppointmentEventCreate {
pub admin_ids: Option<Vec<i64>>,
pub description: Option<Option<String>>,
pub event_template_id: Option<i64>,
pub facts: Option<BTreeMap<String, Value>>,
pub note: Option<Option<String>>,
pub services: Option<Vec<AppointmentEventCreateServicesItem>>,
pub start_date: DateTime<Utc>,
pub extra: Map<String, Value>,
}Expand description
Create a service-planning event for one occurrence. This is a separate ChurchTools resource linked to the calendar appointment; existing events must not be submitted again.
Fields§
§admin_ids: Option<Vec<i64>>Person IDs of the event administrators.
description: Option<Option<String>>None leaves the field out, Some(None) sends null.
event_template_id: Option<i64>Optional service-planning event template to apply.
facts: Option<BTreeMap<String, Value>>Event fact values keyed by configured fact ID. Allowed values depend on the fact’s number or select type.
note: Option<Option<String>>👎Deprecated:
Use description instead.
Use description instead.
None leaves the field out, Some(None) sends null.
services: Option<Vec<AppointmentEventCreateServicesItem>>§start_date: DateTime<Utc>Exact UTC start of an occurrence in the resulting appointment; seconds are discarded. A duplicate event or a date outside the series produces 422.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for AppointmentEventCreate
impl Clone for AppointmentEventCreate
Source§impl Debug for AppointmentEventCreate
impl Debug for AppointmentEventCreate
Source§impl Default for AppointmentEventCreate
impl Default for AppointmentEventCreate
Source§impl<'de> Deserialize<'de> for AppointmentEventCreate
impl<'de> Deserialize<'de> for AppointmentEventCreate
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 AppointmentEventCreate
impl PartialEq for AppointmentEventCreate
Source§impl Serialize for AppointmentEventCreate
impl Serialize for AppointmentEventCreate
impl StructuralPartialEq for AppointmentEventCreate
Auto Trait Implementations§
impl Freeze for AppointmentEventCreate
impl RefUnwindSafe for AppointmentEventCreate
impl Send for AppointmentEventCreate
impl Sync for AppointmentEventCreate
impl Unpin for AppointmentEventCreate
impl UnsafeUnpin for AppointmentEventCreate
impl UnwindSafe for AppointmentEventCreate
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