pub struct EventFact {
pub deprecated: String,
pub event_id: i64,
pub fact_id: i64,
pub meta: MetaDataEntityId,
pub modified_date: Option<DateTime<Utc>>,
pub modified_pid: Option<i64>,
pub value: Value,
pub extra: Map<String, Value>,
}Expand description
A fact definition describes a metric or selection (for example attendance or service type). An event fact stores one value for that definition on a service-planning event. eventId identifies the event, not its calendar appointment; factId identifies the reusable definition from /facts. Values are returned as numbers for numeric facts and strings for select facts. Definitions and events are referenced by ID, not embedded.
Fields§
§deprecated: StringLegacy response marker identifying the metadata replacements.
event_id: i64Service-planning event ID. This is not the calendar appointment ID.
fact_id: i64ID of the fact definition from /facts; the same factId can have different values on different events.
meta: MetaDataEntityId§modified_date: Option<DateTime<Utc>>deprecated in the ChurchTools API
Last modification timestamp.
modified_pid: Option<i64>deprecated in the ChurchTools API
ID of the person who last modified the value.
value: ValueNumeric facts are serialized as JSON numbers, select facts as their stored option text. A legacy empty stored value is returned as null; new values cannot be null.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.