pub struct Device {Show 14 fields
pub deprecated: DeviceDeprecated,
pub app_version: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub device_id: String,
pub expiration_date: DateTime<Utc>,
pub id: Option<String>,
pub meta: MetaDataEntityId,
pub person_id: i64,
pub push_id: Option<String>,
pub ttl: Option<DateTime<Utc>>,
pub type: String,
pub updated_at: Option<DateTime<Utc>>,
pub version: Option<String>,
pub extra: Map<String, Value>,
}Expand description
One app-device registration belonging to a person. deviceId identifies the registration; pushId is the delivery token. Reading devices does not extend their lifetime.
Fields§
§deprecated: DeviceDeprecatedCompatibility mapping for legacy fields; id actually contains pushId.
app_version: Option<String>Used App Version
created_at: Option<DateTime<Utc>>Use `meta.
Use meta.createdDate instead
device_id: StringClient-generated registration identifier, scoped to the person. Not necessarily a UUID and not the legacy id field.
expiration_date: DateTime<Utc>Registration expiry, refreshed by PUT to three months from now, or one day during simulation. Reads and push selection do not themselves enforce this timestamp.
id: Option<String>deprecated in the ChurchTools API
Legacy value equal to pushId, despite the compatibility marker naming deviceId as its replacement.
meta: MetaDataEntityId§person_id: i64§push_id: Option<String>Push-provider token, or null. Do not use it as the registration identifier.
ttl: Option<DateTime<Utc>>Use expirationDate instead
Use expirationDate instead
type: StringPush platform: APN for Apple Push Notification service; FCM for Firebase Cloud Messaging.
Allowed values: APN, FCM.
updated_at: Option<DateTime<Utc>>Use `meta.
Use meta.modifiedDate instead
version: Option<String>deprecated in the ChurchTools API
Legacy alias of appVersion.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.