pkpass 1.1.0

Rust library for generate Apple Wallet Passes for iOS, WatchOS, MacOS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

/// Represents Web Service
///
/// See [Apple documentation](https://developer.apple.com/documentation/walletpasses/adding_a_web_service_to_update_passes)
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct WebService {
    /// The authentication token to use with the web service in the `web_service_url`(`WebService::web_service_url`) key.
    pub authentication_token: String,

    /// The URL for a web service that you use to update or personalize the pass. The URL can include an optional port number.
    #[serde(rename = "webServiceURL")]
    pub web_service_url: String,
}