pub struct CatalogCustomAttributeValue {
pub name: Option<String>,
pub string_value: Option<String>,
pub custom_attribute_definition_id: Option<String>,
pub type: Option<CatalogCustomAttributeDefinitionType>,
pub number_value: Option<String>,
pub boolean_value: Option<bool>,
pub selection_uid_values: Option<Vec<String>>,
pub key: Option<String>,
}
Expand description
An instance of a custom attribute.
Custom attributes can be defined and added to ITEM
and ITEM_VARIATION
type catalog objects.
Read more about custom
attributes.
Fields§
§name: Option<String>
The name of the custom attribute.
string_value: Option<String>
The string value of the custom attribute. Populated if type
= STRING
.
custom_attribute_definition_id: Option<String>
Read-only. The id of the [CatalogCustomAttributeDefinition] this value belongs to.
type: Option<CatalogCustomAttributeDefinitionType>
Read-only. A copy of type from the associated CatalogCustomAttributeDefinition
.
number_value: Option<String>
Populated if type
= NUMBER
. Contains a string representation of a decimal number, using
a .
as the decimal separator.
boolean_value: Option<bool>
A true
or false
value. Populated if type
= BOOLEAN
.
selection_uid_values: Option<Vec<String>>
One or more choices from allowed_selections
. Populated if type
= SELECTION
.
key: Option<String>
Read-only. A copy of key from the associated CatalogCustomAttributeDefinition
.
Trait Implementations§
Source§impl Clone for CatalogCustomAttributeValue
impl Clone for CatalogCustomAttributeValue
Source§fn clone(&self) -> CatalogCustomAttributeValue
fn clone(&self) -> CatalogCustomAttributeValue
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CatalogCustomAttributeValue
impl Debug for CatalogCustomAttributeValue
Source§impl Default for CatalogCustomAttributeValue
impl Default for CatalogCustomAttributeValue
Source§fn default() -> CatalogCustomAttributeValue
fn default() -> CatalogCustomAttributeValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogCustomAttributeValue
impl<'de> Deserialize<'de> for CatalogCustomAttributeValue
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
impl Eq for CatalogCustomAttributeValue
impl StructuralPartialEq for CatalogCustomAttributeValue
Auto Trait Implementations§
impl Freeze for CatalogCustomAttributeValue
impl RefUnwindSafe for CatalogCustomAttributeValue
impl Send for CatalogCustomAttributeValue
impl Sync for CatalogCustomAttributeValue
impl Unpin for CatalogCustomAttributeValue
impl UnwindSafe for CatalogCustomAttributeValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.