pub struct AttributeVarchar {
pub key: String,
pub type: String,
pub status: AttributeStatus,
pub error: String,
pub required: bool,
pub array: Option<bool>,
pub created_at: String,
pub updated_at: String,
pub size: i64,
pub default: Option<String>,
pub encrypt: Option<bool>,
}Expand description
AttributeVarchar
Fields§
§key: StringAttribute Key.
type: StringAttribute type.
status: AttributeStatusAttribute status. Possible values: available, processing, deleting,
stuck, or failed
error: StringError message. Displays error generated on failure of creating or deleting an attribute.
required: boolIs attribute required?
array: Option<bool>Is attribute an array?
created_at: StringAttribute creation date in ISO 8601 format.
updated_at: StringAttribute update date in ISO 8601 format.
size: i64Attribute size.
default: Option<String>Default value for attribute when not provided. Cannot be set when attribute is required.
encrypt: Option<bool>Defines whether this attribute is encrypted or not.
Implementations§
Source§impl AttributeVarchar
impl AttributeVarchar
Sourcepub fn status(&self) -> &AttributeStatus
pub fn status(&self) -> &AttributeStatus
Get status
Sourcepub fn created_at(&self) -> &String
pub fn created_at(&self) -> &String
Get created_at
Sourcepub fn updated_at(&self) -> &String
pub fn updated_at(&self) -> &String
Get updated_at
Sourcepub fn set_default(self, default: String) -> Self
pub fn set_default(self, default: String) -> Self
Set default
Sourcepub fn set_encrypt(self, encrypt: bool) -> Self
pub fn set_encrypt(self, encrypt: bool) -> Self
Set encrypt
Trait Implementations§
Source§impl Clone for AttributeVarchar
impl Clone for AttributeVarchar
Source§fn clone(&self) -> AttributeVarchar
fn clone(&self) -> AttributeVarchar
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeVarchar
impl Debug for AttributeVarchar
Source§impl<'de> Deserialize<'de> for AttributeVarchar
impl<'de> Deserialize<'de> for AttributeVarchar
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 Serialize for AttributeVarchar
impl Serialize for AttributeVarchar
impl Model for AttributeVarchar
Auto Trait Implementations§
impl Freeze for AttributeVarchar
impl RefUnwindSafe for AttributeVarchar
impl Send for AttributeVarchar
impl Sync for AttributeVarchar
impl Unpin for AttributeVarchar
impl UnsafeUnpin for AttributeVarchar
impl UnwindSafe for AttributeVarchar
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