pub struct DeviceUpdate {
pub app_version: Option<Option<String>>,
pub push_id: Option<Option<String>>,
pub type: String,
pub version: Option<Option<String>>,
pub extra: Map<String, Value>,
}Expand description
Creates or refreshes a device registration. personId and deviceId come from the URL. Omitted values do not uniformly preserve the previous registration.
Fields§
§app_version: Option<Option<String>>App version accepted by the version validator, such as 1.2.3. Omission or null clears the stored version.
None leaves the field out, Some(None) sends null.
push_id: Option<Option<String>>Trimmed push token. Omission replaces the token with deviceId; null clears it; an empty or whitespace-only string preserves the previous token (null on a new device).
None leaves the field out, Some(None) sends null.
type: StringPush platform: APN for Apple Push Notification service; FCM for Firebase Cloud Messaging.
Allowed values: APN, FCM.
version: Option<Option<String>>deprecated in the ChurchTools API
Legacy alias of appVersion; use appVersion. The canonical field takes precedence if both are present.
None leaves the field out, Some(None) sends null.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.