commit d17295b5b31166582a8688882b70ff6c32d548e8
parent 05eced17a9e9a4fa5c96cf04a25b9a9159c3acb3
Author: triesap <tyson@radroots.org>
Date: Sun, 15 Feb 2026 17:51:04 +0000
tangle-db-schema: apply cargo fmt
Diffstat:
17 files changed, 61 insertions(+), 60 deletions(-)
diff --git a/tangle-db-schema/src/models/farm.rs b/tangle-db-schema/src/models/farm.rs
@@ -148,9 +148,7 @@ impl FarmQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum FarmFindManyRel {
-
-}
+pub enum FarmFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
diff --git a/tangle-db-schema/src/models/farm_gcs_location.rs b/tangle-db-schema/src/models/farm_gcs_location.rs
@@ -94,9 +94,7 @@ impl FarmGcsLocationQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum FarmGcsLocationFindManyRel {
-
-}
+pub enum FarmGcsLocationFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -207,7 +205,10 @@ pub type IFarmGcsLocationDelete = IFarmGcsLocationFindOne;
pub struct IFarmGcsLocationDeleteResolveTs;
pub type IFarmGcsLocationDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "IFarmGcsLocationUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "IFarmGcsLocationUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct IFarmGcsLocationUpdateArgs {
pub on: FarmGcsLocationQueryBindValues,
diff --git a/tangle-db-schema/src/models/farm_member.rs b/tangle-db-schema/src/models/farm_member.rs
@@ -94,9 +94,7 @@ impl FarmMemberQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum FarmMemberFindManyRel {
-
-}
+pub enum FarmMemberFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -207,7 +205,10 @@ pub type IFarmMemberDelete = IFarmMemberFindOne;
pub struct IFarmMemberDeleteResolveTs;
pub type IFarmMemberDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "IFarmMemberUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "IFarmMemberUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct IFarmMemberUpdateArgs {
pub on: FarmMemberQueryBindValues,
diff --git a/tangle-db-schema/src/models/farm_member_claim.rs b/tangle-db-schema/src/models/farm_member_claim.rs
@@ -65,9 +65,7 @@ impl FarmMemberClaimQueryBindValues {
Self::MemberPubkey { member_pubkey } => {
("member_pubkey", Value::from(member_pubkey.clone()))
}
- Self::FarmPubkey { farm_pubkey } => {
- ("farm_pubkey", Value::from(farm_pubkey.clone()))
- }
+ Self::FarmPubkey { farm_pubkey } => ("farm_pubkey", Value::from(farm_pubkey.clone())),
}
}
@@ -90,9 +88,7 @@ impl FarmMemberClaimQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum FarmMemberClaimFindManyRel {
-
-}
+pub enum FarmMemberClaimFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -203,7 +199,10 @@ pub type IFarmMemberClaimDelete = IFarmMemberClaimFindOne;
pub struct IFarmMemberClaimDeleteResolveTs;
pub type IFarmMemberClaimDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "IFarmMemberClaimUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "IFarmMemberClaimUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct IFarmMemberClaimUpdateArgs {
pub on: FarmMemberClaimQueryBindValues,
diff --git a/tangle-db-schema/src/models/farm_tag.rs b/tangle-db-schema/src/models/farm_tag.rs
@@ -86,9 +86,7 @@ impl FarmTagQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum FarmTagFindManyRel {
-
-}
+pub enum FarmTagFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -199,7 +197,10 @@ pub type IFarmTagDelete = IFarmTagFindOne;
pub struct IFarmTagDeleteResolveTs;
pub type IFarmTagDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "IFarmTagUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "IFarmTagUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct IFarmTagUpdateArgs {
pub on: FarmTagQueryBindValues,
diff --git a/tangle-db-schema/src/models/gcs_location.rs b/tangle-db-schema/src/models/gcs_location.rs
@@ -358,7 +358,10 @@ pub type IGcsLocationDelete = IGcsLocationFindOne;
pub struct IGcsLocationDeleteResolveTs;
pub type IGcsLocationDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "IGcsLocationUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "IGcsLocationUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct IGcsLocationUpdateArgs {
pub on: GcsLocationQueryBindValues,
diff --git a/tangle-db-schema/src/models/log_error.rs b/tangle-db-schema/src/models/log_error.rs
@@ -95,7 +95,9 @@ impl LogErrorQueryBindValues {
pub fn to_filter_param(&self) -> (&'static str, Value) {
match self {
Self::Id { id } => ("id", Value::from(id.clone())),
- Self::NostrPubkey { nostr_pubkey } => ("nostr_pubkey", Value::from(nostr_pubkey.clone())),
+ Self::NostrPubkey { nostr_pubkey } => {
+ ("nostr_pubkey", Value::from(nostr_pubkey.clone()))
+ }
}
}
@@ -116,9 +118,7 @@ impl LogErrorQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum LogErrorFindManyRel {
-
-}
+pub enum LogErrorFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -250,4 +250,4 @@ pub type ILogErrorUpdate = ILogErrorUpdateArgs;
)
)]
pub struct ILogErrorUpdateResolveTs;
-pub type ILogErrorUpdateResolve = IResult<LogError>;
-\ No newline at end of file
+pub type ILogErrorUpdateResolve = IResult<LogError>;
diff --git a/tangle-db-schema/src/models/media_image.rs b/tangle-db-schema/src/models/media_image.rs
@@ -252,4 +252,4 @@ pub type IMediaImageUpdate = IMediaImageUpdateArgs;
)
)]
pub struct IMediaImageUpdateResolveTs;
-pub type IMediaImageUpdateResolve = IResult<MediaImage>;
-\ No newline at end of file
+pub type IMediaImageUpdateResolve = IResult<MediaImage>;
diff --git a/tangle-db-schema/src/models/nostr_event_state.rs b/tangle-db-schema/src/models/nostr_event_state.rs
@@ -113,9 +113,7 @@ impl NostrEventStateQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum NostrEventStateFindManyRel {
-
-}
+pub enum NostrEventStateFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -226,7 +224,10 @@ pub type INostrEventStateDelete = INostrEventStateFindOne;
pub struct INostrEventStateDeleteResolveTs;
pub type INostrEventStateDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "INostrEventStateUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "INostrEventStateUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct INostrEventStateUpdateArgs {
pub on: NostrEventStateQueryBindValues,
diff --git a/tangle-db-schema/src/models/nostr_profile_relay.rs b/tangle-db-schema/src/models/nostr_profile_relay.rs
@@ -1,9 +1,9 @@
+use crate::nostr_profile::NostrProfileQueryBindValues;
+use crate::nostr_relay::NostrRelayQueryBindValues;
use radroots_types::types::IResultPass;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
-use crate::nostr_profile::NostrProfileQueryBindValues;
-use crate::nostr_relay::NostrRelayQueryBindValues;
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
diff --git a/tangle-db-schema/src/models/nostr_relay.rs b/tangle-db-schema/src/models/nostr_relay.rs
@@ -283,4 +283,4 @@ pub type INostrRelayUpdate = INostrRelayUpdateArgs;
)
)]
pub struct INostrRelayUpdateResolveTs;
-pub type INostrRelayUpdateResolve = IResult<NostrRelay>;
-\ No newline at end of file
+pub type INostrRelayUpdateResolve = IResult<NostrRelay>;
diff --git a/tangle-db-schema/src/models/plot.rs b/tangle-db-schema/src/models/plot.rs
@@ -127,9 +127,7 @@ impl PlotQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum PlotFindManyRel {
-
-}
+pub enum PlotFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -240,7 +238,10 @@ pub type IPlotDelete = IPlotFindOne;
pub struct IPlotDeleteResolveTs;
pub type IPlotDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "IPlotUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "IPlotUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct IPlotUpdateArgs {
pub on: PlotQueryBindValues,
diff --git a/tangle-db-schema/src/models/plot_gcs_location.rs b/tangle-db-schema/src/models/plot_gcs_location.rs
@@ -94,9 +94,7 @@ impl PlotGcsLocationQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum PlotGcsLocationFindManyRel {
-
-}
+pub enum PlotGcsLocationFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -207,7 +205,10 @@ pub type IPlotGcsLocationDelete = IPlotGcsLocationFindOne;
pub struct IPlotGcsLocationDeleteResolveTs;
pub type IPlotGcsLocationDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "IPlotGcsLocationUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "IPlotGcsLocationUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct IPlotGcsLocationUpdateArgs {
pub on: PlotGcsLocationQueryBindValues,
diff --git a/tangle-db-schema/src/models/plot_tag.rs b/tangle-db-schema/src/models/plot_tag.rs
@@ -86,9 +86,7 @@ impl PlotTagQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum PlotTagFindManyRel {
-
-}
+pub enum PlotTagFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -199,7 +197,10 @@ pub type IPlotTagDelete = IPlotTagFindOne;
pub struct IPlotTagDeleteResolveTs;
pub type IPlotTagDeleteResolve = IResult<String>;
#[cfg_attr(feature = "ts-rs", derive(TS))]
-#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts", rename = "IPlotTagUpdate"))]
+#[cfg_attr(
+ feature = "ts-rs",
+ ts(export, export_to = "types.ts", rename = "IPlotTagUpdate")
+)]
#[derive(Deserialize, Serialize)]
pub struct IPlotTagUpdateArgs {
pub on: PlotTagQueryBindValues,
diff --git a/tangle-db-schema/src/models/trade_product.rs b/tangle-db-schema/src/models/trade_product.rs
@@ -166,9 +166,7 @@ impl TradeProductQueryBindValues {
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
#[derive(Clone, Deserialize, Serialize)]
-pub enum TradeProductFindManyRel {
-
-}
+pub enum TradeProductFindManyRel {}
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(
@@ -300,4 +298,4 @@ pub type ITradeProductUpdate = ITradeProductUpdateArgs;
)
)]
pub struct ITradeProductUpdateResolveTs;
-pub type ITradeProductUpdateResolve = IResult<TradeProduct>;
-\ No newline at end of file
+pub type ITradeProductUpdateResolve = IResult<TradeProduct>;
diff --git a/tangle-db-schema/src/models/trade_product_location.rs b/tangle-db-schema/src/models/trade_product_location.rs
@@ -1,9 +1,9 @@
+use crate::gcs_location::GcsLocationQueryBindValues;
+use crate::trade_product::TradeProductQueryBindValues;
use radroots_types::types::IResultPass;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
-use crate::trade_product::TradeProductQueryBindValues;
-use crate::gcs_location::GcsLocationQueryBindValues;
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]
diff --git a/tangle-db-schema/src/models/trade_product_media.rs b/tangle-db-schema/src/models/trade_product_media.rs
@@ -1,9 +1,9 @@
+use crate::media_image::MediaImageQueryBindValues;
+use crate::trade_product::TradeProductQueryBindValues;
use radroots_types::types::IResultPass;
use serde::{Deserialize, Serialize};
#[cfg(feature = "ts-rs")]
use ts_rs::TS;
-use crate::trade_product::TradeProductQueryBindValues;
-use crate::media_image::MediaImageQueryBindValues;
#[cfg_attr(feature = "ts-rs", derive(TS))]
#[cfg_attr(feature = "ts-rs", ts(export, export_to = "types.ts"))]