p7m_phone/models/code_call_request.rs
1/*
2 * Phone and Queue Backend
3 *
4 * API for managing phone services This is the API of the service at P7M that manages phone services. **Attention:** this API will probably still change a lot in the future, it's not at all stable yet
5 *
6 * The version of the OpenAPI document: 0.7.1
7 * Contact: tech@p7m.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CodeCallRequest {
16 #[serde(rename = "code")]
17 pub code: String,
18 #[serde(rename = "phone")]
19 pub phone: String,
20}
21
22impl CodeCallRequest {
23 pub fn new(code: String, phone: String) -> CodeCallRequest {
24 CodeCallRequest {
25 code,
26 phone,
27 }
28 }
29}
30