Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark newtype wrappers as #[serde(transparent)] #724

Merged
merged 2 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cargo-typify/tests/outputs/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub mod error {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct Fruit(pub ::std::collections::HashMap<::std::string::String, ::std::string::String>);
impl ::std::ops::Deref for Fruit {
type Target = ::std::collections::HashMap<::std::string::String, ::std::string::String>;
Expand Down
1 change: 1 addition & 0 deletions cargo-typify/tests/outputs/custom_btree_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub mod error {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct Fruit(pub ::std::collections::BTreeMap<::std::string::String, ::std::string::String>);
impl ::std::ops::Deref for Fruit {
type Target = ::std::collections::BTreeMap<::std::string::String, ::std::string::String>;
Expand Down
1 change: 1 addition & 0 deletions cargo-typify/tests/outputs/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub mod error {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug, ExtraDerive)]
#[serde(transparent)]
pub struct Fruit(pub ::std::collections::HashMap<::std::string::String, ::std::string::String>);
impl ::std::ops::Deref for Fruit {
type Target = ::std::collections::HashMap<::std::string::String, ::std::string::String>;
Expand Down
1 change: 1 addition & 0 deletions cargo-typify/tests/outputs/multi_derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub mod error {
#[derive(
:: serde :: Deserialize, :: serde :: Serialize, AnotherDerive, Clone, Debug, ExtraDerive,
)]
#[serde(transparent)]
pub struct Fruit(pub ::std::collections::HashMap<::std::string::String, ::std::string::String>);
impl ::std::ops::Deref for Fruit {
type Target = ::std::collections::HashMap<::std::string::String, ::std::string::String>;
Expand Down
1 change: 1 addition & 0 deletions cargo-typify/tests/outputs/no-builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub mod error {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct Fruit(pub ::std::collections::HashMap<::std::string::String, ::std::string::String>);
impl ::std::ops::Deref for Fruit {
type Target = ::std::collections::HashMap<::std::string::String, ::std::string::String>;
Expand Down
10 changes: 2 additions & 8 deletions typify-impl/src/type_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ impl TypeEntry {
) {
let TypeEntryNewtype {
name,
rename,
rename: _,
description,
default,
type_id,
Expand All @@ -1241,12 +1241,6 @@ impl TypeEntry {
} = newtype_details;
let doc = make_doc(name, description.as_ref(), schema);

let serde = rename.as_ref().map(|old_name| {
quote! {
#[serde(rename = #old_name)]
}
});

let type_name = format_ident!("{}", name);
let inner_type = type_space.id_to_entry.get(type_id).unwrap();
let inner_type_name = inner_type.type_ident(type_space, &None);
Expand Down Expand Up @@ -1537,7 +1531,7 @@ impl TypeEntry {
let item = quote! {
#doc
#[derive(#(#derives),*)]
#serde
#[serde(transparent)]
pub struct #type_name(#vis #inner_type_name);

impl ::std::ops::Deref for #type_name {
Expand Down
11 changes: 11 additions & 0 deletions typify-impl/tests/github.out
Original file line number Diff line number Diff line change
Expand Up @@ -19227,6 +19227,7 @@ impl From<&CommitCommentCreatedComment> for CommitCommentCreatedComment {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct CommitCommentEvent(pub CommitCommentCreated);
impl ::std::ops::Deref for CommitCommentEvent {
type Target = CommitCommentCreated;
Expand Down Expand Up @@ -19569,6 +19570,7 @@ impl From<&ContentReferenceCreatedContentReference> for ContentReferenceCreatedC
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct ContentReferenceEvent(pub ContentReferenceCreated);
impl ::std::ops::Deref for ContentReferenceEvent {
type Target = ContentReferenceCreated;
Expand Down Expand Up @@ -20774,6 +20776,7 @@ impl From<&DeploymentCreatedDeploymentPayload> for DeploymentCreatedDeploymentPa
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct DeploymentEvent(pub DeploymentCreated);
impl ::std::ops::Deref for DeploymentEvent {
type Target = DeploymentCreated;
Expand Down Expand Up @@ -21340,6 +21343,7 @@ impl From<&DeploymentStatusCreatedDeploymentStatus> for DeploymentStatusCreatedD
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct DeploymentStatusEvent(pub DeploymentStatusCreated);
impl ::std::ops::Deref for DeploymentStatusEvent {
type Target = DeploymentStatusCreated;
Expand Down Expand Up @@ -27736,6 +27740,7 @@ impl From<chrono::DateTime<chrono::offset::Utc>> for ForkEventForkeePushedAt {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct GithubAppAuthorizationEvent(pub GithubAppAuthorizationRevoked);
impl ::std::ops::Deref for GithubAppAuthorizationEvent {
type Target = GithubAppAuthorizationRevoked;
Expand Down Expand Up @@ -50033,6 +50038,7 @@ impl From<&IssuesUnlockedIssue> for IssuesUnlockedIssue {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct IssuesUnlockedIssueActiveLockReason(());
impl ::std::ops::Deref for IssuesUnlockedIssueActiveLockReason {
type Target = ();
Expand Down Expand Up @@ -55851,6 +55857,7 @@ impl std::convert::TryFrom<::std::string::String> for MetaDeletedHookConfigConte
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct MetaEvent(pub MetaDeleted);
impl ::std::ops::Deref for MetaEvent {
type Target = MetaDeleted;
Expand Down Expand Up @@ -68681,6 +68688,7 @@ impl From<&PullRequestOpenedPullRequest> for PullRequestOpenedPullRequest {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct PullRequestOpenedPullRequestActiveLockReason(());
impl ::std::ops::Deref for PullRequestOpenedPullRequestActiveLockReason {
type Target = ();
Expand Down Expand Up @@ -80247,6 +80255,7 @@ impl std::convert::TryFrom<::std::string::String> for RepositoryDeletedAction {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct RepositoryDispatchEvent(pub RepositoryDispatchOnDemandTest);
impl ::std::ops::Deref for RepositoryDispatchEvent {
type Target = RepositoryDispatchOnDemandTest;
Expand Down Expand Up @@ -93850,6 +93859,7 @@ impl std::convert::TryFrom<::std::string::String> for UserType {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct WatchEvent(pub WatchStarted);
impl ::std::ops::Deref for WatchEvent {
type Target = WatchStarted;
Expand Down Expand Up @@ -95798,6 +95808,7 @@ impl From<&WorkflowJobStartedWorkflowJob> for WorkflowJobStartedWorkflowJob {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct WorkflowJobStartedWorkflowJobConclusion(());
impl ::std::ops::Deref for WorkflowJobStartedWorkflowJobConclusion {
type Target = ();
Expand Down
23 changes: 23 additions & 0 deletions typify-impl/tests/vega.out
Original file line number Diff line number Diff line change
Expand Up @@ -11353,6 +11353,7 @@ impl From<NumberValue> for AxisTranslate {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct Background(pub StringOrSignal);
impl ::std::ops::Deref for Background {
type Target = StringOrSignal;
Expand Down Expand Up @@ -15295,6 +15296,7 @@ impl std::convert::TryFrom<::std::string::String> for BindVariant2Input {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct BindVariant3Input(::std::string::String);
impl ::std::ops::Deref for BindVariant3Input {
type Target = ::std::string::String;
Expand Down Expand Up @@ -22264,6 +22266,7 @@ impl std::convert::TryFrom<::std::string::String>
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1(::std::string::String);
impl ::std::ops::Deref for DataVariant2FormatVariant0Subtype0ParseVariant1ValueVariant1 {
type Target = ::std::string::String;
Expand Down Expand Up @@ -22775,6 +22778,7 @@ impl std::convert::TryFrom<::std::string::String>
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1(::std::string::String);
impl ::std::ops::Deref for DataVariant2FormatVariant0Subtype1ParseVariant1ValueVariant1 {
type Target = ::std::string::String;
Expand Down Expand Up @@ -23355,6 +23359,7 @@ impl std::convert::TryFrom<::std::string::String>
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1(::std::string::String);
impl ::std::ops::Deref for DataVariant2FormatVariant0Subtype2ParseVariant1ValueVariant1 {
type Target = ::std::string::String;
Expand Down Expand Up @@ -23944,6 +23949,7 @@ impl std::convert::TryFrom<::std::string::String>
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1(::std::string::String);
impl ::std::ops::Deref for DataVariant2FormatVariant0Subtype3ParseVariant1ValueVariant1 {
type Target = ::std::string::String;
Expand Down Expand Up @@ -25146,6 +25152,7 @@ impl std::convert::TryFrom<::std::string::String>
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1(::std::string::String);
impl ::std::ops::Deref for DataVariant3FormatVariant0Subtype0ParseVariant1ValueVariant1 {
type Target = ::std::string::String;
Expand Down Expand Up @@ -25657,6 +25664,7 @@ impl std::convert::TryFrom<::std::string::String>
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1(::std::string::String);
impl ::std::ops::Deref for DataVariant3FormatVariant0Subtype1ParseVariant1ValueVariant1 {
type Target = ::std::string::String;
Expand Down Expand Up @@ -26237,6 +26245,7 @@ impl std::convert::TryFrom<::std::string::String>
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1(::std::string::String);
impl ::std::ops::Deref for DataVariant3FormatVariant0Subtype2ParseVariant1ValueVariant1 {
type Target = ::std::string::String;
Expand Down Expand Up @@ -26826,6 +26835,7 @@ impl std::convert::TryFrom<::std::string::String>
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1(::std::string::String);
impl ::std::ops::Deref for DataVariant3FormatVariant0Subtype3ParseVariant1ValueVariant1 {
type Target = ::std::string::String;
Expand Down Expand Up @@ -30670,6 +30680,7 @@ impl std::convert::TryFrom<::std::string::String> for DotbinTransformType {
PartialEq,
PartialOrd,
)]
#[serde(transparent)]
pub struct Element(pub ::std::string::String);
impl ::std::ops::Deref for Element {
type Target = ::std::string::String;
Expand Down Expand Up @@ -30720,6 +30731,7 @@ impl ::std::fmt::Display for Element {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct Encode(pub ::std::collections::HashMap<EncodeKey, EncodeEntry>);
impl ::std::ops::Deref for Encode {
type Target = ::std::collections::HashMap<EncodeKey, EncodeEntry>;
Expand Down Expand Up @@ -31236,6 +31248,7 @@ impl From<&EncodeEntry> for EncodeEntry {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct EncodeKey(::std::string::String);
impl ::std::ops::Deref for EncodeKey {
type Target = ::std::string::String;
Expand Down Expand Up @@ -31491,6 +31504,7 @@ impl From<&Expr> for Expr {
PartialEq,
PartialOrd,
)]
#[serde(transparent)]
pub struct ExprString(pub ::std::string::String);
impl ::std::ops::Deref for ExprString {
type Target = ::std::string::String;
Expand Down Expand Up @@ -37787,6 +37801,7 @@ impl std::convert::TryFrom<::std::string::String> for GeoshapeTransformType {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct GradientStops(pub ::std::vec::Vec<GradientStopsItem>);
impl ::std::ops::Deref for GradientStops {
type Target = ::std::vec::Vec<GradientStopsItem>;
Expand Down Expand Up @@ -71994,6 +72009,7 @@ impl From<BooleanOrSignal> for Markclip {
PartialEq,
PartialOrd,
)]
#[serde(transparent)]
pub struct Marktype(pub ::std::string::String);
impl ::std::ops::Deref for Marktype {
type Target = ::std::string::String;
Expand Down Expand Up @@ -76238,6 +76254,7 @@ impl From<::std::boxed::Box<NumberValue>> for NumberValueVariant1Variant3Offset
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct OnEvents(pub ::std::vec::Vec<OnEventsItem>);
impl ::std::ops::Deref for OnEvents {
type Target = ::std::vec::Vec<OnEventsItem>;
Expand Down Expand Up @@ -76553,6 +76570,7 @@ impl From<SignalRef> for OnEventsItemVariant1Update {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct OnMarkTrigger(pub ::std::vec::Vec<OnMarkTriggerItem>);
impl ::std::ops::Deref for OnMarkTrigger {
type Target = ::std::vec::Vec<OnMarkTriggerItem>;
Expand Down Expand Up @@ -76659,6 +76677,7 @@ impl From<&OnMarkTriggerItem> for OnMarkTriggerItem {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct OnTrigger(pub ::std::vec::Vec<OnTriggerItem>);
impl ::std::ops::Deref for OnTrigger {
type Target = ::std::vec::Vec<OnTriggerItem>;
Expand Down Expand Up @@ -87552,6 +87571,7 @@ impl std::convert::TryFrom<::std::string::String> for ScaleDataVariant2SortVaria
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct ScaleField(pub StringOrSignal);
impl ::std::ops::Deref for ScaleField {
type Target = StringOrSignal;
Expand Down Expand Up @@ -97083,6 +97103,7 @@ impl From<MarkVisual> for ScopeMarksItem {
PartialEq,
PartialOrd,
)]
#[serde(transparent)]
pub struct Selector(pub ::std::string::String);
impl ::std::ops::Deref for Selector {
type Target = ::std::string::String;
Expand Down Expand Up @@ -97586,6 +97607,7 @@ impl From<&Signal> for Signal {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct SignalName(::std::string::String);
impl ::std::ops::Deref for SignalName {
type Target = ::std::string::String;
Expand Down Expand Up @@ -107467,6 +107489,7 @@ impl From<&TitleVariant1Encode> for TitleVariant1Encode {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[serde(transparent)]
pub struct TitleVariant1EncodeSubtype0Key(::std::string::String);
impl ::std::ops::Deref for TitleVariant1EncodeSubtype0Key {
type Target = ::std::string::String;
Expand Down
6 changes: 6 additions & 0 deletions typify/tests/schemas/arrays-and-tuples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub mod error {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct ArraySansItems(pub Vec<::serde_json::Value>);
impl ::std::ops::Deref for ArraySansItems {
type Target = Vec<::serde_json::Value>;
Expand Down Expand Up @@ -84,6 +85,7 @@ impl From<Vec<::serde_json::Value>> for ArraySansItems {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct LessSimpleTwoTuple(pub (::std::string::String, ::std::string::String));
impl ::std::ops::Deref for LessSimpleTwoTuple {
type Target = (::std::string::String, ::std::string::String);
Expand Down Expand Up @@ -122,6 +124,7 @@ impl From<(::std::string::String, ::std::string::String)> for LessSimpleTwoTuple
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct SimpleTwoArray(pub [::std::string::String; 2usize]);
impl ::std::ops::Deref for SimpleTwoArray {
type Target = [::std::string::String; 2usize];
Expand Down Expand Up @@ -165,6 +168,7 @@ impl From<[::std::string::String; 2usize]> for SimpleTwoArray {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct SimpleTwoTuple(pub (::std::string::String, ::std::string::String));
impl ::std::ops::Deref for SimpleTwoTuple {
type Target = (::std::string::String, ::std::string::String);
Expand Down Expand Up @@ -208,6 +212,7 @@ impl From<(::std::string::String, ::std::string::String)> for SimpleTwoTuple {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct UnsimpleTwoTuple(pub (::std::string::String, ::std::string::String));
impl ::std::ops::Deref for UnsimpleTwoTuple {
type Target = (::std::string::String, ::std::string::String);
Expand Down Expand Up @@ -247,6 +252,7 @@ impl From<(::std::string::String, ::std::string::String)> for UnsimpleTwoTuple {
#[doc = r" ```"]
#[doc = r" </details>"]
#[derive(:: serde :: Deserialize, :: serde :: Serialize, Clone, Debug)]
#[serde(transparent)]
pub struct YoloTwoArray(pub [::serde_json::Value; 2usize]);
impl ::std::ops::Deref for YoloTwoArray {
type Target = [::serde_json::Value; 2usize];
Expand Down
Loading
Loading