/*
* 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). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
*
* The version of the OpenAPI document: 1.104.0
* 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>,
/// Keyless calls only, in place of `phoneNumber`: the number with its middle digits masked, e.g. +44 20 •••• 0123.
#[serde(rename = "maskedNumber", skip_serializing_if = "Option::is_none")]
pub masked_number: Option<String>,
/// Keyless calls only. Without a `numberType` filter a keyless search mixes every type the country sells, so each result names its own.
#[serde(rename = "numberType", skip_serializing_if = "Option::is_none")]
pub number_type: Option<String>,
/// Keyless calls only. Opaque, expires after 7 days. Pass it as `claimId` on a keyless POST /v1/phone-numbers/purchase.
#[serde(rename = "claimId", skip_serializing_if = "Option::is_none")]
pub claim_id: Option<String>,
/// Keyless calls only. Signup link that opens the dashboard's confirm step for this number. The number is not held: if it is gone by then, the buyer picks another in the same area.
#[serde(rename = "claimUrl", skip_serializing_if = "Option::is_none")]
pub claim_url: Option<String>,
}
impl SearchAvailablePhoneNumbers200ResponseNumbersInner {
pub fn new() -> SearchAvailablePhoneNumbers200ResponseNumbersInner {
SearchAvailablePhoneNumbers200ResponseNumbersInner {
phone_number: None,
features: None,
locality: None,
best_effort: None,
masked_number: None,
number_type: None,
claim_id: None,
claim_url: None,
}
}
}