pub mod comment;
pub mod issue;
pub mod response;
#[jacquard_derive::lexicon]
#[derive(
serde::Serialize,
serde::Deserialize,
Debug,
Clone,
PartialEq,
Eq,
jacquard_derive::IntoStatic
)]
#[serde(rename_all = "camelCase")]
pub struct Bug<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub app_used: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub attachments: std::option::Option<crate::network_slices::tools::Images<'a>>,
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub description: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub description_facets: std::option::Option<
Vec<crate::network_slices::tools::richtext::facet::Facet<'a>>,
>,
#[serde(borrow)]
pub namespace: jacquard_common::CowStr<'a>,
#[serde(borrow)]
pub severity: BugSeverity<'a>,
#[serde(borrow)]
pub steps_to_reproduce: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub steps_to_reproduce_facets: std::option::Option<
Vec<crate::network_slices::tools::richtext::facet::Facet<'a>>,
>,
#[serde(borrow)]
pub title: jacquard_common::CowStr<'a>,
}
pub mod bug_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
#[allow(unused)]
use ::core::marker::PhantomData;
mod sealed {
pub trait Sealed {}
}
pub trait State: sealed::Sealed {
type Title;
type Severity;
type Description;
type Namespace;
type StepsToReproduce;
type CreatedAt;
}
pub struct Empty(());
impl sealed::Sealed for Empty {}
impl State for Empty {
type Title = Unset;
type Severity = Unset;
type Description = Unset;
type Namespace = Unset;
type StepsToReproduce = Unset;
type CreatedAt = Unset;
}
pub struct SetTitle<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetTitle<S> {}
impl<S: State> State for SetTitle<S> {
type Title = Set<members::title>;
type Severity = S::Severity;
type Description = S::Description;
type Namespace = S::Namespace;
type StepsToReproduce = S::StepsToReproduce;
type CreatedAt = S::CreatedAt;
}
pub struct SetSeverity<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetSeverity<S> {}
impl<S: State> State for SetSeverity<S> {
type Title = S::Title;
type Severity = Set<members::severity>;
type Description = S::Description;
type Namespace = S::Namespace;
type StepsToReproduce = S::StepsToReproduce;
type CreatedAt = S::CreatedAt;
}
pub struct SetDescription<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetDescription<S> {}
impl<S: State> State for SetDescription<S> {
type Title = S::Title;
type Severity = S::Severity;
type Description = Set<members::description>;
type Namespace = S::Namespace;
type StepsToReproduce = S::StepsToReproduce;
type CreatedAt = S::CreatedAt;
}
pub struct SetNamespace<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetNamespace<S> {}
impl<S: State> State for SetNamespace<S> {
type Title = S::Title;
type Severity = S::Severity;
type Description = S::Description;
type Namespace = Set<members::namespace>;
type StepsToReproduce = S::StepsToReproduce;
type CreatedAt = S::CreatedAt;
}
pub struct SetStepsToReproduce<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetStepsToReproduce<S> {}
impl<S: State> State for SetStepsToReproduce<S> {
type Title = S::Title;
type Severity = S::Severity;
type Description = S::Description;
type Namespace = S::Namespace;
type StepsToReproduce = Set<members::steps_to_reproduce>;
type CreatedAt = S::CreatedAt;
}
pub struct SetCreatedAt<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetCreatedAt<S> {}
impl<S: State> State for SetCreatedAt<S> {
type Title = S::Title;
type Severity = S::Severity;
type Description = S::Description;
type Namespace = S::Namespace;
type StepsToReproduce = S::StepsToReproduce;
type CreatedAt = Set<members::created_at>;
}
#[allow(non_camel_case_types)]
pub mod members {
pub struct title(());
pub struct severity(());
pub struct description(());
pub struct namespace(());
pub struct steps_to_reproduce(());
pub struct created_at(());
}
}
pub struct BugBuilder<'a, S: bug_state::State> {
_phantom_state: ::core::marker::PhantomData<fn() -> S>,
__unsafe_private_named: (
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<crate::network_slices::tools::Images<'a>>,
::core::option::Option<jacquard_common::types::string::Datetime>,
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<
Vec<crate::network_slices::tools::richtext::facet::Facet<'a>>,
>,
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<BugSeverity<'a>>,
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<
Vec<crate::network_slices::tools::richtext::facet::Facet<'a>>,
>,
::core::option::Option<jacquard_common::CowStr<'a>>,
),
_phantom: ::core::marker::PhantomData<&'a ()>,
}
impl<'a> Bug<'a> {
pub fn new() -> BugBuilder<'a, bug_state::Empty> {
BugBuilder::new()
}
}
impl<'a> BugBuilder<'a, bug_state::Empty> {
pub fn new() -> Self {
BugBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: (
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
),
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S: bug_state::State> BugBuilder<'a, S> {
pub fn app_used(
mut self,
value: impl Into<Option<jacquard_common::CowStr<'a>>>,
) -> Self {
self.__unsafe_private_named.0 = value.into();
self
}
pub fn maybe_app_used(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self {
self.__unsafe_private_named.0 = value;
self
}
}
impl<'a, S: bug_state::State> BugBuilder<'a, S> {
pub fn attachments(
mut self,
value: impl Into<Option<crate::network_slices::tools::Images<'a>>>,
) -> Self {
self.__unsafe_private_named.1 = value.into();
self
}
pub fn maybe_attachments(
mut self,
value: Option<crate::network_slices::tools::Images<'a>>,
) -> Self {
self.__unsafe_private_named.1 = value;
self
}
}
impl<'a, S> BugBuilder<'a, S>
where
S: bug_state::State,
S::CreatedAt: bug_state::IsUnset,
{
pub fn created_at(
mut self,
value: impl Into<jacquard_common::types::string::Datetime>,
) -> BugBuilder<'a, bug_state::SetCreatedAt<S>> {
self.__unsafe_private_named.2 = ::core::option::Option::Some(value.into());
BugBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S> BugBuilder<'a, S>
where
S: bug_state::State,
S::Description: bug_state::IsUnset,
{
pub fn description(
mut self,
value: impl Into<jacquard_common::CowStr<'a>>,
) -> BugBuilder<'a, bug_state::SetDescription<S>> {
self.__unsafe_private_named.3 = ::core::option::Option::Some(value.into());
BugBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S: bug_state::State> BugBuilder<'a, S> {
pub fn description_facets(
mut self,
value: impl Into<
Option<Vec<crate::network_slices::tools::richtext::facet::Facet<'a>>>,
>,
) -> Self {
self.__unsafe_private_named.4 = value.into();
self
}
pub fn maybe_description_facets(
mut self,
value: Option<Vec<crate::network_slices::tools::richtext::facet::Facet<'a>>>,
) -> Self {
self.__unsafe_private_named.4 = value;
self
}
}
impl<'a, S> BugBuilder<'a, S>
where
S: bug_state::State,
S::Namespace: bug_state::IsUnset,
{
pub fn namespace(
mut self,
value: impl Into<jacquard_common::CowStr<'a>>,
) -> BugBuilder<'a, bug_state::SetNamespace<S>> {
self.__unsafe_private_named.5 = ::core::option::Option::Some(value.into());
BugBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S> BugBuilder<'a, S>
where
S: bug_state::State,
S::Severity: bug_state::IsUnset,
{
pub fn severity(
mut self,
value: impl Into<BugSeverity<'a>>,
) -> BugBuilder<'a, bug_state::SetSeverity<S>> {
self.__unsafe_private_named.6 = ::core::option::Option::Some(value.into());
BugBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S> BugBuilder<'a, S>
where
S: bug_state::State,
S::StepsToReproduce: bug_state::IsUnset,
{
pub fn steps_to_reproduce(
mut self,
value: impl Into<jacquard_common::CowStr<'a>>,
) -> BugBuilder<'a, bug_state::SetStepsToReproduce<S>> {
self.__unsafe_private_named.7 = ::core::option::Option::Some(value.into());
BugBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S: bug_state::State> BugBuilder<'a, S> {
pub fn steps_to_reproduce_facets(
mut self,
value: impl Into<
Option<Vec<crate::network_slices::tools::richtext::facet::Facet<'a>>>,
>,
) -> Self {
self.__unsafe_private_named.8 = value.into();
self
}
pub fn maybe_steps_to_reproduce_facets(
mut self,
value: Option<Vec<crate::network_slices::tools::richtext::facet::Facet<'a>>>,
) -> Self {
self.__unsafe_private_named.8 = value;
self
}
}
impl<'a, S> BugBuilder<'a, S>
where
S: bug_state::State,
S::Title: bug_state::IsUnset,
{
pub fn title(
mut self,
value: impl Into<jacquard_common::CowStr<'a>>,
) -> BugBuilder<'a, bug_state::SetTitle<S>> {
self.__unsafe_private_named.9 = ::core::option::Option::Some(value.into());
BugBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S> BugBuilder<'a, S>
where
S: bug_state::State,
S::Title: bug_state::IsSet,
S::Severity: bug_state::IsSet,
S::Description: bug_state::IsSet,
S::Namespace: bug_state::IsSet,
S::StepsToReproduce: bug_state::IsSet,
S::CreatedAt: bug_state::IsSet,
{
pub fn build(self) -> Bug<'a> {
Bug {
app_used: self.__unsafe_private_named.0,
attachments: self.__unsafe_private_named.1,
created_at: self.__unsafe_private_named.2.unwrap(),
description: self.__unsafe_private_named.3.unwrap(),
description_facets: self.__unsafe_private_named.4,
namespace: self.__unsafe_private_named.5.unwrap(),
severity: self.__unsafe_private_named.6.unwrap(),
steps_to_reproduce: self.__unsafe_private_named.7.unwrap(),
steps_to_reproduce_facets: self.__unsafe_private_named.8,
title: self.__unsafe_private_named.9.unwrap(),
extra_data: Default::default(),
}
}
pub fn build_with_data(
self,
extra_data: std::collections::BTreeMap<
jacquard_common::deps::smol_str::SmolStr,
jacquard_common::types::value::Data<'a>,
>,
) -> Bug<'a> {
Bug {
app_used: self.__unsafe_private_named.0,
attachments: self.__unsafe_private_named.1,
created_at: self.__unsafe_private_named.2.unwrap(),
description: self.__unsafe_private_named.3.unwrap(),
description_facets: self.__unsafe_private_named.4,
namespace: self.__unsafe_private_named.5.unwrap(),
severity: self.__unsafe_private_named.6.unwrap(),
steps_to_reproduce: self.__unsafe_private_named.7.unwrap(),
steps_to_reproduce_facets: self.__unsafe_private_named.8,
title: self.__unsafe_private_named.9.unwrap(),
extra_data: Some(extra_data),
}
}
}
impl<'a> Bug<'a> {
pub fn uri(
uri: impl Into<jacquard_common::CowStr<'a>>,
) -> Result<
jacquard_common::types::uri::RecordUri<'a, BugRecord>,
jacquard_common::types::uri::UriError,
> {
jacquard_common::types::uri::RecordUri::try_from_uri(
jacquard_common::types::string::AtUri::new_cow(uri.into())?,
)
}
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum BugSeverity<'a> {
Cosmetic,
Annoying,
Broken,
Unusable,
Other(jacquard_common::CowStr<'a>),
}
impl<'a> BugSeverity<'a> {
pub fn as_str(&self) -> &str {
match self {
Self::Cosmetic => "cosmetic",
Self::Annoying => "annoying",
Self::Broken => "broken",
Self::Unusable => "unusable",
Self::Other(s) => s.as_ref(),
}
}
}
impl<'a> From<&'a str> for BugSeverity<'a> {
fn from(s: &'a str) -> Self {
match s {
"cosmetic" => Self::Cosmetic,
"annoying" => Self::Annoying,
"broken" => Self::Broken,
"unusable" => Self::Unusable,
_ => Self::Other(jacquard_common::CowStr::from(s)),
}
}
}
impl<'a> From<String> for BugSeverity<'a> {
fn from(s: String) -> Self {
match s.as_str() {
"cosmetic" => Self::Cosmetic,
"annoying" => Self::Annoying,
"broken" => Self::Broken,
"unusable" => Self::Unusable,
_ => Self::Other(jacquard_common::CowStr::from(s)),
}
}
}
impl<'a> core::fmt::Display for BugSeverity<'a> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "{}", self.as_str())
}
}
impl<'a> AsRef<str> for BugSeverity<'a> {
fn as_ref(&self) -> &str {
self.as_str()
}
}
impl<'a> serde::Serialize for BugSeverity<'a> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
{
serializer.serialize_str(self.as_str())
}
}
impl<'de, 'a> serde::Deserialize<'de> for BugSeverity<'a>
where
'de: 'a,
{
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
D: serde::Deserializer<'de>,
{
let s = <&'de str>::deserialize(deserializer)?;
Ok(Self::from(s))
}
}
impl<'a> Default for BugSeverity<'a> {
fn default() -> Self {
Self::Other(Default::default())
}
}
impl jacquard_common::IntoStatic for BugSeverity<'_> {
type Output = BugSeverity<'static>;
fn into_static(self) -> Self::Output {
match self {
BugSeverity::Cosmetic => BugSeverity::Cosmetic,
BugSeverity::Annoying => BugSeverity::Annoying,
BugSeverity::Broken => BugSeverity::Broken,
BugSeverity::Unusable => BugSeverity::Unusable,
BugSeverity::Other(v) => BugSeverity::Other(v.into_static()),
}
}
}
#[derive(
serde::Serialize,
serde::Deserialize,
Debug,
Clone,
PartialEq,
Eq,
jacquard_derive::IntoStatic
)]
#[serde(rename_all = "camelCase")]
pub struct BugGetRecordOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: Bug<'a>,
}
impl From<BugGetRecordOutput<'_>> for Bug<'_> {
fn from(output: BugGetRecordOutput<'_>) -> Self {
use jacquard_common::IntoStatic;
output.value.into_static()
}
}
impl jacquard_common::types::collection::Collection for Bug<'_> {
const NSID: &'static str = "network.slices.tools.bug";
type Record = BugRecord;
}
#[derive(Debug, serde::Serialize, serde::Deserialize)]
pub struct BugRecord;
impl jacquard_common::xrpc::XrpcResp for BugRecord {
const NSID: &'static str = "network.slices.tools.bug";
const ENCODING: &'static str = "application/json";
type Output<'de> = BugGetRecordOutput<'de>;
type Err<'de> = jacquard_common::types::collection::RecordError<'de>;
}
impl jacquard_common::types::collection::Collection for BugRecord {
const NSID: &'static str = "network.slices.tools.bug";
type Record = BugRecord;
}
impl<'a> ::jacquard_lexicon::schema::LexiconSchema for Bug<'a> {
fn nsid() -> &'static str {
"network.slices.tools.bug"
}
fn def_name() -> &'static str {
"main"
}
fn lexicon_doc() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> {
lexicon_doc_network_slices_tools_bug()
}
fn validate(
&self,
) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> {
if let Some(ref value) = self.app_used {
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 300usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"app_used",
),
max: 300usize,
actual: <str>::len(value.as_ref()),
});
}
}
{
let value = &self.description;
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 10000usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"description",
),
max: 10000usize,
actual: <str>::len(value.as_ref()),
});
}
}
{
let value = &self.description;
{
let count = jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation::graphemes(
value.as_ref(),
true,
)
.count();
if count > 3000usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxGraphemes {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"description",
),
max: 3000usize,
actual: count,
});
}
}
}
{
let value = &self.steps_to_reproduce;
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 5000usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"steps_to_reproduce",
),
max: 5000usize,
actual: <str>::len(value.as_ref()),
});
}
}
{
let value = &self.steps_to_reproduce;
{
let count = jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation::graphemes(
value.as_ref(),
true,
)
.count();
if count > 1500usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxGraphemes {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"steps_to_reproduce",
),
max: 1500usize,
actual: count,
});
}
}
}
{
let value = &self.title;
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 300usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"title",
),
max: 300usize,
actual: <str>::len(value.as_ref()),
});
}
}
{
let value = &self.title;
{
let count = jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation::graphemes(
value.as_ref(),
true,
)
.count();
if count > 100usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxGraphemes {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"title",
),
max: 100usize,
actual: count,
});
}
}
}
Ok(())
}
}
fn lexicon_doc_network_slices_tools_bug() -> ::jacquard_lexicon::lexicon::LexiconDoc<
'static,
> {
::jacquard_lexicon::lexicon::LexiconDoc {
lexicon: ::jacquard_lexicon::lexicon::Lexicon::Lexicon1,
id: ::jacquard_common::CowStr::new_static("network.slices.tools.bug"),
revision: None,
description: None,
defs: {
let mut map = ::alloc::collections::BTreeMap::new();
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static("main"),
::jacquard_lexicon::lexicon::LexUserType::Record(::jacquard_lexicon::lexicon::LexRecord {
description: None,
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::deps::smol_str::SmolStr::new_static("title"),
::jacquard_common::deps::smol_str::SmolStr::new_static("namespace"),
::jacquard_common::deps::smol_str::SmolStr::new_static("description"),
::jacquard_common::deps::smol_str::SmolStr::new_static("stepsToReproduce"),
::jacquard_common::deps::smol_str::SmolStr::new_static("severity"),
::jacquard_common::deps::smol_str::SmolStr::new_static("createdAt")
],
),
nullable: None,
properties: {
#[allow(unused_mut)]
let mut map = ::alloc::collections::BTreeMap::new();
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"appUsed",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: None,
format: None,
default: None,
min_length: None,
max_length: Some(300usize),
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"attachments",
),
::jacquard_lexicon::lexicon::LexObjectProperty::Union(::jacquard_lexicon::lexicon::LexRefUnion {
description: None,
refs: vec![
::jacquard_common::CowStr::new_static("network.slices.tools.defs#images")
],
closed: None,
}),
);
map.insert(
::jacquard_common::deps::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::deps::smol_str::SmolStr::new_static(
"description",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: None,
format: None,
default: None,
min_length: None,
max_length: Some(10000usize),
min_graphemes: None,
max_graphemes: Some(3000usize),
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"descriptionFacets",
),
::jacquard_lexicon::lexicon::LexObjectProperty::Array(::jacquard_lexicon::lexicon::LexArray {
description: Some(
::jacquard_common::CowStr::new_static(
"Annotations of description (mentions and links)",
),
),
items: ::jacquard_lexicon::lexicon::LexArrayItem::Ref(::jacquard_lexicon::lexicon::LexRef {
description: None,
r#ref: ::jacquard_common::CowStr::new_static(
"network.slices.tools.richtext.facet",
),
}),
min_length: None,
max_length: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"namespace",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Target namespace like 'social.grain' or 'app.bsky'",
),
),
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::deps::smol_str::SmolStr::new_static(
"severity",
),
::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::deps::smol_str::SmolStr::new_static(
"stepsToReproduce",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: None,
format: None,
default: None,
min_length: None,
max_length: Some(5000usize),
min_graphemes: None,
max_graphemes: Some(1500usize),
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"stepsToReproduceFacets",
),
::jacquard_lexicon::lexicon::LexObjectProperty::Array(::jacquard_lexicon::lexicon::LexArray {
description: Some(
::jacquard_common::CowStr::new_static(
"Annotations of steps to reproduce (mentions and links)",
),
),
items: ::jacquard_lexicon::lexicon::LexArrayItem::Ref(::jacquard_lexicon::lexicon::LexRef {
description: None,
r#ref: ::jacquard_common::CowStr::new_static(
"network.slices.tools.richtext.facet",
),
}),
min_length: None,
max_length: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"title",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: None,
format: None,
default: None,
min_length: None,
max_length: Some(300usize),
min_graphemes: None,
max_graphemes: Some(100usize),
r#enum: None,
r#const: None,
known_values: None,
}),
);
map
},
}),
}),
);
map
},
}
}