pub struct CustomerTierCreateInput {
pub id: MaybeUndefined<String>,
pub name: MaybeUndefined<String>,
pub color: String,
pub description: MaybeUndefined<String>,
pub position: MaybeUndefined<f64>,
pub display_name: MaybeUndefined<String>,
}Expand description
Input for creating a customer tier in the workspace’s customer tier ordering.
Fields§
§id: MaybeUndefined<String>The identifier in UUID v4 format. If none is provided, the backend will generate one.
name: MaybeUndefined<String>The internal name of the tier. Must be unique within the workspace. At least one of name or displayName must be provided.
color: StringThe color of the tier indicator in the UI, as a HEX string (e.g., ‘#ff0000’).
description: MaybeUndefined<String>An optional description explaining what this tier represents.
position: MaybeUndefined<f64>The sort position of the tier in the workspace’s customer tier ordering. If omitted or colliding, a position is automatically assigned at the end.
display_name: MaybeUndefined<String>The user-facing display name of the tier. At least one of name or displayName must be provided.
Trait Implementations§
Source§impl Clone for CustomerTierCreateInput
impl Clone for CustomerTierCreateInput
Source§fn clone(&self) -> CustomerTierCreateInput
fn clone(&self) -> CustomerTierCreateInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomerTierCreateInput
impl Debug for CustomerTierCreateInput
Source§impl Default for CustomerTierCreateInput
impl Default for CustomerTierCreateInput
Source§fn default() -> CustomerTierCreateInput
fn default() -> CustomerTierCreateInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomerTierCreateInput
impl<'de> Deserialize<'de> for CustomerTierCreateInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CustomerTierCreateInput
impl RefUnwindSafe for CustomerTierCreateInput
impl Send for CustomerTierCreateInput
impl Sync for CustomerTierCreateInput
impl Unpin for CustomerTierCreateInput
impl UnsafeUnpin for CustomerTierCreateInput
impl UnwindSafe for CustomerTierCreateInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more