use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum GoogleFormsIntegrationStatus {
#[serde(rename = "GOOGLE_FORMS_INTEGRATION_STATUS_UNSPECIFIED")]
GoogleFormsIntegrationStatusUnspecified,
#[serde(rename = "GOOGLE_FORMS_INTEGRATION_STATUS_ACTIVE")]
GoogleFormsIntegrationStatusActive,
#[serde(rename = "GOOGLE_FORMS_INTEGRATION_STATUS_PAUSED")]
GoogleFormsIntegrationStatusPaused,
#[serde(rename = "GOOGLE_FORMS_INTEGRATION_STATUS_DISCONNECTED")]
GoogleFormsIntegrationStatusDisconnected,
}
impl std::fmt::Display for GoogleFormsIntegrationStatus {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::GoogleFormsIntegrationStatusUnspecified => write!(f, "GOOGLE_FORMS_INTEGRATION_STATUS_UNSPECIFIED"),
Self::GoogleFormsIntegrationStatusActive => write!(f, "GOOGLE_FORMS_INTEGRATION_STATUS_ACTIVE"),
Self::GoogleFormsIntegrationStatusPaused => write!(f, "GOOGLE_FORMS_INTEGRATION_STATUS_PAUSED"),
Self::GoogleFormsIntegrationStatusDisconnected => write!(f, "GOOGLE_FORMS_INTEGRATION_STATUS_DISCONNECTED"),
}
}
}
impl Default for GoogleFormsIntegrationStatus {
fn default() -> GoogleFormsIntegrationStatus {
Self::GoogleFormsIntegrationStatusUnspecified
}
}