// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: com.welistskyblue.list.comment
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

#[jacquard_derive::lexicon]
#[derive(
    serde::Serialize,
    serde::Deserialize,
    Debug,
    Clone,
    PartialEq,
    Eq,
    jacquard_derive::IntoStatic
)]
#[serde(rename_all = "camelCase")]
pub struct Comment<'a> {
    pub created_at: jacquard_common::types::string::Datetime,
    #[serde(skip_serializing_if = "std::option::Option::is_none")]
    pub deleted_at: std::option::Option<jacquard_common::types::string::Datetime>,
    ///Strong reference to the task item being commented on.
    #[serde(borrow)]
    pub item: jacquard_common::types::value::Data<'a>,
    ///Comment text.
    #[serde(borrow)]
    pub text: jacquard_common::CowStr<'a>,
    #[serde(skip_serializing_if = "std::option::Option::is_none")]
    pub updated_at: std::option::Option<jacquard_common::types::string::Datetime>,
}

impl jacquard_common::types::collection::Collection for Comment<'_> {
    const NSID: &'static str = "com.welistskyblue.list.comment";
}