mattermost_rust_client/models/
install_marketplace_plugin_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 InstallMarketplacePluginRequest {
16    /// The ID of the plugin to install.
17    #[serde(rename = "id")]
18    pub id: String,
19    /// The version of the plugin to install.
20    #[serde(rename = "version")]
21    pub version: String,
22}
23
24impl InstallMarketplacePluginRequest {
25    pub fn new(id: String, version: String) -> InstallMarketplacePluginRequest {
26        InstallMarketplacePluginRequest {
27            id,
28            version,
29        }
30    }
31}
32
33