pub struct Campus {
pub address: Option<CampusAddress>,
pub guid: String,
pub id: i64,
pub meta: MetaDataEntityId,
pub name: String,
pub name_translated: String,
pub short_name: Option<String>,
pub shorty: Option<String>,
pub sort_key: i64,
pub extra: Map<String, Value>,
}Expand description
A campus represents one location or congregation within a ChurchTools installation. Persons, groups, calendars and other resources can reference its numeric ID. This is the compact campus master-data representation; the detailed campus profile is a separate API representation.
Fields§
§address: Option<CampusAddress>Address associated with the campus profile, or null when none is assigned. Campus create/update requests do not set this field.
guid: StringPersistent profile GUID generated by ChurchTools. Use the numeric id for campusId references.
id: i64Numeric campus ID used by campusId fields in other API resources.
meta: MetaDataEntityId§name: StringStored campus name.
name_translated: StringLocalized display name, translated from the stored name when a translation exists.
short_name: Option<String>Optional short profile name. Distinct from shorty and not editable through the campus create/update endpoints.
shorty: Option<String>Campus abbreviation, or null for records without one. New campuses created through this API require an abbreviation.
sort_key: i64Display-order value. GET /campuses does not guarantee this order; sort by this field in the client when needed.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.