squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
//! Model for TeamMemberStatus enum.

use serde::{Deserialize, Serialize};
use std::fmt::{Display, Formatter};

/// Enumerates the possible statuses the team member can have within a business.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum TeamMemberStatus {
    /// The team member can sign in to Point of Sale and the Seller Dashboard.
    Active,
    /// The team member can no longer sign in to Point of Sale or the Seller Dashboard, but the team
    /// member's sales reports remain available.
    Inactive,
}

impl Display for TeamMemberStatus {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        match self {
            TeamMemberStatus::Active => {
                write!(f, "ACTIVE")
            }
            TeamMemberStatus::Inactive => {
                write!(f, "INACTIVE")
            }
        }
    }
}