pub struct CreateAttribute {
pub value: Option<String>,
pub enumeration: Option<Vec<CreateAttributeEnumerationInner>>,
pub type: Option<RHashType>,
}Fields§
§value: Option<String>Value of the attribute. Use only if the attribute’s category is ‘calculated’ or ‘global’
enumeration: Option<Vec<CreateAttributeEnumerationInner>>List of values and labels that the attribute can take. Use only if the attribute’s category is "category". For example, [{"value":1, "label":"male"}, {"value":2, "label":"female"}]
type: Option<RHashType>Type of the attribute. Use only if the attribute’s category is ‘normal’, ‘category’ or ‘transactional’ ( type ‘boolean’ is only available if the category is ‘normal’ attribute, type ‘id’ is only available if the category is ‘transactional’ attribute & type ‘category’ is only available if the category is ‘category’ attribute )
Implementations§
Source§impl CreateAttribute
impl CreateAttribute
pub fn new() -> CreateAttribute
Trait Implementations§
Source§impl Clone for CreateAttribute
impl Clone for CreateAttribute
Source§fn clone(&self) -> CreateAttribute
fn clone(&self) -> CreateAttribute
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 CreateAttribute
impl Debug for CreateAttribute
Source§impl Default for CreateAttribute
impl Default for CreateAttribute
Source§fn default() -> CreateAttribute
fn default() -> CreateAttribute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateAttribute
impl<'de> Deserialize<'de> for CreateAttribute
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
Source§impl PartialEq for CreateAttribute
impl PartialEq for CreateAttribute
Source§impl Serialize for CreateAttribute
impl Serialize for CreateAttribute
impl StructuralPartialEq for CreateAttribute
Auto Trait Implementations§
impl Freeze for CreateAttribute
impl RefUnwindSafe for CreateAttribute
impl Send for CreateAttribute
impl Sync for CreateAttribute
impl Unpin for CreateAttribute
impl UnwindSafe for CreateAttribute
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