pub struct CustomerStatus {
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>,
pub type: Option<CustomerStatusType>,
}Expand description
A workspace-defined lifecycle status for customers (e.g., Active, Churned, Trial). Customer statuses are ordered by position and displayed with a color in the UI. Every workspace has at least one status, and a default status is assigned to new customers when none is specified.
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 status. Used as the default display name if no displayName is explicitly set.
color: Option<String>The color of the status indicator in the UI, as a HEX string (e.g., ‘#ff0000’).
description: Option<String>An optional description explaining what this status represents in the customer lifecycle.
position: Option<f64>The sort position of the status in the workspace’s customer lifecycle flow. Lower values appear first. Collisions are automatically resolved by redistributing positions.
display_name: Option<String>The user-facing display name of the status shown in the UI. Defaults to the internal name if not explicitly set.
type: Option<CustomerStatusType>Deprecated The type of the customer status. Always returns null as statuses are no longer grouped by type.
Trait Implementations§
Source§impl Clone for CustomerStatus
impl Clone for CustomerStatus
Source§fn clone(&self) -> CustomerStatus
fn clone(&self) -> CustomerStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more