Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trait ¶
type Trait struct {
TraitKey string `json:"trait_key"`
TraitValue interface{} `json:"trait_value"`
Transient bool `json:"transient,omitempty"`
}
Trait represents a trait with key-value pair.
func (*Trait) ToTraitModel ¶
func (t *Trait) ToTraitModel() *traits.TraitModel
ToTraitModel converts a Trait to a TraitModel.
Click to show internal directories.
Click to hide internal directories.