// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: pub.leaflet.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 LinearDocumentQuote<'a> { #[serde(borrow)] pub document: jacquard_common::types::string::AtUri<'a>, #[serde(borrow)] pub quote: crate::pub_leaflet::pages::linear_document::Quote<'a>, } pub mod linear_document_quote_state { pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Quote; type Document; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Quote = Unset; type Document = Unset; } ///State transition - sets the `quote` field to Set pub struct SetQuote(PhantomData S>); impl sealed::Sealed for SetQuote {} impl State for SetQuote { type Quote = Set; type Document = S::Document; } ///State transition - sets the `document` field to Set pub struct SetDocument(PhantomData S>); impl sealed::Sealed for SetDocument {} impl State for SetDocument { type Quote = S::Quote; type Document = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `quote` field pub struct quote(()); ///Marker type for the `document` field pub struct document(()); } } /// Builder for constructing an instance of this type pub struct LinearDocumentQuoteBuilder<'a, S: linear_document_quote_state::State> { _phantom_state: ::core::marker::PhantomData S>, __unsafe_private_named: ( ::core::option::Option>, ::core::option::Option>, ), _phantom: ::core::marker::PhantomData<&'a ()>, } impl<'a> LinearDocumentQuote<'a> { /// Create a new builder for this type pub fn new() -> LinearDocumentQuoteBuilder<'a, linear_document_quote_state::Empty> { LinearDocumentQuoteBuilder::new() } } impl<'a> LinearDocumentQuoteBuilder<'a, linear_document_quote_state::Empty> { /// Create a new builder with all fields unset pub fn new() -> Self { LinearDocumentQuoteBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: (None, None), _phantom: ::core::marker::PhantomData, } } } impl<'a, S> LinearDocumentQuoteBuilder<'a, S> where S: linear_document_quote_state::State, S::Document: linear_document_quote_state::IsUnset, { /// Set the `document` field (required) pub fn document( mut self, value: impl Into>, ) -> LinearDocumentQuoteBuilder<'a, linear_document_quote_state::SetDocument> { self.__unsafe_private_named.0 = ::core::option::Option::Some(value.into()); LinearDocumentQuoteBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: self.__unsafe_private_named, _phantom: ::core::marker::PhantomData, } } } impl<'a, S> LinearDocumentQuoteBuilder<'a, S> where S: linear_document_quote_state::State, S::Quote: linear_document_quote_state::IsUnset, { /// Set the `quote` field (required) pub fn quote( mut self, value: impl Into>, ) -> LinearDocumentQuoteBuilder<'a, linear_document_quote_state::SetQuote> { self.__unsafe_private_named.1 = ::core::option::Option::Some(value.into()); LinearDocumentQuoteBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: self.__unsafe_private_named, _phantom: ::core::marker::PhantomData, } } } impl<'a, S> LinearDocumentQuoteBuilder<'a, S> where S: linear_document_quote_state::State, S::Quote: linear_document_quote_state::IsSet, S::Document: linear_document_quote_state::IsSet, { /// Build the final struct pub fn build(self) -> LinearDocumentQuote<'a> { LinearDocumentQuote { document: self.__unsafe_private_named.0.unwrap(), quote: self.__unsafe_private_named.1.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data pub fn build_with_data( self, extra_data: std::collections::BTreeMap< jacquard_common::smol_str::SmolStr, jacquard_common::types::value::Data<'a>, >, ) -> LinearDocumentQuote<'a> { LinearDocumentQuote { document: self.__unsafe_private_named.0.unwrap(), quote: self.__unsafe_private_named.1.unwrap(), extra_data: Some(extra_data), } } } fn lexicon_doc_pub_leaflet_comment() -> ::jacquard_lexicon::lexicon::LexiconDoc< 'static, > { ::jacquard_lexicon::lexicon::LexiconDoc { lexicon: ::jacquard_lexicon::lexicon::Lexicon::Lexicon1, id: ::jacquard_common::CowStr::new_static("pub.leaflet.comment"), revision: None, description: None, defs: { let mut map = ::alloc::collections::BTreeMap::new(); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("linearDocumentQuote"), ::jacquard_lexicon::lexicon::LexUserType::Object(::jacquard_lexicon::lexicon::LexObject { description: None, required: Some( vec![ ::jacquard_common::smol_str::SmolStr::new_static("document"), ::jacquard_common::smol_str::SmolStr::new_static("quote") ], ), nullable: None, properties: { #[allow(unused_mut)] let mut map = ::alloc::collections::BTreeMap::new(); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("document"), ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { description: None, format: Some( ::jacquard_lexicon::lexicon::LexStringFormat::AtUri, ), default: None, min_length: None, max_length: None, min_graphemes: None, max_graphemes: None, r#enum: None, r#const: None, known_values: None, }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("quote"), ::jacquard_lexicon::lexicon::LexObjectProperty::Ref(::jacquard_lexicon::lexicon::LexRef { description: None, r#ref: ::jacquard_common::CowStr::new_static( "pub.leaflet.pages.linearDocument#quote", ), }), ); map }, }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("main"), ::jacquard_lexicon::lexicon::LexUserType::Record(::jacquard_lexicon::lexicon::LexRecord { description: Some( ::jacquard_common::CowStr::new_static( "Record containing a comment", ), ), key: Some(::jacquard_common::CowStr::new_static("tid")), record: ::jacquard_lexicon::lexicon::LexRecordRecord::Object(::jacquard_lexicon::lexicon::LexObject { description: None, required: Some( vec![ ::jacquard_common::smol_str::SmolStr::new_static("subject"), ::jacquard_common::smol_str::SmolStr::new_static("plaintext"), ::jacquard_common::smol_str::SmolStr::new_static("createdAt") ], ), nullable: None, properties: { #[allow(unused_mut)] let mut map = ::alloc::collections::BTreeMap::new(); map.insert( ::jacquard_common::smol_str::SmolStr::new_static( "attachment", ), ::jacquard_lexicon::lexicon::LexObjectProperty::Union(::jacquard_lexicon::lexicon::LexRefUnion { description: None, refs: vec![ ::jacquard_common::CowStr::new_static("#linearDocumentQuote") ], closed: None, }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static( "createdAt", ), ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { description: None, format: Some( ::jacquard_lexicon::lexicon::LexStringFormat::Datetime, ), default: None, min_length: None, max_length: None, min_graphemes: None, max_graphemes: None, r#enum: None, r#const: None, known_values: None, }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("facets"), ::jacquard_lexicon::lexicon::LexObjectProperty::Array(::jacquard_lexicon::lexicon::LexArray { description: None, items: ::jacquard_lexicon::lexicon::LexArrayItem::Ref(::jacquard_lexicon::lexicon::LexRef { description: None, r#ref: ::jacquard_common::CowStr::new_static( "pub.leaflet.richtext.facet", ), }), min_length: None, max_length: None, }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("onPage"), ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { description: None, format: None, default: None, min_length: None, max_length: None, min_graphemes: None, max_graphemes: None, r#enum: None, r#const: None, known_values: None, }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static( "plaintext", ), ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { description: None, format: None, default: None, min_length: None, max_length: None, min_graphemes: None, max_graphemes: None, r#enum: None, r#const: None, known_values: None, }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("reply"), ::jacquard_lexicon::lexicon::LexObjectProperty::Ref(::jacquard_lexicon::lexicon::LexRef { description: None, r#ref: ::jacquard_common::CowStr::new_static("#replyRef"), }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("subject"), ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { description: None, format: Some( ::jacquard_lexicon::lexicon::LexStringFormat::AtUri, ), default: None, min_length: None, max_length: None, min_graphemes: None, max_graphemes: None, r#enum: None, r#const: None, known_values: None, }), ); map }, }), }), ); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("replyRef"), ::jacquard_lexicon::lexicon::LexUserType::Object(::jacquard_lexicon::lexicon::LexObject { description: None, required: Some( vec![::jacquard_common::smol_str::SmolStr::new_static("parent")], ), nullable: None, properties: { #[allow(unused_mut)] let mut map = ::alloc::collections::BTreeMap::new(); map.insert( ::jacquard_common::smol_str::SmolStr::new_static("parent"), ::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString { description: None, format: Some( ::jacquard_lexicon::lexicon::LexStringFormat::AtUri, ), default: None, min_length: None, max_length: None, min_graphemes: None, max_graphemes: None, r#enum: None, r#const: None, known_values: None, }), ); map }, }), ); map }, } } impl<'a> ::jacquard_lexicon::schema::LexiconSchema for LinearDocumentQuote<'a> { fn nsid() -> &'static str { "pub.leaflet.comment" } fn def_name() -> &'static str { "linearDocumentQuote" } fn lexicon_doc() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> { lexicon_doc_pub_leaflet_comment() } fn validate( &self, ) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> { Ok(()) } } /// Record containing a comment #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct Comment<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub attachment: std::option::Option< crate::pub_leaflet::comment::LinearDocumentQuote<'a>, >, pub created_at: jacquard_common::types::string::Datetime, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub facets: std::option::Option>>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub on_page: std::option::Option>, #[serde(borrow)] pub plaintext: jacquard_common::CowStr<'a>, #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub reply: std::option::Option>, #[serde(borrow)] pub subject: jacquard_common::types::string::AtUri<'a>, } pub mod comment_state { pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; type Subject; type Plaintext; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; type Subject = Unset; type Plaintext = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; type Subject = S::Subject; type Plaintext = S::Plaintext; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type CreatedAt = S::CreatedAt; type Subject = Set; type Plaintext = S::Plaintext; } ///State transition - sets the `plaintext` field to Set pub struct SetPlaintext(PhantomData S>); impl sealed::Sealed for SetPlaintext {} impl State for SetPlaintext { type CreatedAt = S::CreatedAt; type Subject = S::Subject; type Plaintext = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `subject` field pub struct subject(()); ///Marker type for the `plaintext` field pub struct plaintext(()); } } /// Builder for constructing an instance of this type pub struct CommentBuilder<'a, S: comment_state::State> { _phantom_state: ::core::marker::PhantomData S>, __unsafe_private_named: ( ::core::option::Option>, ::core::option::Option, ::core::option::Option>>, ::core::option::Option>, ::core::option::Option>, ::core::option::Option>, ::core::option::Option>, ), _phantom: ::core::marker::PhantomData<&'a ()>, } impl<'a> Comment<'a> { /// Create a new builder for this type pub fn new() -> CommentBuilder<'a, comment_state::Empty> { CommentBuilder::new() } } impl<'a> CommentBuilder<'a, comment_state::Empty> { /// Create a new builder with all fields unset pub fn new() -> Self { CommentBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: (None, None, None, None, None, None, None), _phantom: ::core::marker::PhantomData, } } } impl<'a, S: comment_state::State> CommentBuilder<'a, S> { /// Set the `attachment` field (optional) pub fn attachment( mut self, value: impl Into>>, ) -> Self { self.__unsafe_private_named.0 = value.into(); self } /// Set the `attachment` field to an Option value (optional) pub fn maybe_attachment( mut self, value: Option>, ) -> Self { self.__unsafe_private_named.0 = value; self } } impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, S::CreatedAt: comment_state::IsUnset, { /// Set the `createdAt` field (required) pub fn created_at( mut self, value: impl Into, ) -> CommentBuilder<'a, comment_state::SetCreatedAt> { self.__unsafe_private_named.1 = ::core::option::Option::Some(value.into()); CommentBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: self.__unsafe_private_named, _phantom: ::core::marker::PhantomData, } } } impl<'a, S: comment_state::State> CommentBuilder<'a, S> { /// Set the `facets` field (optional) pub fn facets( mut self, value: impl Into>>>, ) -> Self { self.__unsafe_private_named.2 = value.into(); self } /// Set the `facets` field to an Option value (optional) pub fn maybe_facets( mut self, value: Option>>, ) -> Self { self.__unsafe_private_named.2 = value; self } } impl<'a, S: comment_state::State> CommentBuilder<'a, S> { /// Set the `onPage` field (optional) pub fn on_page( mut self, value: impl Into>>, ) -> Self { self.__unsafe_private_named.3 = value.into(); self } /// Set the `onPage` field to an Option value (optional) pub fn maybe_on_page(mut self, value: Option>) -> Self { self.__unsafe_private_named.3 = value; self } } impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, S::Plaintext: comment_state::IsUnset, { /// Set the `plaintext` field (required) pub fn plaintext( mut self, value: impl Into>, ) -> CommentBuilder<'a, comment_state::SetPlaintext> { self.__unsafe_private_named.4 = ::core::option::Option::Some(value.into()); CommentBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: self.__unsafe_private_named, _phantom: ::core::marker::PhantomData, } } } impl<'a, S: comment_state::State> CommentBuilder<'a, S> { /// Set the `reply` field (optional) pub fn reply( mut self, value: impl Into>>, ) -> Self { self.__unsafe_private_named.5 = value.into(); self } /// Set the `reply` field to an Option value (optional) pub fn maybe_reply( mut self, value: Option>, ) -> Self { self.__unsafe_private_named.5 = value; self } } impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, S::Subject: comment_state::IsUnset, { /// Set the `subject` field (required) pub fn subject( mut self, value: impl Into>, ) -> CommentBuilder<'a, comment_state::SetSubject> { self.__unsafe_private_named.6 = ::core::option::Option::Some(value.into()); CommentBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: self.__unsafe_private_named, _phantom: ::core::marker::PhantomData, } } } impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, S::CreatedAt: comment_state::IsSet, S::Subject: comment_state::IsSet, S::Plaintext: comment_state::IsSet, { /// Build the final struct pub fn build(self) -> Comment<'a> { Comment { attachment: self.__unsafe_private_named.0, created_at: self.__unsafe_private_named.1.unwrap(), facets: self.__unsafe_private_named.2, on_page: self.__unsafe_private_named.3, plaintext: self.__unsafe_private_named.4.unwrap(), reply: self.__unsafe_private_named.5, subject: self.__unsafe_private_named.6.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data pub fn build_with_data( self, extra_data: std::collections::BTreeMap< jacquard_common::smol_str::SmolStr, jacquard_common::types::value::Data<'a>, >, ) -> Comment<'a> { Comment { attachment: self.__unsafe_private_named.0, created_at: self.__unsafe_private_named.1.unwrap(), facets: self.__unsafe_private_named.2, on_page: self.__unsafe_private_named.3, plaintext: self.__unsafe_private_named.4.unwrap(), reply: self.__unsafe_private_named.5, subject: self.__unsafe_private_named.6.unwrap(), extra_data: Some(extra_data), } } } impl<'a> Comment<'a> { pub fn uri( uri: impl Into>, ) -> Result< jacquard_common::types::uri::RecordUri<'a, CommentRecord>, jacquard_common::types::uri::UriError, > { jacquard_common::types::uri::RecordUri::try_from_uri( jacquard_common::types::string::AtUri::new_cow(uri.into())?, ) } } /// Typed wrapper for GetRecord response with this collection's record type. #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct CommentGetRecordOutput<'a> { #[serde(skip_serializing_if = "std::option::Option::is_none")] #[serde(borrow)] pub cid: std::option::Option>, #[serde(borrow)] pub uri: jacquard_common::types::string::AtUri<'a>, #[serde(borrow)] pub value: Comment<'a>, } impl From> for Comment<'_> { fn from(output: CommentGetRecordOutput<'_>) -> Self { use jacquard_common::IntoStatic; output.value.into_static() } } impl jacquard_common::types::collection::Collection for Comment<'_> { const NSID: &'static str = "pub.leaflet.comment"; type Record = CommentRecord; } /// Marker type for deserializing records from this collection. #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct CommentRecord; impl jacquard_common::xrpc::XrpcResp for CommentRecord { const NSID: &'static str = "pub.leaflet.comment"; const ENCODING: &'static str = "application/json"; type Output<'de> = CommentGetRecordOutput<'de>; type Err<'de> = jacquard_common::types::collection::RecordError<'de>; } impl jacquard_common::types::collection::Collection for CommentRecord { const NSID: &'static str = "pub.leaflet.comment"; type Record = CommentRecord; } impl<'a> ::jacquard_lexicon::schema::LexiconSchema for Comment<'a> { fn nsid() -> &'static str { "pub.leaflet.comment" } fn def_name() -> &'static str { "main" } fn lexicon_doc() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> { lexicon_doc_pub_leaflet_comment() } fn validate( &self, ) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> { Ok(()) } } #[jacquard_derive::lexicon] #[derive( serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, jacquard_derive::IntoStatic )] #[serde(rename_all = "camelCase")] pub struct ReplyRef<'a> { #[serde(borrow)] pub parent: jacquard_common::types::string::AtUri<'a>, } pub mod reply_ref_state { pub use crate::builder_types::{Set, Unset, IsSet, IsUnset}; #[allow(unused)] use ::core::marker::PhantomData; mod sealed { pub trait Sealed {} } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Parent; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Parent = Unset; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData S>); impl sealed::Sealed for SetParent {} impl State for SetParent { type Parent = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `parent` field pub struct parent(()); } } /// Builder for constructing an instance of this type pub struct ReplyRefBuilder<'a, S: reply_ref_state::State> { _phantom_state: ::core::marker::PhantomData S>, __unsafe_private_named: ( ::core::option::Option>, ), _phantom: ::core::marker::PhantomData<&'a ()>, } impl<'a> ReplyRef<'a> { /// Create a new builder for this type pub fn new() -> ReplyRefBuilder<'a, reply_ref_state::Empty> { ReplyRefBuilder::new() } } impl<'a> ReplyRefBuilder<'a, reply_ref_state::Empty> { /// Create a new builder with all fields unset pub fn new() -> Self { ReplyRefBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: (None,), _phantom: ::core::marker::PhantomData, } } } impl<'a, S> ReplyRefBuilder<'a, S> where S: reply_ref_state::State, S::Parent: reply_ref_state::IsUnset, { /// Set the `parent` field (required) pub fn parent( mut self, value: impl Into>, ) -> ReplyRefBuilder<'a, reply_ref_state::SetParent> { self.__unsafe_private_named.0 = ::core::option::Option::Some(value.into()); ReplyRefBuilder { _phantom_state: ::core::marker::PhantomData, __unsafe_private_named: self.__unsafe_private_named, _phantom: ::core::marker::PhantomData, } } } impl<'a, S> ReplyRefBuilder<'a, S> where S: reply_ref_state::State, S::Parent: reply_ref_state::IsSet, { /// Build the final struct pub fn build(self) -> ReplyRef<'a> { ReplyRef { parent: self.__unsafe_private_named.0.unwrap(), extra_data: Default::default(), } } /// Build the final struct with custom extra_data pub fn build_with_data( self, extra_data: std::collections::BTreeMap< jacquard_common::smol_str::SmolStr, jacquard_common::types::value::Data<'a>, >, ) -> ReplyRef<'a> { ReplyRef { parent: self.__unsafe_private_named.0.unwrap(), extra_data: Some(extra_data), } } } impl<'a> ::jacquard_lexicon::schema::LexiconSchema for ReplyRef<'a> { fn nsid() -> &'static str { "pub.leaflet.comment" } fn def_name() -> &'static str { "replyRef" } fn lexicon_doc() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> { lexicon_doc_pub_leaflet_comment() } fn validate( &self, ) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> { Ok(()) } }