pub struct AttributeEnum {
pub key: String,
pub attribute_type: String,
pub status: String,
pub error: String,
pub xrequired: bool,
pub array: Option<bool>,
pub elements: Vec<Value>,
pub format: String,
pub xdefault: Option<String>,
}Expand description
AttributeEnum
Fields§
§key: StringAttribute Key.
attribute_type: StringAttribute type.
status: StringAttribute status. Possible values: available, processing, deleting, stuck, or failed
error: StringError message. Displays error generated on failure of creating or deleting an attribute.
xrequired: boolIs attribute required?
array: Option<bool>Is attribute an array?
elements: Vec<Value>Array of elements in enumerated type.
format: StringString format.
xdefault: Option<String>Default value for attribute when not provided. Cannot be set when attribute is required.
Trait Implementations§
Source§impl Clone for AttributeEnum
impl Clone for AttributeEnum
Source§fn clone(&self) -> AttributeEnum
fn clone(&self) -> AttributeEnum
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 AttributeEnum
impl Debug for AttributeEnum
Source§impl Default for AttributeEnum
impl Default for AttributeEnum
Source§fn default() -> AttributeEnum
fn default() -> AttributeEnum
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttributeEnum
impl<'de> Deserialize<'de> for AttributeEnum
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 AttributeEnum
impl PartialEq for AttributeEnum
Source§impl Serialize for AttributeEnum
impl Serialize for AttributeEnum
impl StructuralPartialEq for AttributeEnum
Auto Trait Implementations§
impl Freeze for AttributeEnum
impl RefUnwindSafe for AttributeEnum
impl Send for AttributeEnum
impl Sync for AttributeEnum
impl Unpin for AttributeEnum
impl UnwindSafe for AttributeEnum
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