pub struct CustomerTier {
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub name: Option<String>,
pub color: Option<String>,
pub description: Option<String>,
pub position: Option<f64>,
pub display_name: Option<String>,
}Expand description
A workspace-defined tier or segment for categorizing customers (e.g., Enterprise, Pro, Free). Customer tiers are used for prioritization and filtering, are ordered by position, and displayed with a color in the UI. Tier names are unique within a workspace.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
name: Option<String>The internal name of the tier. Must be unique within the workspace. Used as the default display name if no displayName is explicitly set.
color: Option<String>The color of the tier indicator in the UI, as a HEX string (e.g., ‘#ff0000’).
description: Option<String>An optional description explaining what this tier represents and its intended use for customer segmentation.
position: Option<f64>The sort position of the tier in the workspace’s customer tier ordering. Lower values appear first. Collisions are automatically resolved by redistributing positions.
display_name: Option<String>The user-facing display name of the tier shown in the UI. Defaults to the internal name if not explicitly set.
Trait Implementations§
Source§impl Clone for CustomerTier
impl Clone for CustomerTier
Source§fn clone(&self) -> CustomerTier
fn clone(&self) -> CustomerTier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more