speechmatics 0.4.0

An async rust SDK for the Speechmatics API
Documentation
/*
 * OpenAPI Template
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::realtime::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VocabWordOneOf {
    #[serde(rename = "content")]
    pub content: String,
    #[serde(rename = "sounds_like", skip_serializing_if = "Option::is_none")]
    pub sounds_like: Option<Vec<String>>,
}

impl VocabWordOneOf {
    pub fn new(content: String) -> VocabWordOneOf {
        VocabWordOneOf {
            content,
            sounds_like: None,
        }
    }
}