pub struct ServiceExchangeRequest {
pub id: i64,
pub is_archived: bool,
pub meta: ServiceExchangeRequestMeta,
pub requested_event: Option<ServiceExchangeEvent>,
pub requested_person: Option<ServiceExchangePerson>,
pub requested_service_id: i64,
pub requesting_event: Option<ServiceExchangeEvent>,
pub requesting_person: Option<ServiceExchangePerson>,
pub requesting_service_id: i64,
pub status: String,
pub extra: Map<String, Value>,
}Expand description
A request to exchange two concrete event-service assignments. Creating it does not swap the persons; accepting it does. List operations enrich the event and person fields where available. Write responses are not enriched, so those fields can be null.
Fields§
§id: i64ID of the exchange request.
is_archived: boolWhether this exchange is archived. Person-level lists exclude archived exchanges; the assignment-level list does not.
meta: ServiceExchangeRequestMeta§requested_event: Option<ServiceExchangeEvent>§requested_person: Option<ServiceExchangePerson>§requested_service_id: i64Assignment requested in return. ID of a concrete event-service assignment (service request), not the reusable service master-data ID from /services.
requesting_event: Option<ServiceExchangeEvent>§requesting_person: Option<ServiceExchangePerson>§requesting_service_id: i64Assignment offered by the requester. ID of a concrete event-service assignment (service request), not the reusable service master-data ID from /services.
status: StringUNANSWERED: awaiting a reply; AGREED: exchange accepted; DECLINED: recipient declined; CANCELLED: requester cancelled. Archiving is tracked separately by isArchived.
Allowed values: AGREED, CANCELLED, DECLINED, UNANSWERED.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.