pub struct PersonPrivacyPolicyUpdate {
pub birthday: Option<Option<String>>,
pub children_accepted: bool,
pub own_accepted: bool,
pub persons: Vec<PersonPrivacyPolicyChildUpdate>,
pub type_id: i64,
pub who_id: i64,
pub extra: Map<String, Value>,
}Expand description
Record own consent and/or consent for child relationships. All flags and the persons array are required, even when a branch is not used. This operation can partially change data before a later error.
Fields§
§birthday: Option<Option<String>>Birthday for the URL person if no birthday is stored. Prefer YYYY-MM-DD. Empty text becomes null; malformed date text is not reliably rejected as 400.
None leaves the field out, Some(None) sends null.
children_accepted: boolWhether to process the persons array.
own_accepted: boolWhether to process consent for the URL person.
persons: Vec<PersonPrivacyPolicyChildUpdate>Child selections; use an empty array when not processing children.
type_id: i64Consent-type catalog ID used for own consent; typically the typeId from GET. Child consent always uses self-confirmation (2).
who_id: i64Consent-giver catalog ID used for own consent; typically the whoId from GET. Child consent always uses parent (2).
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.