/*
* Hetzner Cloud API
*
* Copied from the official API documentation for the Public Hetzner Cloud.
*
* The version of the OpenAPI document: 0.28.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// UpdateServiceResponse : Response to POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/update_service
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateServiceResponse {
#[serde(rename = "action")]
pub action: Box<models::Action>,
}
impl UpdateServiceResponse {
/// Response to POST https://api.hetzner.cloud/v1/load_balancers/{id}/actions/update_service
pub fn new(action: models::Action) -> UpdateServiceResponse {
UpdateServiceResponse {
action: Box::new(action),
}
}
}