pub struct GroupMember {Show 19 fields
pub deprecated: GroupMemberDeprecated,
pub comment: Option<String>,
pub fields: Option<Vec<GroupMemberFieldsItem>>,
pub group: GroupMemberGroup,
pub group_member_status: String,
pub group_type_role_id: i64,
pub id: i64,
pub member_end_date: Option<NaiveDate>,
pub member_start_date: Option<NaiveDate>,
pub newsletter: Option<GroupMemberNewsletter>,
pub person: GroupMemberPerson,
pub person_fields: Value,
pub person_id: Option<i64>,
pub registered_by: Option<i64>,
pub role_changed_date: DateTime<Utc>,
pub status_changed_date: DateTime<Utc>,
pub tags: Option<Vec<Tag>>,
pub waitinglist_position: Option<i64>,
pub extra: Map<String, Value>,
}Expand description
A person’s membership in one group. The membership has its own record ID, a role defined by the group type, and an independent membership status. Use person.domainIdentifier as personId in membership endpoint URLs; id identifies the membership record. Field visibility depends on the current user’s permissions.
Fields§
§deprecated: GroupMemberDeprecatedLegacy response-field mapping emitted by the membership transformer.
comment: Option<String>Comment about this membership. Only included when the current user can view basic group member fields.
fields: Option<Vec<GroupMemberFieldsItem>>Visible additional fields stored on this membership. Each entry identifies the group member field and its value. This is an array in responses; write requests use an object keyed by field ID.
group: GroupMemberGroupGroup to which this membership belongs.
group_member_status: StringState of a person’s membership in a group, independent of their role. active is an active membership; requested awaits confirmation; waiting is on the waiting list; to_delete is pending removal. Use GET /group/memberstatus for localized display names. A pending-removal membership still exists.
Allowed values: active, requested, to_delete, waiting.
group_type_role_id: i64ID of the role definition for the group type, matching Role.id from GET /roles. This identifies the member’s role (for example, participant or leader); GroupRole.id identifies a group-specific role configuration.
id: i64ID of the membership record linking the person and group.
member_end_date: Option<NaiveDate>Membership end date, or null if none is set. Only included when the current user can view basic group member fields.
member_start_date: Option<NaiveDate>Date on which the membership began (YYYY-MM-DD), or null if no start date is set.
Newsletter subscription information, included when the member list is requested with include=newsletter.
person: GroupMemberPersonPerson who belongs to the group. domainIdentifier is the person ID as a string.
person_fields: ValueRequested additional person fields, keyed by field name. Values are subject to person-field permissions. Returned as an empty array when no fields were requested. These values belong to the person, whereas fields contains values belonging to this membership.
person_id: Option<i64>deprecated in the ChurchTools API
use person.domainIdentifier (type: string) instead.
registered_by: Option<i64>Person ID recorded as having registered this member, or null if none is recorded.
role_changed_date: DateTime<Utc>Timestamp of the most recent role change.
status_changed_date: DateTime<Utc>Timestamp of the most recent membership status change.
Person tags, included when the member list is requested with include=tags.
waitinglist_position: Option<i64>Position on the group’s waiting list, or null when no position is assigned.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.