/*
* 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.597.0
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// EmailCapabilities : On Google, Microsoft and IMAP accounts with email access: what this mailbox provider can do, so you can branch before calling.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EmailCapabilities {
#[serde(rename = "sync", skip_serializing_if = "Option::is_none")]
pub sync: Option<Box<models::EmailCapabilitiesSync>>,
#[serde(rename = "drafts", skip_serializing_if = "Option::is_none")]
pub drafts: Option<Box<models::EmailCapabilitiesDrafts>>,
#[serde(rename = "forward", skip_serializing_if = "Option::is_none")]
pub forward: Option<Box<models::EmailCapabilitiesForward>>,
#[serde(rename = "sendAs", skip_serializing_if = "Option::is_none")]
pub send_as: Option<Box<models::EmailCapabilitiesSendAs>>,
#[serde(rename = "signatures", skip_serializing_if = "Option::is_none")]
pub signatures: Option<Box<models::EmailCapabilitiesSignatures>>,
#[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
pub labels: Option<Box<models::EmailCapabilitiesLabels>>,
#[serde(rename = "bounces", skip_serializing_if = "Option::is_none")]
pub bounces: Option<Box<models::EmailCapabilitiesBounces>>,
#[serde(rename = "scheduledSend", skip_serializing_if = "Option::is_none")]
pub scheduled_send: Option<Box<models::EmailCapabilitiesScheduledSend>>,
#[serde(rename = "tracking", skip_serializing_if = "Option::is_none")]
pub tracking: Option<bool>,
}
impl EmailCapabilities {
/// On Google, Microsoft and IMAP accounts with email access: what this mailbox provider can do, so you can branch before calling.
pub fn new() -> EmailCapabilities {
EmailCapabilities {
sync: None,
drafts: None,
forward: None,
send_as: None,
signatures: None,
labels: None,
bounces: None,
scheduled_send: None,
tracking: None,
}
}
}