Skip to main content

hcloud/models/
set_rules_response.rs

1/*
2 * Hetzner Cloud API
3 *
4 * Copied from the official API documentation for the Public Hetzner Cloud.
5 *
6 * The version of the OpenAPI document: 4b3f595
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SetRulesResponse : Response to POST https://api.hetzner.cloud/v1/firewalls/{id}/actions/set_rules
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SetRulesResponse {
17    #[serde(rename = "actions")]
18    pub actions: Vec<models::Action>,
19}
20
21impl SetRulesResponse {
22    /// Response to POST https://api.hetzner.cloud/v1/firewalls/{id}/actions/set_rules
23    pub fn new(actions: Vec<models::Action>) -> SetRulesResponse {
24        SetRulesResponse { actions }
25    }
26}