pub struct Entry {Show 18 fields
pub id: ID,
pub short_id: ShortId,
pub uuid: UUID,
pub list_id: ID,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub deprecated_at: Option<DateTime<Utc>>,
pub created_by_displayname: Option<String>,
pub updated_by_displayname: Option<String>,
pub deprecated_by_displayname: Option<String>,
pub created_by: ID,
pub updated_by: ID,
pub deprecated_by: Option<ID>,
pub display_string: String,
pub sort_order: f32,
pub comment_count: u64,
pub checklists: Vec<Checklist>,
pub fields: JsonMap,
}
Expand description
List item
Fields§
§id: ID
object id
short_id: ShortId
object short id
uuid: UUID
object uuid
list_id: ID
id of list containing this entry
created_at: DateTime<Utc>
entry created date
updated_at: DateTime<Utc>
entry updated date
deprecated_at: Option<DateTime<Utc>>
entry deprecated date
created_by_displayname: Option<String>
user that created entry
updated_by_displayname: Option<String>
user that updated entry
deprecated_by_displayname: Option<String>
user that deprecated entry
created_by: ID
id of user that created entry
updated_by: ID
id of user that updated entry
deprecated_by: Option<ID>
id of user that deprecated entry
display_string: String
Entry title
sort_order: f32
Sort order
comment_count: u64
number of comments
checklists: Vec<Checklist>
checklist items attached to this entry
fields: JsonMap
Catch-all: User-defined fields (name_uuid, etc.) will be here
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn get_text_value(&self, field_uuid: &str) -> Result<Option<&str>, Error>
pub fn get_text_value(&self, field_uuid: &str) -> Result<Option<&str>, Error>
Returns value of text string or None if undefined
Sourcepub fn get_int_value(&self, field_uuid: &str) -> Result<Option<i64>, Error>
pub fn get_int_value(&self, field_uuid: &str) -> Result<Option<i64>, Error>
Returns int value of numeric field
Sourcepub fn get_float_value(&self, field_uuid: &str) -> Result<Option<f64>, Error>
pub fn get_float_value(&self, field_uuid: &str) -> Result<Option<f64>, Error>
Returns float value of numeric field
Sourcepub fn get_date_value(&self, field_uuid: &str) -> Result<Option<&str>, Error>
pub fn get_date_value(&self, field_uuid: &str) -> Result<Option<&str>, Error>
Returns value of date string or None if undefined
Sourcepub fn get_category_names(&self, field_uuid: &str) -> Vec<&str>
pub fn get_category_names(&self, field_uuid: &str) -> Vec<&str>
Returns label/category value(s) (as strings)
Sourcepub fn get_person_names(&self, field_uuid: &str) -> Vec<&str>
pub fn get_person_names(&self, field_uuid: &str) -> Vec<&str>
Returns display names of people referenced by this field
Sourcepub fn get_person_ids(&self, field_uuid: &str) -> Vec<ID> ⓘ
pub fn get_person_ids(&self, field_uuid: &str) -> Vec<ID> ⓘ
Returns IDs of people referenced by this field
Sourcepub fn get_references(&self, field_uuid: &str) -> Vec<&str>
pub fn get_references(&self, field_uuid: &str) -> Vec<&str>
Returns UUIDs of referent items, or empty array