/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
*
* The version of the OpenAPI document: 1.0.4
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchAvailablePhoneNumbers200ResponseNumbersInner {
/// E.164. Pass it as `phoneNumber` on POST /v1/phone-numbers/purchase to buy this exact number.
#[serde(rename = "phoneNumber", skip_serializing_if = "Option::is_none")]
pub phone_number: Option<String>,
/// Provider capability list for this number (e.g. voice, sms, mms).
#[serde(rename = "features", skip_serializing_if = "Option::is_none")]
pub features: Option<Vec<String>>,
/// Town or rate center the number belongs to, as the carrier names it (e.g. WACO).
#[serde(rename = "locality", skip_serializing_if = "Option::is_none")]
pub locality: Option<String>,
/// true when the carrier added this number because too few matched your filters, so it may be outside the requested prefix or locality.
#[serde(rename = "bestEffort", skip_serializing_if = "Option::is_none")]
pub best_effort: Option<bool>,
}
impl SearchAvailablePhoneNumbers200ResponseNumbersInner {
pub fn new() -> SearchAvailablePhoneNumbers200ResponseNumbersInner {
SearchAvailablePhoneNumbers200ResponseNumbersInner {
phone_number: None,
features: None,
locality: None,
best_effort: None,
}
}
}