#[allow(unused_imports)]
use alloc::collections::BTreeMap;
#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_common::{BosStr, CowStr, DefaultStr, FromStaticStr};
#[allow(unused_imports)]
use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation;
use jacquard_common::deps::smol_str::SmolStr;
use jacquard_common::types::string::{Datetime, Did, UriValue};
use jacquard_common::types::value::Data;
use jacquard_derive::IntoStatic;
use jacquard_lexicon::lexicon::LexiconDoc;
use jacquard_lexicon::schema::LexiconSchema;
use crate::network_slices::slice::get_o_auth_clients;
#[allow(unused_imports)]
use jacquard_lexicon::validation::{ConstraintError, ValidationPath};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(
rename_all = "camelCase",
bound(deserialize = "S: Deserialize<'de> + BosStr")
)]
pub struct GetOAuthClients<S: BosStr = DefaultStr> {
pub slice: S,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(
rename_all = "camelCase",
bound(deserialize = "S: Deserialize<'de> + BosStr")
)]
pub struct GetOAuthClientsOutput<S: BosStr = DefaultStr> {
pub clients: Vec<get_o_auth_clients::OauthClientDetails<S>>,
#[serde(flatten, default, skip_serializing_if = "Option::is_none")]
pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(
rename_all = "camelCase",
bound(deserialize = "S: Deserialize<'de> + BosStr")
)]
pub struct OauthClientDetails<S: BosStr = DefaultStr> {
pub client_id: S,
pub client_name: S,
#[serde(skip_serializing_if = "Option::is_none")]
pub client_secret: Option<S>,
#[serde(skip_serializing_if = "Option::is_none")]
pub client_uri: Option<UriValue<S>>,
pub created_at: Datetime,
pub created_by_did: Did<S>,
pub grant_types: Vec<S>,
#[serde(skip_serializing_if = "Option::is_none")]
pub logo_uri: Option<UriValue<S>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_uri: Option<UriValue<S>>,
pub redirect_uris: Vec<UriValue<S>>,
pub response_types: Vec<S>,
#[serde(skip_serializing_if = "Option::is_none")]
pub scope: Option<S>,
#[serde(skip_serializing_if = "Option::is_none")]
pub tos_uri: Option<UriValue<S>>,
#[serde(flatten, default, skip_serializing_if = "Option::is_none")]
pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}
pub struct GetOAuthClientsResponse;
impl jacquard_common::xrpc::XrpcResp for GetOAuthClientsResponse {
const NSID: &'static str = "network.slices.slice.getOAuthClients";
const ENCODING: &'static str = "application/json";
type Output<S: BosStr> = GetOAuthClientsOutput<S>;
type Err = jacquard_common::xrpc::GenericError;
}
impl<S: BosStr> jacquard_common::xrpc::XrpcRequest for GetOAuthClients<S> {
const NSID: &'static str = "network.slices.slice.getOAuthClients";
const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
type Response = GetOAuthClientsResponse;
}
pub struct GetOAuthClientsRequest;
impl jacquard_common::xrpc::XrpcEndpoint for GetOAuthClientsRequest {
const PATH: &'static str = "/xrpc/network.slices.slice.getOAuthClients";
const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
type Request<S: BosStr> = GetOAuthClients<S>;
type Response = GetOAuthClientsResponse;
}
impl<S: BosStr> LexiconSchema for OauthClientDetails<S> {
fn nsid() -> &'static str {
"network.slices.slice.getOAuthClients"
}
fn def_name() -> &'static str {
"oauthClientDetails"
}
fn lexicon_doc() -> LexiconDoc<'static> {
lexicon_doc_network_slices_slice_getOAuthClients()
}
fn validate(&self) -> Result<(), ConstraintError> {
Ok(())
}
}
pub mod get_o_auth_clients_state {
pub use crate::builder_types::{IsSet, IsUnset, Set, Unset};
#[allow(unused)]
use ::core::marker::PhantomData;
mod sealed {
pub trait Sealed {}
}
pub trait State: sealed::Sealed {
type Slice;
}
pub struct Empty(());
impl sealed::Sealed for Empty {}
impl State for Empty {
type Slice = Unset;
}
pub struct SetSlice<St: State = Empty>(PhantomData<fn() -> St>);
impl<St: State> sealed::Sealed for SetSlice<St> {}
impl<St: State> State for SetSlice<St> {
type Slice = Set<members::slice>;
}
#[allow(non_camel_case_types)]
pub mod members {
pub struct slice(());
}
}
pub struct GetOAuthClientsBuilder<S: BosStr, St: get_o_auth_clients_state::State> {
_state: PhantomData<fn() -> St>,
_fields: (Option<S>,),
_type: PhantomData<fn() -> S>,
}
impl<S: BosStr> GetOAuthClients<S> {
pub fn new() -> GetOAuthClientsBuilder<S, get_o_auth_clients_state::Empty> {
GetOAuthClientsBuilder::new()
}
}
impl<S: BosStr> GetOAuthClientsBuilder<S, get_o_auth_clients_state::Empty> {
pub fn new() -> Self {
GetOAuthClientsBuilder {
_state: PhantomData,
_fields: (None,),
_type: PhantomData,
}
}
}
impl<S: BosStr, St> GetOAuthClientsBuilder<S, St>
where
St: get_o_auth_clients_state::State,
St::Slice: get_o_auth_clients_state::IsUnset,
{
pub fn slice(
mut self,
value: impl Into<S>,
) -> GetOAuthClientsBuilder<S, get_o_auth_clients_state::SetSlice<St>> {
self._fields.0 = Option::Some(value.into());
GetOAuthClientsBuilder {
_state: PhantomData,
_fields: self._fields,
_type: PhantomData,
}
}
}
impl<S: BosStr, St> GetOAuthClientsBuilder<S, St>
where
St: get_o_auth_clients_state::State,
St::Slice: get_o_auth_clients_state::IsSet,
{
pub fn build(self) -> GetOAuthClients<S> {
GetOAuthClients {
slice: self._fields.0.unwrap(),
}
}
}
pub mod oauth_client_details_state {
pub use crate::builder_types::{IsSet, IsUnset, Set, Unset};
#[allow(unused)]
use ::core::marker::PhantomData;
mod sealed {
pub trait Sealed {}
}
pub trait State: sealed::Sealed {
type ClientName;
type CreatedByDid;
type ResponseTypes;
type GrantTypes;
type ClientId;
type RedirectUris;
type CreatedAt;
}
pub struct Empty(());
impl sealed::Sealed for Empty {}
impl State for Empty {
type ClientName = Unset;
type CreatedByDid = Unset;
type ResponseTypes = Unset;
type GrantTypes = Unset;
type ClientId = Unset;
type RedirectUris = Unset;
type CreatedAt = Unset;
}
pub struct SetClientName<St: State = Empty>(PhantomData<fn() -> St>);
impl<St: State> sealed::Sealed for SetClientName<St> {}
impl<St: State> State for SetClientName<St> {
type ClientName = Set<members::client_name>;
type CreatedByDid = St::CreatedByDid;
type ResponseTypes = St::ResponseTypes;
type GrantTypes = St::GrantTypes;
type ClientId = St::ClientId;
type RedirectUris = St::RedirectUris;
type CreatedAt = St::CreatedAt;
}
pub struct SetCreatedByDid<St: State = Empty>(PhantomData<fn() -> St>);
impl<St: State> sealed::Sealed for SetCreatedByDid<St> {}
impl<St: State> State for SetCreatedByDid<St> {
type ClientName = St::ClientName;
type CreatedByDid = Set<members::created_by_did>;
type ResponseTypes = St::ResponseTypes;
type GrantTypes = St::GrantTypes;
type ClientId = St::ClientId;
type RedirectUris = St::RedirectUris;
type CreatedAt = St::CreatedAt;
}
pub struct SetResponseTypes<St: State = Empty>(PhantomData<fn() -> St>);
impl<St: State> sealed::Sealed for SetResponseTypes<St> {}
impl<St: State> State for SetResponseTypes<St> {
type ClientName = St::ClientName;
type CreatedByDid = St::CreatedByDid;
type ResponseTypes = Set<members::response_types>;
type GrantTypes = St::GrantTypes;
type ClientId = St::ClientId;
type RedirectUris = St::RedirectUris;
type CreatedAt = St::CreatedAt;
}
pub struct SetGrantTypes<St: State = Empty>(PhantomData<fn() -> St>);
impl<St: State> sealed::Sealed for SetGrantTypes<St> {}
impl<St: State> State for SetGrantTypes<St> {
type ClientName = St::ClientName;
type CreatedByDid = St::CreatedByDid;
type ResponseTypes = St::ResponseTypes;
type GrantTypes = Set<members::grant_types>;
type ClientId = St::ClientId;
type RedirectUris = St::RedirectUris;
type CreatedAt = St::CreatedAt;
}
pub struct SetClientId<St: State = Empty>(PhantomData<fn() -> St>);
impl<St: State> sealed::Sealed for SetClientId<St> {}
impl<St: State> State for SetClientId<St> {
type ClientName = St::ClientName;
type CreatedByDid = St::CreatedByDid;
type ResponseTypes = St::ResponseTypes;
type GrantTypes = St::GrantTypes;
type ClientId = Set<members::client_id>;
type RedirectUris = St::RedirectUris;
type CreatedAt = St::CreatedAt;
}
pub struct SetRedirectUris<St: State = Empty>(PhantomData<fn() -> St>);
impl<St: State> sealed::Sealed for SetRedirectUris<St> {}
impl<St: State> State for SetRedirectUris<St> {
type ClientName = St::ClientName;
type CreatedByDid = St::CreatedByDid;
type ResponseTypes = St::ResponseTypes;
type GrantTypes = St::GrantTypes;
type ClientId = St::ClientId;
type RedirectUris = Set<members::redirect_uris>;
type CreatedAt = St::CreatedAt;
}
pub struct SetCreatedAt<St: State = Empty>(PhantomData<fn() -> St>);
impl<St: State> sealed::Sealed for SetCreatedAt<St> {}
impl<St: State> State for SetCreatedAt<St> {
type ClientName = St::ClientName;
type CreatedByDid = St::CreatedByDid;
type ResponseTypes = St::ResponseTypes;
type GrantTypes = St::GrantTypes;
type ClientId = St::ClientId;
type RedirectUris = St::RedirectUris;
type CreatedAt = Set<members::created_at>;
}
#[allow(non_camel_case_types)]
pub mod members {
pub struct client_name(());
pub struct created_by_did(());
pub struct response_types(());
pub struct grant_types(());
pub struct client_id(());
pub struct redirect_uris(());
pub struct created_at(());
}
}
pub struct OauthClientDetailsBuilder<S: BosStr, St: oauth_client_details_state::State> {
_state: PhantomData<fn() -> St>,
_fields: (
Option<S>,
Option<S>,
Option<S>,
Option<UriValue<S>>,
Option<Datetime>,
Option<Did<S>>,
Option<Vec<S>>,
Option<UriValue<S>>,
Option<UriValue<S>>,
Option<Vec<UriValue<S>>>,
Option<Vec<S>>,
Option<S>,
Option<UriValue<S>>,
),
_type: PhantomData<fn() -> S>,
}
impl<S: BosStr> OauthClientDetails<S> {
pub fn new() -> OauthClientDetailsBuilder<S, oauth_client_details_state::Empty> {
OauthClientDetailsBuilder::new()
}
}
impl<S: BosStr> OauthClientDetailsBuilder<S, oauth_client_details_state::Empty> {
pub fn new() -> Self {
OauthClientDetailsBuilder {
_state: PhantomData,
_fields: (
None, None, None, None, None, None, None, None, None, None, None, None, None,
),
_type: PhantomData,
}
}
}
impl<S: BosStr, St> OauthClientDetailsBuilder<S, St>
where
St: oauth_client_details_state::State,
St::ClientId: oauth_client_details_state::IsUnset,
{
pub fn client_id(
mut self,
value: impl Into<S>,
) -> OauthClientDetailsBuilder<S, oauth_client_details_state::SetClientId<St>> {
self._fields.0 = Option::Some(value.into());
OauthClientDetailsBuilder {
_state: PhantomData,
_fields: self._fields,
_type: PhantomData,
}
}
}
impl<S: BosStr, St> OauthClientDetailsBuilder<S, St>
where
St: oauth_client_details_state::State,
St::ClientName: oauth_client_details_state::IsUnset,
{
pub fn client_name(
mut self,
value: impl Into<S>,
) -> OauthClientDetailsBuilder<S, oauth_client_details_state::SetClientName<St>> {
self._fields.1 = Option::Some(value.into());
OauthClientDetailsBuilder {
_state: PhantomData,
_fields: self._fields,
_type: PhantomData,
}
}
}
impl<S: BosStr, St: oauth_client_details_state::State> OauthClientDetailsBuilder<S, St> {
pub fn client_secret(mut self, value: impl Into<Option<S>>) -> Self {
self._fields.2 = value.into();
self
}
pub fn maybe_client_secret(mut self, value: Option<S>) -> Self {
self._fields.2 = value;
self
}
}
impl<S: BosStr, St: oauth_client_details_state::State> OauthClientDetailsBuilder<S, St> {
pub fn client_uri(mut self, value: impl Into<Option<UriValue<S>>>) -> Self {
self._fields.3 = value.into();
self
}
pub fn maybe_client_uri(mut self, value: Option<UriValue<S>>) -> Self {
self._fields.3 = value;
self
}
}
impl<S: BosStr, St> OauthClientDetailsBuilder<S, St>
where
St: oauth_client_details_state::State,
St::CreatedAt: oauth_client_details_state::IsUnset,
{
pub fn created_at(
mut self,
value: impl Into<Datetime>,
) -> OauthClientDetailsBuilder<S, oauth_client_details_state::SetCreatedAt<St>> {
self._fields.4 = Option::Some(value.into());
OauthClientDetailsBuilder {
_state: PhantomData,
_fields: self._fields,
_type: PhantomData,
}
}
}
impl<S: BosStr, St> OauthClientDetailsBuilder<S, St>
where
St: oauth_client_details_state::State,
St::CreatedByDid: oauth_client_details_state::IsUnset,
{
pub fn created_by_did(
mut self,
value: impl Into<Did<S>>,
) -> OauthClientDetailsBuilder<S, oauth_client_details_state::SetCreatedByDid<St>> {
self._fields.5 = Option::Some(value.into());
OauthClientDetailsBuilder {
_state: PhantomData,
_fields: self._fields,
_type: PhantomData,
}
}
}
impl<S: BosStr, St> OauthClientDetailsBuilder<S, St>
where
St: oauth_client_details_state::State,
St::GrantTypes: oauth_client_details_state::IsUnset,
{
pub fn grant_types(
mut self,
value: impl Into<Vec<S>>,
) -> OauthClientDetailsBuilder<S, oauth_client_details_state::SetGrantTypes<St>> {
self._fields.6 = Option::Some(value.into());
OauthClientDetailsBuilder {
_state: PhantomData,
_fields: self._fields,
_type: PhantomData,
}
}
}
impl<S: BosStr, St: oauth_client_details_state::State> OauthClientDetailsBuilder<S, St> {
pub fn logo_uri(mut self, value: impl Into<Option<UriValue<S>>>) -> Self {
self._fields.7 = value.into();
self
}
pub fn maybe_logo_uri(mut self, value: Option<UriValue<S>>) -> Self {
self._fields.7 = value;
self
}
}
impl<S: BosStr, St: oauth_client_details_state::State> OauthClientDetailsBuilder<S, St> {
pub fn policy_uri(mut self, value: impl Into<Option<UriValue<S>>>) -> Self {
self._fields.8 = value.into();
self
}
pub fn maybe_policy_uri(mut self, value: Option<UriValue<S>>) -> Self {
self._fields.8 = value;
self
}
}
impl<S: BosStr, St> OauthClientDetailsBuilder<S, St>
where
St: oauth_client_details_state::State,
St::RedirectUris: oauth_client_details_state::IsUnset,
{
pub fn redirect_uris(
mut self,
value: impl Into<Vec<UriValue<S>>>,
) -> OauthClientDetailsBuilder<S, oauth_client_details_state::SetRedirectUris<St>> {
self._fields.9 = Option::Some(value.into());
OauthClientDetailsBuilder {
_state: PhantomData,
_fields: self._fields,
_type: PhantomData,
}
}
}
impl<S: BosStr, St> OauthClientDetailsBuilder<S, St>
where
St: oauth_client_details_state::State,
St::ResponseTypes: oauth_client_details_state::IsUnset,
{
pub fn response_types(
mut self,
value: impl Into<Vec<S>>,
) -> OauthClientDetailsBuilder<S, oauth_client_details_state::SetResponseTypes<St>> {
self._fields.10 = Option::Some(value.into());
OauthClientDetailsBuilder {
_state: PhantomData,
_fields: self._fields,
_type: PhantomData,
}
}
}
impl<S: BosStr, St: oauth_client_details_state::State> OauthClientDetailsBuilder<S, St> {
pub fn scope(mut self, value: impl Into<Option<S>>) -> Self {
self._fields.11 = value.into();
self
}
pub fn maybe_scope(mut self, value: Option<S>) -> Self {
self._fields.11 = value;
self
}
}
impl<S: BosStr, St: oauth_client_details_state::State> OauthClientDetailsBuilder<S, St> {
pub fn tos_uri(mut self, value: impl Into<Option<UriValue<S>>>) -> Self {
self._fields.12 = value.into();
self
}
pub fn maybe_tos_uri(mut self, value: Option<UriValue<S>>) -> Self {
self._fields.12 = value;
self
}
}
impl<S: BosStr, St> OauthClientDetailsBuilder<S, St>
where
St: oauth_client_details_state::State,
St::ClientName: oauth_client_details_state::IsSet,
St::CreatedByDid: oauth_client_details_state::IsSet,
St::ResponseTypes: oauth_client_details_state::IsSet,
St::GrantTypes: oauth_client_details_state::IsSet,
St::ClientId: oauth_client_details_state::IsSet,
St::RedirectUris: oauth_client_details_state::IsSet,
St::CreatedAt: oauth_client_details_state::IsSet,
{
pub fn build(self) -> OauthClientDetails<S> {
OauthClientDetails {
client_id: self._fields.0.unwrap(),
client_name: self._fields.1.unwrap(),
client_secret: self._fields.2,
client_uri: self._fields.3,
created_at: self._fields.4.unwrap(),
created_by_did: self._fields.5.unwrap(),
grant_types: self._fields.6.unwrap(),
logo_uri: self._fields.7,
policy_uri: self._fields.8,
redirect_uris: self._fields.9.unwrap(),
response_types: self._fields.10.unwrap(),
scope: self._fields.11,
tos_uri: self._fields.12,
extra_data: Default::default(),
}
}
pub fn build_with_data(self, extra_data: BTreeMap<SmolStr, Data<S>>) -> OauthClientDetails<S> {
OauthClientDetails {
client_id: self._fields.0.unwrap(),
client_name: self._fields.1.unwrap(),
client_secret: self._fields.2,
client_uri: self._fields.3,
created_at: self._fields.4.unwrap(),
created_by_did: self._fields.5.unwrap(),
grant_types: self._fields.6.unwrap(),
logo_uri: self._fields.7,
policy_uri: self._fields.8,
redirect_uris: self._fields.9.unwrap(),
response_types: self._fields.10.unwrap(),
scope: self._fields.11,
tos_uri: self._fields.12,
extra_data: Some(extra_data),
}
}
}
fn lexicon_doc_network_slices_slice_getOAuthClients() -> LexiconDoc<'static> {
use alloc::collections::BTreeMap;
#[allow(unused_imports)]
use jacquard_common::{CowStr, deps::smol_str::SmolStr, types::blob::MimeType};
use jacquard_lexicon::lexicon::*;
LexiconDoc {
lexicon: Lexicon::Lexicon1,
id: CowStr::new_static("network.slices.slice.getOAuthClients"),
defs: {
let mut map = BTreeMap::new();
map.insert(
SmolStr::new_static("main"),
LexUserType::XrpcQuery(LexXrpcQuery {
parameters: Some(LexXrpcQueryParameter::Params(LexXrpcParameters {
required: Some(vec![SmolStr::new_static("slice")]),
properties: {
#[allow(unused_mut)]
let mut map = BTreeMap::new();
map.insert(
SmolStr::new_static("slice"),
LexXrpcParametersProperty::String(LexString {
description: Some(CowStr::new_static(
"AT-URI of the slice to get OAuth clients for",
)),
..Default::default()
}),
);
map
},
..Default::default()
})),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("oauthClientDetails"),
LexUserType::Object(LexObject {
required: Some(vec![
SmolStr::new_static("clientId"),
SmolStr::new_static("clientName"),
SmolStr::new_static("redirectUris"),
SmolStr::new_static("grantTypes"),
SmolStr::new_static("responseTypes"),
SmolStr::new_static("createdAt"),
SmolStr::new_static("createdByDid"),
]),
properties: {
#[allow(unused_mut)]
let mut map = BTreeMap::new();
map.insert(
SmolStr::new_static("clientId"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static("OAuth client ID")),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("clientName"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static(
"Human-readable name of the OAuth client",
)),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("clientSecret"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static(
"OAuth client secret (only returned on creation)",
)),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("clientUri"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static(
"URI of the client application",
)),
format: Some(LexStringFormat::Uri),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("createdAt"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static(
"When the OAuth client was created",
)),
format: Some(LexStringFormat::Datetime),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("createdByDid"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static(
"DID of the user who created this client",
)),
format: Some(LexStringFormat::Did),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("grantTypes"),
LexObjectProperty::Array(LexArray {
description: Some(CowStr::new_static("Allowed OAuth grant types")),
items: LexArrayItem::String(LexString {
..Default::default()
}),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("logoUri"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static("URI of the client logo")),
format: Some(LexStringFormat::Uri),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("policyUri"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static("URI of the privacy policy")),
format: Some(LexStringFormat::Uri),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("redirectUris"),
LexObjectProperty::Array(LexArray {
description: Some(CowStr::new_static(
"Allowed redirect URIs for OAuth flow",
)),
items: LexArrayItem::String(LexString {
format: Some(LexStringFormat::Uri),
..Default::default()
}),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("responseTypes"),
LexObjectProperty::Array(LexArray {
description: Some(CowStr::new_static(
"Allowed OAuth response types",
)),
items: LexArrayItem::String(LexString {
..Default::default()
}),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("scope"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static("OAuth scope")),
..Default::default()
}),
);
map.insert(
SmolStr::new_static("tosUri"),
LexObjectProperty::String(LexString {
description: Some(CowStr::new_static(
"URI of the terms of service",
)),
format: Some(LexStringFormat::Uri),
..Default::default()
}),
);
map
},
..Default::default()
}),
);
map
},
..Default::default()
}
}