mattermost_rust_client/models/
attach_device_id_request.rs

1/*
2 * Mattermost API Reference
3 *
4 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn). 
5 *
6 * The version of the OpenAPI document: 4.0.0
7 * Contact: feedback@mattermost.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct AttachDeviceIdRequest {
16    /// Mobile device id. For Android prefix the id with `android:` and Apple with `apple:`
17    #[serde(rename = "device_id")]
18    pub device_id: String,
19}
20
21impl AttachDeviceIdRequest {
22    pub fn new(device_id: String) -> AttachDeviceIdRequest {
23        AttachDeviceIdRequest {
24            device_id,
25        }
26    }
27}
28
29