[−][src]Struct zenkit::types::Element
Field definition
Fields
id: ID
short_id: ShortId
uuid: UUID
name: String
description: Option<String>
undocumented
business_data: BusinessData
The business data
element_data: ElementData
The element data { placeholder: "", listUsers:Option
is_primary: bool
true if this is a list's primary element
is_auto_created: bool
true if this element was created through an automatic process, such as an import, rather than user interaction
sort_order: f32
The sort order compared to other elements of the same list
visible: bool
created_at: DateTime<Utc>
The timestamp at which this element was created
updated_at: DateTime<Utc>
The timestamp at which this element was last updated
deprecated_at: Option<DateTime<Utc>>
The timestamp at which this element was deprecated. Is null if not deprecated
element_category: ElementCategoryId
The element category
list_id: ID
The ID of the list this element belongs to
visible_in_public_list: Option<bool>
undocumented
Implementations
impl Element
[src]
pub fn get_description(&self) -> &str
[src]
Returns the element description, or an empty string if none was provided
pub fn get_choice_id(&self, choice_name: &str) -> Result<ID, Error>
[src]
lookup choice id from its name or uuid. Returns Error if there is no match
pub fn numeric_type(&self) -> Option<NumericType>
[src]
Returns whether the numeric field is Integer or Decimal. Returns None if the field is not numeric
Trait Implementations
impl Debug for Element
[src]
impl<'de> Deserialize<'de> for Element
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Element> for Element
[src]
impl Serialize for Element
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Element
[src]
impl ZKObjectID for Element
[src]
Auto Trait Implementations
impl RefUnwindSafe for Element
[src]
impl Send for Element
[src]
impl Sync for Element
[src]
impl Unpin for Element
[src]
impl UnwindSafe for Element
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,