diff --git a/crates/jacquard-api/src/actor_rpg/master.rs b/crates/jacquard-api/src/actor_rpg/master.rs index 5d6a7ca5..cfa96dfc 100644 --- a/crates/jacquard-api/src/actor_rpg/master.rs +++ b/crates/jacquard-api/src/actor_rpg/master.rs @@ -233,51 +233,51 @@ pub mod master_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Player; type CreatedAt; type System; - type Player; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Player = Unset; type CreatedAt = Unset; type System = Unset; - type Player = Unset; + } + ///State transition - sets the `player` field to Set + pub struct SetPlayer(PhantomData St>); + impl sealed::Sealed for SetPlayer {} + impl State for SetPlayer { + type Player = Set; + type CreatedAt = St::CreatedAt; + type System = St::System; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Player = St::Player; type CreatedAt = Set; type System = St::System; - type Player = St::Player; } ///State transition - sets the `system` field to Set pub struct SetSystem(PhantomData St>); impl sealed::Sealed for SetSystem {} impl State for SetSystem { - type CreatedAt = St::CreatedAt; - type System = Set; type Player = St::Player; - } - ///State transition - sets the `player` field to Set - pub struct SetPlayer(PhantomData St>); - impl sealed::Sealed for SetPlayer {} - impl State for SetPlayer { type CreatedAt = St::CreatedAt; - type System = St::System; - type Player = Set; + type System = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `player` field + pub struct player(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `system` field pub struct system(()); - ///Marker type for the `player` field - pub struct player(()); } } @@ -446,9 +446,9 @@ impl MasterBuilder { impl MasterBuilder where St: master_state::State, + St::Player: master_state::IsSet, St::CreatedAt: master_state::IsSet, St::System: master_state::IsSet, - St::Player: master_state::IsSet, { /// Build the final struct. pub fn build(self) -> Master { diff --git a/crates/jacquard-api/src/actor_rpg/sprite.rs b/crates/jacquard-api/src/actor_rpg/sprite.rs index e7d759b4..9fe5693f 100644 --- a/crates/jacquard-api/src/actor_rpg/sprite.rs +++ b/crates/jacquard-api/src/actor_rpg/sprite.rs @@ -445,51 +445,51 @@ pub mod sprite_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Engine; type CreatedAt; type SpriteSheet; - type Engine; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Engine = Unset; type CreatedAt = Unset; type SpriteSheet = Unset; - type Engine = Unset; + } + ///State transition - sets the `engine` field to Set + pub struct SetEngine(PhantomData St>); + impl sealed::Sealed for SetEngine {} + impl State for SetEngine { + type Engine = Set; + type CreatedAt = St::CreatedAt; + type SpriteSheet = St::SpriteSheet; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Engine = St::Engine; type CreatedAt = Set; type SpriteSheet = St::SpriteSheet; - type Engine = St::Engine; } ///State transition - sets the `sprite_sheet` field to Set pub struct SetSpriteSheet(PhantomData St>); impl sealed::Sealed for SetSpriteSheet {} impl State for SetSpriteSheet { - type CreatedAt = St::CreatedAt; - type SpriteSheet = Set; type Engine = St::Engine; - } - ///State transition - sets the `engine` field to Set - pub struct SetEngine(PhantomData St>); - impl sealed::Sealed for SetEngine {} - impl State for SetEngine { type CreatedAt = St::CreatedAt; - type SpriteSheet = St::SpriteSheet; - type Engine = Set; + type SpriteSheet = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `engine` field + pub struct engine(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `sprite_sheet` field pub struct sprite_sheet(()); - ///Marker type for the `engine` field - pub struct engine(()); } } @@ -736,9 +736,9 @@ impl SpriteBuilder { impl SpriteBuilder where St: sprite_state::State, + St::Engine: sprite_state::IsSet, St::CreatedAt: sprite_state::IsSet, St::SpriteSheet: sprite_state::IsSet, - St::Engine: sprite_state::IsSet, { /// Build the final struct. pub fn build(self) -> Sprite { diff --git a/crates/jacquard-api/src/actor_rpg/stats.rs b/crates/jacquard-api/src/actor_rpg/stats.rs index ecf01c8a..65f8801d 100644 --- a/crates/jacquard-api/src/actor_rpg/stats.rs +++ b/crates/jacquard-api/src/actor_rpg/stats.rs @@ -7658,37 +7658,37 @@ pub mod spellslot_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Level; type Total; + type Level; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Level = Unset; type Total = Unset; - } - ///State transition - sets the `level` field to Set - pub struct SetLevel(PhantomData St>); - impl sealed::Sealed for SetLevel {} - impl State for SetLevel { - type Level = Set; - type Total = St::Total; + type Level = Unset; } ///State transition - sets the `total` field to Set pub struct SetTotal(PhantomData St>); impl sealed::Sealed for SetTotal {} impl State for SetTotal { - type Level = St::Level; type Total = Set; + type Level = St::Level; + } + ///State transition - sets the `level` field to Set + pub struct SetLevel(PhantomData St>); + impl sealed::Sealed for SetLevel {} + impl State for SetLevel { + type Total = St::Total; + type Level = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `level` field - pub struct level(()); ///Marker type for the `total` field pub struct total(()); + ///Marker type for the `level` field + pub struct level(()); } } @@ -7771,8 +7771,8 @@ impl SpellslotBuilder { impl SpellslotBuilder where St: spellslot_state::State, - St::Level: spellslot_state::IsSet, St::Total: spellslot_state::IsSet, + St::Level: spellslot_state::IsSet, { /// Build the final struct. pub fn build(self) -> Spellslot { diff --git a/crates/jacquard-api/src/ai_syui/log/chat.rs b/crates/jacquard-api/src/ai_syui/log/chat.rs index 14410a80..f6292198 100644 --- a/crates/jacquard-api/src/ai_syui/log/chat.rs +++ b/crates/jacquard-api/src/ai_syui/log/chat.rs @@ -399,49 +399,49 @@ pub mod chat_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Site; type Title; + type Site; type PublishedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Site = Unset; type Title = Unset; + type Site = Unset; type PublishedAt = Unset; } - ///State transition - sets the `site` field to Set - pub struct SetSite(PhantomData St>); - impl sealed::Sealed for SetSite {} - impl State for SetSite { - type Site = Set; - type Title = St::Title; - type PublishedAt = St::PublishedAt; - } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Site = St::Site; type Title = Set; + type Site = St::Site; + type PublishedAt = St::PublishedAt; + } + ///State transition - sets the `site` field to Set + pub struct SetSite(PhantomData St>); + impl sealed::Sealed for SetSite {} + impl State for SetSite { + type Title = St::Title; + type Site = Set; type PublishedAt = St::PublishedAt; } ///State transition - sets the `published_at` field to Set pub struct SetPublishedAt(PhantomData St>); impl sealed::Sealed for SetPublishedAt {} impl State for SetPublishedAt { - type Site = St::Site; type Title = St::Title; + type Site = St::Site; type PublishedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `site` field - pub struct site(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `site` field + pub struct site(()); ///Marker type for the `published_at` field pub struct published_at(()); } @@ -723,8 +723,8 @@ impl ChatBuilder { impl ChatBuilder where St: chat_state::State, - St::Site: chat_state::IsSet, St::Title: chat_state::IsSet, + St::Site: chat_state::IsSet, St::PublishedAt: chat_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_beaconbits/beacon.rs b/crates/jacquard-api/src/app_beaconbits/beacon.rs index 14a7648f..db74a027 100644 --- a/crates/jacquard-api/src/app_beaconbits/beacon.rs +++ b/crates/jacquard-api/src/app_beaconbits/beacon.rs @@ -367,65 +367,65 @@ pub mod beacon_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Visibility; type CreatedAt; type VenueUri; - type Visibility; type VenueName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Visibility = Unset; type CreatedAt = Unset; type VenueUri = Unset; - type Visibility = Unset; type VenueName = Unset; } + ///State transition - sets the `visibility` field to Set + pub struct SetVisibility(PhantomData St>); + impl sealed::Sealed for SetVisibility {} + impl State for SetVisibility { + type Visibility = Set; + type CreatedAt = St::CreatedAt; + type VenueUri = St::VenueUri; + type VenueName = St::VenueName; + } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Visibility = St::Visibility; type CreatedAt = Set; type VenueUri = St::VenueUri; - type Visibility = St::Visibility; type VenueName = St::VenueName; } ///State transition - sets the `venue_uri` field to Set pub struct SetVenueUri(PhantomData St>); impl sealed::Sealed for SetVenueUri {} impl State for SetVenueUri { - type CreatedAt = St::CreatedAt; - type VenueUri = Set; type Visibility = St::Visibility; - type VenueName = St::VenueName; - } - ///State transition - sets the `visibility` field to Set - pub struct SetVisibility(PhantomData St>); - impl sealed::Sealed for SetVisibility {} - impl State for SetVisibility { type CreatedAt = St::CreatedAt; - type VenueUri = St::VenueUri; - type Visibility = Set; + type VenueUri = Set; type VenueName = St::VenueName; } ///State transition - sets the `venue_name` field to Set pub struct SetVenueName(PhantomData St>); impl sealed::Sealed for SetVenueName {} impl State for SetVenueName { + type Visibility = St::Visibility; type CreatedAt = St::CreatedAt; type VenueUri = St::VenueUri; - type Visibility = St::Visibility; type VenueName = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `visibility` field + pub struct visibility(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `venue_uri` field pub struct venue_uri(()); - ///Marker type for the `visibility` field - pub struct visibility(()); ///Marker type for the `venue_name` field pub struct venue_name(()); } @@ -740,9 +740,9 @@ where impl BeaconBuilder where St: beacon_state::State, + St::Visibility: beacon_state::IsSet, St::CreatedAt: beacon_state::IsSet, St::VenueUri: beacon_state::IsSet, - St::Visibility: beacon_state::IsSet, St::VenueName: beacon_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_beaconbits/bookmark/folder.rs b/crates/jacquard-api/src/app_beaconbits/bookmark/folder.rs index ad2ed22d..6ad4c56e 100644 --- a/crates/jacquard-api/src/app_beaconbits/bookmark/folder.rs +++ b/crates/jacquard-api/src/app_beaconbits/bookmark/folder.rs @@ -270,37 +270,37 @@ pub mod folder_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -429,8 +429,8 @@ impl FolderBuilder { impl FolderBuilder where St: folder_state::State, - St::Name: folder_state::IsSet, St::CreatedAt: folder_state::IsSet, + St::Name: folder_state::IsSet, { /// Build the final struct. pub fn build(self) -> Folder { diff --git a/crates/jacquard-api/src/app_beaconbits/bookmark/item.rs b/crates/jacquard-api/src/app_beaconbits/bookmark/item.rs index 80a339ec..cf841ed4 100644 --- a/crates/jacquard-api/src/app_beaconbits/bookmark/item.rs +++ b/crates/jacquard-api/src/app_beaconbits/bookmark/item.rs @@ -198,49 +198,49 @@ pub mod item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type VenueUri; type CreatedAt; + type VenueUri; type VenueName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type VenueUri = Unset; type CreatedAt = Unset; + type VenueUri = Unset; type VenueName = Unset; } - ///State transition - sets the `venue_uri` field to Set - pub struct SetVenueUri(PhantomData St>); - impl sealed::Sealed for SetVenueUri {} - impl State for SetVenueUri { - type VenueUri = Set; - type CreatedAt = St::CreatedAt; - type VenueName = St::VenueName; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type VenueUri = St::VenueUri; type CreatedAt = Set; + type VenueUri = St::VenueUri; + type VenueName = St::VenueName; + } + ///State transition - sets the `venue_uri` field to Set + pub struct SetVenueUri(PhantomData St>); + impl sealed::Sealed for SetVenueUri {} + impl State for SetVenueUri { + type CreatedAt = St::CreatedAt; + type VenueUri = Set; type VenueName = St::VenueName; } ///State transition - sets the `venue_name` field to Set pub struct SetVenueName(PhantomData St>); impl sealed::Sealed for SetVenueName {} impl State for SetVenueName { - type VenueUri = St::VenueUri; type CreatedAt = St::CreatedAt; + type VenueUri = St::VenueUri; type VenueName = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `venue_uri` field - pub struct venue_uri(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `venue_uri` field + pub struct venue_uri(()); ///Marker type for the `venue_name` field pub struct venue_name(()); } @@ -419,8 +419,8 @@ where impl ItemBuilder where St: item_state::State, - St::VenueUri: item_state::IsSet, St::CreatedAt: item_state::IsSet, + St::VenueUri: item_state::IsSet, St::VenueName: item_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_beaconbits/venue.rs b/crates/jacquard-api/src/app_beaconbits/venue.rs index 7c35efa3..601f9f74 100644 --- a/crates/jacquard-api/src/app_beaconbits/venue.rs +++ b/crates/jacquard-api/src/app_beaconbits/venue.rs @@ -168,37 +168,37 @@ pub mod venue_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -341,8 +341,8 @@ impl VenueBuilder { impl VenueBuilder where St: venue_state::State, - St::Name: venue_state::IsSet, St::CreatedAt: venue_state::IsSet, + St::Name: venue_state::IsSet, { /// Build the final struct. pub fn build(self) -> Venue { diff --git a/crates/jacquard-api/src/app_bsky/actor.rs b/crates/jacquard-api/src/app_bsky/actor.rs index f080f18d..0dd63160 100644 --- a/crates/jacquard-api/src/app_bsky/actor.rs +++ b/crates/jacquard-api/src/app_bsky/actor.rs @@ -7134,51 +7134,51 @@ pub mod verification_state_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Verifications; type VerifiedStatus; type TrustedVerifierStatus; - type Verifications; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Verifications = Unset; type VerifiedStatus = Unset; type TrustedVerifierStatus = Unset; - type Verifications = Unset; + } + ///State transition - sets the `verifications` field to Set + pub struct SetVerifications(PhantomData St>); + impl sealed::Sealed for SetVerifications {} + impl State for SetVerifications { + type Verifications = Set; + type VerifiedStatus = St::VerifiedStatus; + type TrustedVerifierStatus = St::TrustedVerifierStatus; } ///State transition - sets the `verified_status` field to Set pub struct SetVerifiedStatus(PhantomData St>); impl sealed::Sealed for SetVerifiedStatus {} impl State for SetVerifiedStatus { + type Verifications = St::Verifications; type VerifiedStatus = Set; type TrustedVerifierStatus = St::TrustedVerifierStatus; - type Verifications = St::Verifications; } ///State transition - sets the `trusted_verifier_status` field to Set pub struct SetTrustedVerifierStatus(PhantomData St>); impl sealed::Sealed for SetTrustedVerifierStatus {} impl State for SetTrustedVerifierStatus { - type VerifiedStatus = St::VerifiedStatus; - type TrustedVerifierStatus = Set; type Verifications = St::Verifications; - } - ///State transition - sets the `verifications` field to Set - pub struct SetVerifications(PhantomData St>); - impl sealed::Sealed for SetVerifications {} - impl State for SetVerifications { type VerifiedStatus = St::VerifiedStatus; - type TrustedVerifierStatus = St::TrustedVerifierStatus; - type Verifications = Set; + type TrustedVerifierStatus = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `verifications` field + pub struct verifications(()); ///Marker type for the `verified_status` field pub struct verified_status(()); ///Marker type for the `trusted_verifier_status` field pub struct trusted_verifier_status(()); - ///Marker type for the `verifications` field - pub struct verifications(()); } } @@ -7274,9 +7274,9 @@ where impl VerificationStateBuilder where St: verification_state_state::State, + St::Verifications: verification_state_state::IsSet, St::VerifiedStatus: verification_state_state::IsSet, St::TrustedVerifierStatus: verification_state_state::IsSet, - St::Verifications: verification_state_state::IsSet, { /// Build the final struct. pub fn build(self) -> VerificationState { @@ -7312,66 +7312,66 @@ pub mod verification_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Uri; - type Issuer; type IsValid; type CreatedAt; + type Issuer; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Uri = Unset; - type Issuer = Unset; type IsValid = Unset; type CreatedAt = Unset; + type Issuer = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Uri = Set; - type Issuer = St::Issuer; - type IsValid = St::IsValid; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `issuer` field to Set - pub struct SetIssuer(PhantomData St>); - impl sealed::Sealed for SetIssuer {} - impl State for SetIssuer { - type Uri = St::Uri; - type Issuer = Set; type IsValid = St::IsValid; type CreatedAt = St::CreatedAt; + type Issuer = St::Issuer; } ///State transition - sets the `is_valid` field to Set pub struct SetIsValid(PhantomData St>); impl sealed::Sealed for SetIsValid {} impl State for SetIsValid { type Uri = St::Uri; - type Issuer = St::Issuer; type IsValid = Set; type CreatedAt = St::CreatedAt; + type Issuer = St::Issuer; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Uri = St::Uri; - type Issuer = St::Issuer; type IsValid = St::IsValid; type CreatedAt = Set; + type Issuer = St::Issuer; + } + ///State transition - sets the `issuer` field to Set + pub struct SetIssuer(PhantomData St>); + impl sealed::Sealed for SetIssuer {} + impl State for SetIssuer { + type Uri = St::Uri; + type IsValid = St::IsValid; + type CreatedAt = St::CreatedAt; + type Issuer = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `issuer` field - pub struct issuer(()); ///Marker type for the `is_valid` field pub struct is_valid(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `issuer` field + pub struct issuer(()); } } @@ -7480,9 +7480,9 @@ impl VerificationViewBuilder where St: verification_view_state::State, St::Uri: verification_view_state::IsSet, - St::Issuer: verification_view_state::IsSet, St::IsValid: verification_view_state::IsSet, St::CreatedAt: verification_view_state::IsSet, + St::Issuer: verification_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> VerificationView { diff --git a/crates/jacquard-api/src/app_bsky/actor/status.rs b/crates/jacquard-api/src/app_bsky/actor/status.rs index f4d9fa42..d24fe1ac 100644 --- a/crates/jacquard-api/src/app_bsky/actor/status.rs +++ b/crates/jacquard-api/src/app_bsky/actor/status.rs @@ -214,37 +214,37 @@ pub mod status_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Status; type CreatedAt; + type Status; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Status = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { - type Status = Set; - type CreatedAt = St::CreatedAt; + type Status = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Status = St::Status; type CreatedAt = Set; + type Status = St::Status; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type CreatedAt = St::CreatedAt; + type Status = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `status` field - pub struct status(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `status` field + pub struct status(()); } } @@ -345,8 +345,8 @@ where impl StatusBuilder where St: status_state::State, - St::Status: status_state::IsSet, St::CreatedAt: status_state::IsSet, + St::Status: status_state::IsSet, { /// Build the final struct. pub fn build(self) -> Status { diff --git a/crates/jacquard-api/src/app_bsky/ageassurance.rs b/crates/jacquard-api/src/app_bsky/ageassurance.rs index 8386aaf3..bd0e79df 100644 --- a/crates/jacquard-api/src/app_bsky/ageassurance.rs +++ b/crates/jacquard-api/src/app_bsky/ageassurance.rs @@ -1460,49 +1460,49 @@ pub mod config_region_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Rules; type CountryCode; + type Rules; type MinAccessAge; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Rules = Unset; type CountryCode = Unset; + type Rules = Unset; type MinAccessAge = Unset; } - ///State transition - sets the `rules` field to Set - pub struct SetRules(PhantomData St>); - impl sealed::Sealed for SetRules {} - impl State for SetRules { - type Rules = Set; - type CountryCode = St::CountryCode; - type MinAccessAge = St::MinAccessAge; - } ///State transition - sets the `country_code` field to Set pub struct SetCountryCode(PhantomData St>); impl sealed::Sealed for SetCountryCode {} impl State for SetCountryCode { - type Rules = St::Rules; type CountryCode = Set; + type Rules = St::Rules; + type MinAccessAge = St::MinAccessAge; + } + ///State transition - sets the `rules` field to Set + pub struct SetRules(PhantomData St>); + impl sealed::Sealed for SetRules {} + impl State for SetRules { + type CountryCode = St::CountryCode; + type Rules = Set; type MinAccessAge = St::MinAccessAge; } ///State transition - sets the `min_access_age` field to Set pub struct SetMinAccessAge(PhantomData St>); impl sealed::Sealed for SetMinAccessAge {} impl State for SetMinAccessAge { - type Rules = St::Rules; type CountryCode = St::CountryCode; + type Rules = St::Rules; type MinAccessAge = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `rules` field - pub struct rules(()); ///Marker type for the `country_code` field pub struct country_code(()); + ///Marker type for the `rules` field + pub struct rules(()); ///Marker type for the `min_access_age` field pub struct min_access_age(()); } @@ -1606,8 +1606,8 @@ where impl ConfigRegionBuilder where St: config_region_state::State, - St::Rules: config_region_state::IsSet, St::CountryCode: config_region_state::IsSet, + St::Rules: config_region_state::IsSet, St::MinAccessAge: config_region_state::IsSet, { /// Build the final struct. @@ -2058,37 +2058,37 @@ pub mod config_region_rule_if_assured_over_age_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Age; type Access; + type Age; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Age = Unset; type Access = Unset; - } - ///State transition - sets the `age` field to Set - pub struct SetAge(PhantomData St>); - impl sealed::Sealed for SetAge {} - impl State for SetAge { - type Age = Set; - type Access = St::Access; + type Age = Unset; } ///State transition - sets the `access` field to Set pub struct SetAccess(PhantomData St>); impl sealed::Sealed for SetAccess {} impl State for SetAccess { - type Age = St::Age; type Access = Set; + type Age = St::Age; + } + ///State transition - sets the `age` field to Set + pub struct SetAge(PhantomData St>); + impl sealed::Sealed for SetAge {} + impl State for SetAge { + type Access = St::Access; + type Age = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `age` field - pub struct age(()); ///Marker type for the `access` field pub struct access(()); + ///Marker type for the `age` field + pub struct age(()); } } @@ -2175,8 +2175,8 @@ where impl ConfigRegionRuleIfAssuredOverAgeBuilder where St: config_region_rule_if_assured_over_age_state::State, - St::Age: config_region_rule_if_assured_over_age_state::IsSet, St::Access: config_region_rule_if_assured_over_age_state::IsSet, + St::Age: config_region_rule_if_assured_over_age_state::IsSet, { /// Build the final struct. pub fn build(self) -> ConfigRegionRuleIfAssuredOverAge { @@ -2360,37 +2360,37 @@ pub mod config_region_rule_if_declared_over_age_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Age; type Access; + type Age; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Age = Unset; type Access = Unset; - } - ///State transition - sets the `age` field to Set - pub struct SetAge(PhantomData St>); - impl sealed::Sealed for SetAge {} - impl State for SetAge { - type Age = Set; - type Access = St::Access; + type Age = Unset; } ///State transition - sets the `access` field to Set pub struct SetAccess(PhantomData St>); impl sealed::Sealed for SetAccess {} impl State for SetAccess { - type Age = St::Age; type Access = Set; + type Age = St::Age; + } + ///State transition - sets the `age` field to Set + pub struct SetAge(PhantomData St>); + impl sealed::Sealed for SetAge {} + impl State for SetAge { + type Access = St::Access; + type Age = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `age` field - pub struct age(()); ///Marker type for the `access` field pub struct access(()); + ///Marker type for the `age` field + pub struct age(()); } } @@ -2477,8 +2477,8 @@ where impl ConfigRegionRuleIfDeclaredOverAgeBuilder where St: config_region_rule_if_declared_over_age_state::State, - St::Age: config_region_rule_if_declared_over_age_state::IsSet, St::Access: config_region_rule_if_declared_over_age_state::IsSet, + St::Age: config_region_rule_if_declared_over_age_state::IsSet, { /// Build the final struct. pub fn build(self) -> ConfigRegionRuleIfDeclaredOverAge { @@ -2662,85 +2662,85 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type AttemptId; - type Access; type CountryCode; type Status; + type CreatedAt; + type Access; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type AttemptId = Unset; - type Access = Unset; type CountryCode = Unset; type Status = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type AttemptId = St::AttemptId; - type Access = St::Access; - type CountryCode = St::CountryCode; - type Status = St::Status; + type CreatedAt = Unset; + type Access = Unset; } ///State transition - sets the `attempt_id` field to Set pub struct SetAttemptId(PhantomData St>); impl sealed::Sealed for SetAttemptId {} impl State for SetAttemptId { - type CreatedAt = St::CreatedAt; type AttemptId = Set; - type Access = St::Access; type CountryCode = St::CountryCode; type Status = St::Status; - } - ///State transition - sets the `access` field to Set - pub struct SetAccess(PhantomData St>); - impl sealed::Sealed for SetAccess {} - impl State for SetAccess { type CreatedAt = St::CreatedAt; - type AttemptId = St::AttemptId; - type Access = Set; - type CountryCode = St::CountryCode; - type Status = St::Status; + type Access = St::Access; } ///State transition - sets the `country_code` field to Set pub struct SetCountryCode(PhantomData St>); impl sealed::Sealed for SetCountryCode {} impl State for SetCountryCode { - type CreatedAt = St::CreatedAt; type AttemptId = St::AttemptId; - type Access = St::Access; type CountryCode = Set; type Status = St::Status; + type CreatedAt = St::CreatedAt; + type Access = St::Access; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { + type AttemptId = St::AttemptId; + type CountryCode = St::CountryCode; + type Status = Set; type CreatedAt = St::CreatedAt; + type Access = St::Access; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type AttemptId = St::AttemptId; + type CountryCode = St::CountryCode; + type Status = St::Status; + type CreatedAt = Set; type Access = St::Access; + } + ///State transition - sets the `access` field to Set + pub struct SetAccess(PhantomData St>); + impl sealed::Sealed for SetAccess {} + impl State for SetAccess { + type AttemptId = St::AttemptId; type CountryCode = St::CountryCode; - type Status = Set; + type Status = St::Status; + type CreatedAt = St::CreatedAt; + type Access = 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 `attempt_id` field pub struct attempt_id(()); - ///Marker type for the `access` field - pub struct access(()); ///Marker type for the `country_code` field pub struct country_code(()); ///Marker type for the `status` field pub struct status(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `access` field + pub struct access(()); } } @@ -2957,11 +2957,11 @@ where impl EventBuilder where St: event_state::State, - St::CreatedAt: event_state::IsSet, St::AttemptId: event_state::IsSet, - St::Access: event_state::IsSet, St::CountryCode: event_state::IsSet, St::Status: event_state::IsSet, + St::CreatedAt: event_state::IsSet, + St::Access: event_state::IsSet, { /// Build the final struct. pub fn build(self) -> Event { diff --git a/crates/jacquard-api/src/app_bsky/bookmark.rs b/crates/jacquard-api/src/app_bsky/bookmark.rs index 867072a8..b01a9858 100644 --- a/crates/jacquard-api/src/app_bsky/bookmark.rs +++ b/crates/jacquard-api/src/app_bsky/bookmark.rs @@ -286,37 +286,37 @@ pub mod bookmark_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type Item; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type Item = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type Item = St::Item; + type Subject = Unset; } ///State transition - sets the `item` field to Set pub struct SetItem(PhantomData St>); impl sealed::Sealed for SetItem {} impl State for SetItem { - type Subject = St::Subject; type Item = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Item = St::Item; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `item` field pub struct item(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -399,8 +399,8 @@ where impl BookmarkViewBuilder where St: bookmark_view_state::State, - St::Subject: bookmark_view_state::IsSet, St::Item: bookmark_view_state::IsSet, + St::Subject: bookmark_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> BookmarkView { diff --git a/crates/jacquard-api/src/app_bsky/contact.rs b/crates/jacquard-api/src/app_bsky/contact.rs index c16f9dc6..37e7b907 100644 --- a/crates/jacquard-api/src/app_bsky/contact.rs +++ b/crates/jacquard-api/src/app_bsky/contact.rs @@ -158,37 +158,37 @@ pub mod match_and_contact_index_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Match; type ContactIndex; + type Match; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Match = Unset; type ContactIndex = Unset; - } - ///State transition - sets the `match` field to Set - pub struct SetMatch(PhantomData St>); - impl sealed::Sealed for SetMatch {} - impl State for SetMatch { - type Match = Set; - type ContactIndex = St::ContactIndex; + type Match = Unset; } ///State transition - sets the `contact_index` field to Set pub struct SetContactIndex(PhantomData St>); impl sealed::Sealed for SetContactIndex {} impl State for SetContactIndex { - type Match = St::Match; type ContactIndex = Set; + type Match = St::Match; + } + ///State transition - sets the `match` field to Set + pub struct SetMatch(PhantomData St>); + impl sealed::Sealed for SetMatch {} + impl State for SetMatch { + type ContactIndex = St::ContactIndex; + type Match = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `match` field - pub struct r#match(()); ///Marker type for the `contact_index` field pub struct contact_index(()); + ///Marker type for the `match` field + pub struct r#match(()); } } @@ -267,8 +267,8 @@ where impl MatchAndContactIndexBuilder where St: match_and_contact_index_state::State, - St::Match: match_and_contact_index_state::IsSet, St::ContactIndex: match_and_contact_index_state::IsSet, + St::Match: match_and_contact_index_state::IsSet, { /// Build the final struct. pub fn build(self) -> MatchAndContactIndex { @@ -435,37 +435,37 @@ pub mod notification_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type To; type From; + type To; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type To = Unset; type From = Unset; - } - ///State transition - sets the `to` field to Set - pub struct SetTo(PhantomData St>); - impl sealed::Sealed for SetTo {} - impl State for SetTo { - type To = Set; - type From = St::From; + type To = Unset; } ///State transition - sets the `from` field to Set pub struct SetFrom(PhantomData St>); impl sealed::Sealed for SetFrom {} impl State for SetFrom { - type To = St::To; type From = Set; + type To = St::To; + } + ///State transition - sets the `to` field to Set + pub struct SetTo(PhantomData St>); + impl sealed::Sealed for SetTo {} + impl State for SetTo { + type From = St::From; + type To = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `to` field - pub struct to(()); ///Marker type for the `from` field pub struct from(()); + ///Marker type for the `to` field + pub struct to(()); } } @@ -535,8 +535,8 @@ where impl NotificationBuilder where St: notification_state::State, - St::To: notification_state::IsSet, St::From: notification_state::IsSet, + St::To: notification_state::IsSet, { /// Build the final struct. pub fn build(self) -> Notification { diff --git a/crates/jacquard-api/src/app_bsky/contact/send_notification.rs b/crates/jacquard-api/src/app_bsky/contact/send_notification.rs index ee78c343..a52afc9a 100644 --- a/crates/jacquard-api/src/app_bsky/contact/send_notification.rs +++ b/crates/jacquard-api/src/app_bsky/contact/send_notification.rs @@ -74,37 +74,37 @@ pub mod send_notification_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type From; type To; + type From; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type From = Unset; type To = Unset; - } - ///State transition - sets the `from` field to Set - pub struct SetFrom(PhantomData St>); - impl sealed::Sealed for SetFrom {} - impl State for SetFrom { - type From = Set; - type To = St::To; + type From = Unset; } ///State transition - sets the `to` field to Set pub struct SetTo(PhantomData St>); impl sealed::Sealed for SetTo {} impl State for SetTo { - type From = St::From; type To = Set; + type From = St::From; + } + ///State transition - sets the `from` field to Set + pub struct SetFrom(PhantomData St>); + impl sealed::Sealed for SetFrom {} + impl State for SetFrom { + type To = St::To; + type From = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `from` field - pub struct from(()); ///Marker type for the `to` field pub struct to(()); + ///Marker type for the `from` field + pub struct from(()); } } @@ -174,8 +174,8 @@ where impl SendNotificationBuilder where St: send_notification_state::State, - St::From: send_notification_state::IsSet, St::To: send_notification_state::IsSet, + St::From: send_notification_state::IsSet, { /// Build the final struct. pub fn build(self) -> SendNotification { diff --git a/crates/jacquard-api/src/app_bsky/draft.rs b/crates/jacquard-api/src/app_bsky/draft.rs index c1addbb7..548a0035 100644 --- a/crates/jacquard-api/src/app_bsky/draft.rs +++ b/crates/jacquard-api/src/app_bsky/draft.rs @@ -1800,66 +1800,66 @@ pub mod draft_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type Id; - type Draft; type UpdatedAt; + type Draft; + type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type Id = Unset; - type Draft = Unset; type UpdatedAt = Unset; + type Draft = Unset; + type Id = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type Id = St::Id; - type Draft = St::Draft; type UpdatedAt = St::UpdatedAt; + type Draft = St::Draft; + type Id = St::Id; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { type CreatedAt = St::CreatedAt; - type Id = Set; + type UpdatedAt = Set; type Draft = St::Draft; - type UpdatedAt = St::UpdatedAt; + type Id = St::Id; } ///State transition - sets the `draft` field to Set pub struct SetDraft(PhantomData St>); impl sealed::Sealed for SetDraft {} impl State for SetDraft { type CreatedAt = St::CreatedAt; - type Id = St::Id; - type Draft = Set; type UpdatedAt = St::UpdatedAt; + type Draft = Set; + type Id = St::Id; } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { type CreatedAt = St::CreatedAt; - type Id = St::Id; + type UpdatedAt = St::UpdatedAt; type Draft = St::Draft; - type UpdatedAt = Set; + type Id = 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 `id` field - pub struct id(()); - ///Marker type for the `draft` field - pub struct draft(()); ///Marker type for the `updated_at` field pub struct updated_at(()); + ///Marker type for the `draft` field + pub struct draft(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -1968,9 +1968,9 @@ impl DraftViewBuilder where St: draft_view_state::State, St::CreatedAt: draft_view_state::IsSet, - St::Id: draft_view_state::IsSet, - St::Draft: draft_view_state::IsSet, St::UpdatedAt: draft_view_state::IsSet, + St::Draft: draft_view_state::IsSet, + St::Id: draft_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> DraftView { diff --git a/crates/jacquard-api/src/app_bsky/embed.rs b/crates/jacquard-api/src/app_bsky/embed.rs index 93a84294..b1efa9ff 100644 --- a/crates/jacquard-api/src/app_bsky/embed.rs +++ b/crates/jacquard-api/src/app_bsky/embed.rs @@ -86,37 +86,37 @@ pub mod aspect_ratio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Width; type Height; + type Width; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Width = Unset; type Height = Unset; - } - ///State transition - sets the `width` field to Set - pub struct SetWidth(PhantomData St>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = St::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData St>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = St::Width; type Height = Set; + type Width = St::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData St>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = St::Height; + type Width = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `width` field - pub struct width(()); ///Marker type for the `height` field pub struct height(()); + ///Marker type for the `width` field + pub struct width(()); } } @@ -186,8 +186,8 @@ where impl AspectRatioBuilder where St: aspect_ratio_state::State, - St::Width: aspect_ratio_state::IsSet, St::Height: aspect_ratio_state::IsSet, + St::Width: aspect_ratio_state::IsSet, { /// Build the final struct. pub fn build(self) -> AspectRatio { diff --git a/crates/jacquard-api/src/app_bsky/embed/external.rs b/crates/jacquard-api/src/app_bsky/embed/external.rs index db0d1122..90b61b98 100644 --- a/crates/jacquard-api/src/app_bsky/embed/external.rs +++ b/crates/jacquard-api/src/app_bsky/embed/external.rs @@ -693,50 +693,50 @@ pub mod view_external_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Uri; - type Description; type Title; + type Description; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Uri = Unset; - type Description = Unset; type Title = Unset; + type Description = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Uri = Set; - type Description = St::Description; - type Title = St::Title; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { - type Uri = St::Uri; - type Description = Set; type Title = St::Title; + type Description = St::Description; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { type Uri = St::Uri; - type Description = St::Description; type Title = Set; + type Description = St::Description; + } + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type Uri = St::Uri; + type Title = St::Title; + type Description = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `description` field - pub struct description(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `description` field + pub struct description(()); } } @@ -839,8 +839,8 @@ impl ViewExternalBuilder where St: view_external_state::State, St::Uri: view_external_state::IsSet, - St::Description: view_external_state::IsSet, St::Title: view_external_state::IsSet, + St::Description: view_external_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewExternal { diff --git a/crates/jacquard-api/src/app_bsky/embed/images.rs b/crates/jacquard-api/src/app_bsky/embed/images.rs index 1ce4ed00..2f337f42 100644 --- a/crates/jacquard-api/src/app_bsky/embed/images.rs +++ b/crates/jacquard-api/src/app_bsky/embed/images.rs @@ -206,37 +206,37 @@ pub mod image_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Image; type Alt; + type Image; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Image = Unset; type Alt = Unset; - } - ///State transition - sets the `image` field to Set - pub struct SetImage(PhantomData St>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type Alt = St::Alt; + type Image = Unset; } ///State transition - sets the `alt` field to Set pub struct SetAlt(PhantomData St>); impl sealed::Sealed for SetAlt {} impl State for SetAlt { - type Image = St::Image; type Alt = Set; + type Image = St::Image; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData St>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type Alt = St::Alt; + type Image = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `image` field - pub struct image(()); ///Marker type for the `alt` field pub struct alt(()); + ///Marker type for the `image` field + pub struct image(()); } } @@ -319,8 +319,8 @@ where impl ImageBuilder where St: image_state::State, - St::Image: image_state::IsSet, St::Alt: image_state::IsSet, + St::Image: image_state::IsSet, { /// Build the final struct. pub fn build(self) -> Image { diff --git a/crates/jacquard-api/src/app_bsky/embed/record.rs b/crates/jacquard-api/src/app_bsky/embed/record.rs index 7e546ef5..f5d3f428 100644 --- a/crates/jacquard-api/src/app_bsky/embed/record.rs +++ b/crates/jacquard-api/src/app_bsky/embed/record.rs @@ -706,51 +706,51 @@ pub mod view_blocked_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Blocked; type Author; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Blocked = Unset; type Author = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Blocked = St::Blocked; - type Author = St::Author; + type Uri = Unset; } ///State transition - sets the `blocked` field to Set pub struct SetBlocked(PhantomData St>); impl sealed::Sealed for SetBlocked {} impl State for SetBlocked { - type Uri = St::Uri; type Blocked = Set; type Author = St::Author; + type Uri = St::Uri; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Uri = St::Uri; type Blocked = St::Blocked; type Author = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Blocked = St::Blocked; + type Author = St::Author; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `blocked` field pub struct blocked(()); ///Marker type for the `author` field pub struct author(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -839,9 +839,9 @@ where impl ViewBlockedBuilder where St: view_blocked_state::State, - St::Uri: view_blocked_state::IsSet, St::Blocked: view_blocked_state::IsSet, St::Author: view_blocked_state::IsSet, + St::Uri: view_blocked_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewBlocked { @@ -1146,9 +1146,9 @@ pub mod view_record_state { pub trait State: sealed::Sealed { type Cid; type Author; + type IndexedAt; type Value; type Uri; - type IndexedAt; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -1156,9 +1156,9 @@ pub mod view_record_state { impl State for Empty { type Cid = Unset; type Author = Unset; + type IndexedAt = Unset; type Value = Unset; type Uri = Unset; - type IndexedAt = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); @@ -1166,9 +1166,9 @@ pub mod view_record_state { impl State for SetCid { type Cid = Set; type Author = St::Author; + type IndexedAt = St::IndexedAt; type Value = St::Value; type Uri = St::Uri; - type IndexedAt = St::IndexedAt; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); @@ -1176,9 +1176,19 @@ pub mod view_record_state { impl State for SetAuthor { type Cid = St::Cid; type Author = Set; + type IndexedAt = St::IndexedAt; + type Value = St::Value; + type Uri = St::Uri; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Cid = St::Cid; + type Author = St::Author; + type IndexedAt = Set; type Value = St::Value; type Uri = St::Uri; - type IndexedAt = St::IndexedAt; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); @@ -1186,9 +1196,9 @@ pub mod view_record_state { impl State for SetValue { type Cid = St::Cid; type Author = St::Author; + type IndexedAt = St::IndexedAt; type Value = Set; type Uri = St::Uri; - type IndexedAt = St::IndexedAt; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); @@ -1196,19 +1206,9 @@ pub mod view_record_state { impl State for SetUri { type Cid = St::Cid; type Author = St::Author; - type Value = St::Value; - type Uri = Set; type IndexedAt = St::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type Cid = St::Cid; - type Author = St::Author; type Value = St::Value; - type Uri = St::Uri; - type IndexedAt = Set; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -1217,12 +1217,12 @@ pub mod view_record_state { pub struct cid(()); ///Marker type for the `author` field pub struct author(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `value` field pub struct value(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); } } @@ -1444,9 +1444,9 @@ where St: view_record_state::State, St::Cid: view_record_state::IsSet, St::Author: view_record_state::IsSet, + St::IndexedAt: view_record_state::IsSet, St::Value: view_record_state::IsSet, St::Uri: view_record_state::IsSet, - St::IndexedAt: view_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewRecord { diff --git a/crates/jacquard-api/src/app_bsky/embed/record_with_media.rs b/crates/jacquard-api/src/app_bsky/embed/record_with_media.rs index 515d1eca..7e77f49b 100644 --- a/crates/jacquard-api/src/app_bsky/embed/record_with_media.rs +++ b/crates/jacquard-api/src/app_bsky/embed/record_with_media.rs @@ -117,37 +117,37 @@ pub mod record_with_media_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Record; type Media; + type Record; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Record = Unset; type Media = Unset; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Record = Set; - type Media = St::Media; + type Record = Unset; } ///State transition - sets the `media` field to Set pub struct SetMedia(PhantomData St>); impl sealed::Sealed for SetMedia {} impl State for SetMedia { - type Record = St::Record; type Media = Set; + type Record = St::Record; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Media = St::Media; + type Record = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `record` field - pub struct record(()); ///Marker type for the `media` field pub struct media(()); + ///Marker type for the `record` field + pub struct record(()); } } @@ -217,8 +217,8 @@ where impl RecordWithMediaBuilder where St: record_with_media_state::State, - St::Record: record_with_media_state::IsSet, St::Media: record_with_media_state::IsSet, + St::Record: record_with_media_state::IsSet, { /// Build the final struct. pub fn build(self) -> RecordWithMedia { @@ -331,37 +331,37 @@ pub mod view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Media; type Record; + type Media; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Media = Unset; type Record = Unset; - } - ///State transition - sets the `media` field to Set - pub struct SetMedia(PhantomData St>); - impl sealed::Sealed for SetMedia {} - impl State for SetMedia { - type Media = Set; - type Record = St::Record; + type Media = Unset; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Media = St::Media; type Record = Set; + type Media = St::Media; + } + ///State transition - sets the `media` field to Set + pub struct SetMedia(PhantomData St>); + impl sealed::Sealed for SetMedia {} + impl State for SetMedia { + type Record = St::Record; + type Media = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `media` field - pub struct media(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `media` field + pub struct media(()); } } @@ -431,8 +431,8 @@ where impl ViewBuilder where St: view_state::State, - St::Media: view_state::IsSet, St::Record: view_state::IsSet, + St::Media: view_state::IsSet, { /// Build the final struct. pub fn build(self) -> View { diff --git a/crates/jacquard-api/src/app_bsky/embed/video.rs b/crates/jacquard-api/src/app_bsky/embed/video.rs index ff4a74cb..836f7aba 100644 --- a/crates/jacquard-api/src/app_bsky/embed/video.rs +++ b/crates/jacquard-api/src/app_bsky/embed/video.rs @@ -423,37 +423,37 @@ pub mod caption_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Lang; type File; + type Lang; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Lang = Unset; type File = Unset; - } - ///State transition - sets the `lang` field to Set - pub struct SetLang(PhantomData St>); - impl sealed::Sealed for SetLang {} - impl State for SetLang { - type Lang = Set; - type File = St::File; + type Lang = Unset; } ///State transition - sets the `file` field to Set pub struct SetFile(PhantomData St>); impl sealed::Sealed for SetFile {} impl State for SetFile { - type Lang = St::Lang; type File = Set; + type Lang = St::Lang; + } + ///State transition - sets the `lang` field to Set + pub struct SetLang(PhantomData St>); + impl sealed::Sealed for SetLang {} + impl State for SetLang { + type File = St::File; + type Lang = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `lang` field - pub struct lang(()); ///Marker type for the `file` field pub struct file(()); + ///Marker type for the `lang` field + pub struct lang(()); } } @@ -523,8 +523,8 @@ where impl CaptionBuilder where St: caption_state::State, - St::Lang: caption_state::IsSet, St::File: caption_state::IsSet, + St::Lang: caption_state::IsSet, { /// Build the final struct. pub fn build(self) -> Caption { diff --git a/crates/jacquard-api/src/app_bsky/feed.rs b/crates/jacquard-api/src/app_bsky/feed.rs index a9e42654..43ad3a93 100644 --- a/crates/jacquard-api/src/app_bsky/feed.rs +++ b/crates/jacquard-api/src/app_bsky/feed.rs @@ -2466,105 +2466,105 @@ pub mod generator_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Uri; - type DisplayName; type IndexedAt; - type Creator; + type Did; type Cid; + type Creator; + type DisplayName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Uri = Unset; - type DisplayName = Unset; type IndexedAt = Unset; - type Creator = Unset; + type Did = Unset; type Cid = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Uri = St::Uri; - type DisplayName = St::DisplayName; - type IndexedAt = St::IndexedAt; - type Creator = St::Creator; - type Cid = St::Cid; + type Creator = Unset; + type DisplayName = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Did = St::Did; type Uri = Set; - type DisplayName = St::DisplayName; type IndexedAt = St::IndexedAt; - type Creator = St::Creator; - type Cid = St::Cid; - } - ///State transition - sets the `display_name` field to Set - pub struct SetDisplayName(PhantomData St>); - impl sealed::Sealed for SetDisplayName {} - impl State for SetDisplayName { type Did = St::Did; - type Uri = St::Uri; - type DisplayName = Set; - type IndexedAt = St::IndexedAt; - type Creator = St::Creator; type Cid = St::Cid; + type Creator = St::Creator; + type DisplayName = St::DisplayName; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Did = St::Did; type Uri = St::Uri; - type DisplayName = St::DisplayName; type IndexedAt = Set; - type Creator = St::Creator; + type Did = St::Did; type Cid = St::Cid; + type Creator = St::Creator; + type DisplayName = St::DisplayName; } - ///State transition - sets the `creator` field to Set - pub struct SetCreator(PhantomData St>); - impl sealed::Sealed for SetCreator {} - impl State for SetCreator { - type Did = St::Did; + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { type Uri = St::Uri; - type DisplayName = St::DisplayName; type IndexedAt = St::IndexedAt; - type Creator = Set; + type Did = Set; type Cid = St::Cid; + type Creator = St::Creator; + type DisplayName = St::DisplayName; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Uri = St::Uri; + type IndexedAt = St::IndexedAt; type Did = St::Did; + type Cid = Set; + type Creator = St::Creator; + type DisplayName = St::DisplayName; + } + ///State transition - sets the `creator` field to Set + pub struct SetCreator(PhantomData St>); + impl sealed::Sealed for SetCreator {} + impl State for SetCreator { type Uri = St::Uri; + type IndexedAt = St::IndexedAt; + type Did = St::Did; + type Cid = St::Cid; + type Creator = Set; type DisplayName = St::DisplayName; + } + ///State transition - sets the `display_name` field to Set + pub struct SetDisplayName(PhantomData St>); + impl sealed::Sealed for SetDisplayName {} + impl State for SetDisplayName { + type Uri = St::Uri; type IndexedAt = St::IndexedAt; + type Did = St::Did; + type Cid = St::Cid; type Creator = St::Creator; - type Cid = Set; + type DisplayName = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `display_name` field - pub struct display_name(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `creator` field - pub struct creator(()); + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `creator` field + pub struct creator(()); + ///Marker type for the `display_name` field + pub struct display_name(()); } } @@ -2856,12 +2856,12 @@ impl GeneratorViewBuilder { impl GeneratorViewBuilder where St: generator_view_state::State, - St::Did: generator_view_state::IsSet, St::Uri: generator_view_state::IsSet, - St::DisplayName: generator_view_state::IsSet, St::IndexedAt: generator_view_state::IsSet, - St::Creator: generator_view_state::IsSet, + St::Did: generator_view_state::IsSet, St::Cid: generator_view_state::IsSet, + St::Creator: generator_view_state::IsSet, + St::DisplayName: generator_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> GeneratorView { @@ -2918,37 +2918,37 @@ pub mod not_found_post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type NotFound; type Uri; + type NotFound; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type NotFound = Unset; type Uri = Unset; - } - ///State transition - sets the `not_found` field to Set - pub struct SetNotFound(PhantomData St>); - impl sealed::Sealed for SetNotFound {} - impl State for SetNotFound { - type NotFound = Set; - type Uri = St::Uri; + type NotFound = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type NotFound = St::NotFound; type Uri = Set; + type NotFound = St::NotFound; + } + ///State transition - sets the `not_found` field to Set + pub struct SetNotFound(PhantomData St>); + impl sealed::Sealed for SetNotFound {} + impl State for SetNotFound { + type Uri = St::Uri; + type NotFound = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `not_found` field - pub struct not_found(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `not_found` field + pub struct not_found(()); } } @@ -3018,8 +3018,8 @@ where impl NotFoundPostBuilder where St: not_found_post_state::State, - St::NotFound: not_found_post_state::IsSet, St::Uri: not_found_post_state::IsSet, + St::NotFound: not_found_post_state::IsSet, { /// Build the final struct. pub fn build(self) -> NotFoundPost { @@ -3052,85 +3052,85 @@ pub mod post_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Author; - type Cid; + type IndexedAt; type Uri; type Record; - type IndexedAt; + type Cid; + type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Author = Unset; - type Cid = Unset; + type IndexedAt = Unset; type Uri = Unset; type Record = Unset; - type IndexedAt = Unset; + type Cid = Unset; + type Author = Unset; } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Author = Set; - type Cid = St::Cid; + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type IndexedAt = Set; type Uri = St::Uri; type Record = St::Record; - type IndexedAt = St::IndexedAt; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { + type Cid = St::Cid; type Author = St::Author; - type Cid = Set; - type Uri = St::Uri; - type Record = St::Record; - type IndexedAt = St::IndexedAt; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Author = St::Author; - type Cid = St::Cid; + type IndexedAt = St::IndexedAt; type Uri = Set; type Record = St::Record; - type IndexedAt = St::IndexedAt; + type Cid = St::Cid; + type Author = St::Author; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Author = St::Author; - type Cid = St::Cid; + type IndexedAt = St::IndexedAt; type Uri = St::Uri; type Record = Set; - type IndexedAt = St::IndexedAt; + type Cid = St::Cid; + type Author = St::Author; } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type IndexedAt = St::IndexedAt; + type Uri = St::Uri; + type Record = St::Record; + type Cid = Set; type Author = St::Author; - type Cid = St::Cid; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type IndexedAt = St::IndexedAt; type Uri = St::Uri; type Record = St::Record; - type IndexedAt = Set; + type Cid = St::Cid; + type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `author` field - pub struct author(()); - ///Marker type for the `cid` field - pub struct cid(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `record` field pub struct record(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `author` field + pub struct author(()); } } @@ -3422,11 +3422,11 @@ impl PostViewBuilder { impl PostViewBuilder where St: post_view_state::State, - St::Author: post_view_state::IsSet, - St::Cid: post_view_state::IsSet, + St::IndexedAt: post_view_state::IsSet, St::Uri: post_view_state::IsSet, St::Record: post_view_state::IsSet, - St::IndexedAt: post_view_state::IsSet, + St::Cid: post_view_state::IsSet, + St::Author: post_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> PostView { diff --git a/crates/jacquard-api/src/app_bsky/feed/get_likes.rs b/crates/jacquard-api/src/app_bsky/feed/get_likes.rs index 95471c81..37791e24 100644 --- a/crates/jacquard-api/src/app_bsky/feed/get_likes.rs +++ b/crates/jacquard-api/src/app_bsky/feed/get_likes.rs @@ -115,51 +115,51 @@ pub mod like_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Actor; type IndexedAt; type CreatedAt; + type Actor; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Actor = Unset; type IndexedAt = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `actor` field to Set - pub struct SetActor(PhantomData St>); - impl sealed::Sealed for SetActor {} - impl State for SetActor { - type Actor = Set; - type IndexedAt = St::IndexedAt; - type CreatedAt = St::CreatedAt; + type Actor = Unset; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Actor = St::Actor; type IndexedAt = Set; type CreatedAt = St::CreatedAt; + type Actor = St::Actor; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Actor = St::Actor; type IndexedAt = St::IndexedAt; type CreatedAt = Set; + type Actor = St::Actor; + } + ///State transition - sets the `actor` field to Set + pub struct SetActor(PhantomData St>); + impl sealed::Sealed for SetActor {} + impl State for SetActor { + type IndexedAt = St::IndexedAt; + type CreatedAt = St::CreatedAt; + type Actor = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `actor` field - pub struct actor(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `actor` field + pub struct actor(()); } } @@ -248,9 +248,9 @@ where impl LikeBuilder where St: like_state::State, - St::Actor: like_state::IsSet, St::IndexedAt: like_state::IsSet, St::CreatedAt: like_state::IsSet, + St::Actor: like_state::IsSet, { /// Build the final struct. pub fn build(self) -> Like { diff --git a/crates/jacquard-api/src/app_bsky/feed/post.rs b/crates/jacquard-api/src/app_bsky/feed/post.rs index 2318fbdf..958a8ced 100644 --- a/crates/jacquard-api/src/app_bsky/feed/post.rs +++ b/crates/jacquard-api/src/app_bsky/feed/post.rs @@ -302,51 +302,51 @@ pub mod entity_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; - type Index; type Value; + type Index; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; - type Index = Unset; type Value = Unset; + type Index = Unset; + type Type = Unset; } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type Value = Set; type Index = St::Index; - type Value = St::Value; + type Type = St::Type; } ///State transition - sets the `index` field to Set pub struct SetIndex(PhantomData St>); impl sealed::Sealed for SetIndex {} impl State for SetIndex { - type Type = St::Type; - type Index = Set; type Value = St::Value; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { + type Index = Set; type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Value = St::Value; type Index = St::Index; - type Value = Set; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); - ///Marker type for the `index` field - pub struct index(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `index` field + pub struct index(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -435,9 +435,9 @@ where impl EntityBuilder where St: entity_state::State, - St::Type: entity_state::IsSet, - St::Index: entity_state::IsSet, St::Value: entity_state::IsSet, + St::Index: entity_state::IsSet, + St::Type: entity_state::IsSet, { /// Build the final struct. pub fn build(self) -> Entity { @@ -1111,37 +1111,37 @@ pub mod text_slice_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type End; type Start; + type End; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type End = Unset; type Start = Unset; - } - ///State transition - sets the `end` field to Set - pub struct SetEnd(PhantomData St>); - impl sealed::Sealed for SetEnd {} - impl State for SetEnd { - type End = Set; - type Start = St::Start; + type End = Unset; } ///State transition - sets the `start` field to Set pub struct SetStart(PhantomData St>); impl sealed::Sealed for SetStart {} impl State for SetStart { - type End = St::End; type Start = Set; + type End = St::End; + } + ///State transition - sets the `end` field to Set + pub struct SetEnd(PhantomData St>); + impl sealed::Sealed for SetEnd {} + impl State for SetEnd { + type Start = St::Start; + type End = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `end` field - pub struct end(()); ///Marker type for the `start` field pub struct start(()); + ///Marker type for the `end` field + pub struct end(()); } } @@ -1211,8 +1211,8 @@ where impl TextSliceBuilder where St: text_slice_state::State, - St::End: text_slice_state::IsSet, St::Start: text_slice_state::IsSet, + St::End: text_slice_state::IsSet, { /// Build the final struct. pub fn build(self) -> TextSlice { diff --git a/crates/jacquard-api/src/app_bsky/feed/threadgate.rs b/crates/jacquard-api/src/app_bsky/feed/threadgate.rs index 1905fccb..618236d6 100644 --- a/crates/jacquard-api/src/app_bsky/feed/threadgate.rs +++ b/crates/jacquard-api/src/app_bsky/feed/threadgate.rs @@ -509,37 +509,37 @@ pub mod threadgate_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Post; type CreatedAt; + type Post; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Post = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `post` field to Set - pub struct SetPost(PhantomData St>); - impl sealed::Sealed for SetPost {} - impl State for SetPost { - type Post = Set; - type CreatedAt = St::CreatedAt; + type Post = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Post = St::Post; type CreatedAt = Set; + type Post = St::Post; + } + ///State transition - sets the `post` field to Set + pub struct SetPost(PhantomData St>); + impl sealed::Sealed for SetPost {} + impl State for SetPost { + type CreatedAt = St::CreatedAt; + type Post = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `post` field - pub struct post(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `post` field + pub struct post(()); } } @@ -643,8 +643,8 @@ where impl ThreadgateBuilder where St: threadgate_state::State, - St::Post: threadgate_state::IsSet, St::CreatedAt: threadgate_state::IsSet, + St::Post: threadgate_state::IsSet, { /// Build the final struct. pub fn build(self) -> Threadgate { diff --git a/crates/jacquard-api/src/app_bsky/graph.rs b/crates/jacquard-api/src/app_bsky/graph.rs index bf4f022a..6447fc94 100644 --- a/crates/jacquard-api/src/app_bsky/graph.rs +++ b/crates/jacquard-api/src/app_bsky/graph.rs @@ -1350,105 +1350,105 @@ pub mod list_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Purpose; - type Name; type IndexedAt; - type Creator; type Uri; + type Cid; + type Name; + type Creator; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Purpose = Unset; - type Name = Unset; type IndexedAt = Unset; - type Creator = Unset; type Uri = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Purpose = St::Purpose; - type Name = St::Name; - type IndexedAt = St::IndexedAt; - type Creator = St::Creator; - type Uri = St::Uri; + type Cid = Unset; + type Name = Unset; + type Creator = Unset; } ///State transition - sets the `purpose` field to Set pub struct SetPurpose(PhantomData St>); impl sealed::Sealed for SetPurpose {} impl State for SetPurpose { - type Cid = St::Cid; type Purpose = Set; - type Name = St::Name; type IndexedAt = St::IndexedAt; - type Creator = St::Creator; type Uri = St::Uri; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { type Cid = St::Cid; - type Purpose = St::Purpose; - type Name = Set; - type IndexedAt = St::IndexedAt; + type Name = St::Name; type Creator = St::Creator; - type Uri = St::Uri; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Cid = St::Cid; type Purpose = St::Purpose; - type Name = St::Name; type IndexedAt = Set; - type Creator = St::Creator; type Uri = St::Uri; - } - ///State transition - sets the `creator` field to Set - pub struct SetCreator(PhantomData St>); - impl sealed::Sealed for SetCreator {} - impl State for SetCreator { type Cid = St::Cid; - type Purpose = St::Purpose; type Name = St::Name; - type IndexedAt = St::IndexedAt; - type Creator = Set; - type Uri = St::Uri; + type Creator = St::Creator; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { + type Purpose = St::Purpose; + type IndexedAt = St::IndexedAt; + type Uri = Set; type Cid = St::Cid; + type Name = St::Name; + type Creator = St::Creator; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { type Purpose = St::Purpose; + type IndexedAt = St::IndexedAt; + type Uri = St::Uri; + type Cid = Set; type Name = St::Name; + type Creator = St::Creator; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Purpose = St::Purpose; type IndexedAt = St::IndexedAt; + type Uri = St::Uri; + type Cid = St::Cid; + type Name = Set; type Creator = St::Creator; - type Uri = Set; + } + ///State transition - sets the `creator` field to Set + pub struct SetCreator(PhantomData St>); + impl sealed::Sealed for SetCreator {} + impl State for SetCreator { + type Purpose = St::Purpose; + type IndexedAt = St::IndexedAt; + type Uri = St::Uri; + type Cid = St::Cid; + type Name = St::Name; + type Creator = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `purpose` field pub struct purpose(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `creator` field - pub struct creator(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `name` field + pub struct name(()); + ///Marker type for the `creator` field + pub struct creator(()); } } @@ -1704,12 +1704,12 @@ impl ListViewBuilder { impl ListViewBuilder where St: list_view_state::State, - St::Cid: list_view_state::IsSet, St::Purpose: list_view_state::IsSet, - St::Name: list_view_state::IsSet, St::IndexedAt: list_view_state::IsSet, - St::Creator: list_view_state::IsSet, St::Uri: list_view_state::IsSet, + St::Cid: list_view_state::IsSet, + St::Name: list_view_state::IsSet, + St::Creator: list_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ListView { @@ -1759,67 +1759,67 @@ pub mod list_view_basic_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Purpose; + type Name; type Uri; + type Purpose; type Cid; - type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Purpose = Unset; + type Name = Unset; type Uri = Unset; + type Purpose = Unset; type Cid = Unset; - type Name = Unset; } - ///State transition - sets the `purpose` field to Set - pub struct SetPurpose(PhantomData St>); - impl sealed::Sealed for SetPurpose {} - impl State for SetPurpose { - type Purpose = Set; + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Name = Set; type Uri = St::Uri; + type Purpose = St::Purpose; type Cid = St::Cid; - type Name = St::Name; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Purpose = St::Purpose; + type Name = St::Name; type Uri = Set; + type Purpose = St::Purpose; type Cid = St::Cid; + } + ///State transition - sets the `purpose` field to Set + pub struct SetPurpose(PhantomData St>); + impl sealed::Sealed for SetPurpose {} + impl State for SetPurpose { type Name = St::Name; + type Uri = St::Uri; + type Purpose = Set; + type Cid = St::Cid; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Purpose = St::Purpose; - type Uri = St::Uri; - type Cid = Set; type Name = St::Name; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Purpose = St::Purpose; type Uri = St::Uri; - type Cid = St::Cid; - type Name = Set; + type Purpose = St::Purpose; + type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `purpose` field - pub struct purpose(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `purpose` field + pub struct purpose(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `name` field - pub struct name(()); } } @@ -2005,10 +2005,10 @@ impl ListViewBasicBuilder { impl ListViewBasicBuilder where St: list_view_basic_state::State, - St::Purpose: list_view_basic_state::IsSet, + St::Name: list_view_basic_state::IsSet, St::Uri: list_view_basic_state::IsSet, + St::Purpose: list_view_basic_state::IsSet, St::Cid: list_view_basic_state::IsSet, - St::Name: list_view_basic_state::IsSet, { /// Build the final struct. pub fn build(self) -> ListViewBasic { @@ -2055,37 +2055,37 @@ pub mod not_found_actor_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type NotFound; type Actor; + type NotFound; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type NotFound = Unset; type Actor = Unset; - } - ///State transition - sets the `not_found` field to Set - pub struct SetNotFound(PhantomData St>); - impl sealed::Sealed for SetNotFound {} - impl State for SetNotFound { - type NotFound = Set; - type Actor = St::Actor; + type NotFound = Unset; } ///State transition - sets the `actor` field to Set pub struct SetActor(PhantomData St>); impl sealed::Sealed for SetActor {} impl State for SetActor { - type NotFound = St::NotFound; type Actor = Set; + type NotFound = St::NotFound; + } + ///State transition - sets the `not_found` field to Set + pub struct SetNotFound(PhantomData St>); + impl sealed::Sealed for SetNotFound {} + impl State for SetNotFound { + type Actor = St::Actor; + type NotFound = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `not_found` field - pub struct not_found(()); ///Marker type for the `actor` field pub struct actor(()); + ///Marker type for the `not_found` field + pub struct not_found(()); } } @@ -2155,8 +2155,8 @@ where impl NotFoundActorBuilder where St: not_found_actor_state::State, - St::NotFound: not_found_actor_state::IsSet, St::Actor: not_found_actor_state::IsSet, + St::NotFound: not_found_actor_state::IsSet, { /// Build the final struct. pub fn build(self) -> NotFoundActor { @@ -2743,85 +2743,85 @@ pub mod starter_pack_view_basic_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type IndexedAt; - type Record; type Creator; + type IndexedAt; type Uri; type Cid; + type Record; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type IndexedAt = Unset; - type Record = Unset; type Creator = Unset; + type IndexedAt = Unset; type Uri = Unset; type Cid = Unset; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type IndexedAt = Set; - type Record = St::Record; - type Creator = St::Creator; - type Uri = St::Uri; - type Cid = St::Cid; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type IndexedAt = St::IndexedAt; - type Record = Set; - type Creator = St::Creator; - type Uri = St::Uri; - type Cid = St::Cid; + type Record = Unset; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData St>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { + type Creator = Set; type IndexedAt = St::IndexedAt; + type Uri = St::Uri; + type Cid = St::Cid; type Record = St::Record; - type Creator = Set; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Creator = St::Creator; + type IndexedAt = Set; type Uri = St::Uri; type Cid = St::Cid; + type Record = St::Record; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type IndexedAt = St::IndexedAt; - type Record = St::Record; type Creator = St::Creator; + type IndexedAt = St::IndexedAt; type Uri = Set; type Cid = St::Cid; + type Record = St::Record; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Creator = St::Creator; type IndexedAt = St::IndexedAt; + type Uri = St::Uri; + type Cid = Set; type Record = St::Record; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { type Creator = St::Creator; + type IndexedAt = St::IndexedAt; type Uri = St::Uri; - type Cid = Set; + type Cid = St::Cid; + type Record = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); - ///Marker type for the `record` field - pub struct record(()); ///Marker type for the `creator` field pub struct creator(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `record` field + pub struct record(()); } } @@ -3031,11 +3031,11 @@ where impl StarterPackViewBasicBuilder where St: starter_pack_view_basic_state::State, - St::IndexedAt: starter_pack_view_basic_state::IsSet, - St::Record: starter_pack_view_basic_state::IsSet, St::Creator: starter_pack_view_basic_state::IsSet, + St::IndexedAt: starter_pack_view_basic_state::IsSet, St::Uri: starter_pack_view_basic_state::IsSet, St::Cid: starter_pack_view_basic_state::IsSet, + St::Record: starter_pack_view_basic_state::IsSet, { /// Build the final struct. pub fn build(self) -> StarterPackViewBasic { diff --git a/crates/jacquard-api/src/app_bsky/graph/block.rs b/crates/jacquard-api/src/app_bsky/graph/block.rs index 94c4a9e3..c126245c 100644 --- a/crates/jacquard-api/src/app_bsky/graph/block.rs +++ b/crates/jacquard-api/src/app_bsky/graph/block.rs @@ -113,37 +113,37 @@ pub mod block_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -213,8 +213,8 @@ where impl BlockBuilder where St: block_state::State, - St::Subject: block_state::IsSet, St::CreatedAt: block_state::IsSet, + St::Subject: block_state::IsSet, { /// Build the final struct. pub fn build(self) -> Block { diff --git a/crates/jacquard-api/src/app_bsky/graph/follow.rs b/crates/jacquard-api/src/app_bsky/graph/follow.rs index f5eb90a7..e8ed05ee 100644 --- a/crates/jacquard-api/src/app_bsky/graph/follow.rs +++ b/crates/jacquard-api/src/app_bsky/graph/follow.rs @@ -115,37 +115,37 @@ pub mod follow_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -228,8 +228,8 @@ impl FollowBuilder { impl FollowBuilder where St: follow_state::State, - St::CreatedAt: follow_state::IsSet, St::Subject: follow_state::IsSet, + St::CreatedAt: follow_state::IsSet, { /// Build the final struct. pub fn build(self) -> Follow { diff --git a/crates/jacquard-api/src/app_bsky/graph/list.rs b/crates/jacquard-api/src/app_bsky/graph/list.rs index 15ad1ce7..4ff81b97 100644 --- a/crates/jacquard-api/src/app_bsky/graph/list.rs +++ b/crates/jacquard-api/src/app_bsky/graph/list.rs @@ -211,51 +211,51 @@ pub mod list_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Name; type CreatedAt; type Purpose; - type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Name = Unset; type CreatedAt = Unset; type Purpose = Unset; - type Name = Unset; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Name = Set; + type CreatedAt = St::CreatedAt; + type Purpose = St::Purpose; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Name = St::Name; type CreatedAt = Set; type Purpose = St::Purpose; - type Name = St::Name; } ///State transition - sets the `purpose` field to Set pub struct SetPurpose(PhantomData St>); impl sealed::Sealed for SetPurpose {} impl State for SetPurpose { - type CreatedAt = St::CreatedAt; - type Purpose = Set; type Name = St::Name; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { type CreatedAt = St::CreatedAt; - type Purpose = St::Purpose; - type Name = Set; + type Purpose = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `purpose` field pub struct purpose(()); - ///Marker type for the `name` field - pub struct name(()); } } @@ -407,9 +407,9 @@ where impl ListBuilder where St: list_state::State, + St::Name: list_state::IsSet, St::CreatedAt: list_state::IsSet, St::Purpose: list_state::IsSet, - St::Name: list_state::IsSet, { /// Build the final struct. pub fn build(self) -> List { diff --git a/crates/jacquard-api/src/app_bsky/graph/listitem.rs b/crates/jacquard-api/src/app_bsky/graph/listitem.rs index 4549c1f1..7a3b7b9f 100644 --- a/crates/jacquard-api/src/app_bsky/graph/listitem.rs +++ b/crates/jacquard-api/src/app_bsky/graph/listitem.rs @@ -115,51 +115,51 @@ pub mod listitem_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Subject; type List; type CreatedAt; - type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Subject = Unset; type List = Unset; type CreatedAt = Unset; - type Subject = Unset; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Subject = Set; + type List = St::List; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `list` field to Set pub struct SetList(PhantomData St>); impl sealed::Sealed for SetList {} impl State for SetList { + type Subject = St::Subject; type List = Set; type CreatedAt = St::CreatedAt; - type Subject = St::Subject; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type List = St::List; - type CreatedAt = Set; type Subject = St::Subject; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { type List = St::List; - type CreatedAt = St::CreatedAt; - type Subject = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `subject` field + pub struct subject(()); ///Marker type for the `list` field pub struct list(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `subject` field - pub struct subject(()); } } @@ -248,9 +248,9 @@ where impl ListitemBuilder where St: listitem_state::State, + St::Subject: listitem_state::IsSet, St::List: listitem_state::IsSet, St::CreatedAt: listitem_state::IsSet, - St::Subject: listitem_state::IsSet, { /// Build the final struct. pub fn build(self) -> Listitem { diff --git a/crates/jacquard-api/src/app_bsky/graph/starterpack.rs b/crates/jacquard-api/src/app_bsky/graph/starterpack.rs index 1b200764..856d52c2 100644 --- a/crates/jacquard-api/src/app_bsky/graph/starterpack.rs +++ b/crates/jacquard-api/src/app_bsky/graph/starterpack.rs @@ -432,49 +432,49 @@ pub mod starterpack_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type List; + type Name; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type List = Unset; + type Name = Unset; type CreatedAt = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type List = St::List; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `list` field to Set pub struct SetList(PhantomData St>); impl sealed::Sealed for SetList {} impl State for SetList { - type Name = St::Name; type List = Set; + type Name = St::Name; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type List = St::List; + type Name = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type List = St::List; + type Name = St::Name; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `list` field pub struct list(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -617,8 +617,8 @@ where impl StarterpackBuilder where St: starterpack_state::State, - St::Name: starterpack_state::IsSet, St::List: starterpack_state::IsSet, + St::Name: starterpack_state::IsSet, St::CreatedAt: starterpack_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_bsky/graph/verification.rs b/crates/jacquard-api/src/app_bsky/graph/verification.rs index d4eb0f82..a3f54b0e 100644 --- a/crates/jacquard-api/src/app_bsky/graph/verification.rs +++ b/crates/jacquard-api/src/app_bsky/graph/verification.rs @@ -118,67 +118,67 @@ pub mod verification_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type DisplayName; - type CreatedAt; type Subject; type Handle; + type DisplayName; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type DisplayName = Unset; - type CreatedAt = Unset; type Subject = Unset; type Handle = Unset; - } - ///State transition - sets the `display_name` field to Set - pub struct SetDisplayName(PhantomData St>); - impl sealed::Sealed for SetDisplayName {} - impl State for SetDisplayName { - type DisplayName = Set; - type CreatedAt = St::CreatedAt; - type Subject = St::Subject; - type Handle = St::Handle; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type DisplayName = St::DisplayName; - type CreatedAt = Set; - type Subject = St::Subject; - type Handle = St::Handle; + type DisplayName = Unset; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type DisplayName = St::DisplayName; - type CreatedAt = St::CreatedAt; type Subject = Set; type Handle = St::Handle; + type DisplayName = St::DisplayName; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { + type Subject = St::Subject; + type Handle = Set; type DisplayName = St::DisplayName; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `display_name` field to Set + pub struct SetDisplayName(PhantomData St>); + impl sealed::Sealed for SetDisplayName {} + impl State for SetDisplayName { type Subject = St::Subject; - type Handle = Set; + type Handle = St::Handle; + type DisplayName = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type Handle = St::Handle; + type DisplayName = St::DisplayName; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `display_name` field - pub struct display_name(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `subject` field pub struct subject(()); ///Marker type for the `handle` field pub struct handle(()); + ///Marker type for the `display_name` field + pub struct display_name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -286,10 +286,10 @@ where impl VerificationBuilder where St: verification_state::State, - St::DisplayName: verification_state::IsSet, - St::CreatedAt: verification_state::IsSet, St::Subject: verification_state::IsSet, St::Handle: verification_state::IsSet, + St::DisplayName: verification_state::IsSet, + St::CreatedAt: verification_state::IsSet, { /// Build the final struct. pub fn build(self) -> Verification { diff --git a/crates/jacquard-api/src/app_bsky/labeler.rs b/crates/jacquard-api/src/app_bsky/labeler.rs index 18d0a29a..3ebf4240 100644 --- a/crates/jacquard-api/src/app_bsky/labeler.rs +++ b/crates/jacquard-api/src/app_bsky/labeler.rs @@ -596,8 +596,8 @@ pub mod labeler_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type IndexedAt; type Uri; + type IndexedAt; type Creator; type Cid; } @@ -605,26 +605,26 @@ pub mod labeler_view_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type IndexedAt = Unset; type Uri = Unset; + type IndexedAt = Unset; type Creator = Unset; type Cid = Unset; } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type IndexedAt = Set; - type Uri = St::Uri; - type Creator = St::Creator; - type Cid = St::Cid; - } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type IndexedAt = St::IndexedAt; type Uri = Set; + type IndexedAt = St::IndexedAt; + type Creator = St::Creator; + type Cid = St::Cid; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Uri = St::Uri; + type IndexedAt = Set; type Creator = St::Creator; type Cid = St::Cid; } @@ -632,8 +632,8 @@ pub mod labeler_view_state { pub struct SetCreator(PhantomData St>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type IndexedAt = St::IndexedAt; type Uri = St::Uri; + type IndexedAt = St::IndexedAt; type Creator = Set; type Cid = St::Cid; } @@ -641,18 +641,18 @@ pub mod labeler_view_state { pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type IndexedAt = St::IndexedAt; type Uri = St::Uri; + type IndexedAt = St::IndexedAt; type Creator = St::Creator; type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `creator` field pub struct creator(()); ///Marker type for the `cid` field @@ -817,8 +817,8 @@ impl LabelerViewBuilder { impl LabelerViewBuilder where St: labeler_view_state::State, - St::IndexedAt: labeler_view_state::IsSet, St::Uri: labeler_view_state::IsSet, + St::IndexedAt: labeler_view_state::IsSet, St::Creator: labeler_view_state::IsSet, St::Cid: labeler_view_state::IsSet, { @@ -863,85 +863,85 @@ pub mod labeler_view_detailed_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Policies; + type Uri; + type Cid; type Creator; type IndexedAt; - type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Policies = Unset; + type Uri = Unset; + type Cid = Unset; type Creator = Unset; type IndexedAt = Unset; - type Uri = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Policies = St::Policies; - type Creator = St::Creator; - type IndexedAt = St::IndexedAt; - type Uri = St::Uri; } ///State transition - sets the `policies` field to Set pub struct SetPolicies(PhantomData St>); impl sealed::Sealed for SetPolicies {} impl State for SetPolicies { - type Cid = St::Cid; type Policies = Set; + type Uri = St::Uri; + type Cid = St::Cid; + type Creator = St::Creator; + type IndexedAt = St::IndexedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Policies = St::Policies; + type Uri = Set; + type Cid = St::Cid; type Creator = St::Creator; type IndexedAt = St::IndexedAt; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Policies = St::Policies; type Uri = St::Uri; + type Cid = Set; + type Creator = St::Creator; + type IndexedAt = St::IndexedAt; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData St>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Cid = St::Cid; type Policies = St::Policies; + type Uri = St::Uri; + type Cid = St::Cid; type Creator = Set; type IndexedAt = St::IndexedAt; - type Uri = St::Uri; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Cid = St::Cid; type Policies = St::Policies; - type Creator = St::Creator; - type IndexedAt = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Cid = St::Cid; - type Policies = St::Policies; type Creator = St::Creator; - type IndexedAt = St::IndexedAt; - type Uri = Set; + type IndexedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `policies` field pub struct policies(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `creator` field pub struct creator(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `uri` field - pub struct uri(()); } } @@ -1191,11 +1191,11 @@ impl< impl LabelerViewDetailedBuilder where St: labeler_view_detailed_state::State, - St::Cid: labeler_view_detailed_state::IsSet, St::Policies: labeler_view_detailed_state::IsSet, + St::Uri: labeler_view_detailed_state::IsSet, + St::Cid: labeler_view_detailed_state::IsSet, St::Creator: labeler_view_detailed_state::IsSet, St::IndexedAt: labeler_view_detailed_state::IsSet, - St::Uri: labeler_view_detailed_state::IsSet, { /// Build the final struct. pub fn build(self) -> LabelerViewDetailed { diff --git a/crates/jacquard-api/src/app_bsky/labeler/service.rs b/crates/jacquard-api/src/app_bsky/labeler/service.rs index 3f5e94cc..933966eb 100644 --- a/crates/jacquard-api/src/app_bsky/labeler/service.rs +++ b/crates/jacquard-api/src/app_bsky/labeler/service.rs @@ -127,37 +127,37 @@ pub mod service_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Policies; type CreatedAt; + type Policies; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Policies = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `policies` field to Set - pub struct SetPolicies(PhantomData St>); - impl sealed::Sealed for SetPolicies {} - impl State for SetPolicies { - type Policies = Set; - type CreatedAt = St::CreatedAt; + type Policies = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Policies = St::Policies; type CreatedAt = Set; + type Policies = St::Policies; + } + ///State transition - sets the `policies` field to Set + pub struct SetPolicies(PhantomData St>); + impl sealed::Sealed for SetPolicies {} + impl State for SetPolicies { + type CreatedAt = St::CreatedAt; + type Policies = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `policies` field - pub struct policies(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `policies` field + pub struct policies(()); } } @@ -292,8 +292,8 @@ impl ServiceBuilder { impl ServiceBuilder where St: service_state::State, - St::Policies: service_state::IsSet, St::CreatedAt: service_state::IsSet, + St::Policies: service_state::IsSet, { /// Build the final struct. pub fn build(self) -> Service { diff --git a/crates/jacquard-api/src/app_bsky/notification.rs b/crates/jacquard-api/src/app_bsky/notification.rs index 0ece76a1..517e4be6 100644 --- a/crates/jacquard-api/src/app_bsky/notification.rs +++ b/crates/jacquard-api/src/app_bsky/notification.rs @@ -395,37 +395,37 @@ pub mod activity_subscription_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Reply; type Post; + type Reply; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Reply = Unset; type Post = Unset; - } - ///State transition - sets the `reply` field to Set - pub struct SetReply(PhantomData St>); - impl sealed::Sealed for SetReply {} - impl State for SetReply { - type Reply = Set; - type Post = St::Post; + type Reply = Unset; } ///State transition - sets the `post` field to Set pub struct SetPost(PhantomData St>); impl sealed::Sealed for SetPost {} impl State for SetPost { - type Reply = St::Reply; type Post = Set; + type Reply = St::Reply; + } + ///State transition - sets the `reply` field to Set + pub struct SetReply(PhantomData St>); + impl sealed::Sealed for SetReply {} + impl State for SetReply { + type Post = St::Post; + type Reply = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `reply` field - pub struct reply(()); ///Marker type for the `post` field pub struct post(()); + ///Marker type for the `reply` field + pub struct reply(()); } } @@ -498,8 +498,8 @@ where impl ActivitySubscriptionBuilder where St: activity_subscription_state::State, - St::Reply: activity_subscription_state::IsSet, St::Post: activity_subscription_state::IsSet, + St::Reply: activity_subscription_state::IsSet, { /// Build the final struct. pub fn build(self) -> ActivitySubscription { @@ -954,49 +954,49 @@ pub mod filterable_preference_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type List; type Push; + type List; type Include; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type List = Unset; type Push = Unset; + type List = Unset; type Include = Unset; } - ///State transition - sets the `list` field to Set - pub struct SetList(PhantomData St>); - impl sealed::Sealed for SetList {} - impl State for SetList { - type List = Set; - type Push = St::Push; - type Include = St::Include; - } ///State transition - sets the `push` field to Set pub struct SetPush(PhantomData St>); impl sealed::Sealed for SetPush {} impl State for SetPush { - type List = St::List; type Push = Set; + type List = St::List; + type Include = St::Include; + } + ///State transition - sets the `list` field to Set + pub struct SetList(PhantomData St>); + impl sealed::Sealed for SetList {} + impl State for SetList { + type Push = St::Push; + type List = Set; type Include = St::Include; } ///State transition - sets the `include` field to Set pub struct SetInclude(PhantomData St>); impl sealed::Sealed for SetInclude {} impl State for SetInclude { - type List = St::List; type Push = St::Push; + type List = St::List; type Include = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `list` field - pub struct list(()); ///Marker type for the `push` field pub struct push(()); + ///Marker type for the `list` field + pub struct list(()); ///Marker type for the `include` field pub struct include(()); } @@ -1090,8 +1090,8 @@ where impl FilterablePreferenceBuilder where St: filterable_preference_state::State, - St::List: filterable_preference_state::IsSet, St::Push: filterable_preference_state::IsSet, + St::List: filterable_preference_state::IsSet, St::Include: filterable_preference_state::IsSet, { /// Build the final struct. @@ -1261,301 +1261,301 @@ pub mod preferences_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type StarterpackJoined; - type Like; type Chat; - type Follow; - type Mention; + type Like; + type Quote; + type Reply; + type LikeViaRepost; + type SubscribedPost; type Repost; + type Follow; + type StarterpackJoined; type RepostViaRepost; - type SubscribedPost; type Unverified; - type Quote; - type LikeViaRepost; + type Mention; type Verified; - type Reply; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type StarterpackJoined = Unset; - type Like = Unset; type Chat = Unset; - type Follow = Unset; - type Mention = Unset; + type Like = Unset; + type Quote = Unset; + type Reply = Unset; + type LikeViaRepost = Unset; + type SubscribedPost = Unset; type Repost = Unset; + type Follow = Unset; + type StarterpackJoined = Unset; type RepostViaRepost = Unset; - type SubscribedPost = Unset; type Unverified = Unset; - type Quote = Unset; - type LikeViaRepost = Unset; + type Mention = Unset; type Verified = Unset; - type Reply = Unset; } - ///State transition - sets the `starterpack_joined` field to Set - pub struct SetStarterpackJoined(PhantomData St>); - impl sealed::Sealed for SetStarterpackJoined {} - impl State for SetStarterpackJoined { - type StarterpackJoined = Set; + ///State transition - sets the `chat` field to Set + pub struct SetChat(PhantomData St>); + impl sealed::Sealed for SetChat {} + impl State for SetChat { + type Chat = Set; type Like = St::Like; - type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; + type Quote = St::Quote; + type Reply = St::Reply; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; type Unverified = St::Unverified; - type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; + type Mention = St::Mention; type Verified = St::Verified; - type Reply = St::Reply; } ///State transition - sets the `like` field to Set pub struct SetLike(PhantomData St>); impl sealed::Sealed for SetLike {} impl State for SetLike { - type StarterpackJoined = St::StarterpackJoined; - type Like = Set; type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; + type Like = Set; + type Quote = St::Quote; + type Reply = St::Reply; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; type Unverified = St::Unverified; - type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; + type Mention = St::Mention; type Verified = St::Verified; - type Reply = St::Reply; } - ///State transition - sets the `chat` field to Set - pub struct SetChat(PhantomData St>); - impl sealed::Sealed for SetChat {} - impl State for SetChat { - type StarterpackJoined = St::StarterpackJoined; + ///State transition - sets the `quote` field to Set + pub struct SetQuote(PhantomData St>); + impl sealed::Sealed for SetQuote {} + impl State for SetQuote { + type Chat = St::Chat; type Like = St::Like; - type Chat = Set; - type Follow = St::Follow; - type Mention = St::Mention; + type Quote = Set; + type Reply = St::Reply; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; type Unverified = St::Unverified; - type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; + type Mention = St::Mention; type Verified = St::Verified; - type Reply = St::Reply; } - ///State transition - sets the `follow` field to Set - pub struct SetFollow(PhantomData St>); - impl sealed::Sealed for SetFollow {} - impl State for SetFollow { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; + ///State transition - sets the `reply` field to Set + pub struct SetReply(PhantomData St>); + impl sealed::Sealed for SetReply {} + impl State for SetReply { type Chat = St::Chat; - type Follow = Set; - type Mention = St::Mention; + type Like = St::Like; + type Quote = St::Quote; + type Reply = Set; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; type Unverified = St::Unverified; - type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; + type Mention = St::Mention; type Verified = St::Verified; - type Reply = St::Reply; } - ///State transition - sets the `mention` field to Set - pub struct SetMention(PhantomData St>); - impl sealed::Sealed for SetMention {} - impl State for SetMention { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; + ///State transition - sets the `like_via_repost` field to Set + pub struct SetLikeViaRepost(PhantomData St>); + impl sealed::Sealed for SetLikeViaRepost {} + impl State for SetLikeViaRepost { type Chat = St::Chat; - type Follow = St::Follow; - type Mention = Set; + type Like = St::Like; + type Quote = St::Quote; + type Reply = St::Reply; + type LikeViaRepost = Set; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; type Unverified = St::Unverified; + type Mention = St::Mention; + type Verified = St::Verified; + } + ///State transition - sets the `subscribed_post` field to Set + pub struct SetSubscribedPost(PhantomData St>); + impl sealed::Sealed for SetSubscribedPost {} + impl State for SetSubscribedPost { + type Chat = St::Chat; + type Like = St::Like; type Quote = St::Quote; + type Reply = St::Reply; type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = Set; + type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; + type RepostViaRepost = St::RepostViaRepost; + type Unverified = St::Unverified; + type Mention = St::Mention; type Verified = St::Verified; - type Reply = St::Reply; } ///State transition - sets the `repost` field to Set pub struct SetRepost(PhantomData St>); impl sealed::Sealed for SetRepost {} impl State for SetRepost { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; + type Like = St::Like; + type Quote = St::Quote; + type Reply = St::Reply; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = Set; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; type Unverified = St::Unverified; + type Mention = St::Mention; + type Verified = St::Verified; + } + ///State transition - sets the `follow` field to Set + pub struct SetFollow(PhantomData St>); + impl sealed::Sealed for SetFollow {} + impl State for SetFollow { + type Chat = St::Chat; + type Like = St::Like; type Quote = St::Quote; + type Reply = St::Reply; type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; + type Repost = St::Repost; + type Follow = Set; + type StarterpackJoined = St::StarterpackJoined; + type RepostViaRepost = St::RepostViaRepost; + type Unverified = St::Unverified; + type Mention = St::Mention; type Verified = St::Verified; + } + ///State transition - sets the `starterpack_joined` field to Set + pub struct SetStarterpackJoined(PhantomData St>); + impl sealed::Sealed for SetStarterpackJoined {} + impl State for SetStarterpackJoined { + type Chat = St::Chat; + type Like = St::Like; + type Quote = St::Quote; type Reply = St::Reply; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; + type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = Set; + type RepostViaRepost = St::RepostViaRepost; + type Unverified = St::Unverified; + type Mention = St::Mention; + type Verified = St::Verified; } ///State transition - sets the `repost_via_repost` field to Set pub struct SetRepostViaRepost(PhantomData St>); impl sealed::Sealed for SetRepostViaRepost {} impl State for SetRepostViaRepost { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; - type Repost = St::Repost; - type RepostViaRepost = Set; - type SubscribedPost = St::SubscribedPost; - type Unverified = St::Unverified; + type Like = St::Like; type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; - type Verified = St::Verified; type Reply = St::Reply; - } - ///State transition - sets the `subscribed_post` field to Set - pub struct SetSubscribedPost(PhantomData St>); - impl sealed::Sealed for SetSubscribedPost {} - impl State for SetSubscribedPost { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; - type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; - type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = Set; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; + type RepostViaRepost = Set; type Unverified = St::Unverified; - type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; + type Mention = St::Mention; type Verified = St::Verified; - type Reply = St::Reply; } ///State transition - sets the `unverified` field to Set pub struct SetUnverified(PhantomData St>); impl sealed::Sealed for SetUnverified {} impl State for SetUnverified { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; - type Repost = St::Repost; - type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; - type Unverified = Set; + type Like = St::Like; type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; - type Verified = St::Verified; type Reply = St::Reply; - } - ///State transition - sets the `quote` field to Set - pub struct SetQuote(PhantomData St>); - impl sealed::Sealed for SetQuote {} - impl State for SetQuote { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; - type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; - type Unverified = St::Unverified; - type Quote = Set; - type LikeViaRepost = St::LikeViaRepost; + type Unverified = Set; + type Mention = St::Mention; type Verified = St::Verified; - type Reply = St::Reply; } - ///State transition - sets the `like_via_repost` field to Set - pub struct SetLikeViaRepost(PhantomData St>); - impl sealed::Sealed for SetLikeViaRepost {} - impl State for SetLikeViaRepost { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; + ///State transition - sets the `mention` field to Set + pub struct SetMention(PhantomData St>); + impl sealed::Sealed for SetMention {} + impl State for SetMention { type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; + type Like = St::Like; + type Quote = St::Quote; + type Reply = St::Reply; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; type Unverified = St::Unverified; - type Quote = St::Quote; - type LikeViaRepost = Set; + type Mention = Set; type Verified = St::Verified; - type Reply = St::Reply; } ///State transition - sets the `verified` field to Set pub struct SetVerified(PhantomData St>); impl sealed::Sealed for SetVerified {} impl State for SetVerified { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; - type Repost = St::Repost; - type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; - type Unverified = St::Unverified; + type Like = St::Like; type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; - type Verified = Set; type Reply = St::Reply; - } - ///State transition - sets the `reply` field to Set - pub struct SetReply(PhantomData St>); - impl sealed::Sealed for SetReply {} - impl State for SetReply { - type StarterpackJoined = St::StarterpackJoined; - type Like = St::Like; - type Chat = St::Chat; - type Follow = St::Follow; - type Mention = St::Mention; + type LikeViaRepost = St::LikeViaRepost; + type SubscribedPost = St::SubscribedPost; type Repost = St::Repost; + type Follow = St::Follow; + type StarterpackJoined = St::StarterpackJoined; type RepostViaRepost = St::RepostViaRepost; - type SubscribedPost = St::SubscribedPost; type Unverified = St::Unverified; - type Quote = St::Quote; - type LikeViaRepost = St::LikeViaRepost; - type Verified = St::Verified; - type Reply = Set; + type Mention = St::Mention; + type Verified = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `starterpack_joined` field - pub struct starterpack_joined(()); - ///Marker type for the `like` field - pub struct like(()); ///Marker type for the `chat` field pub struct chat(()); - ///Marker type for the `follow` field - pub struct follow(()); - ///Marker type for the `mention` field - pub struct mention(()); + ///Marker type for the `like` field + pub struct like(()); + ///Marker type for the `quote` field + pub struct quote(()); + ///Marker type for the `reply` field + pub struct reply(()); + ///Marker type for the `like_via_repost` field + pub struct like_via_repost(()); + ///Marker type for the `subscribed_post` field + pub struct subscribed_post(()); ///Marker type for the `repost` field pub struct repost(()); + ///Marker type for the `follow` field + pub struct follow(()); + ///Marker type for the `starterpack_joined` field + pub struct starterpack_joined(()); ///Marker type for the `repost_via_repost` field pub struct repost_via_repost(()); - ///Marker type for the `subscribed_post` field - pub struct subscribed_post(()); ///Marker type for the `unverified` field pub struct unverified(()); - ///Marker type for the `quote` field - pub struct quote(()); - ///Marker type for the `like_via_repost` field - pub struct like_via_repost(()); + ///Marker type for the `mention` field + pub struct mention(()); ///Marker type for the `verified` field pub struct verified(()); - ///Marker type for the `reply` field - pub struct reply(()); } } @@ -1862,19 +1862,19 @@ where impl PreferencesBuilder where St: preferences_state::State, - St::StarterpackJoined: preferences_state::IsSet, - St::Like: preferences_state::IsSet, St::Chat: preferences_state::IsSet, - St::Follow: preferences_state::IsSet, - St::Mention: preferences_state::IsSet, + St::Like: preferences_state::IsSet, + St::Quote: preferences_state::IsSet, + St::Reply: preferences_state::IsSet, + St::LikeViaRepost: preferences_state::IsSet, + St::SubscribedPost: preferences_state::IsSet, St::Repost: preferences_state::IsSet, + St::Follow: preferences_state::IsSet, + St::StarterpackJoined: preferences_state::IsSet, St::RepostViaRepost: preferences_state::IsSet, - St::SubscribedPost: preferences_state::IsSet, St::Unverified: preferences_state::IsSet, - St::Quote: preferences_state::IsSet, - St::LikeViaRepost: preferences_state::IsSet, + St::Mention: preferences_state::IsSet, St::Verified: preferences_state::IsSet, - St::Reply: preferences_state::IsSet, { /// Build the final struct. pub fn build(self) -> Preferences { @@ -1929,37 +1929,37 @@ pub mod subject_activity_subscription_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type ActivitySubscription; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type ActivitySubscription = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type ActivitySubscription = St::ActivitySubscription; + type Subject = Unset; } ///State transition - sets the `activity_subscription` field to Set pub struct SetActivitySubscription(PhantomData St>); impl sealed::Sealed for SetActivitySubscription {} impl State for SetActivitySubscription { - type Subject = St::Subject; type ActivitySubscription = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type ActivitySubscription = St::ActivitySubscription; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `activity_subscription` field pub struct activity_subscription(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -2043,8 +2043,8 @@ where impl SubjectActivitySubscriptionBuilder where St: subject_activity_subscription_state::State, - St::Subject: subject_activity_subscription_state::IsSet, St::ActivitySubscription: subject_activity_subscription_state::IsSet, + St::Subject: subject_activity_subscription_state::IsSet, { /// Build the final struct. pub fn build(self) -> SubjectActivitySubscription { diff --git a/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs b/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs index 985a3005..d967835d 100644 --- a/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs +++ b/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs @@ -383,127 +383,127 @@ pub mod notification_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Author; type Cid; - type IndexedAt; - type Uri; type Reason; type Record; + type Uri; + type IndexedAt; type IsRead; - type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Author = Unset; type Cid = Unset; - type IndexedAt = Unset; - type Uri = Unset; type Reason = Unset; type Record = Unset; + type Uri = Unset; + type IndexedAt = Unset; type IsRead = Unset; - type Author = Unset; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Author = Set; + type Cid = St::Cid; + type Reason = St::Reason; + type Record = St::Record; + type Uri = St::Uri; + type IndexedAt = St::IndexedAt; + type IsRead = St::IsRead; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Author = St::Author; type Cid = Set; - type IndexedAt = St::IndexedAt; - type Uri = St::Uri; type Reason = St::Reason; type Record = St::Record; - type IsRead = St::IsRead; - type Author = St::Author; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type Cid = St::Cid; - type IndexedAt = Set; type Uri = St::Uri; - type Reason = St::Reason; - type Record = St::Record; - type IsRead = St::IsRead; - type Author = St::Author; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Cid = St::Cid; type IndexedAt = St::IndexedAt; - type Uri = Set; - type Reason = St::Reason; - type Record = St::Record; type IsRead = St::IsRead; - type Author = St::Author; } ///State transition - sets the `reason` field to Set pub struct SetReason(PhantomData St>); impl sealed::Sealed for SetReason {} impl State for SetReason { + type Author = St::Author; type Cid = St::Cid; - type IndexedAt = St::IndexedAt; - type Uri = St::Uri; type Reason = Set; type Record = St::Record; + type Uri = St::Uri; + type IndexedAt = St::IndexedAt; type IsRead = St::IsRead; - type Author = St::Author; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { + type Author = St::Author; type Cid = St::Cid; - type IndexedAt = St::IndexedAt; - type Uri = St::Uri; type Reason = St::Reason; type Record = Set; + type Uri = St::Uri; + type IndexedAt = St::IndexedAt; type IsRead = St::IsRead; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Author = St::Author; + type Cid = St::Cid; + type Reason = St::Reason; + type Record = St::Record; + type Uri = Set; + type IndexedAt = St::IndexedAt; + type IsRead = St::IsRead; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { type Author = St::Author; + type Cid = St::Cid; + type Reason = St::Reason; + type Record = St::Record; + type Uri = St::Uri; + type IndexedAt = Set; + type IsRead = St::IsRead; } ///State transition - sets the `is_read` field to Set pub struct SetIsRead(PhantomData St>); impl sealed::Sealed for SetIsRead {} impl State for SetIsRead { - type Cid = St::Cid; - type IndexedAt = St::IndexedAt; - type Uri = St::Uri; - type Reason = St::Reason; - type Record = St::Record; - type IsRead = Set; type Author = St::Author; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { type Cid = St::Cid; - type IndexedAt = St::IndexedAt; - type Uri = St::Uri; type Reason = St::Reason; type Record = St::Record; - type IsRead = St::IsRead; - type Author = Set; + type Uri = St::Uri; + type IndexedAt = St::IndexedAt; + type IsRead = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `author` field + pub struct author(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `reason` field pub struct reason(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `is_read` field pub struct is_read(()); - ///Marker type for the `author` field - pub struct author(()); } } @@ -704,13 +704,13 @@ where impl NotificationBuilder where St: notification_state::State, + St::Author: notification_state::IsSet, St::Cid: notification_state::IsSet, - St::IndexedAt: notification_state::IsSet, - St::Uri: notification_state::IsSet, St::Reason: notification_state::IsSet, St::Record: notification_state::IsSet, + St::Uri: notification_state::IsSet, + St::IndexedAt: notification_state::IsSet, St::IsRead: notification_state::IsSet, - St::Author: notification_state::IsSet, { /// Build the final struct. pub fn build(self) -> Notification { diff --git a/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs b/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs index 172ee7a9..c1fe5490 100644 --- a/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs +++ b/crates/jacquard-api/src/app_bsky/notification/put_activity_subscription.rs @@ -76,37 +76,37 @@ pub mod put_activity_subscription_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ActivitySubscription; type Subject; + type ActivitySubscription; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ActivitySubscription = Unset; type Subject = Unset; - } - ///State transition - sets the `activity_subscription` field to Set - pub struct SetActivitySubscription(PhantomData St>); - impl sealed::Sealed for SetActivitySubscription {} - impl State for SetActivitySubscription { - type ActivitySubscription = Set; - type Subject = St::Subject; + type ActivitySubscription = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type ActivitySubscription = St::ActivitySubscription; type Subject = Set; + type ActivitySubscription = St::ActivitySubscription; + } + ///State transition - sets the `activity_subscription` field to Set + pub struct SetActivitySubscription(PhantomData St>); + impl sealed::Sealed for SetActivitySubscription {} + impl State for SetActivitySubscription { + type Subject = St::Subject; + type ActivitySubscription = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `activity_subscription` field - pub struct activity_subscription(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `activity_subscription` field + pub struct activity_subscription(()); } } @@ -190,8 +190,8 @@ where impl PutActivitySubscriptionBuilder where St: put_activity_subscription_state::State, - St::ActivitySubscription: put_activity_subscription_state::IsSet, St::Subject: put_activity_subscription_state::IsSet, + St::ActivitySubscription: put_activity_subscription_state::IsSet, { /// Build the final struct. pub fn build(self) -> PutActivitySubscription { diff --git a/crates/jacquard-api/src/app_bsky/notification/register_push.rs b/crates/jacquard-api/src/app_bsky/notification/register_push.rs index 7e74e64f..d0a60d7b 100644 --- a/crates/jacquard-api/src/app_bsky/notification/register_push.rs +++ b/crates/jacquard-api/src/app_bsky/notification/register_push.rs @@ -155,8 +155,8 @@ pub mod register_push_state { pub trait State: sealed::Sealed { type Platform; type Token; - type ServiceDid; type AppId; + type ServiceDid; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -164,8 +164,8 @@ pub mod register_push_state { impl State for Empty { type Platform = Unset; type Token = Unset; - type ServiceDid = Unset; type AppId = Unset; + type ServiceDid = Unset; } ///State transition - sets the `platform` field to Set pub struct SetPlatform(PhantomData St>); @@ -173,8 +173,8 @@ pub mod register_push_state { impl State for SetPlatform { type Platform = Set; type Token = St::Token; - type ServiceDid = St::ServiceDid; type AppId = St::AppId; + type ServiceDid = St::ServiceDid; } ///State transition - sets the `token` field to Set pub struct SetToken(PhantomData St>); @@ -182,17 +182,8 @@ pub mod register_push_state { impl State for SetToken { type Platform = St::Platform; type Token = Set; - type ServiceDid = St::ServiceDid; - type AppId = St::AppId; - } - ///State transition - sets the `service_did` field to Set - pub struct SetServiceDid(PhantomData St>); - impl sealed::Sealed for SetServiceDid {} - impl State for SetServiceDid { - type Platform = St::Platform; - type Token = St::Token; - type ServiceDid = Set; type AppId = St::AppId; + type ServiceDid = St::ServiceDid; } ///State transition - sets the `app_id` field to Set pub struct SetAppId(PhantomData St>); @@ -200,8 +191,17 @@ pub mod register_push_state { impl State for SetAppId { type Platform = St::Platform; type Token = St::Token; - type ServiceDid = St::ServiceDid; type AppId = Set; + type ServiceDid = St::ServiceDid; + } + ///State transition - sets the `service_did` field to Set + pub struct SetServiceDid(PhantomData St>); + impl sealed::Sealed for SetServiceDid {} + impl State for SetServiceDid { + type Platform = St::Platform; + type Token = St::Token; + type AppId = St::AppId; + type ServiceDid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -210,10 +210,10 @@ pub mod register_push_state { pub struct platform(()); ///Marker type for the `token` field pub struct token(()); - ///Marker type for the `service_did` field - pub struct service_did(()); ///Marker type for the `app_id` field pub struct app_id(()); + ///Marker type for the `service_did` field + pub struct service_did(()); } } @@ -342,8 +342,8 @@ where St: register_push_state::State, St::Platform: register_push_state::IsSet, St::Token: register_push_state::IsSet, - St::ServiceDid: register_push_state::IsSet, St::AppId: register_push_state::IsSet, + St::ServiceDid: register_push_state::IsSet, { /// Build the final struct. pub fn build(self) -> RegisterPush { diff --git a/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs b/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs index c7e18f9b..be485406 100644 --- a/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs +++ b/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs @@ -150,67 +150,67 @@ pub mod unregister_push_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Token; type Platform; type AppId; type ServiceDid; - type Token; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Token = Unset; type Platform = Unset; type AppId = Unset; type ServiceDid = Unset; - type Token = Unset; + } + ///State transition - sets the `token` field to Set + pub struct SetToken(PhantomData St>); + impl sealed::Sealed for SetToken {} + impl State for SetToken { + type Token = Set; + type Platform = St::Platform; + type AppId = St::AppId; + type ServiceDid = St::ServiceDid; } ///State transition - sets the `platform` field to Set pub struct SetPlatform(PhantomData St>); impl sealed::Sealed for SetPlatform {} impl State for SetPlatform { + type Token = St::Token; type Platform = Set; type AppId = St::AppId; type ServiceDid = St::ServiceDid; - type Token = St::Token; } ///State transition - sets the `app_id` field to Set pub struct SetAppId(PhantomData St>); impl sealed::Sealed for SetAppId {} impl State for SetAppId { + type Token = St::Token; type Platform = St::Platform; type AppId = Set; type ServiceDid = St::ServiceDid; - type Token = St::Token; } ///State transition - sets the `service_did` field to Set pub struct SetServiceDid(PhantomData St>); impl sealed::Sealed for SetServiceDid {} impl State for SetServiceDid { - type Platform = St::Platform; - type AppId = St::AppId; - type ServiceDid = Set; type Token = St::Token; - } - ///State transition - sets the `token` field to Set - pub struct SetToken(PhantomData St>); - impl sealed::Sealed for SetToken {} - impl State for SetToken { type Platform = St::Platform; type AppId = St::AppId; - type ServiceDid = St::ServiceDid; - type Token = Set; + type ServiceDid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `token` field + pub struct token(()); ///Marker type for the `platform` field pub struct platform(()); ///Marker type for the `app_id` field pub struct app_id(()); ///Marker type for the `service_did` field pub struct service_did(()); - ///Marker type for the `token` field - pub struct token(()); } } @@ -318,10 +318,10 @@ where impl UnregisterPushBuilder where St: unregister_push_state::State, + St::Token: unregister_push_state::IsSet, St::Platform: unregister_push_state::IsSet, St::AppId: unregister_push_state::IsSet, St::ServiceDid: unregister_push_state::IsSet, - St::Token: unregister_push_state::IsSet, { /// Build the final struct. pub fn build(self) -> UnregisterPush { diff --git a/crates/jacquard-api/src/app_bsky/richtext/facet.rs b/crates/jacquard-api/src/app_bsky/richtext/facet.rs index b1f6a134..1aa96f2b 100644 --- a/crates/jacquard-api/src/app_bsky/richtext/facet.rs +++ b/crates/jacquard-api/src/app_bsky/richtext/facet.rs @@ -219,37 +219,37 @@ pub mod byte_slice_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ByteStart; type ByteEnd; + type ByteStart; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ByteStart = Unset; type ByteEnd = Unset; - } - ///State transition - sets the `byte_start` field to Set - pub struct SetByteStart(PhantomData St>); - impl sealed::Sealed for SetByteStart {} - impl State for SetByteStart { - type ByteStart = Set; - type ByteEnd = St::ByteEnd; + type ByteStart = Unset; } ///State transition - sets the `byte_end` field to Set pub struct SetByteEnd(PhantomData St>); impl sealed::Sealed for SetByteEnd {} impl State for SetByteEnd { - type ByteStart = St::ByteStart; type ByteEnd = Set; + type ByteStart = St::ByteStart; + } + ///State transition - sets the `byte_start` field to Set + pub struct SetByteStart(PhantomData St>); + impl sealed::Sealed for SetByteStart {} + impl State for SetByteStart { + type ByteEnd = St::ByteEnd; + type ByteStart = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `byte_start` field - pub struct byte_start(()); ///Marker type for the `byte_end` field pub struct byte_end(()); + ///Marker type for the `byte_start` field + pub struct byte_start(()); } } @@ -319,8 +319,8 @@ where impl ByteSliceBuilder where St: byte_slice_state::State, - St::ByteStart: byte_slice_state::IsSet, St::ByteEnd: byte_slice_state::IsSet, + St::ByteStart: byte_slice_state::IsSet, { /// Build the final struct. pub fn build(self) -> ByteSlice { diff --git a/crates/jacquard-api/src/app_bsky/unspecced.rs b/crates/jacquard-api/src/app_bsky/unspecced.rs index 4d1eef35..d3fc94ec 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced.rs @@ -731,50 +731,50 @@ pub mod age_assurance_event_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Status; - type AttemptId; type CreatedAt; + type AttemptId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Status = Unset; - type AttemptId = Unset; type CreatedAt = Unset; + type AttemptId = Unset; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { type Status = Set; - type AttemptId = St::AttemptId; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `attempt_id` field to Set - pub struct SetAttemptId(PhantomData St>); - impl sealed::Sealed for SetAttemptId {} - impl State for SetAttemptId { - type Status = St::Status; - type AttemptId = Set; type CreatedAt = St::CreatedAt; + type AttemptId = St::AttemptId; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Status = St::Status; - type AttemptId = St::AttemptId; type CreatedAt = Set; + type AttemptId = St::AttemptId; + } + ///State transition - sets the `attempt_id` field to Set + pub struct SetAttemptId(PhantomData St>); + impl sealed::Sealed for SetAttemptId {} + impl State for SetAttemptId { + type Status = St::Status; + type CreatedAt = St::CreatedAt; + type AttemptId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `status` field pub struct status(()); - ///Marker type for the `attempt_id` field - pub struct attempt_id(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `attempt_id` field + pub struct attempt_id(()); } } @@ -938,8 +938,8 @@ impl AgeAssuranceEventBuilder where St: age_assurance_event_state::State, St::Status: age_assurance_event_state::IsSet, - St::AttemptId: age_assurance_event_state::IsSet, St::CreatedAt: age_assurance_event_state::IsSet, + St::AttemptId: age_assurance_event_state::IsSet, { /// Build the final struct. pub fn build(self) -> AgeAssuranceEvent { @@ -1781,105 +1781,105 @@ pub mod skeleton_trend_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Link; - type Topic; - type PostCount; type Dids; type StartedAt; type DisplayName; + type Link; + type PostCount; + type Topic; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Link = Unset; - type Topic = Unset; - type PostCount = Unset; type Dids = Unset; type StartedAt = Unset; type DisplayName = Unset; - } - ///State transition - sets the `link` field to Set - pub struct SetLink(PhantomData St>); - impl sealed::Sealed for SetLink {} - impl State for SetLink { - type Link = Set; - type Topic = St::Topic; - type PostCount = St::PostCount; - type Dids = St::Dids; - type StartedAt = St::StartedAt; - type DisplayName = St::DisplayName; - } - ///State transition - sets the `topic` field to Set - pub struct SetTopic(PhantomData St>); - impl sealed::Sealed for SetTopic {} - impl State for SetTopic { - type Link = St::Link; - type Topic = Set; - type PostCount = St::PostCount; - type Dids = St::Dids; - type StartedAt = St::StartedAt; - type DisplayName = St::DisplayName; - } - ///State transition - sets the `post_count` field to Set - pub struct SetPostCount(PhantomData St>); - impl sealed::Sealed for SetPostCount {} - impl State for SetPostCount { - type Link = St::Link; - type Topic = St::Topic; - type PostCount = Set; - type Dids = St::Dids; - type StartedAt = St::StartedAt; - type DisplayName = St::DisplayName; + type Link = Unset; + type PostCount = Unset; + type Topic = Unset; } ///State transition - sets the `dids` field to Set pub struct SetDids(PhantomData St>); impl sealed::Sealed for SetDids {} impl State for SetDids { - type Link = St::Link; - type Topic = St::Topic; - type PostCount = St::PostCount; type Dids = Set; type StartedAt = St::StartedAt; type DisplayName = St::DisplayName; + type Link = St::Link; + type PostCount = St::PostCount; + type Topic = St::Topic; } ///State transition - sets the `started_at` field to Set pub struct SetStartedAt(PhantomData St>); impl sealed::Sealed for SetStartedAt {} impl State for SetStartedAt { - type Link = St::Link; - type Topic = St::Topic; - type PostCount = St::PostCount; type Dids = St::Dids; type StartedAt = Set; type DisplayName = St::DisplayName; + type Link = St::Link; + type PostCount = St::PostCount; + type Topic = St::Topic; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData St>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { + type Dids = St::Dids; + type StartedAt = St::StartedAt; + type DisplayName = Set; type Link = St::Link; + type PostCount = St::PostCount; type Topic = St::Topic; + } + ///State transition - sets the `link` field to Set + pub struct SetLink(PhantomData St>); + impl sealed::Sealed for SetLink {} + impl State for SetLink { + type Dids = St::Dids; + type StartedAt = St::StartedAt; + type DisplayName = St::DisplayName; + type Link = Set; type PostCount = St::PostCount; + type Topic = St::Topic; + } + ///State transition - sets the `post_count` field to Set + pub struct SetPostCount(PhantomData St>); + impl sealed::Sealed for SetPostCount {} + impl State for SetPostCount { type Dids = St::Dids; type StartedAt = St::StartedAt; - type DisplayName = Set; + type DisplayName = St::DisplayName; + type Link = St::Link; + type PostCount = Set; + type Topic = St::Topic; + } + ///State transition - sets the `topic` field to Set + pub struct SetTopic(PhantomData St>); + impl sealed::Sealed for SetTopic {} + impl State for SetTopic { + type Dids = St::Dids; + type StartedAt = St::StartedAt; + type DisplayName = St::DisplayName; + type Link = St::Link; + type PostCount = St::PostCount; + type Topic = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `link` field - pub struct link(()); - ///Marker type for the `topic` field - pub struct topic(()); - ///Marker type for the `post_count` field - pub struct post_count(()); ///Marker type for the `dids` field pub struct dids(()); ///Marker type for the `started_at` field pub struct started_at(()); ///Marker type for the `display_name` field pub struct display_name(()); + ///Marker type for the `link` field + pub struct link(()); + ///Marker type for the `post_count` field + pub struct post_count(()); + ///Marker type for the `topic` field + pub struct topic(()); } } @@ -2060,12 +2060,12 @@ where impl SkeletonTrendBuilder where St: skeleton_trend_state::State, - St::Link: skeleton_trend_state::IsSet, - St::Topic: skeleton_trend_state::IsSet, - St::PostCount: skeleton_trend_state::IsSet, St::Dids: skeleton_trend_state::IsSet, St::StartedAt: skeleton_trend_state::IsSet, St::DisplayName: skeleton_trend_state::IsSet, + St::Link: skeleton_trend_state::IsSet, + St::PostCount: skeleton_trend_state::IsSet, + St::Topic: skeleton_trend_state::IsSet, { /// Build the final struct. pub fn build(self) -> SkeletonTrend { @@ -2210,105 +2210,105 @@ pub mod thread_item_post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type MoreParents; - type HiddenByThreadgate; type Post; + type HiddenByThreadgate; type OpThread; - type MoreReplies; type MutedByViewer; + type MoreReplies; + type MoreParents; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type MoreParents = Unset; - type HiddenByThreadgate = Unset; type Post = Unset; + type HiddenByThreadgate = Unset; type OpThread = Unset; - type MoreReplies = Unset; type MutedByViewer = Unset; + type MoreReplies = Unset; + type MoreParents = Unset; } - ///State transition - sets the `more_parents` field to Set - pub struct SetMoreParents(PhantomData St>); - impl sealed::Sealed for SetMoreParents {} - impl State for SetMoreParents { - type MoreParents = Set; + ///State transition - sets the `post` field to Set + pub struct SetPost(PhantomData St>); + impl sealed::Sealed for SetPost {} + impl State for SetPost { + type Post = Set; type HiddenByThreadgate = St::HiddenByThreadgate; - type Post = St::Post; type OpThread = St::OpThread; - type MoreReplies = St::MoreReplies; type MutedByViewer = St::MutedByViewer; + type MoreReplies = St::MoreReplies; + type MoreParents = St::MoreParents; } ///State transition - sets the `hidden_by_threadgate` field to Set pub struct SetHiddenByThreadgate(PhantomData St>); impl sealed::Sealed for SetHiddenByThreadgate {} impl State for SetHiddenByThreadgate { - type MoreParents = St::MoreParents; - type HiddenByThreadgate = Set; type Post = St::Post; + type HiddenByThreadgate = Set; type OpThread = St::OpThread; - type MoreReplies = St::MoreReplies; type MutedByViewer = St::MutedByViewer; - } - ///State transition - sets the `post` field to Set - pub struct SetPost(PhantomData St>); - impl sealed::Sealed for SetPost {} - impl State for SetPost { - type MoreParents = St::MoreParents; - type HiddenByThreadgate = St::HiddenByThreadgate; - type Post = Set; - type OpThread = St::OpThread; type MoreReplies = St::MoreReplies; - type MutedByViewer = St::MutedByViewer; + type MoreParents = St::MoreParents; } ///State transition - sets the `op_thread` field to Set pub struct SetOpThread(PhantomData St>); impl sealed::Sealed for SetOpThread {} impl State for SetOpThread { - type MoreParents = St::MoreParents; - type HiddenByThreadgate = St::HiddenByThreadgate; type Post = St::Post; + type HiddenByThreadgate = St::HiddenByThreadgate; type OpThread = Set; - type MoreReplies = St::MoreReplies; type MutedByViewer = St::MutedByViewer; + type MoreReplies = St::MoreReplies; + type MoreParents = St::MoreParents; + } + ///State transition - sets the `muted_by_viewer` field to Set + pub struct SetMutedByViewer(PhantomData St>); + impl sealed::Sealed for SetMutedByViewer {} + impl State for SetMutedByViewer { + type Post = St::Post; + type HiddenByThreadgate = St::HiddenByThreadgate; + type OpThread = St::OpThread; + type MutedByViewer = Set; + type MoreReplies = St::MoreReplies; + type MoreParents = St::MoreParents; } ///State transition - sets the `more_replies` field to Set pub struct SetMoreReplies(PhantomData St>); impl sealed::Sealed for SetMoreReplies {} impl State for SetMoreReplies { - type MoreParents = St::MoreParents; - type HiddenByThreadgate = St::HiddenByThreadgate; type Post = St::Post; + type HiddenByThreadgate = St::HiddenByThreadgate; type OpThread = St::OpThread; - type MoreReplies = Set; type MutedByViewer = St::MutedByViewer; - } - ///State transition - sets the `muted_by_viewer` field to Set - pub struct SetMutedByViewer(PhantomData St>); - impl sealed::Sealed for SetMutedByViewer {} - impl State for SetMutedByViewer { + type MoreReplies = Set; type MoreParents = St::MoreParents; - type HiddenByThreadgate = St::HiddenByThreadgate; + } + ///State transition - sets the `more_parents` field to Set + pub struct SetMoreParents(PhantomData St>); + impl sealed::Sealed for SetMoreParents {} + impl State for SetMoreParents { type Post = St::Post; + type HiddenByThreadgate = St::HiddenByThreadgate; type OpThread = St::OpThread; + type MutedByViewer = St::MutedByViewer; type MoreReplies = St::MoreReplies; - type MutedByViewer = Set; + type MoreParents = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `more_parents` field - pub struct more_parents(()); - ///Marker type for the `hidden_by_threadgate` field - pub struct hidden_by_threadgate(()); ///Marker type for the `post` field pub struct post(()); + ///Marker type for the `hidden_by_threadgate` field + pub struct hidden_by_threadgate(()); ///Marker type for the `op_thread` field pub struct op_thread(()); - ///Marker type for the `more_replies` field - pub struct more_replies(()); ///Marker type for the `muted_by_viewer` field pub struct muted_by_viewer(()); + ///Marker type for the `more_replies` field + pub struct more_replies(()); + ///Marker type for the `more_parents` field + pub struct more_parents(()); } } @@ -2461,12 +2461,12 @@ where impl ThreadItemPostBuilder where St: thread_item_post_state::State, - St::MoreParents: thread_item_post_state::IsSet, - St::HiddenByThreadgate: thread_item_post_state::IsSet, St::Post: thread_item_post_state::IsSet, + St::HiddenByThreadgate: thread_item_post_state::IsSet, St::OpThread: thread_item_post_state::IsSet, - St::MoreReplies: thread_item_post_state::IsSet, St::MutedByViewer: thread_item_post_state::IsSet, + St::MoreReplies: thread_item_post_state::IsSet, + St::MoreParents: thread_item_post_state::IsSet, { /// Build the final struct. pub fn build(self) -> ThreadItemPost { @@ -2507,105 +2507,105 @@ pub mod trend_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type StartedAt; + type PostCount; type Actors; - type Link; type Topic; + type Link; + type StartedAt; type DisplayName; - type PostCount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type StartedAt = Unset; + type PostCount = Unset; type Actors = Unset; - type Link = Unset; type Topic = Unset; + type Link = Unset; + type StartedAt = Unset; type DisplayName = Unset; - type PostCount = Unset; } - ///State transition - sets the `started_at` field to Set - pub struct SetStartedAt(PhantomData St>); - impl sealed::Sealed for SetStartedAt {} - impl State for SetStartedAt { - type StartedAt = Set; + ///State transition - sets the `post_count` field to Set + pub struct SetPostCount(PhantomData St>); + impl sealed::Sealed for SetPostCount {} + impl State for SetPostCount { + type PostCount = Set; type Actors = St::Actors; - type Link = St::Link; type Topic = St::Topic; + type Link = St::Link; + type StartedAt = St::StartedAt; type DisplayName = St::DisplayName; - type PostCount = St::PostCount; } ///State transition - sets the `actors` field to Set pub struct SetActors(PhantomData St>); impl sealed::Sealed for SetActors {} impl State for SetActors { - type StartedAt = St::StartedAt; + type PostCount = St::PostCount; type Actors = Set; - type Link = St::Link; type Topic = St::Topic; + type Link = St::Link; + type StartedAt = St::StartedAt; type DisplayName = St::DisplayName; + } + ///State transition - sets the `topic` field to Set + pub struct SetTopic(PhantomData St>); + impl sealed::Sealed for SetTopic {} + impl State for SetTopic { type PostCount = St::PostCount; + type Actors = St::Actors; + type Topic = Set; + type Link = St::Link; + type StartedAt = St::StartedAt; + type DisplayName = St::DisplayName; } ///State transition - sets the `link` field to Set pub struct SetLink(PhantomData St>); impl sealed::Sealed for SetLink {} impl State for SetLink { - type StartedAt = St::StartedAt; + type PostCount = St::PostCount; type Actors = St::Actors; - type Link = Set; type Topic = St::Topic; + type Link = Set; + type StartedAt = St::StartedAt; type DisplayName = St::DisplayName; - type PostCount = St::PostCount; } - ///State transition - sets the `topic` field to Set - pub struct SetTopic(PhantomData St>); - impl sealed::Sealed for SetTopic {} - impl State for SetTopic { - type StartedAt = St::StartedAt; + ///State transition - sets the `started_at` field to Set + pub struct SetStartedAt(PhantomData St>); + impl sealed::Sealed for SetStartedAt {} + impl State for SetStartedAt { + type PostCount = St::PostCount; type Actors = St::Actors; + type Topic = St::Topic; type Link = St::Link; - type Topic = Set; + type StartedAt = Set; type DisplayName = St::DisplayName; - type PostCount = St::PostCount; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData St>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type StartedAt = St::StartedAt; - type Actors = St::Actors; - type Link = St::Link; - type Topic = St::Topic; - type DisplayName = Set; type PostCount = St::PostCount; - } - ///State transition - sets the `post_count` field to Set - pub struct SetPostCount(PhantomData St>); - impl sealed::Sealed for SetPostCount {} - impl State for SetPostCount { - type StartedAt = St::StartedAt; type Actors = St::Actors; - type Link = St::Link; type Topic = St::Topic; - type DisplayName = St::DisplayName; - type PostCount = Set; + type Link = St::Link; + type StartedAt = St::StartedAt; + type DisplayName = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `started_at` field - pub struct started_at(()); + ///Marker type for the `post_count` field + pub struct post_count(()); ///Marker type for the `actors` field pub struct actors(()); - ///Marker type for the `link` field - pub struct link(()); ///Marker type for the `topic` field pub struct topic(()); + ///Marker type for the `link` field + pub struct link(()); + ///Marker type for the `started_at` field + pub struct started_at(()); ///Marker type for the `display_name` field pub struct display_name(()); - ///Marker type for the `post_count` field - pub struct post_count(()); } } @@ -2786,12 +2786,12 @@ where impl TrendViewBuilder where St: trend_view_state::State, - St::StartedAt: trend_view_state::IsSet, + St::PostCount: trend_view_state::IsSet, St::Actors: trend_view_state::IsSet, - St::Link: trend_view_state::IsSet, St::Topic: trend_view_state::IsSet, + St::Link: trend_view_state::IsSet, + St::StartedAt: trend_view_state::IsSet, St::DisplayName: trend_view_state::IsSet, - St::PostCount: trend_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> TrendView { diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_config.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_config.rs index d9a02a2a..c5278940 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_config.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_config.rs @@ -100,37 +100,37 @@ pub mod live_now_config_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Domains; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Domains = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Domains = St::Domains; + type Did = Unset; } ///State transition - sets the `domains` field to Set pub struct SetDomains(PhantomData St>); impl sealed::Sealed for SetDomains {} impl State for SetDomains { - type Did = St::Did; type Domains = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Domains = St::Domains; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `domains` field pub struct domains(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -200,8 +200,8 @@ where impl LiveNowConfigBuilder where St: live_now_config_state::State, - St::Did: live_now_config_state::IsSet, St::Domains: live_now_config_state::IsSet, + St::Did: live_now_config_state::IsSet, { /// Build the final struct. pub fn build(self) -> LiveNowConfig { diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs index 2ab47c35..fc949390 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_other_v2.rs @@ -199,49 +199,49 @@ pub mod thread_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Depth; + type Uri; type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Depth = Unset; + type Uri = Unset; type Value = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Depth = St::Depth; - type Value = St::Value; - } ///State transition - sets the `depth` field to Set pub struct SetDepth(PhantomData St>); impl sealed::Sealed for SetDepth {} impl State for SetDepth { - type Uri = St::Uri; type Depth = Set; + type Uri = St::Uri; + type Value = St::Value; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Depth = St::Depth; + type Uri = Set; type Value = St::Value; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Uri = St::Uri; type Depth = St::Depth; + type Uri = St::Uri; type Value = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `depth` field pub struct depth(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `value` field pub struct value(()); } @@ -332,8 +332,8 @@ where impl ThreadItemBuilder where St: thread_item_state::State, - St::Uri: thread_item_state::IsSet, St::Depth: thread_item_state::IsSet, + St::Uri: thread_item_state::IsSet, St::Value: thread_item_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs index 36aaadb1..611a7a06 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_post_thread_v2.rs @@ -304,51 +304,51 @@ pub mod thread_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Depth; type Uri; type Value; + type Depth; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Depth = Unset; type Uri = Unset; type Value = Unset; - } - ///State transition - sets the `depth` field to Set - pub struct SetDepth(PhantomData St>); - impl sealed::Sealed for SetDepth {} - impl State for SetDepth { - type Depth = Set; - type Uri = St::Uri; - type Value = St::Value; + type Depth = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Depth = St::Depth; type Uri = Set; type Value = St::Value; + type Depth = St::Depth; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Depth = St::Depth; type Uri = St::Uri; type Value = Set; + type Depth = St::Depth; + } + ///State transition - sets the `depth` field to Set + pub struct SetDepth(PhantomData St>); + impl sealed::Sealed for SetDepth {} + impl State for SetDepth { + type Uri = St::Uri; + type Value = St::Value; + type Depth = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `depth` field - pub struct depth(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `depth` field + pub struct depth(()); } } @@ -437,9 +437,9 @@ where impl ThreadItemBuilder where St: thread_item_state::State, - St::Depth: thread_item_state::IsSet, St::Uri: thread_item_state::IsSet, St::Value: thread_item_state::IsSet, + St::Depth: thread_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> ThreadItem { diff --git a/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs b/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs index 5a8c2327..0ec71d6e 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced/get_tagged_suggestions.rs @@ -178,51 +178,51 @@ pub mod suggestion_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type SubjectType; type Tag; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type SubjectType = Unset; type Tag = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type SubjectType = St::SubjectType; - type Tag = St::Tag; + type Subject = Unset; } ///State transition - sets the `subject_type` field to Set pub struct SetSubjectType(PhantomData St>); impl sealed::Sealed for SetSubjectType {} impl State for SetSubjectType { - type Subject = St::Subject; type SubjectType = Set; type Tag = St::Tag; + type Subject = St::Subject; } ///State transition - sets the `tag` field to Set pub struct SetTag(PhantomData St>); impl sealed::Sealed for SetTag {} impl State for SetTag { - type Subject = St::Subject; type SubjectType = St::SubjectType; type Tag = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type SubjectType = St::SubjectType; + type Tag = St::Tag; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `subject_type` field pub struct subject_type(()); ///Marker type for the `tag` field pub struct tag(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -311,9 +311,9 @@ where impl SuggestionBuilder where St: suggestion_state::State, - St::Subject: suggestion_state::IsSet, St::SubjectType: suggestion_state::IsSet, St::Tag: suggestion_state::IsSet, + St::Subject: suggestion_state::IsSet, { /// Build the final struct. pub fn build(self) -> Suggestion { diff --git a/crates/jacquard-api/src/app_bsky/video.rs b/crates/jacquard-api/src/app_bsky/video.rs index ddd6edb5..3ce747e8 100644 --- a/crates/jacquard-api/src/app_bsky/video.rs +++ b/crates/jacquard-api/src/app_bsky/video.rs @@ -173,51 +173,51 @@ pub mod job_status_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type JobId; type Did; type State; + type JobId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type JobId = Unset; type Did = Unset; type State = Unset; - } - ///State transition - sets the `job_id` field to Set - pub struct SetJobId(PhantomData St>); - impl sealed::Sealed for SetJobId {} - impl State for SetJobId { - type JobId = Set; - type Did = St::Did; - type State = St::State; + type JobId = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type JobId = St::JobId; type Did = Set; type State = St::State; + type JobId = St::JobId; } ///State transition - sets the `state` field to Set pub struct SetState(PhantomData St>); impl sealed::Sealed for SetState {} impl State for SetState { - type JobId = St::JobId; type Did = St::Did; type State = Set; + type JobId = St::JobId; + } + ///State transition - sets the `job_id` field to Set + pub struct SetJobId(PhantomData St>); + impl sealed::Sealed for SetJobId {} + impl State for SetJobId { + type Did = St::Did; + type State = St::State; + type JobId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `job_id` field - pub struct job_id(()); ///Marker type for the `did` field pub struct did(()); ///Marker type for the `state` field pub struct state(()); + ///Marker type for the `job_id` field + pub struct job_id(()); } } @@ -366,9 +366,9 @@ where impl JobStatusBuilder where St: job_status_state::State, - St::JobId: job_status_state::IsSet, St::Did: job_status_state::IsSet, St::State: job_status_state::IsSet, + St::JobId: job_status_state::IsSet, { /// Build the final struct. pub fn build(self) -> JobStatus { diff --git a/crates/jacquard-api/src/app_bsky/video/upload_video.rs b/crates/jacquard-api/src/app_bsky/video/upload_video.rs index 469516bb..56f47ee0 100644 --- a/crates/jacquard-api/src/app_bsky/video/upload_video.rs +++ b/crates/jacquard-api/src/app_bsky/video/upload_video.rs @@ -8,15 +8,15 @@ #[allow(unused_imports)] use alloc::collections::BTreeMap; +use crate::app_bsky::video::JobStatus; #[allow(unused_imports)] use core::marker::PhantomData; -use jacquard_common::{BosStr, DefaultStr, FromStaticStr}; use jacquard_common::deps::bytes::Bytes; use jacquard_common::deps::smol_str::SmolStr; use jacquard_common::types::value::Data; +use jacquard_common::{BosStr, DefaultStr, FromStaticStr}; use jacquard_derive::IntoStatic; -use serde::{Serialize, Deserialize}; -use crate::app_bsky::video::JobStatus; +use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)] #[serde(rename_all = "camelCase")] @@ -24,9 +24,11 @@ pub struct UploadVideo { pub body: Bytes, } - #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)] -#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))] +#[serde( + rename_all = "camelCase", + bound(deserialize = "S: Deserialize<'de> + BosStr") +)] pub struct UploadVideoOutput { pub job_status: JobStatus, #[serde(flatten, default, skip_serializing_if = "Option::is_none")] @@ -44,22 +46,16 @@ impl jacquard_common::xrpc::XrpcResp for UploadVideoResponse { impl jacquard_common::xrpc::XrpcRequest for UploadVideo { const NSID: &'static str = "app.bsky.video.uploadVideo"; - const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( - "video/mp4", - ); + const METHOD: jacquard_common::xrpc::XrpcMethod = + jacquard_common::xrpc::XrpcMethod::Procedure("video/mp4"); type Response = UploadVideoResponse; - fn encode_body( - &self, - buffer: &mut [u8], - ) -> Result<(), jacquard_common::xrpc::EncodeError> + fn encode_body(&self, buffer: &mut Vec) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, { Ok(buffer.copy_from_slice(self.body.as_ref())) } - fn decode_body<'de>( - body: &'de [u8], - ) -> Result + fn decode_body<'de>(body: &'de [u8]) -> Result where Self: Deserialize<'de>, { @@ -73,9 +69,8 @@ impl jacquard_common::xrpc::XrpcRequest for UploadVideo { pub struct UploadVideoRequest; impl jacquard_common::xrpc::XrpcEndpoint for UploadVideoRequest { const PATH: &'static str = "/xrpc/app.bsky.video.uploadVideo"; - const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure( - "video/mp4", - ); + const METHOD: jacquard_common::xrpc::XrpcMethod = + jacquard_common::xrpc::XrpcMethod::Procedure("video/mp4"); type Request = UploadVideo; type Response = UploadVideoResponse; -} \ No newline at end of file +} diff --git a/crates/jacquard-api/src/app_certified/badge/award.rs b/crates/jacquard-api/src/app_certified/badge/award.rs index 4027b11b..035eb4e3 100644 --- a/crates/jacquard-api/src/app_certified/badge/award.rs +++ b/crates/jacquard-api/src/app_certified/badge/award.rs @@ -156,51 +156,51 @@ pub mod award_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Subject; type CreatedAt; type Badge; - type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Subject = Unset; type CreatedAt = Unset; type Badge = Unset; - type Subject = Unset; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Subject = Set; + type CreatedAt = St::CreatedAt; + type Badge = St::Badge; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Subject = St::Subject; type CreatedAt = Set; type Badge = St::Badge; - type Subject = St::Subject; } ///State transition - sets the `badge` field to Set pub struct SetBadge(PhantomData St>); impl sealed::Sealed for SetBadge {} impl State for SetBadge { - type CreatedAt = St::CreatedAt; - type Badge = Set; type Subject = St::Subject; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { type CreatedAt = St::CreatedAt; - type Badge = St::Badge; - type Subject = Set; + type Badge = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `subject` field + pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `badge` field pub struct badge(()); - ///Marker type for the `subject` field - pub struct subject(()); } } @@ -321,9 +321,9 @@ impl AwardBuilder { impl AwardBuilder where St: award_state::State, + St::Subject: award_state::IsSet, St::CreatedAt: award_state::IsSet, St::Badge: award_state::IsSet, - St::Subject: award_state::IsSet, { /// Build the final struct. pub fn build(self) -> Award { diff --git a/crates/jacquard-api/src/app_certified/badge/definition.rs b/crates/jacquard-api/src/app_certified/badge/definition.rs index 11860700..62e5bc4f 100644 --- a/crates/jacquard-api/src/app_certified/badge/definition.rs +++ b/crates/jacquard-api/src/app_certified/badge/definition.rs @@ -228,67 +228,67 @@ pub mod definition_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type BadgeType; type Title; - type CreatedAt; type Icon; + type BadgeType; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type BadgeType = Unset; type Title = Unset; - type CreatedAt = Unset; type Icon = Unset; - } - ///State transition - sets the `badge_type` field to Set - pub struct SetBadgeType(PhantomData St>); - impl sealed::Sealed for SetBadgeType {} - impl State for SetBadgeType { - type BadgeType = Set; - type Title = St::Title; - type CreatedAt = St::CreatedAt; - type Icon = St::Icon; + type BadgeType = Unset; + type CreatedAt = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type BadgeType = St::BadgeType; type Title = Set; - type CreatedAt = St::CreatedAt; type Icon = St::Icon; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type BadgeType = St::BadgeType; - type Title = St::Title; - type CreatedAt = Set; - type Icon = St::Icon; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `icon` field to Set pub struct SetIcon(PhantomData St>); impl sealed::Sealed for SetIcon {} impl State for SetIcon { + type Title = St::Title; + type Icon = Set; type BadgeType = St::BadgeType; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `badge_type` field to Set + pub struct SetBadgeType(PhantomData St>); + impl sealed::Sealed for SetBadgeType {} + impl State for SetBadgeType { type Title = St::Title; + type Icon = St::Icon; + type BadgeType = Set; type CreatedAt = St::CreatedAt; - type Icon = Set; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Title = St::Title; + type Icon = St::Icon; + type BadgeType = St::BadgeType; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `badge_type` field - pub struct badge_type(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `icon` field pub struct icon(()); + ///Marker type for the `badge_type` field + pub struct badge_type(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -429,10 +429,10 @@ where impl DefinitionBuilder where St: definition_state::State, - St::BadgeType: definition_state::IsSet, St::Title: definition_state::IsSet, - St::CreatedAt: definition_state::IsSet, St::Icon: definition_state::IsSet, + St::BadgeType: definition_state::IsSet, + St::CreatedAt: definition_state::IsSet, { /// Build the final struct. pub fn build(self) -> Definition { diff --git a/crates/jacquard-api/src/app_certified/location.rs b/crates/jacquard-api/src/app_certified/location.rs index eb00f28b..1dbd61dd 100644 --- a/crates/jacquard-api/src/app_certified/location.rs +++ b/crates/jacquard-api/src/app_certified/location.rs @@ -378,83 +378,83 @@ pub mod location_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type LpVersion; type Srs; type LocationType; + type CreatedAt; + type LpVersion; type Location; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type LpVersion = Unset; type Srs = Unset; type LocationType = Unset; + type CreatedAt = Unset; + type LpVersion = Unset; type Location = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type LpVersion = St::LpVersion; - type Srs = St::Srs; - type LocationType = St::LocationType; - type Location = St::Location; - } - ///State transition - sets the `lp_version` field to Set - pub struct SetLpVersion(PhantomData St>); - impl sealed::Sealed for SetLpVersion {} - impl State for SetLpVersion { - type CreatedAt = St::CreatedAt; - type LpVersion = Set; - type Srs = St::Srs; - type LocationType = St::LocationType; - type Location = St::Location; - } ///State transition - sets the `srs` field to Set pub struct SetSrs(PhantomData St>); impl sealed::Sealed for SetSrs {} impl State for SetSrs { - type CreatedAt = St::CreatedAt; - type LpVersion = St::LpVersion; type Srs = Set; type LocationType = St::LocationType; + type CreatedAt = St::CreatedAt; + type LpVersion = St::LpVersion; type Location = St::Location; } ///State transition - sets the `location_type` field to Set pub struct SetLocationType(PhantomData St>); impl sealed::Sealed for SetLocationType {} impl State for SetLocationType { + type Srs = St::Srs; + type LocationType = Set; type CreatedAt = St::CreatedAt; type LpVersion = St::LpVersion; + type Location = St::Location; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Srs = St::Srs; + type LocationType = St::LocationType; + type CreatedAt = Set; + type LpVersion = St::LpVersion; + type Location = St::Location; + } + ///State transition - sets the `lp_version` field to Set + pub struct SetLpVersion(PhantomData St>); + impl sealed::Sealed for SetLpVersion {} + impl State for SetLpVersion { type Srs = St::Srs; - type LocationType = Set; + type LocationType = St::LocationType; + type CreatedAt = St::CreatedAt; + type LpVersion = Set; type Location = St::Location; } ///State transition - sets the `location` field to Set pub struct SetLocation(PhantomData St>); impl sealed::Sealed for SetLocation {} impl State for SetLocation { - type CreatedAt = St::CreatedAt; - type LpVersion = St::LpVersion; type Srs = St::Srs; type LocationType = St::LocationType; + type CreatedAt = St::CreatedAt; + type LpVersion = St::LpVersion; type Location = 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 `lp_version` field - pub struct lp_version(()); ///Marker type for the `srs` field pub struct srs(()); ///Marker type for the `location_type` field pub struct location_type(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `lp_version` field + pub struct lp_version(()); ///Marker type for the `location` field pub struct location(()); } @@ -617,10 +617,10 @@ where impl LocationBuilder where St: location_state::State, - St::CreatedAt: location_state::IsSet, - St::LpVersion: location_state::IsSet, St::Srs: location_state::IsSet, St::LocationType: location_state::IsSet, + St::CreatedAt: location_state::IsSet, + St::LpVersion: location_state::IsSet, St::Location: location_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_chavatar/settings.rs b/crates/jacquard-api/src/app_chavatar/settings.rs index 81ece5d6..b8ad4a40 100644 --- a/crates/jacquard-api/src/app_chavatar/settings.rs +++ b/crates/jacquard-api/src/app_chavatar/settings.rs @@ -585,8 +585,8 @@ pub mod settings_state { pub trait State: sealed::Sealed { type Avatars; type Enabled; - type Mode; type Interval; + type Mode; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -594,8 +594,8 @@ pub mod settings_state { impl State for Empty { type Avatars = Unset; type Enabled = Unset; - type Mode = Unset; type Interval = Unset; + type Mode = Unset; } ///State transition - sets the `avatars` field to Set pub struct SetAvatars(PhantomData St>); @@ -603,8 +603,8 @@ pub mod settings_state { impl State for SetAvatars { type Avatars = Set; type Enabled = St::Enabled; - type Mode = St::Mode; type Interval = St::Interval; + type Mode = St::Mode; } ///State transition - sets the `enabled` field to Set pub struct SetEnabled(PhantomData St>); @@ -612,17 +612,8 @@ pub mod settings_state { impl State for SetEnabled { type Avatars = St::Avatars; type Enabled = Set; - type Mode = St::Mode; - type Interval = St::Interval; - } - ///State transition - sets the `mode` field to Set - pub struct SetMode(PhantomData St>); - impl sealed::Sealed for SetMode {} - impl State for SetMode { - type Avatars = St::Avatars; - type Enabled = St::Enabled; - type Mode = Set; type Interval = St::Interval; + type Mode = St::Mode; } ///State transition - sets the `interval` field to Set pub struct SetInterval(PhantomData St>); @@ -630,8 +621,17 @@ pub mod settings_state { impl State for SetInterval { type Avatars = St::Avatars; type Enabled = St::Enabled; - type Mode = St::Mode; type Interval = Set; + type Mode = St::Mode; + } + ///State transition - sets the `mode` field to Set + pub struct SetMode(PhantomData St>); + impl sealed::Sealed for SetMode {} + impl State for SetMode { + type Avatars = St::Avatars; + type Enabled = St::Enabled; + type Interval = St::Interval; + type Mode = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -640,10 +640,10 @@ pub mod settings_state { pub struct avatars(()); ///Marker type for the `enabled` field pub struct enabled(()); - ///Marker type for the `mode` field - pub struct mode(()); ///Marker type for the `interval` field pub struct interval(()); + ///Marker type for the `mode` field + pub struct mode(()); } } @@ -758,8 +758,8 @@ where St: settings_state::State, St::Avatars: settings_state::IsSet, St::Enabled: settings_state::IsSet, - St::Mode: settings_state::IsSet, St::Interval: settings_state::IsSet, + St::Mode: settings_state::IsSet, { /// Build the final struct. pub fn build(self) -> Settings { diff --git a/crates/jacquard-api/src/app_chavatar/state.rs b/crates/jacquard-api/src/app_chavatar/state.rs index 3315a54b..d8567a48 100644 --- a/crates/jacquard-api/src/app_chavatar/state.rs +++ b/crates/jacquard-api/src/app_chavatar/state.rs @@ -125,37 +125,37 @@ pub mod state_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type LastUpdated; type Cursor; + type LastUpdated; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type LastUpdated = Unset; type Cursor = Unset; - } - ///State transition - sets the `last_updated` field to Set - pub struct SetLastUpdated(PhantomData St>); - impl sealed::Sealed for SetLastUpdated {} - impl State for SetLastUpdated { - type LastUpdated = Set; - type Cursor = St::Cursor; + type LastUpdated = Unset; } ///State transition - sets the `cursor` field to Set pub struct SetCursor(PhantomData St>); impl sealed::Sealed for SetCursor {} impl State for SetCursor { - type LastUpdated = St::LastUpdated; type Cursor = Set; + type LastUpdated = St::LastUpdated; + } + ///State transition - sets the `last_updated` field to Set + pub struct SetLastUpdated(PhantomData St>); + impl sealed::Sealed for SetLastUpdated {} + impl State for SetLastUpdated { + type Cursor = St::Cursor; + type LastUpdated = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `last_updated` field - pub struct last_updated(()); ///Marker type for the `cursor` field pub struct cursor(()); + ///Marker type for the `last_updated` field + pub struct last_updated(()); } } @@ -225,8 +225,8 @@ where impl StateBuilder where St: state_state::State, - St::LastUpdated: state_state::IsSet, St::Cursor: state_state::IsSet, + St::LastUpdated: state_state::IsSet, { /// Build the final struct. pub fn build(self) -> State { diff --git a/crates/jacquard-api/src/app_chronosky/media/upload_blob.rs b/crates/jacquard-api/src/app_chronosky/media/upload_blob.rs index cdcc68c6..dc18acd6 100644 --- a/crates/jacquard-api/src/app_chronosky/media/upload_blob.rs +++ b/crates/jacquard-api/src/app_chronosky/media/upload_blob.rs @@ -121,7 +121,7 @@ impl jacquard_common::xrpc::XrpcRequest for UploadBlob { type Response = UploadBlobResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, diff --git a/crates/jacquard-api/src/app_chronosky/plan/get_assignment.rs b/crates/jacquard-api/src/app_chronosky/plan/get_assignment.rs index 0a6bca56..bbbf4997 100644 --- a/crates/jacquard-api/src/app_chronosky/plan/get_assignment.rs +++ b/crates/jacquard-api/src/app_chronosky/plan/get_assignment.rs @@ -279,105 +279,105 @@ pub mod plan_assignment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; type ActivatedAt; - type PlanId; - type ExpiresAt; + type Id; type Status; type Plan; + type ExpiresAt; + type PlanId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Id = Unset; type ActivatedAt = Unset; - type PlanId = Unset; - type ExpiresAt = Unset; + type Id = Unset; type Status = Unset; type Plan = Unset; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type ActivatedAt = St::ActivatedAt; - type PlanId = St::PlanId; - type ExpiresAt = St::ExpiresAt; - type Status = St::Status; - type Plan = St::Plan; + type ExpiresAt = Unset; + type PlanId = Unset; } ///State transition - sets the `activated_at` field to Set pub struct SetActivatedAt(PhantomData St>); impl sealed::Sealed for SetActivatedAt {} impl State for SetActivatedAt { - type Id = St::Id; type ActivatedAt = Set; - type PlanId = St::PlanId; - type ExpiresAt = St::ExpiresAt; - type Status = St::Status; - type Plan = St::Plan; - } - ///State transition - sets the `plan_id` field to Set - pub struct SetPlanId(PhantomData St>); - impl sealed::Sealed for SetPlanId {} - impl State for SetPlanId { type Id = St::Id; - type ActivatedAt = St::ActivatedAt; - type PlanId = Set; - type ExpiresAt = St::ExpiresAt; type Status = St::Status; type Plan = St::Plan; + type ExpiresAt = St::ExpiresAt; + type PlanId = St::PlanId; } - ///State transition - sets the `expires_at` field to Set - pub struct SetExpiresAt(PhantomData St>); - impl sealed::Sealed for SetExpiresAt {} - impl State for SetExpiresAt { - type Id = St::Id; + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { type ActivatedAt = St::ActivatedAt; - type PlanId = St::PlanId; - type ExpiresAt = Set; + type Id = Set; type Status = St::Status; type Plan = St::Plan; + type ExpiresAt = St::ExpiresAt; + type PlanId = St::PlanId; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type Id = St::Id; type ActivatedAt = St::ActivatedAt; - type PlanId = St::PlanId; - type ExpiresAt = St::ExpiresAt; + type Id = St::Id; type Status = Set; type Plan = St::Plan; + type ExpiresAt = St::ExpiresAt; + type PlanId = St::PlanId; } ///State transition - sets the `plan` field to Set pub struct SetPlan(PhantomData St>); impl sealed::Sealed for SetPlan {} impl State for SetPlan { + type ActivatedAt = St::ActivatedAt; type Id = St::Id; + type Status = St::Status; + type Plan = Set; + type ExpiresAt = St::ExpiresAt; + type PlanId = St::PlanId; + } + ///State transition - sets the `expires_at` field to Set + pub struct SetExpiresAt(PhantomData St>); + impl sealed::Sealed for SetExpiresAt {} + impl State for SetExpiresAt { type ActivatedAt = St::ActivatedAt; + type Id = St::Id; + type Status = St::Status; + type Plan = St::Plan; + type ExpiresAt = Set; type PlanId = St::PlanId; - type ExpiresAt = St::ExpiresAt; + } + ///State transition - sets the `plan_id` field to Set + pub struct SetPlanId(PhantomData St>); + impl sealed::Sealed for SetPlanId {} + impl State for SetPlanId { + type ActivatedAt = St::ActivatedAt; + type Id = St::Id; type Status = St::Status; - type Plan = Set; + type Plan = St::Plan; + type ExpiresAt = St::ExpiresAt; + type PlanId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `id` field - pub struct id(()); ///Marker type for the `activated_at` field pub struct activated_at(()); - ///Marker type for the `plan_id` field - pub struct plan_id(()); - ///Marker type for the `expires_at` field - pub struct expires_at(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `status` field pub struct status(()); ///Marker type for the `plan` field pub struct plan(()); + ///Marker type for the `expires_at` field + pub struct expires_at(()); + ///Marker type for the `plan_id` field + pub struct plan_id(()); } } @@ -547,12 +547,12 @@ impl PlanAssignmentBuilder { impl PlanAssignmentBuilder where St: plan_assignment_state::State, - St::Id: plan_assignment_state::IsSet, St::ActivatedAt: plan_assignment_state::IsSet, - St::PlanId: plan_assignment_state::IsSet, - St::ExpiresAt: plan_assignment_state::IsSet, + St::Id: plan_assignment_state::IsSet, St::Status: plan_assignment_state::IsSet, St::Plan: plan_assignment_state::IsSet, + St::ExpiresAt: plan_assignment_state::IsSet, + St::PlanId: plan_assignment_state::IsSet, { /// Build the final struct. pub fn build(self) -> PlanAssignment { diff --git a/crates/jacquard-api/src/app_chronosky/plan/get_usage.rs b/crates/jacquard-api/src/app_chronosky/plan/get_usage.rs index f8ea6391..1f61d5ad 100644 --- a/crates/jacquard-api/src/app_chronosky/plan/get_usage.rs +++ b/crates/jacquard-api/src/app_chronosky/plan/get_usage.rs @@ -238,85 +238,85 @@ pub mod current_plan_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type DisplayName; - type Id; type Name; type IsActive; type Tier; + type DisplayName; + type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type DisplayName = Unset; - type Id = Unset; type Name = Unset; type IsActive = Unset; type Tier = Unset; - } - ///State transition - sets the `display_name` field to Set - pub struct SetDisplayName(PhantomData St>); - impl sealed::Sealed for SetDisplayName {} - impl State for SetDisplayName { - type DisplayName = Set; - type Id = St::Id; - type Name = St::Name; - type IsActive = St::IsActive; - type Tier = St::Tier; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type DisplayName = St::DisplayName; - type Id = Set; - type Name = St::Name; - type IsActive = St::IsActive; - type Tier = St::Tier; + type DisplayName = Unset; + type Id = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type DisplayName = St::DisplayName; - type Id = St::Id; type Name = Set; type IsActive = St::IsActive; type Tier = St::Tier; + type DisplayName = St::DisplayName; + type Id = St::Id; } ///State transition - sets the `is_active` field to Set pub struct SetIsActive(PhantomData St>); impl sealed::Sealed for SetIsActive {} impl State for SetIsActive { - type DisplayName = St::DisplayName; - type Id = St::Id; type Name = St::Name; type IsActive = Set; type Tier = St::Tier; + type DisplayName = St::DisplayName; + type Id = St::Id; } ///State transition - sets the `tier` field to Set pub struct SetTier(PhantomData St>); impl sealed::Sealed for SetTier {} impl State for SetTier { + type Name = St::Name; + type IsActive = St::IsActive; + type Tier = Set; type DisplayName = St::DisplayName; type Id = St::Id; + } + ///State transition - sets the `display_name` field to Set + pub struct SetDisplayName(PhantomData St>); + impl sealed::Sealed for SetDisplayName {} + impl State for SetDisplayName { type Name = St::Name; type IsActive = St::IsActive; - type Tier = Set; + type Tier = St::Tier; + type DisplayName = Set; + type Id = St::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Name = St::Name; + type IsActive = St::IsActive; + type Tier = St::Tier; + type DisplayName = St::DisplayName; + type Id = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `display_name` field - pub struct display_name(()); - ///Marker type for the `id` field - pub struct id(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `is_active` field pub struct is_active(()); ///Marker type for the `tier` field pub struct tier(()); + ///Marker type for the `display_name` field + pub struct display_name(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -463,11 +463,11 @@ impl CurrentPlanBuilder { impl CurrentPlanBuilder where St: current_plan_state::State, - St::DisplayName: current_plan_state::IsSet, - St::Id: current_plan_state::IsSet, St::Name: current_plan_state::IsSet, St::IsActive: current_plan_state::IsSet, St::Tier: current_plan_state::IsSet, + St::DisplayName: current_plan_state::IsSet, + St::Id: current_plan_state::IsSet, { /// Build the final struct. pub fn build(self) -> CurrentPlan { @@ -778,105 +778,105 @@ pub mod plan_limits_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type MaxScheduleDays; - type ThreadPostsLimit; - type MaxImagesPerPost; type ScheduleIntervalMinutes; - type PendingPostsLimit; + type MaxImagesPerPost; type MonthlyPostsLimit; + type MaxScheduleDays; + type PendingPostsLimit; + type ThreadPostsLimit; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type MaxScheduleDays = Unset; - type ThreadPostsLimit = Unset; - type MaxImagesPerPost = Unset; type ScheduleIntervalMinutes = Unset; - type PendingPostsLimit = Unset; + type MaxImagesPerPost = Unset; type MonthlyPostsLimit = Unset; + type MaxScheduleDays = Unset; + type PendingPostsLimit = Unset; + type ThreadPostsLimit = Unset; } - ///State transition - sets the `max_schedule_days` field to Set - pub struct SetMaxScheduleDays(PhantomData St>); - impl sealed::Sealed for SetMaxScheduleDays {} - impl State for SetMaxScheduleDays { - type MaxScheduleDays = Set; - type ThreadPostsLimit = St::ThreadPostsLimit; + ///State transition - sets the `schedule_interval_minutes` field to Set + pub struct SetScheduleIntervalMinutes(PhantomData St>); + impl sealed::Sealed for SetScheduleIntervalMinutes {} + impl State for SetScheduleIntervalMinutes { + type ScheduleIntervalMinutes = Set; type MaxImagesPerPost = St::MaxImagesPerPost; - type ScheduleIntervalMinutes = St::ScheduleIntervalMinutes; - type PendingPostsLimit = St::PendingPostsLimit; type MonthlyPostsLimit = St::MonthlyPostsLimit; - } - ///State transition - sets the `thread_posts_limit` field to Set - pub struct SetThreadPostsLimit(PhantomData St>); - impl sealed::Sealed for SetThreadPostsLimit {} - impl State for SetThreadPostsLimit { type MaxScheduleDays = St::MaxScheduleDays; - type ThreadPostsLimit = Set; - type MaxImagesPerPost = St::MaxImagesPerPost; - type ScheduleIntervalMinutes = St::ScheduleIntervalMinutes; type PendingPostsLimit = St::PendingPostsLimit; - type MonthlyPostsLimit = St::MonthlyPostsLimit; + type ThreadPostsLimit = St::ThreadPostsLimit; } ///State transition - sets the `max_images_per_post` field to Set pub struct SetMaxImagesPerPost(PhantomData St>); impl sealed::Sealed for SetMaxImagesPerPost {} impl State for SetMaxImagesPerPost { - type MaxScheduleDays = St::MaxScheduleDays; - type ThreadPostsLimit = St::ThreadPostsLimit; - type MaxImagesPerPost = Set; type ScheduleIntervalMinutes = St::ScheduleIntervalMinutes; - type PendingPostsLimit = St::PendingPostsLimit; + type MaxImagesPerPost = Set; type MonthlyPostsLimit = St::MonthlyPostsLimit; - } - ///State transition - sets the `schedule_interval_minutes` field to Set - pub struct SetScheduleIntervalMinutes(PhantomData St>); - impl sealed::Sealed for SetScheduleIntervalMinutes {} - impl State for SetScheduleIntervalMinutes { type MaxScheduleDays = St::MaxScheduleDays; + type PendingPostsLimit = St::PendingPostsLimit; type ThreadPostsLimit = St::ThreadPostsLimit; + } + ///State transition - sets the `monthly_posts_limit` field to Set + pub struct SetMonthlyPostsLimit(PhantomData St>); + impl sealed::Sealed for SetMonthlyPostsLimit {} + impl State for SetMonthlyPostsLimit { + type ScheduleIntervalMinutes = St::ScheduleIntervalMinutes; type MaxImagesPerPost = St::MaxImagesPerPost; - type ScheduleIntervalMinutes = Set; + type MonthlyPostsLimit = Set; + type MaxScheduleDays = St::MaxScheduleDays; type PendingPostsLimit = St::PendingPostsLimit; + type ThreadPostsLimit = St::ThreadPostsLimit; + } + ///State transition - sets the `max_schedule_days` field to Set + pub struct SetMaxScheduleDays(PhantomData St>); + impl sealed::Sealed for SetMaxScheduleDays {} + impl State for SetMaxScheduleDays { + type ScheduleIntervalMinutes = St::ScheduleIntervalMinutes; + type MaxImagesPerPost = St::MaxImagesPerPost; type MonthlyPostsLimit = St::MonthlyPostsLimit; + type MaxScheduleDays = Set; + type PendingPostsLimit = St::PendingPostsLimit; + type ThreadPostsLimit = St::ThreadPostsLimit; } ///State transition - sets the `pending_posts_limit` field to Set pub struct SetPendingPostsLimit(PhantomData St>); impl sealed::Sealed for SetPendingPostsLimit {} impl State for SetPendingPostsLimit { - type MaxScheduleDays = St::MaxScheduleDays; - type ThreadPostsLimit = St::ThreadPostsLimit; - type MaxImagesPerPost = St::MaxImagesPerPost; type ScheduleIntervalMinutes = St::ScheduleIntervalMinutes; - type PendingPostsLimit = Set; + type MaxImagesPerPost = St::MaxImagesPerPost; type MonthlyPostsLimit = St::MonthlyPostsLimit; - } - ///State transition - sets the `monthly_posts_limit` field to Set - pub struct SetMonthlyPostsLimit(PhantomData St>); - impl sealed::Sealed for SetMonthlyPostsLimit {} - impl State for SetMonthlyPostsLimit { type MaxScheduleDays = St::MaxScheduleDays; + type PendingPostsLimit = Set; type ThreadPostsLimit = St::ThreadPostsLimit; - type MaxImagesPerPost = St::MaxImagesPerPost; + } + ///State transition - sets the `thread_posts_limit` field to Set + pub struct SetThreadPostsLimit(PhantomData St>); + impl sealed::Sealed for SetThreadPostsLimit {} + impl State for SetThreadPostsLimit { type ScheduleIntervalMinutes = St::ScheduleIntervalMinutes; + type MaxImagesPerPost = St::MaxImagesPerPost; + type MonthlyPostsLimit = St::MonthlyPostsLimit; + type MaxScheduleDays = St::MaxScheduleDays; type PendingPostsLimit = St::PendingPostsLimit; - type MonthlyPostsLimit = Set; + type ThreadPostsLimit = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `max_schedule_days` field - pub struct max_schedule_days(()); - ///Marker type for the `thread_posts_limit` field - pub struct thread_posts_limit(()); - ///Marker type for the `max_images_per_post` field - pub struct max_images_per_post(()); ///Marker type for the `schedule_interval_minutes` field pub struct schedule_interval_minutes(()); - ///Marker type for the `pending_posts_limit` field - pub struct pending_posts_limit(()); + ///Marker type for the `max_images_per_post` field + pub struct max_images_per_post(()); ///Marker type for the `monthly_posts_limit` field pub struct monthly_posts_limit(()); + ///Marker type for the `max_schedule_days` field + pub struct max_schedule_days(()); + ///Marker type for the `pending_posts_limit` field + pub struct pending_posts_limit(()); + ///Marker type for the `thread_posts_limit` field + pub struct thread_posts_limit(()); } } @@ -1129,12 +1129,12 @@ impl PlanLimitsBuilder { impl PlanLimitsBuilder where St: plan_limits_state::State, - St::MaxScheduleDays: plan_limits_state::IsSet, - St::ThreadPostsLimit: plan_limits_state::IsSet, - St::MaxImagesPerPost: plan_limits_state::IsSet, St::ScheduleIntervalMinutes: plan_limits_state::IsSet, - St::PendingPostsLimit: plan_limits_state::IsSet, + St::MaxImagesPerPost: plan_limits_state::IsSet, St::MonthlyPostsLimit: plan_limits_state::IsSet, + St::MaxScheduleDays: plan_limits_state::IsSet, + St::PendingPostsLimit: plan_limits_state::IsSet, + St::ThreadPostsLimit: plan_limits_state::IsSet, { /// Build the final struct. pub fn build(self) -> PlanLimits { @@ -1187,85 +1187,85 @@ pub mod usage_stats_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type PendingPostsCount; - type LastUpdated; + type MonthlyPeriodEnd; type MonthlyPostsCount; type MonthlyPeriodStart; - type MonthlyPeriodEnd; + type PendingPostsCount; + type LastUpdated; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type PendingPostsCount = Unset; - type LastUpdated = Unset; + type MonthlyPeriodEnd = Unset; type MonthlyPostsCount = Unset; type MonthlyPeriodStart = Unset; - type MonthlyPeriodEnd = Unset; + type PendingPostsCount = Unset; + type LastUpdated = Unset; } - ///State transition - sets the `pending_posts_count` field to Set - pub struct SetPendingPostsCount(PhantomData St>); - impl sealed::Sealed for SetPendingPostsCount {} - impl State for SetPendingPostsCount { - type PendingPostsCount = Set; - type LastUpdated = St::LastUpdated; + ///State transition - sets the `monthly_period_end` field to Set + pub struct SetMonthlyPeriodEnd(PhantomData St>); + impl sealed::Sealed for SetMonthlyPeriodEnd {} + impl State for SetMonthlyPeriodEnd { + type MonthlyPeriodEnd = Set; type MonthlyPostsCount = St::MonthlyPostsCount; type MonthlyPeriodStart = St::MonthlyPeriodStart; - type MonthlyPeriodEnd = St::MonthlyPeriodEnd; - } - ///State transition - sets the `last_updated` field to Set - pub struct SetLastUpdated(PhantomData St>); - impl sealed::Sealed for SetLastUpdated {} - impl State for SetLastUpdated { type PendingPostsCount = St::PendingPostsCount; - type LastUpdated = Set; - type MonthlyPostsCount = St::MonthlyPostsCount; - type MonthlyPeriodStart = St::MonthlyPeriodStart; - type MonthlyPeriodEnd = St::MonthlyPeriodEnd; + type LastUpdated = St::LastUpdated; } ///State transition - sets the `monthly_posts_count` field to Set pub struct SetMonthlyPostsCount(PhantomData St>); impl sealed::Sealed for SetMonthlyPostsCount {} impl State for SetMonthlyPostsCount { - type PendingPostsCount = St::PendingPostsCount; - type LastUpdated = St::LastUpdated; + type MonthlyPeriodEnd = St::MonthlyPeriodEnd; type MonthlyPostsCount = Set; type MonthlyPeriodStart = St::MonthlyPeriodStart; - type MonthlyPeriodEnd = St::MonthlyPeriodEnd; + type PendingPostsCount = St::PendingPostsCount; + type LastUpdated = St::LastUpdated; } ///State transition - sets the `monthly_period_start` field to Set pub struct SetMonthlyPeriodStart(PhantomData St>); impl sealed::Sealed for SetMonthlyPeriodStart {} impl State for SetMonthlyPeriodStart { - type PendingPostsCount = St::PendingPostsCount; - type LastUpdated = St::LastUpdated; + type MonthlyPeriodEnd = St::MonthlyPeriodEnd; type MonthlyPostsCount = St::MonthlyPostsCount; type MonthlyPeriodStart = Set; - type MonthlyPeriodEnd = St::MonthlyPeriodEnd; - } - ///State transition - sets the `monthly_period_end` field to Set - pub struct SetMonthlyPeriodEnd(PhantomData St>); - impl sealed::Sealed for SetMonthlyPeriodEnd {} - impl State for SetMonthlyPeriodEnd { type PendingPostsCount = St::PendingPostsCount; type LastUpdated = St::LastUpdated; + } + ///State transition - sets the `pending_posts_count` field to Set + pub struct SetPendingPostsCount(PhantomData St>); + impl sealed::Sealed for SetPendingPostsCount {} + impl State for SetPendingPostsCount { + type MonthlyPeriodEnd = St::MonthlyPeriodEnd; + type MonthlyPostsCount = St::MonthlyPostsCount; + type MonthlyPeriodStart = St::MonthlyPeriodStart; + type PendingPostsCount = Set; + type LastUpdated = St::LastUpdated; + } + ///State transition - sets the `last_updated` field to Set + pub struct SetLastUpdated(PhantomData St>); + impl sealed::Sealed for SetLastUpdated {} + impl State for SetLastUpdated { + type MonthlyPeriodEnd = St::MonthlyPeriodEnd; type MonthlyPostsCount = St::MonthlyPostsCount; type MonthlyPeriodStart = St::MonthlyPeriodStart; - type MonthlyPeriodEnd = Set; + type PendingPostsCount = St::PendingPostsCount; + type LastUpdated = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `pending_posts_count` field - pub struct pending_posts_count(()); - ///Marker type for the `last_updated` field - pub struct last_updated(()); + ///Marker type for the `monthly_period_end` field + pub struct monthly_period_end(()); ///Marker type for the `monthly_posts_count` field pub struct monthly_posts_count(()); ///Marker type for the `monthly_period_start` field pub struct monthly_period_start(()); - ///Marker type for the `monthly_period_end` field - pub struct monthly_period_end(()); + ///Marker type for the `pending_posts_count` field + pub struct pending_posts_count(()); + ///Marker type for the `last_updated` field + pub struct last_updated(()); } } @@ -1426,11 +1426,11 @@ impl UsageStatsBuilder { impl UsageStatsBuilder where St: usage_stats_state::State, - St::PendingPostsCount: usage_stats_state::IsSet, - St::LastUpdated: usage_stats_state::IsSet, + St::MonthlyPeriodEnd: usage_stats_state::IsSet, St::MonthlyPostsCount: usage_stats_state::IsSet, St::MonthlyPeriodStart: usage_stats_state::IsSet, - St::MonthlyPeriodEnd: usage_stats_state::IsSet, + St::PendingPostsCount: usage_stats_state::IsSet, + St::LastUpdated: usage_stats_state::IsSet, { /// Build the final struct. pub fn build(self) -> UsageStats { diff --git a/crates/jacquard-api/src/app_chronosky/plan/redeem_ticket.rs b/crates/jacquard-api/src/app_chronosky/plan/redeem_ticket.rs index c6d8131b..2a9191d0 100644 --- a/crates/jacquard-api/src/app_chronosky/plan/redeem_ticket.rs +++ b/crates/jacquard-api/src/app_chronosky/plan/redeem_ticket.rs @@ -214,85 +214,85 @@ pub mod redeemed_assignment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ExpiresAt; - type ActivatedAt; + type Status; type Id; type PlanId; - type Status; + type ActivatedAt; + type ExpiresAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ExpiresAt = Unset; - type ActivatedAt = Unset; + type Status = Unset; type Id = Unset; type PlanId = Unset; - type Status = Unset; + type ActivatedAt = Unset; + type ExpiresAt = Unset; } - ///State transition - sets the `expires_at` field to Set - pub struct SetExpiresAt(PhantomData St>); - impl sealed::Sealed for SetExpiresAt {} - impl State for SetExpiresAt { - type ExpiresAt = Set; - type ActivatedAt = St::ActivatedAt; + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type Status = Set; type Id = St::Id; type PlanId = St::PlanId; - type Status = St::Status; - } - ///State transition - sets the `activated_at` field to Set - pub struct SetActivatedAt(PhantomData St>); - impl sealed::Sealed for SetActivatedAt {} - impl State for SetActivatedAt { + type ActivatedAt = St::ActivatedAt; type ExpiresAt = St::ExpiresAt; - type ActivatedAt = Set; - type Id = St::Id; - type PlanId = St::PlanId; - type Status = St::Status; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type ExpiresAt = St::ExpiresAt; - type ActivatedAt = St::ActivatedAt; + type Status = St::Status; type Id = Set; type PlanId = St::PlanId; - type Status = St::Status; + type ActivatedAt = St::ActivatedAt; + type ExpiresAt = St::ExpiresAt; } ///State transition - sets the `plan_id` field to Set pub struct SetPlanId(PhantomData St>); impl sealed::Sealed for SetPlanId {} impl State for SetPlanId { - type ExpiresAt = St::ExpiresAt; - type ActivatedAt = St::ActivatedAt; + type Status = St::Status; type Id = St::Id; type PlanId = Set; - type Status = St::Status; + type ActivatedAt = St::ActivatedAt; + type ExpiresAt = St::ExpiresAt; } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { + ///State transition - sets the `activated_at` field to Set + pub struct SetActivatedAt(PhantomData St>); + impl sealed::Sealed for SetActivatedAt {} + impl State for SetActivatedAt { + type Status = St::Status; + type Id = St::Id; + type PlanId = St::PlanId; + type ActivatedAt = Set; type ExpiresAt = St::ExpiresAt; - type ActivatedAt = St::ActivatedAt; + } + ///State transition - sets the `expires_at` field to Set + pub struct SetExpiresAt(PhantomData St>); + impl sealed::Sealed for SetExpiresAt {} + impl State for SetExpiresAt { + type Status = St::Status; type Id = St::Id; type PlanId = St::PlanId; - type Status = Set; + type ActivatedAt = St::ActivatedAt; + type ExpiresAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `expires_at` field - pub struct expires_at(()); - ///Marker type for the `activated_at` field - pub struct activated_at(()); + ///Marker type for the `status` field + pub struct status(()); ///Marker type for the `id` field pub struct id(()); ///Marker type for the `plan_id` field pub struct plan_id(()); - ///Marker type for the `status` field - pub struct status(()); + ///Marker type for the `activated_at` field + pub struct activated_at(()); + ///Marker type for the `expires_at` field + pub struct expires_at(()); } } @@ -419,11 +419,11 @@ where impl RedeemedAssignmentBuilder where St: redeemed_assignment_state::State, - St::ExpiresAt: redeemed_assignment_state::IsSet, - St::ActivatedAt: redeemed_assignment_state::IsSet, + St::Status: redeemed_assignment_state::IsSet, St::Id: redeemed_assignment_state::IsSet, St::PlanId: redeemed_assignment_state::IsSet, - St::Status: redeemed_assignment_state::IsSet, + St::ActivatedAt: redeemed_assignment_state::IsSet, + St::ExpiresAt: redeemed_assignment_state::IsSet, { /// Build the final struct. pub fn build(self) -> RedeemedAssignment { diff --git a/crates/jacquard-api/src/app_chronosky/schedule/list_posts.rs b/crates/jacquard-api/src/app_chronosky/schedule/list_posts.rs index fc3cdc2a..5664e60c 100644 --- a/crates/jacquard-api/src/app_chronosky/schedule/list_posts.rs +++ b/crates/jacquard-api/src/app_chronosky/schedule/list_posts.rs @@ -1296,66 +1296,66 @@ pub mod pagination_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Limit; - type Total; type Page; type TotalPages; + type Total; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Limit = Unset; - type Total = Unset; type Page = Unset; type TotalPages = Unset; + type Total = Unset; } ///State transition - sets the `limit` field to Set pub struct SetLimit(PhantomData St>); impl sealed::Sealed for SetLimit {} impl State for SetLimit { type Limit = Set; - type Total = St::Total; - type Page = St::Page; - type TotalPages = St::TotalPages; - } - ///State transition - sets the `total` field to Set - pub struct SetTotal(PhantomData St>); - impl sealed::Sealed for SetTotal {} - impl State for SetTotal { - type Limit = St::Limit; - type Total = Set; type Page = St::Page; type TotalPages = St::TotalPages; + type Total = St::Total; } ///State transition - sets the `page` field to Set pub struct SetPage(PhantomData St>); impl sealed::Sealed for SetPage {} impl State for SetPage { type Limit = St::Limit; - type Total = St::Total; type Page = Set; type TotalPages = St::TotalPages; + type Total = St::Total; } ///State transition - sets the `total_pages` field to Set pub struct SetTotalPages(PhantomData St>); impl sealed::Sealed for SetTotalPages {} impl State for SetTotalPages { type Limit = St::Limit; - type Total = St::Total; type Page = St::Page; type TotalPages = Set; + type Total = St::Total; + } + ///State transition - sets the `total` field to Set + pub struct SetTotal(PhantomData St>); + impl sealed::Sealed for SetTotal {} + impl State for SetTotal { + type Limit = St::Limit; + type Page = St::Page; + type TotalPages = St::TotalPages; + type Total = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `limit` field pub struct limit(()); - ///Marker type for the `total` field - pub struct total(()); ///Marker type for the `page` field pub struct page(()); ///Marker type for the `total_pages` field pub struct total_pages(()); + ///Marker type for the `total` field + pub struct total(()); } } @@ -1464,9 +1464,9 @@ impl PaginationBuilder where St: pagination_state::State, St::Limit: pagination_state::IsSet, - St::Total: pagination_state::IsSet, St::Page: pagination_state::IsSet, St::TotalPages: pagination_state::IsSet, + St::Total: pagination_state::IsSet, { /// Build the final struct. pub fn build(self) -> Pagination { @@ -1503,177 +1503,177 @@ pub mod scheduled_post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type UserId; - type Text; - type ScheduledAt; type Id; - type CreatedAt; + type Text; + type UserId; type UpdatedAt; - type Status; - type RetryCount; type Langs; + type RetryCount; + type CreatedAt; + type Status; + type ScheduledAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type UserId = Unset; - type Text = Unset; - type ScheduledAt = Unset; type Id = Unset; - type CreatedAt = Unset; + type Text = Unset; + type UserId = Unset; type UpdatedAt = Unset; - type Status = Unset; - type RetryCount = Unset; type Langs = Unset; + type RetryCount = Unset; + type CreatedAt = Unset; + type Status = Unset; + type ScheduledAt = Unset; } - ///State transition - sets the `user_id` field to Set - pub struct SetUserId(PhantomData St>); - impl sealed::Sealed for SetUserId {} - impl State for SetUserId { - type UserId = Set; + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Id = Set; type Text = St::Text; - type ScheduledAt = St::ScheduledAt; - type Id = St::Id; - type CreatedAt = St::CreatedAt; + type UserId = St::UserId; type UpdatedAt = St::UpdatedAt; - type Status = St::Status; - type RetryCount = St::RetryCount; type Langs = St::Langs; + type RetryCount = St::RetryCount; + type CreatedAt = St::CreatedAt; + type Status = St::Status; + type ScheduledAt = St::ScheduledAt; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { - type UserId = St::UserId; - type Text = Set; - type ScheduledAt = St::ScheduledAt; type Id = St::Id; - type CreatedAt = St::CreatedAt; - type UpdatedAt = St::UpdatedAt; - type Status = St::Status; - type RetryCount = St::RetryCount; - type Langs = St::Langs; - } - ///State transition - sets the `scheduled_at` field to Set - pub struct SetScheduledAt(PhantomData St>); - impl sealed::Sealed for SetScheduledAt {} - impl State for SetScheduledAt { + type Text = Set; type UserId = St::UserId; - type Text = St::Text; - type ScheduledAt = Set; - type Id = St::Id; - type CreatedAt = St::CreatedAt; type UpdatedAt = St::UpdatedAt; - type Status = St::Status; - type RetryCount = St::RetryCount; type Langs = St::Langs; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type UserId = St::UserId; - type Text = St::Text; - type ScheduledAt = St::ScheduledAt; - type Id = Set; + type RetryCount = St::RetryCount; type CreatedAt = St::CreatedAt; - type UpdatedAt = St::UpdatedAt; type Status = St::Status; - type RetryCount = St::RetryCount; - type Langs = St::Langs; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type UserId = St::UserId; - type Text = St::Text; type ScheduledAt = St::ScheduledAt; + } + ///State transition - sets the `user_id` field to Set + pub struct SetUserId(PhantomData St>); + impl sealed::Sealed for SetUserId {} + impl State for SetUserId { type Id = St::Id; - type CreatedAt = Set; + type Text = St::Text; + type UserId = Set; type UpdatedAt = St::UpdatedAt; - type Status = St::Status; - type RetryCount = St::RetryCount; type Langs = St::Langs; + type RetryCount = St::RetryCount; + type CreatedAt = St::CreatedAt; + type Status = St::Status; + type ScheduledAt = St::ScheduledAt; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData St>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { - type UserId = St::UserId; - type Text = St::Text; - type ScheduledAt = St::ScheduledAt; type Id = St::Id; - type CreatedAt = St::CreatedAt; + type Text = St::Text; + type UserId = St::UserId; type UpdatedAt = Set; - type Status = St::Status; - type RetryCount = St::RetryCount; type Langs = St::Langs; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { - type UserId = St::UserId; - type Text = St::Text; + type RetryCount = St::RetryCount; + type CreatedAt = St::CreatedAt; + type Status = St::Status; type ScheduledAt = St::ScheduledAt; + } + ///State transition - sets the `langs` field to Set + pub struct SetLangs(PhantomData St>); + impl sealed::Sealed for SetLangs {} + impl State for SetLangs { type Id = St::Id; - type CreatedAt = St::CreatedAt; + type Text = St::Text; + type UserId = St::UserId; type UpdatedAt = St::UpdatedAt; - type Status = Set; + type Langs = Set; type RetryCount = St::RetryCount; - type Langs = St::Langs; + type CreatedAt = St::CreatedAt; + type Status = St::Status; + type ScheduledAt = St::ScheduledAt; } ///State transition - sets the `retry_count` field to Set pub struct SetRetryCount(PhantomData St>); impl sealed::Sealed for SetRetryCount {} impl State for SetRetryCount { - type UserId = St::UserId; + type Id = St::Id; type Text = St::Text; + type UserId = St::UserId; + type UpdatedAt = St::UpdatedAt; + type Langs = St::Langs; + type RetryCount = Set; + type CreatedAt = St::CreatedAt; + type Status = St::Status; type ScheduledAt = St::ScheduledAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type Id = St::Id; - type CreatedAt = St::CreatedAt; + type Text = St::Text; + type UserId = St::UserId; type UpdatedAt = St::UpdatedAt; - type Status = St::Status; - type RetryCount = Set; type Langs = St::Langs; + type RetryCount = St::RetryCount; + type CreatedAt = Set; + type Status = St::Status; + type ScheduledAt = St::ScheduledAt; } - ///State transition - sets the `langs` field to Set - pub struct SetLangs(PhantomData St>); - impl sealed::Sealed for SetLangs {} - impl State for SetLangs { - type UserId = St::UserId; + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type Id = St::Id; type Text = St::Text; + type UserId = St::UserId; + type UpdatedAt = St::UpdatedAt; + type Langs = St::Langs; + type RetryCount = St::RetryCount; + type CreatedAt = St::CreatedAt; + type Status = Set; type ScheduledAt = St::ScheduledAt; + } + ///State transition - sets the `scheduled_at` field to Set + pub struct SetScheduledAt(PhantomData St>); + impl sealed::Sealed for SetScheduledAt {} + impl State for SetScheduledAt { type Id = St::Id; - type CreatedAt = St::CreatedAt; + type Text = St::Text; + type UserId = St::UserId; type UpdatedAt = St::UpdatedAt; - type Status = St::Status; + type Langs = St::Langs; type RetryCount = St::RetryCount; - type Langs = Set; + type CreatedAt = St::CreatedAt; + type Status = St::Status; + type ScheduledAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `user_id` field - pub struct user_id(()); - ///Marker type for the `text` field - pub struct text(()); - ///Marker type for the `scheduled_at` field - pub struct scheduled_at(()); ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `text` field + pub struct text(()); + ///Marker type for the `user_id` field + pub struct user_id(()); ///Marker type for the `updated_at` field pub struct updated_at(()); - ///Marker type for the `status` field - pub struct status(()); - ///Marker type for the `retry_count` field - pub struct retry_count(()); ///Marker type for the `langs` field pub struct langs(()); + ///Marker type for the `retry_count` field + pub struct retry_count(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `status` field + pub struct status(()); + ///Marker type for the `scheduled_at` field + pub struct scheduled_at(()); } } @@ -2163,15 +2163,15 @@ where impl ScheduledPostBuilder where St: scheduled_post_state::State, - St::UserId: scheduled_post_state::IsSet, - St::Text: scheduled_post_state::IsSet, - St::ScheduledAt: scheduled_post_state::IsSet, St::Id: scheduled_post_state::IsSet, - St::CreatedAt: scheduled_post_state::IsSet, + St::Text: scheduled_post_state::IsSet, + St::UserId: scheduled_post_state::IsSet, St::UpdatedAt: scheduled_post_state::IsSet, - St::Status: scheduled_post_state::IsSet, - St::RetryCount: scheduled_post_state::IsSet, St::Langs: scheduled_post_state::IsSet, + St::RetryCount: scheduled_post_state::IsSet, + St::CreatedAt: scheduled_post_state::IsSet, + St::Status: scheduled_post_state::IsSet, + St::ScheduledAt: scheduled_post_state::IsSet, { /// Build the final struct. pub fn build(self) -> ScheduledPost { diff --git a/crates/jacquard-api/src/app_dropanchor/checkin.rs b/crates/jacquard-api/src/app_dropanchor/checkin.rs index 5232655b..be5699b7 100644 --- a/crates/jacquard-api/src/app_dropanchor/checkin.rs +++ b/crates/jacquard-api/src/app_dropanchor/checkin.rs @@ -1080,65 +1080,65 @@ pub mod checkin_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; type CreatedAt; type Address; + type Text; type Geo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Text = Unset; type CreatedAt = Unset; type Address = Unset; + type Text = Unset; type Geo = Unset; } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type CreatedAt = St::CreatedAt; - type Address = St::Address; - type Geo = St::Geo; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = St::Text; type CreatedAt = Set; type Address = St::Address; + type Text = St::Text; type Geo = St::Geo; } ///State transition - sets the `address` field to Set pub struct SetAddress(PhantomData St>); impl sealed::Sealed for SetAddress {} impl State for SetAddress { - type Text = St::Text; type CreatedAt = St::CreatedAt; type Address = Set; + type Text = St::Text; + type Geo = St::Geo; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = St::CreatedAt; + type Address = St::Address; + type Text = Set; type Geo = St::Geo; } ///State transition - sets the `geo` field to Set pub struct SetGeo(PhantomData St>); impl sealed::Sealed for SetGeo {} impl State for SetGeo { - type Text = St::Text; type CreatedAt = St::CreatedAt; type Address = St::Address; + type Text = St::Text; type Geo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `text` field - pub struct text(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `address` field pub struct address(()); + ///Marker type for the `text` field + pub struct text(()); ///Marker type for the `geo` field pub struct geo(()); } @@ -1323,9 +1323,9 @@ where impl CheckinBuilder where St: checkin_state::State, - St::Text: checkin_state::IsSet, St::CreatedAt: checkin_state::IsSet, St::Address: checkin_state::IsSet, + St::Text: checkin_state::IsSet, St::Geo: checkin_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_dropanchor/comment.rs b/crates/jacquard-api/src/app_dropanchor/comment.rs index 1433945e..6ad3444a 100644 --- a/crates/jacquard-api/src/app_dropanchor/comment.rs +++ b/crates/jacquard-api/src/app_dropanchor/comment.rs @@ -156,51 +156,51 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CheckinRef; - type CreatedAt; type Text; + type CreatedAt; + type CheckinRef; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CheckinRef = Unset; - type CreatedAt = Unset; type Text = Unset; + type CreatedAt = Unset; + type CheckinRef = Unset; } - ///State transition - sets the `checkin_ref` field to Set - pub struct SetCheckinRef(PhantomData St>); - impl sealed::Sealed for SetCheckinRef {} - impl State for SetCheckinRef { - type CheckinRef = Set; + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type Text = Set; type CreatedAt = St::CreatedAt; - type Text = St::Text; + type CheckinRef = St::CheckinRef; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type CheckinRef = St::CheckinRef; - type CreatedAt = Set; type Text = St::Text; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { + type CreatedAt = Set; type CheckinRef = St::CheckinRef; + } + ///State transition - sets the `checkin_ref` field to Set + pub struct SetCheckinRef(PhantomData St>); + impl sealed::Sealed for SetCheckinRef {} + impl State for SetCheckinRef { + type Text = St::Text; type CreatedAt = St::CreatedAt; - type Text = Set; + type CheckinRef = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `checkin_ref` field - pub struct checkin_ref(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `text` field pub struct text(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `checkin_ref` field + pub struct checkin_ref(()); } } @@ -289,9 +289,9 @@ where impl CommentBuilder where St: comment_state::State, - St::CheckinRef: comment_state::IsSet, - St::CreatedAt: comment_state::IsSet, St::Text: comment_state::IsSet, + St::CreatedAt: comment_state::IsSet, + St::CheckinRef: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { @@ -434,37 +434,37 @@ pub mod strong_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Uri; + type Cid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Uri = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Uri = St::Uri; + type Cid = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Cid = St::Cid; type Uri = Set; + type Cid = St::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -534,8 +534,8 @@ where impl StrongRefBuilder where St: strong_ref_state::State, - St::Cid: strong_ref_state::IsSet, St::Uri: strong_ref_state::IsSet, + St::Cid: strong_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> StrongRef { diff --git a/crates/jacquard-api/src/app_dropanchor/like.rs b/crates/jacquard-api/src/app_dropanchor/like.rs index 3a00d849..b191d534 100644 --- a/crates/jacquard-api/src/app_dropanchor/like.rs +++ b/crates/jacquard-api/src/app_dropanchor/like.rs @@ -143,37 +143,37 @@ pub mod like_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CheckinRef; type CreatedAt; + type CheckinRef; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CheckinRef = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `checkin_ref` field to Set - pub struct SetCheckinRef(PhantomData St>); - impl sealed::Sealed for SetCheckinRef {} - impl State for SetCheckinRef { - type CheckinRef = Set; - type CreatedAt = St::CreatedAt; + type CheckinRef = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type CheckinRef = St::CheckinRef; type CreatedAt = Set; + type CheckinRef = St::CheckinRef; + } + ///State transition - sets the `checkin_ref` field to Set + pub struct SetCheckinRef(PhantomData St>); + impl sealed::Sealed for SetCheckinRef {} + impl State for SetCheckinRef { + type CreatedAt = St::CreatedAt; + type CheckinRef = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `checkin_ref` field - pub struct checkin_ref(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `checkin_ref` field + pub struct checkin_ref(()); } } @@ -243,8 +243,8 @@ where impl LikeBuilder where St: like_state::State, - St::CheckinRef: like_state::IsSet, St::CreatedAt: like_state::IsSet, + St::CheckinRef: like_state::IsSet, { /// Build the final struct. pub fn build(self) -> Like { diff --git a/crates/jacquard-api/src/app_fitsky/bluesky_post.rs b/crates/jacquard-api/src/app_fitsky/bluesky_post.rs index 21541d31..9ffc30f4 100644 --- a/crates/jacquard-api/src/app_fitsky/bluesky_post.rs +++ b/crates/jacquard-api/src/app_fitsky/bluesky_post.rs @@ -113,49 +113,49 @@ pub mod bluesky_post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type PostUri; type CreatedAt; + type PostUri; type WorkoutUri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type PostUri = Unset; type CreatedAt = Unset; + type PostUri = Unset; type WorkoutUri = Unset; } - ///State transition - sets the `post_uri` field to Set - pub struct SetPostUri(PhantomData St>); - impl sealed::Sealed for SetPostUri {} - impl State for SetPostUri { - type PostUri = Set; - type CreatedAt = St::CreatedAt; - type WorkoutUri = St::WorkoutUri; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type PostUri = St::PostUri; type CreatedAt = Set; + type PostUri = St::PostUri; + type WorkoutUri = St::WorkoutUri; + } + ///State transition - sets the `post_uri` field to Set + pub struct SetPostUri(PhantomData St>); + impl sealed::Sealed for SetPostUri {} + impl State for SetPostUri { + type CreatedAt = St::CreatedAt; + type PostUri = Set; type WorkoutUri = St::WorkoutUri; } ///State transition - sets the `workout_uri` field to Set pub struct SetWorkoutUri(PhantomData St>); impl sealed::Sealed for SetWorkoutUri {} impl State for SetWorkoutUri { - type PostUri = St::PostUri; type CreatedAt = St::CreatedAt; + type PostUri = St::PostUri; type WorkoutUri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `post_uri` field - pub struct post_uri(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `post_uri` field + pub struct post_uri(()); ///Marker type for the `workout_uri` field pub struct workout_uri(()); } @@ -246,8 +246,8 @@ where impl BlueskyPostBuilder where St: bluesky_post_state::State, - St::PostUri: bluesky_post_state::IsSet, St::CreatedAt: bluesky_post_state::IsSet, + St::PostUri: bluesky_post_state::IsSet, St::WorkoutUri: bluesky_post_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_fitsky/goal.rs b/crates/jacquard-api/src/app_fitsky/goal.rs index af4395f8..2177b638 100644 --- a/crates/jacquard-api/src/app_fitsky/goal.rs +++ b/crates/jacquard-api/src/app_fitsky/goal.rs @@ -318,85 +318,85 @@ pub mod goal_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type TargetValue; type CreatedAt; + type StartDate; type Metric; type Period; - type StartDate; - type TargetValue; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type TargetValue = Unset; type CreatedAt = Unset; + type StartDate = Unset; type Metric = Unset; type Period = Unset; - type StartDate = Unset; - type TargetValue = Unset; + } + ///State transition - sets the `target_value` field to Set + pub struct SetTargetValue(PhantomData St>); + impl sealed::Sealed for SetTargetValue {} + impl State for SetTargetValue { + type TargetValue = Set; + type CreatedAt = St::CreatedAt; + type StartDate = St::StartDate; + type Metric = St::Metric; + type Period = St::Period; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type TargetValue = St::TargetValue; type CreatedAt = Set; + type StartDate = St::StartDate; type Metric = St::Metric; type Period = St::Period; - type StartDate = St::StartDate; + } + ///State transition - sets the `start_date` field to Set + pub struct SetStartDate(PhantomData St>); + impl sealed::Sealed for SetStartDate {} + impl State for SetStartDate { type TargetValue = St::TargetValue; + type CreatedAt = St::CreatedAt; + type StartDate = Set; + type Metric = St::Metric; + type Period = St::Period; } ///State transition - sets the `metric` field to Set pub struct SetMetric(PhantomData St>); impl sealed::Sealed for SetMetric {} impl State for SetMetric { + type TargetValue = St::TargetValue; type CreatedAt = St::CreatedAt; + type StartDate = St::StartDate; type Metric = Set; type Period = St::Period; - type StartDate = St::StartDate; - type TargetValue = St::TargetValue; } ///State transition - sets the `period` field to Set pub struct SetPeriod(PhantomData St>); impl sealed::Sealed for SetPeriod {} impl State for SetPeriod { - type CreatedAt = St::CreatedAt; - type Metric = St::Metric; - type Period = Set; - type StartDate = St::StartDate; - type TargetValue = St::TargetValue; - } - ///State transition - sets the `start_date` field to Set - pub struct SetStartDate(PhantomData St>); - impl sealed::Sealed for SetStartDate {} - impl State for SetStartDate { - type CreatedAt = St::CreatedAt; - type Metric = St::Metric; - type Period = St::Period; - type StartDate = Set; type TargetValue = St::TargetValue; - } - ///State transition - sets the `target_value` field to Set - pub struct SetTargetValue(PhantomData St>); - impl sealed::Sealed for SetTargetValue {} - impl State for SetTargetValue { type CreatedAt = St::CreatedAt; - type Metric = St::Metric; - type Period = St::Period; type StartDate = St::StartDate; - type TargetValue = Set; + type Metric = St::Metric; + type Period = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `target_value` field + pub struct target_value(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `start_date` field + pub struct start_date(()); ///Marker type for the `metric` field pub struct metric(()); ///Marker type for the `period` field pub struct period(()); - ///Marker type for the `start_date` field - pub struct start_date(()); - ///Marker type for the `target_value` field - pub struct target_value(()); } } @@ -543,11 +543,11 @@ where impl GoalBuilder where St: goal_state::State, + St::TargetValue: goal_state::IsSet, St::CreatedAt: goal_state::IsSet, + St::StartDate: goal_state::IsSet, St::Metric: goal_state::IsSet, St::Period: goal_state::IsSet, - St::StartDate: goal_state::IsSet, - St::TargetValue: goal_state::IsSet, { /// Build the final struct. pub fn build(self) -> Goal { diff --git a/crates/jacquard-api/src/app_fitsky/trend.rs b/crates/jacquard-api/src/app_fitsky/trend.rs index dc483b6a..63310011 100644 --- a/crates/jacquard-api/src/app_fitsky/trend.rs +++ b/crates/jacquard-api/src/app_fitsky/trend.rs @@ -948,84 +948,84 @@ pub mod trend_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type WidgetType; - type CreatedAt; - type Metric; type Period; type Summary; + type CreatedAt; + type Metric; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type WidgetType = Unset; - type CreatedAt = Unset; - type Metric = Unset; type Period = Unset; type Summary = Unset; + type CreatedAt = Unset; + type Metric = Unset; } ///State transition - sets the `widget_type` field to Set pub struct SetWidgetType(PhantomData St>); impl sealed::Sealed for SetWidgetType {} impl State for SetWidgetType { type WidgetType = Set; - type CreatedAt = St::CreatedAt; - type Metric = St::Metric; - type Period = St::Period; - type Summary = St::Summary; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type WidgetType = St::WidgetType; - type CreatedAt = Set; - type Metric = St::Metric; type Period = St::Period; type Summary = St::Summary; - } - ///State transition - sets the `metric` field to Set - pub struct SetMetric(PhantomData St>); - impl sealed::Sealed for SetMetric {} - impl State for SetMetric { - type WidgetType = St::WidgetType; type CreatedAt = St::CreatedAt; - type Metric = Set; - type Period = St::Period; - type Summary = St::Summary; + type Metric = St::Metric; } ///State transition - sets the `period` field to Set pub struct SetPeriod(PhantomData St>); impl sealed::Sealed for SetPeriod {} impl State for SetPeriod { type WidgetType = St::WidgetType; - type CreatedAt = St::CreatedAt; - type Metric = St::Metric; type Period = Set; type Summary = St::Summary; + type CreatedAt = St::CreatedAt; + type Metric = St::Metric; } ///State transition - sets the `summary` field to Set pub struct SetSummary(PhantomData St>); impl sealed::Sealed for SetSummary {} impl State for SetSummary { type WidgetType = St::WidgetType; + type Period = St::Period; + type Summary = Set; type CreatedAt = St::CreatedAt; type Metric = St::Metric; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type WidgetType = St::WidgetType; type Period = St::Period; - type Summary = Set; + type Summary = St::Summary; + type CreatedAt = Set; + type Metric = St::Metric; + } + ///State transition - sets the `metric` field to Set + pub struct SetMetric(PhantomData St>); + impl sealed::Sealed for SetMetric {} + impl State for SetMetric { + type WidgetType = St::WidgetType; + type Period = St::Period; + type Summary = St::Summary; + type CreatedAt = St::CreatedAt; + type Metric = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `widget_type` field pub struct widget_type(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `metric` field - pub struct metric(()); ///Marker type for the `period` field pub struct period(()); ///Marker type for the `summary` field pub struct summary(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `metric` field + pub struct metric(()); } } @@ -1218,10 +1218,10 @@ impl TrendBuilder where St: trend_state::State, St::WidgetType: trend_state::IsSet, - St::CreatedAt: trend_state::IsSet, - St::Metric: trend_state::IsSet, St::Period: trend_state::IsSet, St::Summary: trend_state::IsSet, + St::CreatedAt: trend_state::IsSet, + St::Metric: trend_state::IsSet, { /// Build the final struct. pub fn build(self) -> Trend { diff --git a/crates/jacquard-api/src/app_fitsky/workout.rs b/crates/jacquard-api/src/app_fitsky/workout.rs index 989bfd3c..f0fb9652 100644 --- a/crates/jacquard-api/src/app_fitsky/workout.rs +++ b/crates/jacquard-api/src/app_fitsky/workout.rs @@ -2518,37 +2518,37 @@ pub mod exercise_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Sets; type Name; + type Sets; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Sets = Unset; type Name = Unset; - } - ///State transition - sets the `sets` field to Set - pub struct SetSets(PhantomData St>); - impl sealed::Sealed for SetSets {} - impl State for SetSets { - type Sets = Set; - type Name = St::Name; + type Sets = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Sets = St::Sets; type Name = Set; + type Sets = St::Sets; + } + ///State transition - sets the `sets` field to Set + pub struct SetSets(PhantomData St>); + impl sealed::Sealed for SetSets {} + impl State for SetSets { + type Name = St::Name; + type Sets = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `sets` field - pub struct sets(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `sets` field + pub struct sets(()); } } @@ -2618,8 +2618,8 @@ where impl ExerciseBuilder where St: exercise_state::State, - St::Sets: exercise_state::IsSet, St::Name: exercise_state::IsSet, + St::Sets: exercise_state::IsSet, { /// Build the final struct. pub fn build(self) -> Exercise { @@ -2649,37 +2649,37 @@ pub mod heart_rate_sample_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Timestamp; type Bpm; + type Timestamp; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Timestamp = Unset; type Bpm = Unset; - } - ///State transition - sets the `timestamp` field to Set - pub struct SetTimestamp(PhantomData St>); - impl sealed::Sealed for SetTimestamp {} - impl State for SetTimestamp { - type Timestamp = Set; - type Bpm = St::Bpm; + type Timestamp = Unset; } ///State transition - sets the `bpm` field to Set pub struct SetBpm(PhantomData St>); impl sealed::Sealed for SetBpm {} impl State for SetBpm { - type Timestamp = St::Timestamp; type Bpm = Set; + type Timestamp = St::Timestamp; + } + ///State transition - sets the `timestamp` field to Set + pub struct SetTimestamp(PhantomData St>); + impl sealed::Sealed for SetTimestamp {} + impl State for SetTimestamp { + type Bpm = St::Bpm; + type Timestamp = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `timestamp` field - pub struct timestamp(()); ///Marker type for the `bpm` field pub struct bpm(()); + ///Marker type for the `timestamp` field + pub struct timestamp(()); } } @@ -2749,8 +2749,8 @@ where impl HeartRateSampleBuilder where St: heart_rate_sample_state::State, - St::Timestamp: heart_rate_sample_state::IsSet, St::Bpm: heart_rate_sample_state::IsSet, + St::Timestamp: heart_rate_sample_state::IsSet, { /// Build the final struct. pub fn build(self) -> HeartRateSample { @@ -2783,85 +2783,85 @@ pub mod workout_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Duration; + type Title; + type Type; type StartedAt; type CreatedAt; - type Type; - type Title; - type Duration; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Duration = Unset; + type Title = Unset; + type Type = Unset; type StartedAt = Unset; type CreatedAt = Unset; - type Type = Unset; - type Title = Unset; - type Duration = Unset; } - ///State transition - sets the `started_at` field to Set - pub struct SetStartedAt(PhantomData St>); - impl sealed::Sealed for SetStartedAt {} - impl State for SetStartedAt { - type StartedAt = Set; - type CreatedAt = St::CreatedAt; - type Type = St::Type; + ///State transition - sets the `duration` field to Set + pub struct SetDuration(PhantomData St>); + impl sealed::Sealed for SetDuration {} + impl State for SetDuration { + type Duration = Set; type Title = St::Title; - type Duration = St::Duration; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type StartedAt = St::StartedAt; - type CreatedAt = Set; type Type = St::Type; - type Title = St::Title; - type Duration = St::Duration; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { type StartedAt = St::StartedAt; type CreatedAt = St::CreatedAt; - type Type = Set; - type Title = St::Title; - type Duration = St::Duration; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { + type Duration = St::Duration; + type Title = Set; + type Type = St::Type; type StartedAt = St::StartedAt; type CreatedAt = St::CreatedAt; - type Type = St::Type; - type Title = Set; - type Duration = St::Duration; } - ///State transition - sets the `duration` field to Set - pub struct SetDuration(PhantomData St>); - impl sealed::Sealed for SetDuration {} - impl State for SetDuration { + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Duration = St::Duration; + type Title = St::Title; + type Type = Set; type StartedAt = St::StartedAt; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `started_at` field to Set + pub struct SetStartedAt(PhantomData St>); + impl sealed::Sealed for SetStartedAt {} + impl State for SetStartedAt { + type Duration = St::Duration; + type Title = St::Title; type Type = St::Type; + type StartedAt = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Duration = St::Duration; type Title = St::Title; - type Duration = Set; + type Type = St::Type; + type StartedAt = St::StartedAt; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `duration` field + pub struct duration(()); + ///Marker type for the `title` field + pub struct title(()); + ///Marker type for the `type` field + pub struct r#type(()); ///Marker type for the `started_at` field pub struct started_at(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `type` field - pub struct r#type(()); - ///Marker type for the `title` field - pub struct title(()); - ///Marker type for the `duration` field - pub struct duration(()); } } @@ -3132,11 +3132,11 @@ impl WorkoutBuilder { impl WorkoutBuilder where St: workout_state::State, + St::Duration: workout_state::IsSet, + St::Title: workout_state::IsSet, + St::Type: workout_state::IsSet, St::StartedAt: workout_state::IsSet, St::CreatedAt: workout_state::IsSet, - St::Type: workout_state::IsSet, - St::Title: workout_state::IsSet, - St::Duration: workout_state::IsSet, { /// Build the final struct. pub fn build(self) -> Workout { @@ -3352,51 +3352,51 @@ pub mod route_point_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Timestamp; type LatE6; type LngE6; + type Timestamp; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Timestamp = Unset; type LatE6 = Unset; type LngE6 = Unset; - } - ///State transition - sets the `timestamp` field to Set - pub struct SetTimestamp(PhantomData St>); - impl sealed::Sealed for SetTimestamp {} - impl State for SetTimestamp { - type Timestamp = Set; - type LatE6 = St::LatE6; - type LngE6 = St::LngE6; + type Timestamp = Unset; } ///State transition - sets the `lat_e6` field to Set pub struct SetLatE6(PhantomData St>); impl sealed::Sealed for SetLatE6 {} impl State for SetLatE6 { - type Timestamp = St::Timestamp; type LatE6 = Set; type LngE6 = St::LngE6; + type Timestamp = St::Timestamp; } ///State transition - sets the `lng_e6` field to Set pub struct SetLngE6(PhantomData St>); impl sealed::Sealed for SetLngE6 {} impl State for SetLngE6 { - type Timestamp = St::Timestamp; type LatE6 = St::LatE6; type LngE6 = Set; + type Timestamp = St::Timestamp; + } + ///State transition - sets the `timestamp` field to Set + pub struct SetTimestamp(PhantomData St>); + impl sealed::Sealed for SetTimestamp {} + impl State for SetTimestamp { + type LatE6 = St::LatE6; + type LngE6 = St::LngE6; + type Timestamp = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `timestamp` field - pub struct timestamp(()); ///Marker type for the `lat_e6` field pub struct lat_e6(()); ///Marker type for the `lng_e6` field pub struct lng_e6(()); + ///Marker type for the `timestamp` field + pub struct timestamp(()); } } @@ -3485,9 +3485,9 @@ where impl RoutePointBuilder where St: route_point_state::State, - St::Timestamp: route_point_state::IsSet, St::LatE6: route_point_state::IsSet, St::LngE6: route_point_state::IsSet, + St::Timestamp: route_point_state::IsSet, { /// Build the final struct. pub fn build(self) -> RoutePoint { diff --git a/crates/jacquard-api/src/app_fitsky/workout_plan.rs b/crates/jacquard-api/src/app_fitsky/workout_plan.rs index a65ead28..8a229ad6 100644 --- a/crates/jacquard-api/src/app_fitsky/workout_plan.rs +++ b/crates/jacquard-api/src/app_fitsky/workout_plan.rs @@ -337,67 +337,67 @@ pub mod workout_plan_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type Type; type Exercises; type CreatedAt; + type Type; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type Type = Unset; type Exercises = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Type = St::Type; - type Exercises = St::Exercises; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Name = St::Name; - type Type = Set; - type Exercises = St::Exercises; - type CreatedAt = St::CreatedAt; + type Type = Unset; + type Name = Unset; } ///State transition - sets the `exercises` field to Set pub struct SetExercises(PhantomData St>); impl sealed::Sealed for SetExercises {} impl State for SetExercises { - type Name = St::Name; - type Type = St::Type; type Exercises = Set; type CreatedAt = St::CreatedAt; + type Type = St::Type; + type Name = St::Name; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; - type Type = St::Type; type Exercises = St::Exercises; type CreatedAt = Set; + type Type = St::Type; + type Name = St::Name; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Exercises = St::Exercises; + type CreatedAt = St::CreatedAt; + type Type = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Exercises = St::Exercises; + type CreatedAt = St::CreatedAt; + type Type = St::Type; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `exercises` field pub struct exercises(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `type` field + pub struct r#type(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -524,10 +524,10 @@ where impl WorkoutPlanBuilder where St: workout_plan_state::State, - St::Name: workout_plan_state::IsSet, - St::Type: workout_plan_state::IsSet, St::Exercises: workout_plan_state::IsSet, St::CreatedAt: workout_plan_state::IsSet, + St::Type: workout_plan_state::IsSet, + St::Name: workout_plan_state::IsSet, { /// Build the final struct. pub fn build(self) -> WorkoutPlan { @@ -688,51 +688,51 @@ pub mod plan_exercise_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type TargetSets; type Name; type TargetReps; + type TargetSets; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type TargetSets = Unset; type Name = Unset; type TargetReps = Unset; - } - ///State transition - sets the `target_sets` field to Set - pub struct SetTargetSets(PhantomData St>); - impl sealed::Sealed for SetTargetSets {} - impl State for SetTargetSets { - type TargetSets = Set; - type Name = St::Name; - type TargetReps = St::TargetReps; + type TargetSets = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type TargetSets = St::TargetSets; type Name = Set; type TargetReps = St::TargetReps; + type TargetSets = St::TargetSets; } ///State transition - sets the `target_reps` field to Set pub struct SetTargetReps(PhantomData St>); impl sealed::Sealed for SetTargetReps {} impl State for SetTargetReps { - type TargetSets = St::TargetSets; type Name = St::Name; type TargetReps = Set; + type TargetSets = St::TargetSets; + } + ///State transition - sets the `target_sets` field to Set + pub struct SetTargetSets(PhantomData St>); + impl sealed::Sealed for SetTargetSets {} + impl State for SetTargetSets { + type Name = St::Name; + type TargetReps = St::TargetReps; + type TargetSets = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `target_sets` field - pub struct target_sets(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `target_reps` field pub struct target_reps(()); + ///Marker type for the `target_sets` field + pub struct target_sets(()); } } @@ -834,9 +834,9 @@ where impl PlanExerciseBuilder where St: plan_exercise_state::State, - St::TargetSets: plan_exercise_state::IsSet, St::Name: plan_exercise_state::IsSet, St::TargetReps: plan_exercise_state::IsSet, + St::TargetSets: plan_exercise_state::IsSet, { /// Build the final struct. pub fn build(self) -> PlanExercise { diff --git a/crates/jacquard-api/src/app_gainforest/dwc/event.rs b/crates/jacquard-api/src/app_gainforest/dwc/event.rs index 8441eb93..a4717b71 100644 --- a/crates/jacquard-api/src/app_gainforest/dwc/event.rs +++ b/crates/jacquard-api/src/app_gainforest/dwc/event.rs @@ -471,51 +471,51 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type EventId; type EventDate; type CreatedAt; - type EventId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type EventId = Unset; type EventDate = Unset; type CreatedAt = Unset; - type EventId = Unset; + } + ///State transition - sets the `event_id` field to Set + pub struct SetEventId(PhantomData St>); + impl sealed::Sealed for SetEventId {} + impl State for SetEventId { + type EventId = Set; + type EventDate = St::EventDate; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `event_date` field to Set pub struct SetEventDate(PhantomData St>); impl sealed::Sealed for SetEventDate {} impl State for SetEventDate { + type EventId = St::EventId; type EventDate = Set; type CreatedAt = St::CreatedAt; - type EventId = St::EventId; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type EventDate = St::EventDate; - type CreatedAt = Set; type EventId = St::EventId; - } - ///State transition - sets the `event_id` field to Set - pub struct SetEventId(PhantomData St>); - impl sealed::Sealed for SetEventId {} - impl State for SetEventId { type EventDate = St::EventDate; - type CreatedAt = St::CreatedAt; - type EventId = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `event_id` field + pub struct event_id(()); ///Marker type for the `event_date` field pub struct event_date(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `event_id` field - pub struct event_id(()); } } @@ -975,9 +975,9 @@ impl EventBuilder { impl EventBuilder where St: event_state::State, + St::EventId: event_state::IsSet, St::EventDate: event_state::IsSet, St::CreatedAt: event_state::IsSet, - St::EventId: event_state::IsSet, { /// Build the final struct. pub fn build(self) -> Event { diff --git a/crates/jacquard-api/src/app_gainforest/dwc/measurement.rs b/crates/jacquard-api/src/app_gainforest/dwc/measurement.rs index c9258824..75dab551 100644 --- a/crates/jacquard-api/src/app_gainforest/dwc/measurement.rs +++ b/crates/jacquard-api/src/app_gainforest/dwc/measurement.rs @@ -264,67 +264,67 @@ pub mod measurement_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type MeasurementValue; + type MeasurementType; type CreatedAt; type OccurrenceRef; - type MeasurementType; - type MeasurementValue; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type MeasurementValue = Unset; + type MeasurementType = Unset; type CreatedAt = Unset; type OccurrenceRef = Unset; - type MeasurementType = Unset; - type MeasurementValue = Unset; + } + ///State transition - sets the `measurement_value` field to Set + pub struct SetMeasurementValue(PhantomData St>); + impl sealed::Sealed for SetMeasurementValue {} + impl State for SetMeasurementValue { + type MeasurementValue = Set; + type MeasurementType = St::MeasurementType; + type CreatedAt = St::CreatedAt; + type OccurrenceRef = St::OccurrenceRef; + } + ///State transition - sets the `measurement_type` field to Set + pub struct SetMeasurementType(PhantomData St>); + impl sealed::Sealed for SetMeasurementType {} + impl State for SetMeasurementType { + type MeasurementValue = St::MeasurementValue; + type MeasurementType = Set; + type CreatedAt = St::CreatedAt; + type OccurrenceRef = St::OccurrenceRef; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type MeasurementValue = St::MeasurementValue; + type MeasurementType = St::MeasurementType; type CreatedAt = Set; type OccurrenceRef = St::OccurrenceRef; - type MeasurementType = St::MeasurementType; - type MeasurementValue = St::MeasurementValue; } ///State transition - sets the `occurrence_ref` field to Set pub struct SetOccurrenceRef(PhantomData St>); impl sealed::Sealed for SetOccurrenceRef {} impl State for SetOccurrenceRef { - type CreatedAt = St::CreatedAt; - type OccurrenceRef = Set; - type MeasurementType = St::MeasurementType; - type MeasurementValue = St::MeasurementValue; - } - ///State transition - sets the `measurement_type` field to Set - pub struct SetMeasurementType(PhantomData St>); - impl sealed::Sealed for SetMeasurementType {} - impl State for SetMeasurementType { - type CreatedAt = St::CreatedAt; - type OccurrenceRef = St::OccurrenceRef; - type MeasurementType = Set; type MeasurementValue = St::MeasurementValue; - } - ///State transition - sets the `measurement_value` field to Set - pub struct SetMeasurementValue(PhantomData St>); - impl sealed::Sealed for SetMeasurementValue {} - impl State for SetMeasurementValue { - type CreatedAt = St::CreatedAt; - type OccurrenceRef = St::OccurrenceRef; type MeasurementType = St::MeasurementType; - type MeasurementValue = Set; + type CreatedAt = St::CreatedAt; + type OccurrenceRef = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `measurement_value` field + pub struct measurement_value(()); + ///Marker type for the `measurement_type` field + pub struct measurement_type(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `occurrence_ref` field pub struct occurrence_ref(()); - ///Marker type for the `measurement_type` field - pub struct measurement_type(()); - ///Marker type for the `measurement_value` field - pub struct measurement_value(()); } } @@ -562,10 +562,10 @@ where impl MeasurementBuilder where St: measurement_state::State, + St::MeasurementValue: measurement_state::IsSet, + St::MeasurementType: measurement_state::IsSet, St::CreatedAt: measurement_state::IsSet, St::OccurrenceRef: measurement_state::IsSet, - St::MeasurementType: measurement_state::IsSet, - St::MeasurementValue: measurement_state::IsSet, { /// Build the final struct. pub fn build(self) -> Measurement { diff --git a/crates/jacquard-api/src/app_gainforest/dwc/occurrence.rs b/crates/jacquard-api/src/app_gainforest/dwc/occurrence.rs index 58eae96f..4ff2ba00 100644 --- a/crates/jacquard-api/src/app_gainforest/dwc/occurrence.rs +++ b/crates/jacquard-api/src/app_gainforest/dwc/occurrence.rs @@ -1182,67 +1182,67 @@ pub mod occurrence_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type BasisOfRecord; + type EventDate; type ScientificName; type CreatedAt; - type EventDate; + type BasisOfRecord; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type BasisOfRecord = Unset; + type EventDate = Unset; type ScientificName = Unset; type CreatedAt = Unset; - type EventDate = Unset; + type BasisOfRecord = Unset; } - ///State transition - sets the `basis_of_record` field to Set - pub struct SetBasisOfRecord(PhantomData St>); - impl sealed::Sealed for SetBasisOfRecord {} - impl State for SetBasisOfRecord { - type BasisOfRecord = Set; + ///State transition - sets the `event_date` field to Set + pub struct SetEventDate(PhantomData St>); + impl sealed::Sealed for SetEventDate {} + impl State for SetEventDate { + type EventDate = Set; type ScientificName = St::ScientificName; type CreatedAt = St::CreatedAt; - type EventDate = St::EventDate; + type BasisOfRecord = St::BasisOfRecord; } ///State transition - sets the `scientific_name` field to Set pub struct SetScientificName(PhantomData St>); impl sealed::Sealed for SetScientificName {} impl State for SetScientificName { - type BasisOfRecord = St::BasisOfRecord; + type EventDate = St::EventDate; type ScientificName = Set; type CreatedAt = St::CreatedAt; - type EventDate = St::EventDate; + type BasisOfRecord = St::BasisOfRecord; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type BasisOfRecord = St::BasisOfRecord; + type EventDate = St::EventDate; type ScientificName = St::ScientificName; type CreatedAt = Set; - type EventDate = St::EventDate; - } - ///State transition - sets the `event_date` field to Set - pub struct SetEventDate(PhantomData St>); - impl sealed::Sealed for SetEventDate {} - impl State for SetEventDate { type BasisOfRecord = St::BasisOfRecord; + } + ///State transition - sets the `basis_of_record` field to Set + pub struct SetBasisOfRecord(PhantomData St>); + impl sealed::Sealed for SetBasisOfRecord {} + impl State for SetBasisOfRecord { + type EventDate = St::EventDate; type ScientificName = St::ScientificName; type CreatedAt = St::CreatedAt; - type EventDate = Set; + type BasisOfRecord = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `basis_of_record` field - pub struct basis_of_record(()); + ///Marker type for the `event_date` field + pub struct event_date(()); ///Marker type for the `scientific_name` field pub struct scientific_name(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `event_date` field - pub struct event_date(()); + ///Marker type for the `basis_of_record` field + pub struct basis_of_record(()); } } @@ -2488,10 +2488,10 @@ impl OccurrenceBuilder { impl OccurrenceBuilder where St: occurrence_state::State, - St::BasisOfRecord: occurrence_state::IsSet, + St::EventDate: occurrence_state::IsSet, St::ScientificName: occurrence_state::IsSet, St::CreatedAt: occurrence_state::IsSet, - St::EventDate: occurrence_state::IsSet, + St::BasisOfRecord: occurrence_state::IsSet, { /// Build the final struct. pub fn build(self) -> Occurrence { diff --git a/crates/jacquard-api/src/app_gainforest/evaluator.rs b/crates/jacquard-api/src/app_gainforest/evaluator.rs index bab402e7..e301c671 100644 --- a/crates/jacquard-api/src/app_gainforest/evaluator.rs +++ b/crates/jacquard-api/src/app_gainforest/evaluator.rs @@ -966,49 +966,49 @@ pub mod candidate_taxon_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Confidence; type ScientificName; + type Confidence; type Rank; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Confidence = Unset; type ScientificName = Unset; + type Confidence = Unset; type Rank = Unset; } - ///State transition - sets the `confidence` field to Set - pub struct SetConfidence(PhantomData St>); - impl sealed::Sealed for SetConfidence {} - impl State for SetConfidence { - type Confidence = Set; - type ScientificName = St::ScientificName; - type Rank = St::Rank; - } ///State transition - sets the `scientific_name` field to Set pub struct SetScientificName(PhantomData St>); impl sealed::Sealed for SetScientificName {} impl State for SetScientificName { - type Confidence = St::Confidence; type ScientificName = Set; + type Confidence = St::Confidence; + type Rank = St::Rank; + } + ///State transition - sets the `confidence` field to Set + pub struct SetConfidence(PhantomData St>); + impl sealed::Sealed for SetConfidence {} + impl State for SetConfidence { + type ScientificName = St::ScientificName; + type Confidence = Set; type Rank = St::Rank; } ///State transition - sets the `rank` field to Set pub struct SetRank(PhantomData St>); impl sealed::Sealed for SetRank {} impl State for SetRank { - type Confidence = St::Confidence; type ScientificName = St::ScientificName; + type Confidence = St::Confidence; type Rank = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `confidence` field - pub struct confidence(()); ///Marker type for the `scientific_name` field pub struct scientific_name(()); + ///Marker type for the `confidence` field + pub struct confidence(()); ///Marker type for the `rank` field pub struct rank(()); } @@ -1159,8 +1159,8 @@ where impl CandidateTaxonBuilder where St: candidate_taxon_state::State, - St::Confidence: candidate_taxon_state::IsSet, St::ScientificName: candidate_taxon_state::IsSet, + St::Confidence: candidate_taxon_state::IsSet, St::Rank: candidate_taxon_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_gainforest/evaluator/subscription.rs b/crates/jacquard-api/src/app_gainforest/evaluator/subscription.rs index 71112c36..2a12ac93 100644 --- a/crates/jacquard-api/src/app_gainforest/evaluator/subscription.rs +++ b/crates/jacquard-api/src/app_gainforest/evaluator/subscription.rs @@ -140,37 +140,37 @@ pub mod subscription_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Evaluator; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Evaluator = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Evaluator = St::Evaluator; + type CreatedAt = Unset; } ///State transition - sets the `evaluator` field to Set pub struct SetEvaluator(PhantomData St>); impl sealed::Sealed for SetEvaluator {} impl State for SetEvaluator { - type CreatedAt = St::CreatedAt; type Evaluator = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Evaluator = St::Evaluator; + type CreatedAt = 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 `evaluator` field pub struct evaluator(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -266,8 +266,8 @@ where impl SubscriptionBuilder where St: subscription_state::State, - St::CreatedAt: subscription_state::IsSet, St::Evaluator: subscription_state::IsSet, + St::CreatedAt: subscription_state::IsSet, { /// Build the final struct. pub fn build(self) -> Subscription { diff --git a/crates/jacquard-api/src/app_gainforest/organization/default_site.rs b/crates/jacquard-api/src/app_gainforest/organization/default_site.rs index 3454d839..256cfc17 100644 --- a/crates/jacquard-api/src/app_gainforest/organization/default_site.rs +++ b/crates/jacquard-api/src/app_gainforest/organization/default_site.rs @@ -114,37 +114,37 @@ pub mod default_site_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Site; type CreatedAt; + type Site; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Site = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `site` field to Set - pub struct SetSite(PhantomData St>); - impl sealed::Sealed for SetSite {} - impl State for SetSite { - type Site = Set; - type CreatedAt = St::CreatedAt; + type Site = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Site = St::Site; type CreatedAt = Set; + type Site = St::Site; + } + ///State transition - sets the `site` field to Set + pub struct SetSite(PhantomData St>); + impl sealed::Sealed for SetSite {} + impl State for SetSite { + type CreatedAt = St::CreatedAt; + type Site = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `site` field - pub struct site(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `site` field + pub struct site(()); } } @@ -214,8 +214,8 @@ where impl DefaultSiteBuilder where St: default_site_state::State, - St::Site: default_site_state::IsSet, St::CreatedAt: default_site_state::IsSet, + St::Site: default_site_state::IsSet, { /// Build the final struct. pub fn build(self) -> DefaultSite { diff --git a/crates/jacquard-api/src/app_gainforest/organization/info.rs b/crates/jacquard-api/src/app_gainforest/organization/info.rs index 2ad333a7..218d2a27 100644 --- a/crates/jacquard-api/src/app_gainforest/organization/info.rs +++ b/crates/jacquard-api/src/app_gainforest/organization/info.rs @@ -202,127 +202,127 @@ pub mod info_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Visibility; - type CreatedAt; - type LongDescription; type Country; + type LongDescription; + type CreatedAt; type DisplayName; - type Objectives; type ShortDescription; + type Objectives; + type Visibility; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Visibility = Unset; - type CreatedAt = Unset; - type LongDescription = Unset; type Country = Unset; + type LongDescription = Unset; + type CreatedAt = Unset; type DisplayName = Unset; - type Objectives = Unset; type ShortDescription = Unset; + type Objectives = Unset; + type Visibility = Unset; } - ///State transition - sets the `visibility` field to Set - pub struct SetVisibility(PhantomData St>); - impl sealed::Sealed for SetVisibility {} - impl State for SetVisibility { - type Visibility = Set; - type CreatedAt = St::CreatedAt; + ///State transition - sets the `country` field to Set + pub struct SetCountry(PhantomData St>); + impl sealed::Sealed for SetCountry {} + impl State for SetCountry { + type Country = Set; type LongDescription = St::LongDescription; - type Country = St::Country; + type CreatedAt = St::CreatedAt; type DisplayName = St::DisplayName; - type Objectives = St::Objectives; type ShortDescription = St::ShortDescription; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Visibility = St::Visibility; - type CreatedAt = Set; - type LongDescription = St::LongDescription; - type Country = St::Country; - type DisplayName = St::DisplayName; type Objectives = St::Objectives; - type ShortDescription = St::ShortDescription; + type Visibility = St::Visibility; } ///State transition - sets the `long_description` field to Set pub struct SetLongDescription(PhantomData St>); impl sealed::Sealed for SetLongDescription {} impl State for SetLongDescription { - type Visibility = St::Visibility; - type CreatedAt = St::CreatedAt; - type LongDescription = Set; type Country = St::Country; + type LongDescription = Set; + type CreatedAt = St::CreatedAt; type DisplayName = St::DisplayName; - type Objectives = St::Objectives; type ShortDescription = St::ShortDescription; - } - ///State transition - sets the `country` field to Set - pub struct SetCountry(PhantomData St>); - impl sealed::Sealed for SetCountry {} - impl State for SetCountry { + type Objectives = St::Objectives; type Visibility = St::Visibility; - type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Country = St::Country; type LongDescription = St::LongDescription; - type Country = Set; + type CreatedAt = Set; type DisplayName = St::DisplayName; - type Objectives = St::Objectives; type ShortDescription = St::ShortDescription; + type Objectives = St::Objectives; + type Visibility = St::Visibility; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData St>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Visibility = St::Visibility; - type CreatedAt = St::CreatedAt; - type LongDescription = St::LongDescription; type Country = St::Country; + type LongDescription = St::LongDescription; + type CreatedAt = St::CreatedAt; type DisplayName = Set; - type Objectives = St::Objectives; type ShortDescription = St::ShortDescription; + type Objectives = St::Objectives; + type Visibility = St::Visibility; + } + ///State transition - sets the `short_description` field to Set + pub struct SetShortDescription(PhantomData St>); + impl sealed::Sealed for SetShortDescription {} + impl State for SetShortDescription { + type Country = St::Country; + type LongDescription = St::LongDescription; + type CreatedAt = St::CreatedAt; + type DisplayName = St::DisplayName; + type ShortDescription = Set; + type Objectives = St::Objectives; + type Visibility = St::Visibility; } ///State transition - sets the `objectives` field to Set pub struct SetObjectives(PhantomData St>); impl sealed::Sealed for SetObjectives {} impl State for SetObjectives { - type Visibility = St::Visibility; - type CreatedAt = St::CreatedAt; - type LongDescription = St::LongDescription; type Country = St::Country; + type LongDescription = St::LongDescription; + type CreatedAt = St::CreatedAt; type DisplayName = St::DisplayName; - type Objectives = Set; type ShortDescription = St::ShortDescription; - } - ///State transition - sets the `short_description` field to Set - pub struct SetShortDescription(PhantomData St>); - impl sealed::Sealed for SetShortDescription {} - impl State for SetShortDescription { + type Objectives = Set; type Visibility = St::Visibility; - type CreatedAt = St::CreatedAt; - type LongDescription = St::LongDescription; + } + ///State transition - sets the `visibility` field to Set + pub struct SetVisibility(PhantomData St>); + impl sealed::Sealed for SetVisibility {} + impl State for SetVisibility { type Country = St::Country; + type LongDescription = St::LongDescription; + type CreatedAt = St::CreatedAt; type DisplayName = St::DisplayName; + type ShortDescription = St::ShortDescription; type Objectives = St::Objectives; - type ShortDescription = Set; + type Visibility = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `visibility` field - pub struct visibility(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `long_description` field - pub struct long_description(()); ///Marker type for the `country` field pub struct country(()); + ///Marker type for the `long_description` field + pub struct long_description(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `display_name` field pub struct display_name(()); - ///Marker type for the `objectives` field - pub struct objectives(()); ///Marker type for the `short_description` field pub struct short_description(()); + ///Marker type for the `objectives` field + pub struct objectives(()); + ///Marker type for the `visibility` field + pub struct visibility(()); } } @@ -551,13 +551,13 @@ impl InfoBuilder { impl InfoBuilder where St: info_state::State, - St::Visibility: info_state::IsSet, - St::CreatedAt: info_state::IsSet, - St::LongDescription: info_state::IsSet, St::Country: info_state::IsSet, + St::LongDescription: info_state::IsSet, + St::CreatedAt: info_state::IsSet, St::DisplayName: info_state::IsSet, - St::Objectives: info_state::IsSet, St::ShortDescription: info_state::IsSet, + St::Objectives: info_state::IsSet, + St::Visibility: info_state::IsSet, { /// Build the final struct. pub fn build(self) -> Info { diff --git a/crates/jacquard-api/src/app_gainforest/organization/layer.rs b/crates/jacquard-api/src/app_gainforest/organization/layer.rs index 40c6ea7d..19a57d6b 100644 --- a/crates/jacquard-api/src/app_gainforest/organization/layer.rs +++ b/crates/jacquard-api/src/app_gainforest/organization/layer.rs @@ -122,66 +122,66 @@ pub mod layer_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Type; - type Name; - type Uri; type CreatedAt; + type Uri; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Type = Unset; - type Name = Unset; - type Uri = Unset; type CreatedAt = Unset; + type Uri = Unset; + type Name = Unset; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { type Type = Set; - type Name = St::Name; - type Uri = St::Uri; type CreatedAt = St::CreatedAt; + type Uri = St::Uri; + type Name = St::Name; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type Type = St::Type; - type Name = Set; + type CreatedAt = Set; type Uri = St::Uri; - type CreatedAt = St::CreatedAt; + type Name = St::Name; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Type = St::Type; - type Name = St::Name; - type Uri = Set; type CreatedAt = St::CreatedAt; + type Uri = Set; + type Name = St::Name; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { type Type = St::Type; - type Name = St::Name; + type CreatedAt = St::CreatedAt; type Uri = St::Uri; - type CreatedAt = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `type` field pub struct r#type(()); - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -303,9 +303,9 @@ impl LayerBuilder where St: layer_state::State, St::Type: layer_state::IsSet, - St::Name: layer_state::IsSet, - St::Uri: layer_state::IsSet, St::CreatedAt: layer_state::IsSet, + St::Uri: layer_state::IsSet, + St::Name: layer_state::IsSet, { /// Build the final struct. pub fn build(self) -> Layer { diff --git a/crates/jacquard-api/src/app_gainforest/organization/observations/fauna.rs b/crates/jacquard-api/src/app_gainforest/organization/observations/fauna.rs index b02dd072..6d21ed35 100644 --- a/crates/jacquard-api/src/app_gainforest/organization/observations/fauna.rs +++ b/crates/jacquard-api/src/app_gainforest/organization/observations/fauna.rs @@ -114,37 +114,37 @@ pub mod fauna_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type GbifTaxonKeys; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type GbifTaxonKeys = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type GbifTaxonKeys = St::GbifTaxonKeys; + type CreatedAt = Unset; } ///State transition - sets the `gbif_taxon_keys` field to Set pub struct SetGbifTaxonKeys(PhantomData St>); impl sealed::Sealed for SetGbifTaxonKeys {} impl State for SetGbifTaxonKeys { - type CreatedAt = St::CreatedAt; type GbifTaxonKeys = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type GbifTaxonKeys = St::GbifTaxonKeys; + type CreatedAt = 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 `gbif_taxon_keys` field pub struct gbif_taxon_keys(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -214,8 +214,8 @@ where impl FaunaBuilder where St: fauna_state::State, - St::CreatedAt: fauna_state::IsSet, St::GbifTaxonKeys: fauna_state::IsSet, + St::CreatedAt: fauna_state::IsSet, { /// Build the final struct. pub fn build(self) -> Fauna { diff --git a/crates/jacquard-api/src/app_gainforest/organization/predictions/fauna.rs b/crates/jacquard-api/src/app_gainforest/organization/predictions/fauna.rs index 9f4c2dd4..fadeb6f5 100644 --- a/crates/jacquard-api/src/app_gainforest/organization/predictions/fauna.rs +++ b/crates/jacquard-api/src/app_gainforest/organization/predictions/fauna.rs @@ -114,37 +114,37 @@ pub mod fauna_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type GbifTaxonKeys; type CreatedAt; + type GbifTaxonKeys; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type GbifTaxonKeys = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `gbif_taxon_keys` field to Set - pub struct SetGbifTaxonKeys(PhantomData St>); - impl sealed::Sealed for SetGbifTaxonKeys {} - impl State for SetGbifTaxonKeys { - type GbifTaxonKeys = Set; - type CreatedAt = St::CreatedAt; + type GbifTaxonKeys = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type GbifTaxonKeys = St::GbifTaxonKeys; type CreatedAt = Set; + type GbifTaxonKeys = St::GbifTaxonKeys; + } + ///State transition - sets the `gbif_taxon_keys` field to Set + pub struct SetGbifTaxonKeys(PhantomData St>); + impl sealed::Sealed for SetGbifTaxonKeys {} + impl State for SetGbifTaxonKeys { + type CreatedAt = St::CreatedAt; + type GbifTaxonKeys = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `gbif_taxon_keys` field - pub struct gbif_taxon_keys(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `gbif_taxon_keys` field + pub struct gbif_taxon_keys(()); } } @@ -214,8 +214,8 @@ where impl FaunaBuilder where St: fauna_state::State, - St::GbifTaxonKeys: fauna_state::IsSet, St::CreatedAt: fauna_state::IsSet, + St::GbifTaxonKeys: fauna_state::IsSet, { /// Build the final struct. pub fn build(self) -> Fauna { diff --git a/crates/jacquard-api/src/app_gainforest/organization/predictions/flora.rs b/crates/jacquard-api/src/app_gainforest/organization/predictions/flora.rs index a8e448fd..c3278104 100644 --- a/crates/jacquard-api/src/app_gainforest/organization/predictions/flora.rs +++ b/crates/jacquard-api/src/app_gainforest/organization/predictions/flora.rs @@ -114,37 +114,37 @@ pub mod flora_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type GbifTaxonKeys; type CreatedAt; + type GbifTaxonKeys; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type GbifTaxonKeys = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `gbif_taxon_keys` field to Set - pub struct SetGbifTaxonKeys(PhantomData St>); - impl sealed::Sealed for SetGbifTaxonKeys {} - impl State for SetGbifTaxonKeys { - type GbifTaxonKeys = Set; - type CreatedAt = St::CreatedAt; + type GbifTaxonKeys = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type GbifTaxonKeys = St::GbifTaxonKeys; type CreatedAt = Set; + type GbifTaxonKeys = St::GbifTaxonKeys; + } + ///State transition - sets the `gbif_taxon_keys` field to Set + pub struct SetGbifTaxonKeys(PhantomData St>); + impl sealed::Sealed for SetGbifTaxonKeys {} + impl State for SetGbifTaxonKeys { + type CreatedAt = St::CreatedAt; + type GbifTaxonKeys = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `gbif_taxon_keys` field - pub struct gbif_taxon_keys(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `gbif_taxon_keys` field + pub struct gbif_taxon_keys(()); } } @@ -214,8 +214,8 @@ where impl FloraBuilder where St: flora_state::State, - St::GbifTaxonKeys: flora_state::IsSet, St::CreatedAt: flora_state::IsSet, + St::GbifTaxonKeys: flora_state::IsSet, { /// Build the final struct. pub fn build(self) -> Flora { diff --git a/crates/jacquard-api/src/app_greengale/document.rs b/crates/jacquard-api/src/app_greengale/document.rs index 60b55629..3dc04aeb 100644 --- a/crates/jacquard-api/src/app_greengale/document.rs +++ b/crates/jacquard-api/src/app_greengale/document.rs @@ -544,8 +544,8 @@ pub mod document_state { type Title; type PublishedAt; type Content; - type Path; type Url; + type Path; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -554,8 +554,8 @@ pub mod document_state { type Title = Unset; type PublishedAt = Unset; type Content = Unset; - type Path = Unset; type Url = Unset; + type Path = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); @@ -564,8 +564,8 @@ pub mod document_state { type Title = Set; type PublishedAt = St::PublishedAt; type Content = St::Content; - type Path = St::Path; type Url = St::Url; + type Path = St::Path; } ///State transition - sets the `published_at` field to Set pub struct SetPublishedAt(PhantomData St>); @@ -574,8 +574,8 @@ pub mod document_state { type Title = St::Title; type PublishedAt = Set; type Content = St::Content; - type Path = St::Path; type Url = St::Url; + type Path = St::Path; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); @@ -584,18 +584,8 @@ pub mod document_state { type Title = St::Title; type PublishedAt = St::PublishedAt; type Content = Set; - type Path = St::Path; - type Url = St::Url; - } - ///State transition - sets the `path` field to Set - pub struct SetPath(PhantomData St>); - impl sealed::Sealed for SetPath {} - impl State for SetPath { - type Title = St::Title; - type PublishedAt = St::PublishedAt; - type Content = St::Content; - type Path = Set; type Url = St::Url; + type Path = St::Path; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); @@ -604,8 +594,18 @@ pub mod document_state { type Title = St::Title; type PublishedAt = St::PublishedAt; type Content = St::Content; - type Path = St::Path; type Url = Set; + type Path = St::Path; + } + ///State transition - sets the `path` field to Set + pub struct SetPath(PhantomData St>); + impl sealed::Sealed for SetPath {} + impl State for SetPath { + type Title = St::Title; + type PublishedAt = St::PublishedAt; + type Content = St::Content; + type Url = St::Url; + type Path = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -616,10 +616,10 @@ pub mod document_state { pub struct published_at(()); ///Marker type for the `content` field pub struct content(()); - ///Marker type for the `path` field - pub struct path(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `path` field + pub struct path(()); } } @@ -866,8 +866,8 @@ where St::Title: document_state::IsSet, St::PublishedAt: document_state::IsSet, St::Content: document_state::IsSet, - St::Path: document_state::IsSet, St::Url: document_state::IsSet, + St::Path: document_state::IsSet, { /// Build the final struct. pub fn build(self) -> Document { diff --git a/crates/jacquard-api/src/app_greengale/publication.rs b/crates/jacquard-api/src/app_greengale/publication.rs index cf0cfac9..df269b20 100644 --- a/crates/jacquard-api/src/app_greengale/publication.rs +++ b/crates/jacquard-api/src/app_greengale/publication.rs @@ -165,37 +165,37 @@ pub mod publication_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Url; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Url = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Url = St::Url; + type Name = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Name = St::Name; type Url = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Url = St::Url; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -324,8 +324,8 @@ impl PublicationBuilder { impl PublicationBuilder where St: publication_state::State, - St::Name: publication_state::IsSet, St::Url: publication_state::IsSet, + St::Name: publication_state::IsSet, { /// Build the final struct. pub fn build(self) -> Publication { diff --git a/crates/jacquard-api/src/app_mathr/leaderboard/entry.rs b/crates/jacquard-api/src/app_mathr/leaderboard/entry.rs index 8dac137f..e972c0d4 100644 --- a/crates/jacquard-api/src/app_mathr/leaderboard/entry.rs +++ b/crates/jacquard-api/src/app_mathr/leaderboard/entry.rs @@ -183,85 +183,85 @@ pub mod entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type TotalChallenges; type Level; - type TotalSuccesses; type PlayerDid; - type TotalChallenges; type CreatedAt; + type TotalSuccesses; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type TotalChallenges = Unset; type Level = Unset; - type TotalSuccesses = Unset; type PlayerDid = Unset; - type TotalChallenges = Unset; type CreatedAt = Unset; + type TotalSuccesses = Unset; + } + ///State transition - sets the `total_challenges` field to Set + pub struct SetTotalChallenges(PhantomData St>); + impl sealed::Sealed for SetTotalChallenges {} + impl State for SetTotalChallenges { + type TotalChallenges = Set; + type Level = St::Level; + type PlayerDid = St::PlayerDid; + type CreatedAt = St::CreatedAt; + type TotalSuccesses = St::TotalSuccesses; } ///State transition - sets the `level` field to Set pub struct SetLevel(PhantomData St>); impl sealed::Sealed for SetLevel {} impl State for SetLevel { - type Level = Set; - type TotalSuccesses = St::TotalSuccesses; - type PlayerDid = St::PlayerDid; type TotalChallenges = St::TotalChallenges; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `total_successes` field to Set - pub struct SetTotalSuccesses(PhantomData St>); - impl sealed::Sealed for SetTotalSuccesses {} - impl State for SetTotalSuccesses { - type Level = St::Level; - type TotalSuccesses = Set; + type Level = Set; type PlayerDid = St::PlayerDid; - type TotalChallenges = St::TotalChallenges; type CreatedAt = St::CreatedAt; + type TotalSuccesses = St::TotalSuccesses; } ///State transition - sets the `player_did` field to Set pub struct SetPlayerDid(PhantomData St>); impl sealed::Sealed for SetPlayerDid {} impl State for SetPlayerDid { + type TotalChallenges = St::TotalChallenges; type Level = St::Level; - type TotalSuccesses = St::TotalSuccesses; type PlayerDid = Set; - type TotalChallenges = St::TotalChallenges; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `total_challenges` field to Set - pub struct SetTotalChallenges(PhantomData St>); - impl sealed::Sealed for SetTotalChallenges {} - impl State for SetTotalChallenges { - type Level = St::Level; type TotalSuccesses = St::TotalSuccesses; - type PlayerDid = St::PlayerDid; - type TotalChallenges = Set; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type TotalChallenges = St::TotalChallenges; type Level = St::Level; - type TotalSuccesses = St::TotalSuccesses; type PlayerDid = St::PlayerDid; - type TotalChallenges = St::TotalChallenges; type CreatedAt = Set; + type TotalSuccesses = St::TotalSuccesses; + } + ///State transition - sets the `total_successes` field to Set + pub struct SetTotalSuccesses(PhantomData St>); + impl sealed::Sealed for SetTotalSuccesses {} + impl State for SetTotalSuccesses { + type TotalChallenges = St::TotalChallenges; + type Level = St::Level; + type PlayerDid = St::PlayerDid; + type CreatedAt = St::CreatedAt; + type TotalSuccesses = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `total_challenges` field + pub struct total_challenges(()); ///Marker type for the `level` field pub struct level(()); - ///Marker type for the `total_successes` field - pub struct total_successes(()); ///Marker type for the `player_did` field pub struct player_did(()); - ///Marker type for the `total_challenges` field - pub struct total_challenges(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `total_successes` field + pub struct total_successes(()); } } @@ -464,11 +464,11 @@ where impl EntryBuilder where St: entry_state::State, + St::TotalChallenges: entry_state::IsSet, St::Level: entry_state::IsSet, - St::TotalSuccesses: entry_state::IsSet, St::PlayerDid: entry_state::IsSet, - St::TotalChallenges: entry_state::IsSet, St::CreatedAt: entry_state::IsSet, + St::TotalSuccesses: entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> Entry { diff --git a/crates/jacquard-api/src/app_mathr/score.rs b/crates/jacquard-api/src/app_mathr/score.rs index 9eba7c04..174d5a8a 100644 --- a/crates/jacquard-api/src/app_mathr/score.rs +++ b/crates/jacquard-api/src/app_mathr/score.rs @@ -169,67 +169,67 @@ pub mod score_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Level; + type TotalChallenges; type TotalSuccesses; + type Level; type CreatedAt; - type TotalChallenges; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Level = Unset; + type TotalChallenges = Unset; type TotalSuccesses = Unset; + type Level = Unset; type CreatedAt = Unset; - type TotalChallenges = Unset; } - ///State transition - sets the `level` field to Set - pub struct SetLevel(PhantomData St>); - impl sealed::Sealed for SetLevel {} - impl State for SetLevel { - type Level = Set; + ///State transition - sets the `total_challenges` field to Set + pub struct SetTotalChallenges(PhantomData St>); + impl sealed::Sealed for SetTotalChallenges {} + impl State for SetTotalChallenges { + type TotalChallenges = Set; type TotalSuccesses = St::TotalSuccesses; + type Level = St::Level; type CreatedAt = St::CreatedAt; - type TotalChallenges = St::TotalChallenges; } ///State transition - sets the `total_successes` field to Set pub struct SetTotalSuccesses(PhantomData St>); impl sealed::Sealed for SetTotalSuccesses {} impl State for SetTotalSuccesses { - type Level = St::Level; + type TotalChallenges = St::TotalChallenges; type TotalSuccesses = Set; + type Level = St::Level; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `level` field to Set + pub struct SetLevel(PhantomData St>); + impl sealed::Sealed for SetLevel {} + impl State for SetLevel { type TotalChallenges = St::TotalChallenges; + type TotalSuccesses = St::TotalSuccesses; + type Level = Set; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Level = St::Level; - type TotalSuccesses = St::TotalSuccesses; - type CreatedAt = Set; type TotalChallenges = St::TotalChallenges; - } - ///State transition - sets the `total_challenges` field to Set - pub struct SetTotalChallenges(PhantomData St>); - impl sealed::Sealed for SetTotalChallenges {} - impl State for SetTotalChallenges { - type Level = St::Level; type TotalSuccesses = St::TotalSuccesses; - type CreatedAt = St::CreatedAt; - type TotalChallenges = Set; + type Level = St::Level; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `level` field - pub struct level(()); + ///Marker type for the `total_challenges` field + pub struct total_challenges(()); ///Marker type for the `total_successes` field pub struct total_successes(()); + ///Marker type for the `level` field + pub struct level(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `total_challenges` field - pub struct total_challenges(()); } } @@ -350,10 +350,10 @@ where impl ScoreBuilder where St: score_state::State, - St::Level: score_state::IsSet, + St::TotalChallenges: score_state::IsSet, St::TotalSuccesses: score_state::IsSet, + St::Level: score_state::IsSet, St::CreatedAt: score_state::IsSet, - St::TotalChallenges: score_state::IsSet, { /// Build the final struct. pub fn build(self) -> Score { diff --git a/crates/jacquard-api/src/app_nblr/feed/collection.rs b/crates/jacquard-api/src/app_nblr/feed/collection.rs index 874277ba..87794834 100644 --- a/crates/jacquard-api/src/app_nblr/feed/collection.rs +++ b/crates/jacquard-api/src/app_nblr/feed/collection.rs @@ -137,37 +137,37 @@ pub mod collection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = 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 `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -237,8 +237,8 @@ where impl CollectionBuilder where St: collection_state::State, - St::CreatedAt: collection_state::IsSet, St::Name: collection_state::IsSet, + St::CreatedAt: collection_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collection { diff --git a/crates/jacquard-api/src/app_nblr/feed/link.rs b/crates/jacquard-api/src/app_nblr/feed/link.rs index fe81cbcf..cd552a42 100644 --- a/crates/jacquard-api/src/app_nblr/feed/link.rs +++ b/crates/jacquard-api/src/app_nblr/feed/link.rs @@ -115,49 +115,49 @@ pub mod link_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Collection; + type Uri; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Collection = Unset; + type Uri = Unset; type CreatedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Collection = St::Collection; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Uri = St::Uri; type Collection = Set; + type Uri = St::Uri; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Collection = St::Collection; + type Uri = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Uri = St::Uri; type Collection = St::Collection; + type Uri = St::Uri; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `collection` field pub struct collection(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -248,8 +248,8 @@ where impl LinkBuilder where St: link_state::State, - St::Uri: link_state::IsSet, St::Collection: link_state::IsSet, + St::Uri: link_state::IsSet, St::CreatedAt: link_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_ocho/auth.rs b/crates/jacquard-api/src/app_ocho/auth.rs index 8981d683..15462d66 100644 --- a/crates/jacquard-api/src/app_ocho/auth.rs +++ b/crates/jacquard-api/src/app_ocho/auth.rs @@ -71,67 +71,67 @@ pub mod auth_callback_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AccessJwt; - type Did; type RefreshJwt; + type Did; type Handle; + type AccessJwt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AccessJwt = Unset; - type Did = Unset; type RefreshJwt = Unset; + type Did = Unset; type Handle = Unset; + type AccessJwt = Unset; } - ///State transition - sets the `access_jwt` field to Set - pub struct SetAccessJwt(PhantomData St>); - impl sealed::Sealed for SetAccessJwt {} - impl State for SetAccessJwt { - type AccessJwt = Set; + ///State transition - sets the `refresh_jwt` field to Set + pub struct SetRefreshJwt(PhantomData St>); + impl sealed::Sealed for SetRefreshJwt {} + impl State for SetRefreshJwt { + type RefreshJwt = Set; type Did = St::Did; - type RefreshJwt = St::RefreshJwt; type Handle = St::Handle; + type AccessJwt = St::AccessJwt; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type AccessJwt = St::AccessJwt; - type Did = Set; type RefreshJwt = St::RefreshJwt; + type Did = Set; type Handle = St::Handle; - } - ///State transition - sets the `refresh_jwt` field to Set - pub struct SetRefreshJwt(PhantomData St>); - impl sealed::Sealed for SetRefreshJwt {} - impl State for SetRefreshJwt { type AccessJwt = St::AccessJwt; - type Did = St::Did; - type RefreshJwt = Set; - type Handle = St::Handle; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type AccessJwt = St::AccessJwt; - type Did = St::Did; type RefreshJwt = St::RefreshJwt; + type Did = St::Did; type Handle = Set; + type AccessJwt = St::AccessJwt; + } + ///State transition - sets the `access_jwt` field to Set + pub struct SetAccessJwt(PhantomData St>); + impl sealed::Sealed for SetAccessJwt {} + impl State for SetAccessJwt { + type RefreshJwt = St::RefreshJwt; + type Did = St::Did; + type Handle = St::Handle; + type AccessJwt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `access_jwt` field - pub struct access_jwt(()); - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `refresh_jwt` field pub struct refresh_jwt(()); + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); + ///Marker type for the `access_jwt` field + pub struct access_jwt(()); } } @@ -239,10 +239,10 @@ where impl AuthCallbackBuilder where St: auth_callback_state::State, - St::AccessJwt: auth_callback_state::IsSet, - St::Did: auth_callback_state::IsSet, St::RefreshJwt: auth_callback_state::IsSet, + St::Did: auth_callback_state::IsSet, St::Handle: auth_callback_state::IsSet, + St::AccessJwt: auth_callback_state::IsSet, { /// Build the final struct. pub fn build(self) -> AuthCallback { diff --git a/crates/jacquard-api/src/app_ocho/auth/at_proto_callback.rs b/crates/jacquard-api/src/app_ocho/auth/at_proto_callback.rs index 7a33340f..6cd0737a 100644 --- a/crates/jacquard-api/src/app_ocho/auth/at_proto_callback.rs +++ b/crates/jacquard-api/src/app_ocho/auth/at_proto_callback.rs @@ -58,49 +58,49 @@ pub mod at_proto_callback_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type State; type Code; + type State; type Iss; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type State = Unset; type Code = Unset; + type State = Unset; type Iss = Unset; } - ///State transition - sets the `state` field to Set - pub struct SetState(PhantomData St>); - impl sealed::Sealed for SetState {} - impl State for SetState { - type State = Set; - type Code = St::Code; - type Iss = St::Iss; - } ///State transition - sets the `code` field to Set pub struct SetCode(PhantomData St>); impl sealed::Sealed for SetCode {} impl State for SetCode { - type State = St::State; type Code = Set; + type State = St::State; + type Iss = St::Iss; + } + ///State transition - sets the `state` field to Set + pub struct SetState(PhantomData St>); + impl sealed::Sealed for SetState {} + impl State for SetState { + type Code = St::Code; + type State = Set; type Iss = St::Iss; } ///State transition - sets the `iss` field to Set pub struct SetIss(PhantomData St>); impl sealed::Sealed for SetIss {} impl State for SetIss { - type State = St::State; type Code = St::Code; + type State = St::State; type Iss = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `state` field - pub struct state(()); ///Marker type for the `code` field pub struct code(()); + ///Marker type for the `state` field + pub struct state(()); ///Marker type for the `iss` field pub struct iss(()); } @@ -191,8 +191,8 @@ where impl AtProtoCallbackBuilder where St: at_proto_callback_state::State, - St::State: at_proto_callback_state::IsSet, St::Code: at_proto_callback_state::IsSet, + St::State: at_proto_callback_state::IsSet, St::Iss: at_proto_callback_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_ocho/auth/google_callback.rs b/crates/jacquard-api/src/app_ocho/auth/google_callback.rs index 4181bf10..330a1c69 100644 --- a/crates/jacquard-api/src/app_ocho/auth/google_callback.rs +++ b/crates/jacquard-api/src/app_ocho/auth/google_callback.rs @@ -57,37 +57,37 @@ pub mod google_callback_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Code; type State; + type Code; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Code = Unset; type State = Unset; - } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData St>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type Code = Set; - type State = St::State; + type Code = Unset; } ///State transition - sets the `state` field to Set pub struct SetState(PhantomData St>); impl sealed::Sealed for SetState {} impl State for SetState { - type Code = St::Code; type State = Set; + type Code = St::Code; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData St>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type State = St::State; + type Code = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `code` field - pub struct code(()); ///Marker type for the `state` field pub struct state(()); + ///Marker type for the `code` field + pub struct code(()); } } @@ -157,8 +157,8 @@ where impl GoogleCallbackBuilder where St: google_callback_state::State, - St::Code: google_callback_state::IsSet, St::State: google_callback_state::IsSet, + St::Code: google_callback_state::IsSet, { /// Build the final struct. pub fn build(self) -> GoogleCallback { diff --git a/crates/jacquard-api/src/app_ocho/edu/google_callback.rs b/crates/jacquard-api/src/app_ocho/edu/google_callback.rs index dd56cfa2..b07e81ab 100644 --- a/crates/jacquard-api/src/app_ocho/edu/google_callback.rs +++ b/crates/jacquard-api/src/app_ocho/edu/google_callback.rs @@ -57,37 +57,37 @@ pub mod google_callback_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type State; type Code; + type State; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type State = Unset; type Code = Unset; - } - ///State transition - sets the `state` field to Set - pub struct SetState(PhantomData St>); - impl sealed::Sealed for SetState {} - impl State for SetState { - type State = Set; - type Code = St::Code; + type State = Unset; } ///State transition - sets the `code` field to Set pub struct SetCode(PhantomData St>); impl sealed::Sealed for SetCode {} impl State for SetCode { - type State = St::State; type Code = Set; + type State = St::State; + } + ///State transition - sets the `state` field to Set + pub struct SetState(PhantomData St>); + impl sealed::Sealed for SetState {} + impl State for SetState { + type Code = St::Code; + type State = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `state` field - pub struct state(()); ///Marker type for the `code` field pub struct code(()); + ///Marker type for the `state` field + pub struct state(()); } } @@ -157,8 +157,8 @@ where impl GoogleCallbackBuilder where St: google_callback_state::State, - St::State: google_callback_state::IsSet, St::Code: google_callback_state::IsSet, + St::State: google_callback_state::IsSet, { /// Build the final struct. pub fn build(self) -> GoogleCallback { diff --git a/crates/jacquard-api/src/app_ocho/payment/get_stripe_intent.rs b/crates/jacquard-api/src/app_ocho/payment/get_stripe_intent.rs index cc22f608..1567b2db 100644 --- a/crates/jacquard-api/src/app_ocho/payment/get_stripe_intent.rs +++ b/crates/jacquard-api/src/app_ocho/payment/get_stripe_intent.rs @@ -80,51 +80,51 @@ pub mod get_stripe_intent_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; - type Amount; type Iss; + type Amount; + type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Id = Unset; - type Amount = Unset; type Iss = Unset; + type Amount = Unset; + type Id = Unset; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; + ///State transition - sets the `iss` field to Set + pub struct SetIss(PhantomData St>); + impl sealed::Sealed for SetIss {} + impl State for SetIss { + type Iss = Set; type Amount = St::Amount; - type Iss = St::Iss; + type Id = St::Id; } ///State transition - sets the `amount` field to Set pub struct SetAmount(PhantomData St>); impl sealed::Sealed for SetAmount {} impl State for SetAmount { - type Id = St::Id; - type Amount = Set; type Iss = St::Iss; - } - ///State transition - sets the `iss` field to Set - pub struct SetIss(PhantomData St>); - impl sealed::Sealed for SetIss {} - impl State for SetIss { + type Amount = Set; type Id = St::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Iss = St::Iss; type Amount = St::Amount; - type Iss = Set; + type Id = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `id` field - pub struct id(()); - ///Marker type for the `amount` field - pub struct amount(()); ///Marker type for the `iss` field pub struct iss(()); + ///Marker type for the `amount` field + pub struct amount(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -226,9 +226,9 @@ impl GetStripeIntentBuilder GetStripeIntentBuilder where St: get_stripe_intent_state::State, - St::Id: get_stripe_intent_state::IsSet, - St::Amount: get_stripe_intent_state::IsSet, St::Iss: get_stripe_intent_state::IsSet, + St::Amount: get_stripe_intent_state::IsSet, + St::Id: get_stripe_intent_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetStripeIntent { diff --git a/crates/jacquard-api/src/app_ocho/plugin.rs b/crates/jacquard-api/src/app_ocho/plugin.rs index 46775133..0c85999c 100644 --- a/crates/jacquard-api/src/app_ocho/plugin.rs +++ b/crates/jacquard-api/src/app_ocho/plugin.rs @@ -1099,51 +1099,51 @@ pub mod asset_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Blob; type Type; type Hash; + type Blob; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Blob = Unset; type Type = Unset; type Hash = Unset; - } - ///State transition - sets the `blob` field to Set - pub struct SetBlob(PhantomData St>); - impl sealed::Sealed for SetBlob {} - impl State for SetBlob { - type Blob = Set; - type Type = St::Type; - type Hash = St::Hash; + type Blob = Unset; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { - type Blob = St::Blob; type Type = Set; type Hash = St::Hash; + type Blob = St::Blob; } ///State transition - sets the `hash` field to Set pub struct SetHash(PhantomData St>); impl sealed::Sealed for SetHash {} impl State for SetHash { - type Blob = St::Blob; type Type = St::Type; type Hash = Set; + type Blob = St::Blob; + } + ///State transition - sets the `blob` field to Set + pub struct SetBlob(PhantomData St>); + impl sealed::Sealed for SetBlob {} + impl State for SetBlob { + type Type = St::Type; + type Hash = St::Hash; + type Blob = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `blob` field - pub struct blob(()); ///Marker type for the `type` field pub struct r#type(()); ///Marker type for the `hash` field pub struct hash(()); + ///Marker type for the `blob` field + pub struct blob(()); } } @@ -1245,9 +1245,9 @@ impl AssetBuilder { impl AssetBuilder where St: asset_state::State, - St::Blob: asset_state::IsSet, St::Type: asset_state::IsSet, St::Hash: asset_state::IsSet, + St::Blob: asset_state::IsSet, { /// Build the final struct. pub fn build(self) -> Asset { @@ -1378,51 +1378,51 @@ pub mod launch_asset_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type ContentType; type Url; type Key; - type ContentType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type ContentType = Unset; type Url = Unset; type Key = Unset; - type ContentType = Unset; + } + ///State transition - sets the `content_type` field to Set + pub struct SetContentType(PhantomData St>); + impl sealed::Sealed for SetContentType {} + impl State for SetContentType { + type ContentType = Set; + type Url = St::Url; + type Key = St::Key; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { + type ContentType = St::ContentType; type Url = Set; type Key = St::Key; - type ContentType = St::ContentType; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type Url = St::Url; - type Key = Set; type ContentType = St::ContentType; - } - ///State transition - sets the `content_type` field to Set - pub struct SetContentType(PhantomData St>); - impl sealed::Sealed for SetContentType {} - impl State for SetContentType { type Url = St::Url; - type Key = St::Key; - type ContentType = Set; + type Key = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `content_type` field + pub struct content_type(()); ///Marker type for the `url` field pub struct url(()); ///Marker type for the `key` field pub struct key(()); - ///Marker type for the `content_type` field - pub struct content_type(()); } } @@ -1511,9 +1511,9 @@ where impl LaunchAssetBuilder where St: launch_asset_state::State, + St::ContentType: launch_asset_state::IsSet, St::Url: launch_asset_state::IsSet, St::Key: launch_asset_state::IsSet, - St::ContentType: launch_asset_state::IsSet, { /// Build the final struct. pub fn build(self) -> LaunchAsset { @@ -1548,103 +1548,103 @@ pub mod manifest_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type LaunchAsset; type Metadata; type Extra; - type Id; type CreatedAt; + type Id; + type LaunchAsset; type RuntimeVersion; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type LaunchAsset = Unset; type Metadata = Unset; type Extra = Unset; - type Id = Unset; type CreatedAt = Unset; + type Id = Unset; + type LaunchAsset = Unset; type RuntimeVersion = Unset; } - ///State transition - sets the `launch_asset` field to Set - pub struct SetLaunchAsset(PhantomData St>); - impl sealed::Sealed for SetLaunchAsset {} - impl State for SetLaunchAsset { - type LaunchAsset = Set; - type Metadata = St::Metadata; - type Extra = St::Extra; - type Id = St::Id; - type CreatedAt = St::CreatedAt; - type RuntimeVersion = St::RuntimeVersion; - } ///State transition - sets the `metadata` field to Set pub struct SetMetadata(PhantomData St>); impl sealed::Sealed for SetMetadata {} impl State for SetMetadata { - type LaunchAsset = St::LaunchAsset; type Metadata = Set; type Extra = St::Extra; - type Id = St::Id; type CreatedAt = St::CreatedAt; + type Id = St::Id; + type LaunchAsset = St::LaunchAsset; type RuntimeVersion = St::RuntimeVersion; } ///State transition - sets the `extra` field to Set pub struct SetExtra(PhantomData St>); impl sealed::Sealed for SetExtra {} impl State for SetExtra { - type LaunchAsset = St::LaunchAsset; type Metadata = St::Metadata; type Extra = Set; - type Id = St::Id; type CreatedAt = St::CreatedAt; + type Id = St::Id; + type LaunchAsset = St::LaunchAsset; + type RuntimeVersion = St::RuntimeVersion; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Metadata = St::Metadata; + type Extra = St::Extra; + type CreatedAt = Set; + type Id = St::Id; + type LaunchAsset = St::LaunchAsset; type RuntimeVersion = St::RuntimeVersion; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type LaunchAsset = St::LaunchAsset; type Metadata = St::Metadata; type Extra = St::Extra; - type Id = Set; type CreatedAt = St::CreatedAt; + type Id = Set; + type LaunchAsset = St::LaunchAsset; type RuntimeVersion = St::RuntimeVersion; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type LaunchAsset = St::LaunchAsset; + ///State transition - sets the `launch_asset` field to Set + pub struct SetLaunchAsset(PhantomData St>); + impl sealed::Sealed for SetLaunchAsset {} + impl State for SetLaunchAsset { type Metadata = St::Metadata; type Extra = St::Extra; + type CreatedAt = St::CreatedAt; type Id = St::Id; - type CreatedAt = Set; + type LaunchAsset = Set; type RuntimeVersion = St::RuntimeVersion; } ///State transition - sets the `runtime_version` field to Set pub struct SetRuntimeVersion(PhantomData St>); impl sealed::Sealed for SetRuntimeVersion {} impl State for SetRuntimeVersion { - type LaunchAsset = St::LaunchAsset; type Metadata = St::Metadata; type Extra = St::Extra; - type Id = St::Id; type CreatedAt = St::CreatedAt; + type Id = St::Id; + type LaunchAsset = St::LaunchAsset; type RuntimeVersion = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `launch_asset` field - pub struct launch_asset(()); ///Marker type for the `metadata` field pub struct metadata(()); ///Marker type for the `extra` field pub struct extra(()); - ///Marker type for the `id` field - pub struct id(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `id` field + pub struct id(()); + ///Marker type for the `launch_asset` field + pub struct launch_asset(()); ///Marker type for the `runtime_version` field pub struct runtime_version(()); } @@ -1799,11 +1799,11 @@ where impl ManifestBuilder where St: manifest_state::State, - St::LaunchAsset: manifest_state::IsSet, St::Metadata: manifest_state::IsSet, St::Extra: manifest_state::IsSet, - St::Id: manifest_state::IsSet, St::CreatedAt: manifest_state::IsSet, + St::Id: manifest_state::IsSet, + St::LaunchAsset: manifest_state::IsSet, St::RuntimeVersion: manifest_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_ocho/plugin/get_launch_asset.rs b/crates/jacquard-api/src/app_ocho/plugin/get_launch_asset.rs index 198e6abd..0da74b7f 100644 --- a/crates/jacquard-api/src/app_ocho/plugin/get_launch_asset.rs +++ b/crates/jacquard-api/src/app_ocho/plugin/get_launch_asset.rs @@ -86,37 +86,37 @@ pub mod get_launch_asset_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Platform; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Platform = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Platform = St::Platform; + type Did = Unset; } ///State transition - sets the `platform` field to Set pub struct SetPlatform(PhantomData St>); impl sealed::Sealed for SetPlatform {} impl State for SetPlatform { - type Did = St::Did; type Platform = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Platform = St::Platform; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `platform` field pub struct platform(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -186,8 +186,8 @@ where impl GetLaunchAssetBuilder where St: get_launch_asset_state::State, - St::Did: get_launch_asset_state::IsSet, St::Platform: get_launch_asset_state::IsSet, + St::Did: get_launch_asset_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetLaunchAsset { diff --git a/crates/jacquard-api/src/app_offprint/block/image.rs b/crates/jacquard-api/src/app_offprint/block/image.rs index 6e3d0de3..d11f1706 100644 --- a/crates/jacquard-api/src/app_offprint/block/image.rs +++ b/crates/jacquard-api/src/app_offprint/block/image.rs @@ -173,37 +173,37 @@ pub mod aspect_ratio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Height; type Width; + type Height; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Height = Unset; type Width = Unset; - } - ///State transition - sets the `height` field to Set - pub struct SetHeight(PhantomData St>); - impl sealed::Sealed for SetHeight {} - impl State for SetHeight { - type Height = Set; - type Width = St::Width; + type Height = Unset; } ///State transition - sets the `width` field to Set pub struct SetWidth(PhantomData St>); impl sealed::Sealed for SetWidth {} impl State for SetWidth { - type Height = St::Height; type Width = Set; + type Height = St::Height; + } + ///State transition - sets the `height` field to Set + pub struct SetHeight(PhantomData St>); + impl sealed::Sealed for SetHeight {} + impl State for SetHeight { + type Width = St::Width; + type Height = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `height` field - pub struct height(()); ///Marker type for the `width` field pub struct width(()); + ///Marker type for the `height` field + pub struct height(()); } } @@ -273,8 +273,8 @@ where impl AspectRatioBuilder where St: aspect_ratio_state::State, - St::Height: aspect_ratio_state::IsSet, St::Width: aspect_ratio_state::IsSet, + St::Height: aspect_ratio_state::IsSet, { /// Build the final struct. pub fn build(self) -> AspectRatio { diff --git a/crates/jacquard-api/src/app_offprint/block/task_list.rs b/crates/jacquard-api/src/app_offprint/block/task_list.rs index 081083ce..2a3f9465 100644 --- a/crates/jacquard-api/src/app_offprint/block/task_list.rs +++ b/crates/jacquard-api/src/app_offprint/block/task_list.rs @@ -267,37 +267,37 @@ pub mod task_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Content; type Checked; + type Content; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Content = Unset; type Checked = Unset; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type Content = Set; - type Checked = St::Checked; + type Content = Unset; } ///State transition - sets the `checked` field to Set pub struct SetChecked(PhantomData St>); impl sealed::Sealed for SetChecked {} impl State for SetChecked { - type Content = St::Content; type Checked = Set; + type Content = St::Content; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Checked = St::Checked; + type Content = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `content` field - pub struct content(()); ///Marker type for the `checked` field pub struct checked(()); + ///Marker type for the `content` field + pub struct content(()); } } @@ -383,8 +383,8 @@ where impl TaskItemBuilder where St: task_item_state::State, - St::Content: task_item_state::IsSet, St::Checked: task_item_state::IsSet, + St::Content: task_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> TaskItem { diff --git a/crates/jacquard-api/src/app_offprint/block/web_bookmark.rs b/crates/jacquard-api/src/app_offprint/block/web_bookmark.rs index 3ad17c40..b87ed9da 100644 --- a/crates/jacquard-api/src/app_offprint/block/web_bookmark.rs +++ b/crates/jacquard-api/src/app_offprint/block/web_bookmark.rs @@ -146,37 +146,37 @@ pub mod web_bookmark_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Href; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Href = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Href = St::Href; + type Title = Unset; } ///State transition - sets the `href` field to Set pub struct SetHref(PhantomData St>); impl sealed::Sealed for SetHref {} impl State for SetHref { - type Title = St::Title; type Href = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Href = St::Href; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `href` field pub struct href(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -285,8 +285,8 @@ where impl WebBookmarkBuilder where St: web_bookmark_state::State, - St::Title: web_bookmark_state::IsSet, St::Href: web_bookmark_state::IsSet, + St::Title: web_bookmark_state::IsSet, { /// Build the final struct. pub fn build(self) -> WebBookmark { diff --git a/crates/jacquard-api/src/app_openmkt/marketplace/listing.rs b/crates/jacquard-api/src/app_openmkt/marketplace/listing.rs index 070436ce..89ea33a0 100644 --- a/crates/jacquard-api/src/app_openmkt/marketplace/listing.rs +++ b/crates/jacquard-api/src/app_openmkt/marketplace/listing.rs @@ -379,85 +379,85 @@ pub mod listing_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Price; - type Category; - type Location; type Title; + type Category; type CreatedAt; + type Price; + type Location; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Price = Unset; - type Category = Unset; - type Location = Unset; type Title = Unset; + type Category = Unset; type CreatedAt = Unset; + type Price = Unset; + type Location = Unset; } - ///State transition - sets the `price` field to Set - pub struct SetPrice(PhantomData St>); - impl sealed::Sealed for SetPrice {} - impl State for SetPrice { - type Price = Set; + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Title = Set; type Category = St::Category; - type Location = St::Location; - type Title = St::Title; type CreatedAt = St::CreatedAt; + type Price = St::Price; + type Location = St::Location; } ///State transition - sets the `category` field to Set pub struct SetCategory(PhantomData St>); impl sealed::Sealed for SetCategory {} impl State for SetCategory { - type Price = St::Price; - type Category = Set; - type Location = St::Location; - type Title = St::Title; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `location` field to Set - pub struct SetLocation(PhantomData St>); - impl sealed::Sealed for SetLocation {} - impl State for SetLocation { - type Price = St::Price; - type Category = St::Category; - type Location = Set; type Title = St::Title; + type Category = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { type Price = St::Price; - type Category = St::Category; type Location = St::Location; - type Title = Set; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Title = St::Title; + type Category = St::Category; + type CreatedAt = Set; type Price = St::Price; + type Location = St::Location; + } + ///State transition - sets the `price` field to Set + pub struct SetPrice(PhantomData St>); + impl sealed::Sealed for SetPrice {} + impl State for SetPrice { + type Title = St::Title; type Category = St::Category; + type CreatedAt = St::CreatedAt; + type Price = Set; type Location = St::Location; + } + ///State transition - sets the `location` field to Set + pub struct SetLocation(PhantomData St>); + impl sealed::Sealed for SetLocation {} + impl State for SetLocation { type Title = St::Title; - type CreatedAt = Set; + type Category = St::Category; + type CreatedAt = St::CreatedAt; + type Price = St::Price; + type Location = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `price` field - pub struct price(()); - ///Marker type for the `category` field - pub struct category(()); - ///Marker type for the `location` field - pub struct location(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `category` field + pub struct category(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `price` field + pub struct price(()); + ///Marker type for the `location` field + pub struct location(()); } } @@ -677,11 +677,11 @@ where impl ListingBuilder where St: listing_state::State, - St::Price: listing_state::IsSet, - St::Category: listing_state::IsSet, - St::Location: listing_state::IsSet, St::Title: listing_state::IsSet, + St::Category: listing_state::IsSet, St::CreatedAt: listing_state::IsSet, + St::Price: listing_state::IsSet, + St::Location: listing_state::IsSet, { /// Build the final struct. pub fn build(self) -> Listing { diff --git a/crates/jacquard-api/src/app_protoimsg/chat/allowlist.rs b/crates/jacquard-api/src/app_protoimsg/chat/allowlist.rs index c94b15e5..7b11ebb5 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/allowlist.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/allowlist.rs @@ -116,51 +116,51 @@ pub mod allowlist_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Subject; type CreatedAt; type Room; - type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Subject = Unset; type CreatedAt = Unset; type Room = Unset; - type Subject = Unset; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Subject = Set; + type CreatedAt = St::CreatedAt; + type Room = St::Room; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Subject = St::Subject; type CreatedAt = Set; type Room = St::Room; - type Subject = St::Subject; } ///State transition - sets the `room` field to Set pub struct SetRoom(PhantomData St>); impl sealed::Sealed for SetRoom {} impl State for SetRoom { - type CreatedAt = St::CreatedAt; - type Room = Set; type Subject = St::Subject; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { type CreatedAt = St::CreatedAt; - type Room = St::Room; - type Subject = Set; + type Room = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `subject` field + pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `room` field pub struct room(()); - ///Marker type for the `subject` field - pub struct subject(()); } } @@ -249,9 +249,9 @@ where impl AllowlistBuilder where St: allowlist_state::State, + St::Subject: allowlist_state::IsSet, St::CreatedAt: allowlist_state::IsSet, St::Room: allowlist_state::IsSet, - St::Subject: allowlist_state::IsSet, { /// Build the final struct. pub fn build(self) -> Allowlist { diff --git a/crates/jacquard-api/src/app_protoimsg/chat/ban.rs b/crates/jacquard-api/src/app_protoimsg/chat/ban.rs index 24c92229..1f783dab 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/ban.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/ban.rs @@ -130,50 +130,50 @@ pub mod ban_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Room; - type CreatedAt; type Subject; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Room = Unset; - type CreatedAt = Unset; type Subject = Unset; + type CreatedAt = Unset; } ///State transition - sets the `room` field to Set pub struct SetRoom(PhantomData St>); impl sealed::Sealed for SetRoom {} impl State for SetRoom { type Room = Set; - type CreatedAt = St::CreatedAt; - type Subject = St::Subject; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Room = St::Room; - type CreatedAt = Set; type Subject = St::Subject; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type Room = St::Room; - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Room = St::Room; + type Subject = St::Subject; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `room` field pub struct room(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -276,8 +276,8 @@ impl BanBuilder where St: ban_state::State, St::Room: ban_state::IsSet, - St::CreatedAt: ban_state::IsSet, St::Subject: ban_state::IsSet, + St::CreatedAt: ban_state::IsSet, { /// Build the final struct. pub fn build(self) -> Ban { diff --git a/crates/jacquard-api/src/app_protoimsg/chat/channel.rs b/crates/jacquard-api/src/app_protoimsg/chat/channel.rs index 5515429a..99248a8b 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/channel.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/channel.rs @@ -238,49 +238,49 @@ pub mod channel_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Room; type Name; + type Room; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Room = Unset; type Name = Unset; + type Room = Unset; type CreatedAt = Unset; } - ///State transition - sets the `room` field to Set - pub struct SetRoom(PhantomData St>); - impl sealed::Sealed for SetRoom {} - impl State for SetRoom { - type Room = Set; - type Name = St::Name; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Room = St::Room; type Name = Set; + type Room = St::Room; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `room` field to Set + pub struct SetRoom(PhantomData St>); + impl sealed::Sealed for SetRoom {} + impl State for SetRoom { + type Name = St::Name; + type Room = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Room = St::Room; type Name = St::Name; + type Room = St::Room; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `room` field - pub struct room(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `room` field + pub struct room(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -420,8 +420,8 @@ where impl ChannelBuilder where St: channel_state::State, - St::Room: channel_state::IsSet, St::Name: channel_state::IsSet, + St::Room: channel_state::IsSet, St::CreatedAt: channel_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_protoimsg/chat/message.rs b/crates/jacquard-api/src/app_protoimsg/chat/message.rs index 15f60285..c2066af5 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/message.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/message.rs @@ -937,37 +937,37 @@ pub mod aspect_ratio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Width; type Height; + type Width; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Width = Unset; type Height = Unset; - } - ///State transition - sets the `width` field to Set - pub struct SetWidth(PhantomData St>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = St::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData St>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = St::Width; type Height = Set; + type Width = St::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData St>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = St::Height; + type Width = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `width` field - pub struct width(()); ///Marker type for the `height` field pub struct height(()); + ///Marker type for the `width` field + pub struct width(()); } } @@ -1037,8 +1037,8 @@ where impl AspectRatioBuilder where St: aspect_ratio_state::State, - St::Width: aspect_ratio_state::IsSet, St::Height: aspect_ratio_state::IsSet, + St::Width: aspect_ratio_state::IsSet, { /// Build the final struct. pub fn build(self) -> AspectRatio { @@ -1658,37 +1658,37 @@ pub mod byte_slice_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ByteEnd; type ByteStart; + type ByteEnd; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ByteEnd = Unset; type ByteStart = Unset; - } - ///State transition - sets the `byte_end` field to Set - pub struct SetByteEnd(PhantomData St>); - impl sealed::Sealed for SetByteEnd {} - impl State for SetByteEnd { - type ByteEnd = Set; - type ByteStart = St::ByteStart; + type ByteEnd = Unset; } ///State transition - sets the `byte_start` field to Set pub struct SetByteStart(PhantomData St>); impl sealed::Sealed for SetByteStart {} impl State for SetByteStart { - type ByteEnd = St::ByteEnd; type ByteStart = Set; + type ByteEnd = St::ByteEnd; + } + ///State transition - sets the `byte_end` field to Set + pub struct SetByteEnd(PhantomData St>); + impl sealed::Sealed for SetByteEnd {} + impl State for SetByteEnd { + type ByteStart = St::ByteStart; + type ByteEnd = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `byte_end` field - pub struct byte_end(()); ///Marker type for the `byte_start` field pub struct byte_start(()); + ///Marker type for the `byte_end` field + pub struct byte_end(()); } } @@ -1758,8 +1758,8 @@ where impl ByteSliceBuilder where St: byte_slice_state::State, - St::ByteEnd: byte_slice_state::IsSet, St::ByteStart: byte_slice_state::IsSet, + St::ByteEnd: byte_slice_state::IsSet, { /// Build the final struct. pub fn build(self) -> ByteSlice { @@ -2056,37 +2056,37 @@ pub mod image_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Image; type Alt; + type Image; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Image = Unset; type Alt = Unset; - } - ///State transition - sets the `image` field to Set - pub struct SetImage(PhantomData St>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type Alt = St::Alt; + type Image = Unset; } ///State transition - sets the `alt` field to Set pub struct SetAlt(PhantomData St>); impl sealed::Sealed for SetAlt {} impl State for SetAlt { - type Image = St::Image; type Alt = Set; + type Image = St::Image; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData St>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type Alt = St::Alt; + type Image = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `image` field - pub struct image(()); ///Marker type for the `alt` field pub struct alt(()); + ///Marker type for the `image` field + pub struct image(()); } } @@ -2172,8 +2172,8 @@ where impl ImageItemBuilder where St: image_item_state::State, - St::Image: image_item_state::IsSet, St::Alt: image_item_state::IsSet, + St::Image: image_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> ImageItem { @@ -2305,51 +2305,51 @@ pub mod message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; type Channel; type CreatedAt; + type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Text = Unset; type Channel = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type Channel = St::Channel; - type CreatedAt = St::CreatedAt; + type Text = Unset; } ///State transition - sets the `channel` field to Set pub struct SetChannel(PhantomData St>); impl sealed::Sealed for SetChannel {} impl State for SetChannel { - type Text = St::Text; type Channel = Set; type CreatedAt = St::CreatedAt; + type Text = St::Text; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = St::Text; type Channel = St::Channel; type CreatedAt = Set; + type Text = St::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type Channel = St::Channel; + type CreatedAt = St::CreatedAt; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `text` field - pub struct text(()); ///Marker type for the `channel` field pub struct channel(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -2490,9 +2490,9 @@ where impl MessageBuilder where St: message_state::State, - St::Text: message_state::IsSet, St::Channel: message_state::IsSet, St::CreatedAt: message_state::IsSet, + St::Text: message_state::IsSet, { /// Build the final struct. pub fn build(self) -> Message { @@ -2627,37 +2627,37 @@ pub mod reply_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Parent; type Root; + type Parent; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Parent = Unset; type Root = Unset; - } - ///State transition - sets the `parent` field to Set - pub struct SetParent(PhantomData St>); - impl sealed::Sealed for SetParent {} - impl State for SetParent { - type Parent = Set; - type Root = St::Root; + type Parent = Unset; } ///State transition - sets the `root` field to Set pub struct SetRoot(PhantomData St>); impl sealed::Sealed for SetRoot {} impl State for SetRoot { - type Parent = St::Parent; type Root = Set; + type Parent = St::Parent; + } + ///State transition - sets the `parent` field to Set + pub struct SetParent(PhantomData St>); + impl sealed::Sealed for SetParent {} + impl State for SetParent { + type Root = St::Root; + 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(()); ///Marker type for the `root` field pub struct root(()); + ///Marker type for the `parent` field + pub struct parent(()); } } @@ -2727,8 +2727,8 @@ where impl ReplyRefBuilder where St: reply_ref_state::State, - St::Parent: reply_ref_state::IsSet, St::Root: reply_ref_state::IsSet, + St::Parent: reply_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReplyRef { @@ -2758,37 +2758,37 @@ pub mod rich_text_facet_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Index; type Features; + type Index; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Index = Unset; type Features = Unset; - } - ///State transition - sets the `index` field to Set - pub struct SetIndex(PhantomData St>); - impl sealed::Sealed for SetIndex {} - impl State for SetIndex { - type Index = Set; - type Features = St::Features; + type Index = Unset; } ///State transition - sets the `features` field to Set pub struct SetFeatures(PhantomData St>); impl sealed::Sealed for SetFeatures {} impl State for SetFeatures { - type Index = St::Index; type Features = Set; + type Index = St::Index; + } + ///State transition - sets the `index` field to Set + pub struct SetIndex(PhantomData St>); + impl sealed::Sealed for SetIndex {} + impl State for SetIndex { + type Features = St::Features; + type Index = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `index` field - pub struct index(()); ///Marker type for the `features` field pub struct features(()); + ///Marker type for the `index` field + pub struct index(()); } } @@ -2858,8 +2858,8 @@ where impl RichTextFacetBuilder where St: rich_text_facet_state::State, - St::Index: rich_text_facet_state::IsSet, St::Features: rich_text_facet_state::IsSet, + St::Index: rich_text_facet_state::IsSet, { /// Build the final struct. pub fn build(self) -> RichTextFacet { diff --git a/crates/jacquard-api/src/app_protoimsg/chat/poll.rs b/crates/jacquard-api/src/app_protoimsg/chat/poll.rs index 3f499fc7..892d1607 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/poll.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/poll.rs @@ -162,67 +162,67 @@ pub mod poll_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Options; - type Question; type Channel; - type CreatedAt; + type Question; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Options = Unset; - type Question = Unset; type Channel = Unset; - type CreatedAt = Unset; + type Question = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Options = St::Options; + type Channel = St::Channel; + type Question = St::Question; } ///State transition - sets the `options` field to Set pub struct SetOptions(PhantomData St>); impl sealed::Sealed for SetOptions {} impl State for SetOptions { - type Options = Set; - type Question = St::Question; - type Channel = St::Channel; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `question` field to Set - pub struct SetQuestion(PhantomData St>); - impl sealed::Sealed for SetQuestion {} - impl State for SetQuestion { - type Options = St::Options; - type Question = Set; + type Options = Set; type Channel = St::Channel; - type CreatedAt = St::CreatedAt; + type Question = St::Question; } ///State transition - sets the `channel` field to Set pub struct SetChannel(PhantomData St>); impl sealed::Sealed for SetChannel {} impl State for SetChannel { + type CreatedAt = St::CreatedAt; type Options = St::Options; - type Question = St::Question; type Channel = Set; - type CreatedAt = St::CreatedAt; + type Question = St::Question; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `question` field to Set + pub struct SetQuestion(PhantomData St>); + impl sealed::Sealed for SetQuestion {} + impl State for SetQuestion { + type CreatedAt = St::CreatedAt; type Options = St::Options; - type Question = St::Question; type Channel = St::Channel; - type CreatedAt = Set; + type Question = 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 `options` field pub struct options(()); - ///Marker type for the `question` field - pub struct question(()); ///Marker type for the `channel` field pub struct channel(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `question` field + pub struct question(()); } } @@ -363,10 +363,10 @@ where impl PollBuilder where St: poll_state::State, + St::CreatedAt: poll_state::IsSet, St::Options: poll_state::IsSet, - St::Question: poll_state::IsSet, St::Channel: poll_state::IsSet, - St::CreatedAt: poll_state::IsSet, + St::Question: poll_state::IsSet, { /// Build the final struct. pub fn build(self) -> Poll { diff --git a/crates/jacquard-api/src/app_protoimsg/chat/presence.rs b/crates/jacquard-api/src/app_protoimsg/chat/presence.rs index 23d4fe85..cb32e47c 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/presence.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/presence.rs @@ -218,37 +218,37 @@ pub mod presence_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Status; type UpdatedAt; + type Status; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Status = Unset; type UpdatedAt = Unset; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { - type Status = Set; - type UpdatedAt = St::UpdatedAt; + type Status = Unset; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData St>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { - type Status = St::Status; type UpdatedAt = Set; + type Status = St::Status; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type UpdatedAt = St::UpdatedAt; + type Status = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `status` field - pub struct status(()); ///Marker type for the `updated_at` field pub struct updated_at(()); + ///Marker type for the `status` field + pub struct status(()); } } @@ -331,8 +331,8 @@ where impl PresenceBuilder where St: presence_state::State, - St::Status: presence_state::IsSet, St::UpdatedAt: presence_state::IsSet, + St::Status: presence_state::IsSet, { /// Build the final struct. pub fn build(self) -> Presence { diff --git a/crates/jacquard-api/src/app_protoimsg/chat/role.rs b/crates/jacquard-api/src/app_protoimsg/chat/role.rs index 174d7317..5099e3f6 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/role.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/role.rs @@ -197,67 +197,67 @@ pub mod role_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; - type Room; type Role; + type Room; + type CreatedAt; } /// 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 Room = Unset; type Role = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; - type Room = St::Room; - type Role = St::Role; + type Room = Unset; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; - type Room = St::Room; type Role = St::Role; + type Room = St::Room; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `role` field to Set + pub struct SetRole(PhantomData St>); + impl sealed::Sealed for SetRole {} + impl State for SetRole { + type Subject = St::Subject; + type Role = Set; + type Room = St::Room; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `room` field to Set pub struct SetRoom(PhantomData St>); impl sealed::Sealed for SetRoom {} impl State for SetRoom { - type CreatedAt = St::CreatedAt; type Subject = St::Subject; - type Room = Set; type Role = St::Role; - } - ///State transition - sets the `role` field to Set - pub struct SetRole(PhantomData St>); - impl sealed::Sealed for SetRole {} - impl State for SetRole { + type Room = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type Subject = St::Subject; + type Role = St::Role; type Room = St::Room; - type Role = Set; + type CreatedAt = 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 `room` field - pub struct room(()); ///Marker type for the `role` field pub struct role(()); + ///Marker type for the `room` field + pub struct room(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -365,10 +365,10 @@ where impl RoleBuilder where St: role_state::State, - St::CreatedAt: role_state::IsSet, St::Subject: role_state::IsSet, - St::Room: role_state::IsSet, St::Role: role_state::IsSet, + St::Room: role_state::IsSet, + St::CreatedAt: role_state::IsSet, { /// Build the final struct. pub fn build(self) -> Role { diff --git a/crates/jacquard-api/src/app_protoimsg/chat/room.rs b/crates/jacquard-api/src/app_protoimsg/chat/room.rs index ffa5c4a2..a42fbd99 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/room.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/room.rs @@ -398,67 +398,67 @@ pub mod room_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Topic; - type CreatedAt; type Name; type Purpose; + type CreatedAt; + type Topic; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Topic = Unset; - type CreatedAt = Unset; type Name = Unset; type Purpose = Unset; - } - ///State transition - sets the `topic` field to Set - pub struct SetTopic(PhantomData St>); - impl sealed::Sealed for SetTopic {} - impl State for SetTopic { - type Topic = Set; - type CreatedAt = St::CreatedAt; - type Name = St::Name; - type Purpose = St::Purpose; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Topic = St::Topic; - type CreatedAt = Set; - type Name = St::Name; - type Purpose = St::Purpose; + type CreatedAt = Unset; + type Topic = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Topic = St::Topic; - type CreatedAt = St::CreatedAt; type Name = Set; type Purpose = St::Purpose; + type CreatedAt = St::CreatedAt; + type Topic = St::Topic; } ///State transition - sets the `purpose` field to Set pub struct SetPurpose(PhantomData St>); impl sealed::Sealed for SetPurpose {} impl State for SetPurpose { - type Topic = St::Topic; - type CreatedAt = St::CreatedAt; type Name = St::Name; type Purpose = Set; + type CreatedAt = St::CreatedAt; + type Topic = St::Topic; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type Purpose = St::Purpose; + type CreatedAt = Set; + type Topic = St::Topic; + } + ///State transition - sets the `topic` field to Set + pub struct SetTopic(PhantomData St>); + impl sealed::Sealed for SetTopic {} + impl State for SetTopic { + type Name = St::Name; + type Purpose = St::Purpose; + type CreatedAt = St::CreatedAt; + type Topic = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `topic` field - pub struct topic(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `purpose` field pub struct purpose(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `topic` field + pub struct topic(()); } } @@ -613,10 +613,10 @@ where impl RoomBuilder where St: room_state::State, - St::Topic: room_state::IsSet, - St::CreatedAt: room_state::IsSet, St::Name: room_state::IsSet, St::Purpose: room_state::IsSet, + St::CreatedAt: room_state::IsSet, + St::Topic: room_state::IsSet, { /// Build the final struct. pub fn build(self) -> Room { diff --git a/crates/jacquard-api/src/app_protoimsg/chat/vote.rs b/crates/jacquard-api/src/app_protoimsg/chat/vote.rs index c17e1f1e..861d606f 100644 --- a/crates/jacquard-api/src/app_protoimsg/chat/vote.rs +++ b/crates/jacquard-api/src/app_protoimsg/chat/vote.rs @@ -127,51 +127,51 @@ pub mod vote_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type SelectedOptions; - type Poll; type CreatedAt; + type Poll; + type SelectedOptions; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type SelectedOptions = Unset; - type Poll = Unset; type CreatedAt = Unset; + type Poll = Unset; + type SelectedOptions = Unset; } - ///State transition - sets the `selected_options` field to Set - pub struct SetSelectedOptions(PhantomData St>); - impl sealed::Sealed for SetSelectedOptions {} - impl State for SetSelectedOptions { - type SelectedOptions = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Poll = St::Poll; - type CreatedAt = St::CreatedAt; + type SelectedOptions = St::SelectedOptions; } ///State transition - sets the `poll` field to Set pub struct SetPoll(PhantomData St>); impl sealed::Sealed for SetPoll {} impl State for SetPoll { - type SelectedOptions = St::SelectedOptions; - type Poll = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Poll = Set; type SelectedOptions = St::SelectedOptions; + } + ///State transition - sets the `selected_options` field to Set + pub struct SetSelectedOptions(PhantomData St>); + impl sealed::Sealed for SetSelectedOptions {} + impl State for SetSelectedOptions { + type CreatedAt = St::CreatedAt; type Poll = St::Poll; - type CreatedAt = Set; + type SelectedOptions = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `selected_options` field - pub struct selected_options(()); - ///Marker type for the `poll` field - pub struct poll(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `poll` field + pub struct poll(()); + ///Marker type for the `selected_options` field + pub struct selected_options(()); } } @@ -260,9 +260,9 @@ where impl VoteBuilder where St: vote_state::State, - St::SelectedOptions: vote_state::IsSet, - St::Poll: vote_state::IsSet, St::CreatedAt: vote_state::IsSet, + St::Poll: vote_state::IsSet, + St::SelectedOptions: vote_state::IsSet, { /// Build the final struct. pub fn build(self) -> Vote { diff --git a/crates/jacquard-api/src/app_rocksky/album.rs b/crates/jacquard-api/src/app_rocksky/album.rs index 544ff4f2..c2583ef9 100644 --- a/crates/jacquard-api/src/app_rocksky/album.rs +++ b/crates/jacquard-api/src/app_rocksky/album.rs @@ -402,50 +402,50 @@ pub mod album_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type Artist; type Title; + type Artist; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type Artist = Unset; type Title = Unset; + type Artist = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type Artist = St::Artist; - type Title = St::Title; - } - ///State transition - sets the `artist` field to Set - pub struct SetArtist(PhantomData St>); - impl sealed::Sealed for SetArtist {} - impl State for SetArtist { - type CreatedAt = St::CreatedAt; - type Artist = Set; type Title = St::Title; + type Artist = St::Artist; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { type CreatedAt = St::CreatedAt; - type Artist = St::Artist; type Title = Set; + type Artist = St::Artist; + } + ///State transition - sets the `artist` field to Set + pub struct SetArtist(PhantomData St>); + impl sealed::Sealed for SetArtist {} + impl State for SetArtist { + type CreatedAt = St::CreatedAt; + type Title = St::Title; + type Artist = 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 `artist` field - pub struct artist(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `artist` field + pub struct artist(()); } } @@ -708,8 +708,8 @@ impl AlbumBuilder where St: album_state::State, St::CreatedAt: album_state::IsSet, - St::Artist: album_state::IsSet, St::Title: album_state::IsSet, + St::Artist: album_state::IsSet, { /// Build the final struct. pub fn build(self) -> Album { diff --git a/crates/jacquard-api/src/app_rocksky/feed/generator.rs b/crates/jacquard-api/src/app_rocksky/feed/generator.rs index 0a17690a..2f48301f 100644 --- a/crates/jacquard-api/src/app_rocksky/feed/generator.rs +++ b/crates/jacquard-api/src/app_rocksky/feed/generator.rs @@ -204,51 +204,51 @@ pub mod generator_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type DisplayName; type Did; + type DisplayName; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type DisplayName = Unset; type Did = Unset; + type DisplayName = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Did = Set; type DisplayName = St::DisplayName; - type Did = St::Did; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData St>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type CreatedAt = St::CreatedAt; - type DisplayName = Set; type Did = St::Did; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { + type DisplayName = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Did = St::Did; type DisplayName = St::DisplayName; - type Did = Set; + type CreatedAt = 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 `display_name` field - pub struct display_name(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `display_name` field + pub struct display_name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -369,9 +369,9 @@ where impl GeneratorBuilder where St: generator_state::State, - St::CreatedAt: generator_state::IsSet, - St::DisplayName: generator_state::IsSet, St::Did: generator_state::IsSet, + St::DisplayName: generator_state::IsSet, + St::CreatedAt: generator_state::IsSet, { /// Build the final struct. pub fn build(self) -> Generator { diff --git a/crates/jacquard-api/src/app_rocksky/graph/follow.rs b/crates/jacquard-api/src/app_rocksky/graph/follow.rs index 7d8c66eb..f1c792aa 100644 --- a/crates/jacquard-api/src/app_rocksky/graph/follow.rs +++ b/crates/jacquard-api/src/app_rocksky/graph/follow.rs @@ -115,37 +115,37 @@ pub mod follow_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -228,8 +228,8 @@ impl FollowBuilder { impl FollowBuilder where St: follow_state::State, - St::Subject: follow_state::IsSet, St::CreatedAt: follow_state::IsSet, + St::Subject: follow_state::IsSet, { /// Build the final struct. pub fn build(self) -> Follow { diff --git a/crates/jacquard-api/src/app_rocksky/playlist.rs b/crates/jacquard-api/src/app_rocksky/playlist.rs index db26b73a..2cfcdc2a 100644 --- a/crates/jacquard-api/src/app_rocksky/playlist.rs +++ b/crates/jacquard-api/src/app_rocksky/playlist.rs @@ -347,37 +347,37 @@ pub mod playlist_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -548,8 +548,8 @@ impl PlaylistBuilder { impl PlaylistBuilder where St: playlist_state::State, - St::Name: playlist_state::IsSet, St::CreatedAt: playlist_state::IsSet, + St::Name: playlist_state::IsSet, { /// Build the final struct. pub fn build(self) -> Playlist { diff --git a/crates/jacquard-api/src/app_rocksky/radio.rs b/crates/jacquard-api/src/app_rocksky/radio.rs index 9b803469..196a50f3 100644 --- a/crates/jacquard-api/src/app_rocksky/radio.rs +++ b/crates/jacquard-api/src/app_rocksky/radio.rs @@ -313,49 +313,49 @@ pub mod radio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Url; + type CreatedAt; type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Url = Unset; + type CreatedAt = Unset; type Name = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Url = St::Url; - type Name = St::Name; - } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type CreatedAt = St::CreatedAt; type Url = Set; + type CreatedAt = St::CreatedAt; + type Name = St::Name; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Url = St::Url; + type CreatedAt = Set; type Name = St::Name; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Url = St::Url; + type CreatedAt = St::CreatedAt; type Name = 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 `url` field pub struct url(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `name` field pub struct name(()); } @@ -506,8 +506,8 @@ impl RadioBuilder { impl RadioBuilder where St: radio_state::State, - St::CreatedAt: radio_state::IsSet, St::Url: radio_state::IsSet, + St::CreatedAt: radio_state::IsSet, St::Name: radio_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_rocksky/scrobble.rs b/crates/jacquard-api/src/app_rocksky/scrobble.rs index d9385d15..f156f991 100644 --- a/crates/jacquard-api/src/app_rocksky/scrobble.rs +++ b/crates/jacquard-api/src/app_rocksky/scrobble.rs @@ -533,105 +533,105 @@ pub mod scrobble_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type AlbumArtist; type Title; - type Duration; + type Artist; type CreatedAt; - type AlbumArtist; type Album; - type Artist; + type Duration; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type AlbumArtist = Unset; type Title = Unset; - type Duration = Unset; + type Artist = Unset; type CreatedAt = Unset; - type AlbumArtist = Unset; type Album = Unset; - type Artist = Unset; + type Duration = Unset; + } + ///State transition - sets the `album_artist` field to Set + pub struct SetAlbumArtist(PhantomData St>); + impl sealed::Sealed for SetAlbumArtist {} + impl State for SetAlbumArtist { + type AlbumArtist = Set; + type Title = St::Title; + type Artist = St::Artist; + type CreatedAt = St::CreatedAt; + type Album = St::Album; + type Duration = St::Duration; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { + type AlbumArtist = St::AlbumArtist; type Title = Set; - type Duration = St::Duration; + type Artist = St::Artist; type CreatedAt = St::CreatedAt; - type AlbumArtist = St::AlbumArtist; type Album = St::Album; - type Artist = St::Artist; + type Duration = St::Duration; } - ///State transition - sets the `duration` field to Set - pub struct SetDuration(PhantomData St>); - impl sealed::Sealed for SetDuration {} - impl State for SetDuration { + ///State transition - sets the `artist` field to Set + pub struct SetArtist(PhantomData St>); + impl sealed::Sealed for SetArtist {} + impl State for SetArtist { + type AlbumArtist = St::AlbumArtist; type Title = St::Title; - type Duration = Set; + type Artist = Set; type CreatedAt = St::CreatedAt; - type AlbumArtist = St::AlbumArtist; type Album = St::Album; - type Artist = St::Artist; + type Duration = St::Duration; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type AlbumArtist = St::AlbumArtist; type Title = St::Title; - type Duration = St::Duration; + type Artist = St::Artist; type CreatedAt = Set; - type AlbumArtist = St::AlbumArtist; type Album = St::Album; - type Artist = St::Artist; - } - ///State transition - sets the `album_artist` field to Set - pub struct SetAlbumArtist(PhantomData St>); - impl sealed::Sealed for SetAlbumArtist {} - impl State for SetAlbumArtist { - type Title = St::Title; type Duration = St::Duration; - type CreatedAt = St::CreatedAt; - type AlbumArtist = Set; - type Album = St::Album; - type Artist = St::Artist; } ///State transition - sets the `album` field to Set pub struct SetAlbum(PhantomData St>); impl sealed::Sealed for SetAlbum {} impl State for SetAlbum { + type AlbumArtist = St::AlbumArtist; type Title = St::Title; - type Duration = St::Duration; + type Artist = St::Artist; type CreatedAt = St::CreatedAt; - type AlbumArtist = St::AlbumArtist; type Album = Set; - type Artist = St::Artist; + type Duration = St::Duration; } - ///State transition - sets the `artist` field to Set - pub struct SetArtist(PhantomData St>); - impl sealed::Sealed for SetArtist {} - impl State for SetArtist { + ///State transition - sets the `duration` field to Set + pub struct SetDuration(PhantomData St>); + impl sealed::Sealed for SetDuration {} + impl State for SetDuration { + type AlbumArtist = St::AlbumArtist; type Title = St::Title; - type Duration = St::Duration; + type Artist = St::Artist; type CreatedAt = St::CreatedAt; - type AlbumArtist = St::AlbumArtist; type Album = St::Album; - type Artist = Set; + type Duration = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `album_artist` field + pub struct album_artist(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `duration` field - pub struct duration(()); + ///Marker type for the `artist` field + pub struct artist(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `album_artist` field - pub struct album_artist(()); ///Marker type for the `album` field pub struct album(()); - ///Marker type for the `artist` field - pub struct artist(()); + ///Marker type for the `duration` field + pub struct duration(()); } } @@ -1076,12 +1076,12 @@ impl ScrobbleBuilder { impl ScrobbleBuilder where St: scrobble_state::State, + St::AlbumArtist: scrobble_state::IsSet, St::Title: scrobble_state::IsSet, - St::Duration: scrobble_state::IsSet, + St::Artist: scrobble_state::IsSet, St::CreatedAt: scrobble_state::IsSet, - St::AlbumArtist: scrobble_state::IsSet, St::Album: scrobble_state::IsSet, - St::Artist: scrobble_state::IsSet, + St::Duration: scrobble_state::IsSet, { /// Build the final struct. pub fn build(self) -> Scrobble { diff --git a/crates/jacquard-api/src/app_rocksky/shout.rs b/crates/jacquard-api/src/app_rocksky/shout.rs index f7ddeaf7..4828d3cc 100644 --- a/crates/jacquard-api/src/app_rocksky/shout.rs +++ b/crates/jacquard-api/src/app_rocksky/shout.rs @@ -229,49 +229,49 @@ pub mod shout_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type Message; + type Subject; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type Message = Unset; + type Subject = Unset; type CreatedAt = Unset; } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type Message = St::Message; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData St>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type Subject = St::Subject; type Message = Set; + type Subject = St::Subject; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Message = St::Message; + type Subject = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type Message = St::Message; + type Subject = St::Subject; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `message` field pub struct message(()); + ///Marker type for the `subject` field + pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -375,8 +375,8 @@ where impl ShoutBuilder where St: shout_state::State, - St::Subject: shout_state::IsSet, St::Message: shout_state::IsSet, + St::Subject: shout_state::IsSet, St::CreatedAt: shout_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/app_rocksky/song.rs b/crates/jacquard-api/src/app_rocksky/song.rs index 24851c8f..1c05723f 100644 --- a/crates/jacquard-api/src/app_rocksky/song.rs +++ b/crates/jacquard-api/src/app_rocksky/song.rs @@ -595,105 +595,105 @@ pub mod song_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Artist; - type CreatedAt; type Duration; - type Album; type Title; + type Album; type AlbumArtist; + type Artist; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Artist = Unset; - type CreatedAt = Unset; type Duration = Unset; - type Album = Unset; type Title = Unset; + type Album = Unset; type AlbumArtist = Unset; - } - ///State transition - sets the `artist` field to Set - pub struct SetArtist(PhantomData St>); - impl sealed::Sealed for SetArtist {} - impl State for SetArtist { - type Artist = Set; - type CreatedAt = St::CreatedAt; - type Duration = St::Duration; - type Album = St::Album; - type Title = St::Title; - type AlbumArtist = St::AlbumArtist; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Artist = St::Artist; - type CreatedAt = Set; - type Duration = St::Duration; - type Album = St::Album; - type Title = St::Title; - type AlbumArtist = St::AlbumArtist; + type Artist = Unset; + type CreatedAt = Unset; } ///State transition - sets the `duration` field to Set pub struct SetDuration(PhantomData St>); impl sealed::Sealed for SetDuration {} impl State for SetDuration { - type Artist = St::Artist; - type CreatedAt = St::CreatedAt; type Duration = Set; - type Album = St::Album; type Title = St::Title; + type Album = St::Album; type AlbumArtist = St::AlbumArtist; - } - ///State transition - sets the `album` field to Set - pub struct SetAlbum(PhantomData St>); - impl sealed::Sealed for SetAlbum {} - impl State for SetAlbum { type Artist = St::Artist; type CreatedAt = St::CreatedAt; - type Duration = St::Duration; - type Album = Set; - type Title = St::Title; - type AlbumArtist = St::AlbumArtist; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { + type Duration = St::Duration; + type Title = Set; + type Album = St::Album; + type AlbumArtist = St::AlbumArtist; type Artist = St::Artist; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `album` field to Set + pub struct SetAlbum(PhantomData St>); + impl sealed::Sealed for SetAlbum {} + impl State for SetAlbum { type Duration = St::Duration; - type Album = St::Album; - type Title = Set; + type Title = St::Title; + type Album = Set; type AlbumArtist = St::AlbumArtist; + type Artist = St::Artist; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `album_artist` field to Set pub struct SetAlbumArtist(PhantomData St>); impl sealed::Sealed for SetAlbumArtist {} impl State for SetAlbumArtist { + type Duration = St::Duration; + type Title = St::Title; + type Album = St::Album; + type AlbumArtist = Set; type Artist = St::Artist; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `artist` field to Set + pub struct SetArtist(PhantomData St>); + impl sealed::Sealed for SetArtist {} + impl State for SetArtist { type Duration = St::Duration; + type Title = St::Title; type Album = St::Album; + type AlbumArtist = St::AlbumArtist; + type Artist = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Duration = St::Duration; type Title = St::Title; - type AlbumArtist = Set; + type Album = St::Album; + type AlbumArtist = St::AlbumArtist; + type Artist = St::Artist; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `artist` field - pub struct artist(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `duration` field pub struct duration(()); - ///Marker type for the `album` field - pub struct album(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `album` field + pub struct album(()); ///Marker type for the `album_artist` field pub struct album_artist(()); + ///Marker type for the `artist` field + pub struct artist(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -1138,12 +1138,12 @@ impl SongBuilder { impl SongBuilder where St: song_state::State, - St::Artist: song_state::IsSet, - St::CreatedAt: song_state::IsSet, St::Duration: song_state::IsSet, - St::Album: song_state::IsSet, St::Title: song_state::IsSet, + St::Album: song_state::IsSet, St::AlbumArtist: song_state::IsSet, + St::Artist: song_state::IsSet, + St::CreatedAt: song_state::IsSet, { /// Build the final struct. pub fn build(self) -> Song { diff --git a/crates/jacquard-api/src/app_rocksky/song/match_song.rs b/crates/jacquard-api/src/app_rocksky/song/match_song.rs index 74b69d3a..102bd5e7 100644 --- a/crates/jacquard-api/src/app_rocksky/song/match_song.rs +++ b/crates/jacquard-api/src/app_rocksky/song/match_song.rs @@ -68,37 +68,37 @@ pub mod match_song_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Artist; type Title; + type Artist; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Artist = Unset; type Title = Unset; - } - ///State transition - sets the `artist` field to Set - pub struct SetArtist(PhantomData St>); - impl sealed::Sealed for SetArtist {} - impl State for SetArtist { - type Artist = Set; - type Title = St::Title; + type Artist = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Artist = St::Artist; type Title = Set; + type Artist = St::Artist; + } + ///State transition - sets the `artist` field to Set + pub struct SetArtist(PhantomData St>); + impl sealed::Sealed for SetArtist {} + impl State for SetArtist { + type Title = St::Title; + type Artist = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `artist` field - pub struct artist(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `artist` field + pub struct artist(()); } } @@ -168,8 +168,8 @@ where impl MatchSongBuilder where St: match_song_state::State, - St::Artist: match_song_state::IsSet, St::Title: match_song_state::IsSet, + St::Artist: match_song_state::IsSet, { /// Build the final struct. pub fn build(self) -> MatchSong { diff --git a/crates/jacquard-api/src/art_cllctv/embed/external.rs b/crates/jacquard-api/src/art_cllctv/embed/external.rs index da5750a5..6128d44b 100644 --- a/crates/jacquard-api/src/art_cllctv/embed/external.rs +++ b/crates/jacquard-api/src/art_cllctv/embed/external.rs @@ -153,49 +153,49 @@ pub mod external_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Description; + type Uri; type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Description = Unset; + type Uri = Unset; type Title = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Description = St::Description; - type Title = St::Title; - } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Uri = St::Uri; type Description = Set; + type Uri = St::Uri; + type Title = St::Title; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Description = St::Description; + type Uri = Set; type Title = St::Title; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Uri = St::Uri; type Description = St::Description; + type Uri = St::Uri; type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `description` field pub struct description(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `title` field pub struct title(()); } @@ -312,8 +312,8 @@ where impl ExternalBuilder where St: external_state::State, - St::Uri: external_state::IsSet, St::Description: external_state::IsSet, + St::Uri: external_state::IsSet, St::Title: external_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/art_cllctv/embed/images.rs b/crates/jacquard-api/src/art_cllctv/embed/images.rs index f7c3b677..f9d82357 100644 --- a/crates/jacquard-api/src/art_cllctv/embed/images.rs +++ b/crates/jacquard-api/src/art_cllctv/embed/images.rs @@ -799,50 +799,50 @@ pub mod view_image_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Thumb; - type Alt; type Fullsize; + type Alt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Thumb = Unset; - type Alt = Unset; type Fullsize = Unset; + type Alt = Unset; } ///State transition - sets the `thumb` field to Set pub struct SetThumb(PhantomData St>); impl sealed::Sealed for SetThumb {} impl State for SetThumb { type Thumb = Set; - type Alt = St::Alt; - type Fullsize = St::Fullsize; - } - ///State transition - sets the `alt` field to Set - pub struct SetAlt(PhantomData St>); - impl sealed::Sealed for SetAlt {} - impl State for SetAlt { - type Thumb = St::Thumb; - type Alt = Set; type Fullsize = St::Fullsize; + type Alt = St::Alt; } ///State transition - sets the `fullsize` field to Set pub struct SetFullsize(PhantomData St>); impl sealed::Sealed for SetFullsize {} impl State for SetFullsize { type Thumb = St::Thumb; - type Alt = St::Alt; type Fullsize = Set; + type Alt = St::Alt; + } + ///State transition - sets the `alt` field to Set + pub struct SetAlt(PhantomData St>); + impl sealed::Sealed for SetAlt {} + impl State for SetAlt { + type Thumb = St::Thumb; + type Fullsize = St::Fullsize; + type Alt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `thumb` field pub struct thumb(()); - ///Marker type for the `alt` field - pub struct alt(()); ///Marker type for the `fullsize` field pub struct fullsize(()); + ///Marker type for the `alt` field + pub struct alt(()); } } @@ -964,8 +964,8 @@ impl ViewImageBuilder where St: view_image_state::State, St::Thumb: view_image_state::IsSet, - St::Alt: view_image_state::IsSet, St::Fullsize: view_image_state::IsSet, + St::Alt: view_image_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewImage { diff --git a/crates/jacquard-api/src/art_cllctv/feed/pin.rs b/crates/jacquard-api/src/art_cllctv/feed/pin.rs index 0cb70b92..a7a26388 100644 --- a/crates/jacquard-api/src/art_cllctv/feed/pin.rs +++ b/crates/jacquard-api/src/art_cllctv/feed/pin.rs @@ -112,37 +112,37 @@ pub mod pin_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -212,8 +212,8 @@ where impl PinBuilder where St: pin_state::State, - St::CreatedAt: pin_state::IsSet, St::Subject: pin_state::IsSet, + St::CreatedAt: pin_state::IsSet, { /// Build the final struct. pub fn build(self) -> Pin { diff --git a/crates/jacquard-api/src/at_inlay/component.rs b/crates/jacquard-api/src/at_inlay/component.rs index c82fc571..983c8ab5 100644 --- a/crates/jacquard-api/src/at_inlay/component.rs +++ b/crates/jacquard-api/src/at_inlay/component.rs @@ -1293,37 +1293,37 @@ pub mod view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Prop; type Accepts; + type Prop; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Prop = Unset; type Accepts = Unset; - } - ///State transition - sets the `prop` field to Set - pub struct SetProp(PhantomData St>); - impl sealed::Sealed for SetProp {} - impl State for SetProp { - type Prop = Set; - type Accepts = St::Accepts; + type Prop = Unset; } ///State transition - sets the `accepts` field to Set pub struct SetAccepts(PhantomData St>); impl sealed::Sealed for SetAccepts {} impl State for SetAccepts { - type Prop = St::Prop; type Accepts = Set; + type Prop = St::Prop; + } + ///State transition - sets the `prop` field to Set + pub struct SetProp(PhantomData St>); + impl sealed::Sealed for SetProp {} + impl State for SetProp { + type Accepts = St::Accepts; + type Prop = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `prop` field - pub struct prop(()); ///Marker type for the `accepts` field pub struct accepts(()); + ///Marker type for the `prop` field + pub struct prop(()); } } @@ -1393,8 +1393,8 @@ where impl ViewBuilder where St: view_state::State, - St::Prop: view_state::IsSet, St::Accepts: view_state::IsSet, + St::Prop: view_state::IsSet, { /// Build the final struct. pub fn build(self) -> View { diff --git a/crates/jacquard-api/src/at_inlay/pack.rs b/crates/jacquard-api/src/at_inlay/pack.rs index a7bc299c..0357daae 100644 --- a/crates/jacquard-api/src/at_inlay/pack.rs +++ b/crates/jacquard-api/src/at_inlay/pack.rs @@ -155,37 +155,37 @@ pub mod export_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Component; type Type; + type Component; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Component = Unset; type Type = Unset; - } - ///State transition - sets the `component` field to Set - pub struct SetComponent(PhantomData St>); - impl sealed::Sealed for SetComponent {} - impl State for SetComponent { - type Component = Set; - type Type = St::Type; + type Component = Unset; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { - type Component = St::Component; type Type = Set; + type Component = St::Component; + } + ///State transition - sets the `component` field to Set + pub struct SetComponent(PhantomData St>); + impl sealed::Sealed for SetComponent {} + impl State for SetComponent { + type Type = St::Type; + type Component = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `component` field - pub struct component(()); ///Marker type for the `type` field pub struct r#type(()); + ///Marker type for the `component` field + pub struct component(()); } } @@ -255,8 +255,8 @@ where impl ExportBuilder where St: export_state::State, - St::Component: export_state::IsSet, St::Type: export_state::IsSet, + St::Component: export_state::IsSet, { /// Build the final struct. pub fn build(self) -> Export { diff --git a/crates/jacquard-api/src/at_margin/annotation.rs b/crates/jacquard-api/src/at_margin/annotation.rs index b89e298d..937b015a 100644 --- a/crates/jacquard-api/src/at_margin/annotation.rs +++ b/crates/jacquard-api/src/at_margin/annotation.rs @@ -1587,37 +1587,37 @@ pub mod range_selector_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type EndSelector; type StartSelector; + type EndSelector; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type EndSelector = Unset; type StartSelector = Unset; - } - ///State transition - sets the `end_selector` field to Set - pub struct SetEndSelector(PhantomData St>); - impl sealed::Sealed for SetEndSelector {} - impl State for SetEndSelector { - type EndSelector = Set; - type StartSelector = St::StartSelector; + type EndSelector = Unset; } ///State transition - sets the `start_selector` field to Set pub struct SetStartSelector(PhantomData St>); impl sealed::Sealed for SetStartSelector {} impl State for SetStartSelector { - type EndSelector = St::EndSelector; type StartSelector = Set; + type EndSelector = St::EndSelector; + } + ///State transition - sets the `end_selector` field to Set + pub struct SetEndSelector(PhantomData St>); + impl sealed::Sealed for SetEndSelector {} + impl State for SetEndSelector { + type StartSelector = St::StartSelector; + type EndSelector = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `end_selector` field - pub struct end_selector(()); ///Marker type for the `start_selector` field pub struct start_selector(()); + ///Marker type for the `end_selector` field + pub struct end_selector(()); } } @@ -1704,8 +1704,8 @@ impl RangeSelectorBuilder { impl RangeSelectorBuilder where St: range_selector_state::State, - St::EndSelector: range_selector_state::IsSet, St::StartSelector: range_selector_state::IsSet, + St::EndSelector: range_selector_state::IsSet, { /// Build the final struct. pub fn build(self) -> RangeSelector { @@ -1903,37 +1903,37 @@ pub mod text_position_selector_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type End; type Start; + type End; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type End = Unset; type Start = Unset; - } - ///State transition - sets the `end` field to Set - pub struct SetEnd(PhantomData St>); - impl sealed::Sealed for SetEnd {} - impl State for SetEnd { - type End = Set; - type Start = St::Start; + type End = Unset; } ///State transition - sets the `start` field to Set pub struct SetStart(PhantomData St>); impl sealed::Sealed for SetStart {} impl State for SetStart { - type End = St::End; type Start = Set; + type End = St::End; + } + ///State transition - sets the `end` field to Set + pub struct SetEnd(PhantomData St>); + impl sealed::Sealed for SetEnd {} + impl State for SetEnd { + type Start = St::Start; + type End = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `end` field - pub struct end(()); ///Marker type for the `start` field pub struct start(()); + ///Marker type for the `end` field + pub struct end(()); } } @@ -2022,8 +2022,8 @@ impl< impl TextPositionSelectorBuilder where St: text_position_selector_state::State, - St::End: text_position_selector_state::IsSet, St::Start: text_position_selector_state::IsSet, + St::End: text_position_selector_state::IsSet, { /// Build the final struct. pub fn build(self) -> TextPositionSelector { diff --git a/crates/jacquard-api/src/at_margin/apikey.rs b/crates/jacquard-api/src/at_margin/apikey.rs index d3caf73b..ac6abdd3 100644 --- a/crates/jacquard-api/src/at_margin/apikey.rs +++ b/crates/jacquard-api/src/at_margin/apikey.rs @@ -126,49 +126,49 @@ pub mod apikey_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type KeyHash; + type CreatedAt; type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type KeyHash = Unset; + type CreatedAt = Unset; type Name = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type KeyHash = St::KeyHash; - type Name = St::Name; - } ///State transition - sets the `key_hash` field to Set pub struct SetKeyHash(PhantomData St>); impl sealed::Sealed for SetKeyHash {} impl State for SetKeyHash { - type CreatedAt = St::CreatedAt; type KeyHash = Set; + type CreatedAt = St::CreatedAt; + type Name = St::Name; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type KeyHash = St::KeyHash; + type CreatedAt = Set; type Name = St::Name; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type KeyHash = St::KeyHash; + type CreatedAt = St::CreatedAt; type Name = 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 `key_hash` field pub struct key_hash(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `name` field pub struct name(()); } @@ -259,8 +259,8 @@ where impl ApikeyBuilder where St: apikey_state::State, - St::CreatedAt: apikey_state::IsSet, St::KeyHash: apikey_state::IsSet, + St::CreatedAt: apikey_state::IsSet, St::Name: apikey_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/at_margin/collection.rs b/crates/jacquard-api/src/at_margin/collection.rs index 783a5864..ae9ee95c 100644 --- a/crates/jacquard-api/src/at_margin/collection.rs +++ b/crates/jacquard-api/src/at_margin/collection.rs @@ -187,37 +187,37 @@ pub mod collection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = 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 `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -313,8 +313,8 @@ where impl CollectionBuilder where St: collection_state::State, - St::CreatedAt: collection_state::IsSet, St::Name: collection_state::IsSet, + St::CreatedAt: collection_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collection { diff --git a/crates/jacquard-api/src/at_margin/reply.rs b/crates/jacquard-api/src/at_margin/reply.rs index 20db2bc8..d0863b89 100644 --- a/crates/jacquard-api/src/at_margin/reply.rs +++ b/crates/jacquard-api/src/at_margin/reply.rs @@ -176,65 +176,65 @@ pub mod reply_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Parent; type Root; type CreatedAt; - type Parent; type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Parent = Unset; type Root = Unset; type CreatedAt = Unset; - type Parent = Unset; type Text = Unset; } + ///State transition - sets the `parent` field to Set + pub struct SetParent(PhantomData St>); + impl sealed::Sealed for SetParent {} + impl State for SetParent { + type Parent = Set; + type Root = St::Root; + type CreatedAt = St::CreatedAt; + type Text = St::Text; + } ///State transition - sets the `root` field to Set pub struct SetRoot(PhantomData St>); impl sealed::Sealed for SetRoot {} impl State for SetRoot { + type Parent = St::Parent; type Root = Set; type CreatedAt = St::CreatedAt; - type Parent = St::Parent; type Text = St::Text; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Root = St::Root; - type CreatedAt = Set; type Parent = St::Parent; - type Text = St::Text; - } - ///State transition - sets the `parent` field to Set - pub struct SetParent(PhantomData St>); - impl sealed::Sealed for SetParent {} - impl State for SetParent { type Root = St::Root; - type CreatedAt = St::CreatedAt; - type Parent = Set; + type CreatedAt = Set; type Text = St::Text; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { + type Parent = St::Parent; type Root = St::Root; type CreatedAt = St::CreatedAt; - type Parent = St::Parent; type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `parent` field + pub struct parent(()); ///Marker type for the `root` field pub struct root(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `parent` field - pub struct parent(()); ///Marker type for the `text` field pub struct text(()); } @@ -363,9 +363,9 @@ where impl ReplyBuilder where St: reply_state::State, + St::Parent: reply_state::IsSet, St::Root: reply_state::IsSet, St::CreatedAt: reply_state::IsSet, - St::Parent: reply_state::IsSet, St::Text: reply_state::IsSet, { /// Build the final struct. @@ -515,37 +515,37 @@ pub mod reply_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Cid = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = St::Cid; + type Uri = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = St::Uri; type Cid = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = St::Cid; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -615,8 +615,8 @@ where impl ReplyRefBuilder where St: reply_ref_state::State, - St::Uri: reply_ref_state::IsSet, St::Cid: reply_ref_state::IsSet, + St::Uri: reply_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReplyRef { diff --git a/crates/jacquard-api/src/at_podping/records/podping.rs b/crates/jacquard-api/src/at_podping/records/podping.rs index 54a6f7ec..3bbbdd13 100644 --- a/crates/jacquard-api/src/at_podping/records/podping.rs +++ b/crates/jacquard-api/src/at_podping/records/podping.rs @@ -126,83 +126,83 @@ pub mod podping_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Iris; - type Version; type Medium; + type Version; type Reason; + type Iris; type Timestamp; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Iris = Unset; - type Version = Unset; type Medium = Unset; + type Version = Unset; type Reason = Unset; + type Iris = Unset; type Timestamp = Unset; } - ///State transition - sets the `iris` field to Set - pub struct SetIris(PhantomData St>); - impl sealed::Sealed for SetIris {} - impl State for SetIris { - type Iris = Set; + ///State transition - sets the `medium` field to Set + pub struct SetMedium(PhantomData St>); + impl sealed::Sealed for SetMedium {} + impl State for SetMedium { + type Medium = Set; type Version = St::Version; - type Medium = St::Medium; type Reason = St::Reason; + type Iris = St::Iris; type Timestamp = St::Timestamp; } ///State transition - sets the `version` field to Set pub struct SetVersion(PhantomData St>); impl sealed::Sealed for SetVersion {} impl State for SetVersion { - type Iris = St::Iris; - type Version = Set; type Medium = St::Medium; + type Version = Set; type Reason = St::Reason; - type Timestamp = St::Timestamp; - } - ///State transition - sets the `medium` field to Set - pub struct SetMedium(PhantomData St>); - impl sealed::Sealed for SetMedium {} - impl State for SetMedium { type Iris = St::Iris; - type Version = St::Version; - type Medium = Set; - type Reason = St::Reason; type Timestamp = St::Timestamp; } ///State transition - sets the `reason` field to Set pub struct SetReason(PhantomData St>); impl sealed::Sealed for SetReason {} impl State for SetReason { - type Iris = St::Iris; - type Version = St::Version; type Medium = St::Medium; + type Version = St::Version; type Reason = Set; + type Iris = St::Iris; + type Timestamp = St::Timestamp; + } + ///State transition - sets the `iris` field to Set + pub struct SetIris(PhantomData St>); + impl sealed::Sealed for SetIris {} + impl State for SetIris { + type Medium = St::Medium; + type Version = St::Version; + type Reason = St::Reason; + type Iris = Set; type Timestamp = St::Timestamp; } ///State transition - sets the `timestamp` field to Set pub struct SetTimestamp(PhantomData St>); impl sealed::Sealed for SetTimestamp {} impl State for SetTimestamp { - type Iris = St::Iris; - type Version = St::Version; type Medium = St::Medium; + type Version = St::Version; type Reason = St::Reason; + type Iris = St::Iris; type Timestamp = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `iris` field - pub struct iris(()); - ///Marker type for the `version` field - pub struct version(()); ///Marker type for the `medium` field pub struct medium(()); + ///Marker type for the `version` field + pub struct version(()); ///Marker type for the `reason` field pub struct reason(()); + ///Marker type for the `iris` field + pub struct iris(()); ///Marker type for the `timestamp` field pub struct timestamp(()); } @@ -365,10 +365,10 @@ where impl PodpingBuilder where St: podping_state::State, - St::Iris: podping_state::IsSet, - St::Version: podping_state::IsSet, St::Medium: podping_state::IsSet, + St::Version: podping_state::IsSet, St::Reason: podping_state::IsSet, + St::Iris: podping_state::IsSet, St::Timestamp: podping_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/at_podping/records/startup.rs b/crates/jacquard-api/src/at_podping/records/startup.rs index a21f2d58..f3dc3f64 100644 --- a/crates/jacquard-api/src/at_podping/records/startup.rs +++ b/crates/jacquard-api/src/at_podping/records/startup.rs @@ -140,51 +140,51 @@ pub mod startup_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Timestamp; type ServerAccount; type Message; - type Timestamp; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Timestamp = Unset; type ServerAccount = Unset; type Message = Unset; - type Timestamp = Unset; + } + ///State transition - sets the `timestamp` field to Set + pub struct SetTimestamp(PhantomData St>); + impl sealed::Sealed for SetTimestamp {} + impl State for SetTimestamp { + type Timestamp = Set; + type ServerAccount = St::ServerAccount; + type Message = St::Message; } ///State transition - sets the `server_account` field to Set pub struct SetServerAccount(PhantomData St>); impl sealed::Sealed for SetServerAccount {} impl State for SetServerAccount { + type Timestamp = St::Timestamp; type ServerAccount = Set; type Message = St::Message; - type Timestamp = St::Timestamp; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData St>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type ServerAccount = St::ServerAccount; - type Message = Set; type Timestamp = St::Timestamp; - } - ///State transition - sets the `timestamp` field to Set - pub struct SetTimestamp(PhantomData St>); - impl sealed::Sealed for SetTimestamp {} - impl State for SetTimestamp { type ServerAccount = St::ServerAccount; - type Message = St::Message; - type Timestamp = Set; + type Message = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `timestamp` field + pub struct timestamp(()); ///Marker type for the `server_account` field pub struct server_account(()); ///Marker type for the `message` field pub struct message(()); - ///Marker type for the `timestamp` field - pub struct timestamp(()); } } @@ -389,9 +389,9 @@ impl StartupBuilder { impl StartupBuilder where St: startup_state::State, + St::Timestamp: startup_state::IsSet, St::ServerAccount: startup_state::IsSet, St::Message: startup_state::IsSet, - St::Timestamp: startup_state::IsSet, { /// Build the final struct. pub fn build(self) -> Startup { diff --git a/crates/jacquard-api/src/at_unthread/document/put_draft.rs b/crates/jacquard-api/src/at_unthread/document/put_draft.rs index d5a813cd..e843be78 100644 --- a/crates/jacquard-api/src/at_unthread/document/put_draft.rs +++ b/crates/jacquard-api/src/at_unthread/document/put_draft.rs @@ -154,67 +154,67 @@ pub mod draft_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Content; + type UpdatedAt; type Tid; type CreatedAt; - type UpdatedAt; - type Content; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Content = Unset; + type UpdatedAt = Unset; type Tid = Unset; type CreatedAt = Unset; - type UpdatedAt = Unset; - type Content = Unset; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Content = Set; + type UpdatedAt = St::UpdatedAt; + type Tid = St::Tid; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type Content = St::Content; + type UpdatedAt = Set; + type Tid = St::Tid; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `tid` field to Set pub struct SetTid(PhantomData St>); impl sealed::Sealed for SetTid {} impl State for SetTid { + type Content = St::Content; + type UpdatedAt = St::UpdatedAt; type Tid = Set; type CreatedAt = St::CreatedAt; - type UpdatedAt = St::UpdatedAt; - type Content = St::Content; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Tid = St::Tid; - type CreatedAt = Set; - type UpdatedAt = St::UpdatedAt; - type Content = St::Content; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { - type Tid = St::Tid; - type CreatedAt = St::CreatedAt; - type UpdatedAt = Set; type Content = St::Content; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type Tid = St::Tid; - type CreatedAt = St::CreatedAt; type UpdatedAt = St::UpdatedAt; - type Content = Set; + type Tid = St::Tid; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `content` field + pub struct content(()); + ///Marker type for the `updated_at` field + pub struct updated_at(()); ///Marker type for the `tid` field pub struct tid(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `updated_at` field - pub struct updated_at(()); - ///Marker type for the `content` field - pub struct content(()); } } @@ -322,10 +322,10 @@ where impl DraftViewBuilder where St: draft_view_state::State, + St::Content: draft_view_state::IsSet, + St::UpdatedAt: draft_view_state::IsSet, St::Tid: draft_view_state::IsSet, St::CreatedAt: draft_view_state::IsSet, - St::UpdatedAt: draft_view_state::IsSet, - St::Content: draft_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> DraftView { diff --git a/crates/jacquard-api/src/at_youandme/connection.rs b/crates/jacquard-api/src/at_youandme/connection.rs index bf3feb82..4807e053 100644 --- a/crates/jacquard-api/src/at_youandme/connection.rs +++ b/crates/jacquard-api/src/at_youandme/connection.rs @@ -113,37 +113,37 @@ pub mod connection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -213,8 +213,8 @@ where impl ConnectionBuilder where St: connection_state::State, - St::Subject: connection_state::IsSet, St::CreatedAt: connection_state::IsSet, + St::Subject: connection_state::IsSet, { /// Build the final struct. pub fn build(self) -> Connection { diff --git a/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs b/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs index 99865160..de800f5f 100644 --- a/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs +++ b/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs @@ -159,66 +159,66 @@ pub mod transaction_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; + type ServiceConsumer; type TransactionId; type ServiceProvider; - type ServiceConsumer; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; + type ServiceConsumer = Unset; type TransactionId = Unset; type ServiceProvider = Unset; - type ServiceConsumer = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; + type ServiceConsumer = St::ServiceConsumer; + type TransactionId = St::TransactionId; + type ServiceProvider = St::ServiceProvider; + } + ///State transition - sets the `service_consumer` field to Set + pub struct SetServiceConsumer(PhantomData St>); + impl sealed::Sealed for SetServiceConsumer {} + impl State for SetServiceConsumer { + type CreatedAt = St::CreatedAt; + type ServiceConsumer = Set; type TransactionId = St::TransactionId; type ServiceProvider = St::ServiceProvider; - type ServiceConsumer = St::ServiceConsumer; } ///State transition - sets the `transaction_id` field to Set pub struct SetTransactionId(PhantomData St>); impl sealed::Sealed for SetTransactionId {} impl State for SetTransactionId { type CreatedAt = St::CreatedAt; + type ServiceConsumer = St::ServiceConsumer; type TransactionId = Set; type ServiceProvider = St::ServiceProvider; - type ServiceConsumer = St::ServiceConsumer; } ///State transition - sets the `service_provider` field to Set pub struct SetServiceProvider(PhantomData St>); impl sealed::Sealed for SetServiceProvider {} impl State for SetServiceProvider { type CreatedAt = St::CreatedAt; - type TransactionId = St::TransactionId; - type ServiceProvider = Set; type ServiceConsumer = St::ServiceConsumer; - } - ///State transition - sets the `service_consumer` field to Set - pub struct SetServiceConsumer(PhantomData St>); - impl sealed::Sealed for SetServiceConsumer {} - impl State for SetServiceConsumer { - type CreatedAt = St::CreatedAt; type TransactionId = St::TransactionId; - type ServiceProvider = St::ServiceProvider; - type ServiceConsumer = Set; + type ServiceProvider = 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 `service_consumer` field + pub struct service_consumer(()); ///Marker type for the `transaction_id` field pub struct transaction_id(()); ///Marker type for the `service_provider` field pub struct service_provider(()); - ///Marker type for the `service_consumer` field - pub struct service_consumer(()); } } @@ -374,9 +374,9 @@ impl TransactionBuilder where St: transaction_state::State, St::CreatedAt: transaction_state::IsSet, + St::ServiceConsumer: transaction_state::IsSet, St::TransactionId: transaction_state::IsSet, St::ServiceProvider: transaction_state::IsSet, - St::ServiceConsumer: transaction_state::IsSet, { /// Build the final struct. pub fn build(self) -> Transaction { diff --git a/crates/jacquard-api/src/beauty_cybernetic/trustcow/warrant.rs b/crates/jacquard-api/src/beauty_cybernetic/trustcow/warrant.rs index 1b696cf6..e3867cd7 100644 --- a/crates/jacquard-api/src/beauty_cybernetic/trustcow/warrant.rs +++ b/crates/jacquard-api/src/beauty_cybernetic/trustcow/warrant.rs @@ -314,37 +314,37 @@ pub mod warrant_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -479,8 +479,8 @@ impl WarrantBuilder { impl WarrantBuilder where St: warrant_state::State, - St::Subject: warrant_state::IsSet, St::CreatedAt: warrant_state::IsSet, + St::Subject: warrant_state::IsSet, { /// Build the final struct. pub fn build(self) -> Warrant { diff --git a/crates/jacquard-api/src/blog_pckt/block/image.rs b/crates/jacquard-api/src/blog_pckt/block/image.rs index 9415409a..54a68b83 100644 --- a/crates/jacquard-api/src/blog_pckt/block/image.rs +++ b/crates/jacquard-api/src/blog_pckt/block/image.rs @@ -242,37 +242,37 @@ pub mod aspect_ratio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Width; type Height; + type Width; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Width = Unset; type Height = Unset; - } - ///State transition - sets the `width` field to Set - pub struct SetWidth(PhantomData St>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = St::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData St>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = St::Width; type Height = Set; + type Width = St::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData St>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = St::Height; + type Width = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `width` field - pub struct width(()); ///Marker type for the `height` field pub struct height(()); + ///Marker type for the `width` field + pub struct width(()); } } @@ -342,8 +342,8 @@ where impl AspectRatioBuilder where St: aspect_ratio_state::State, - St::Width: aspect_ratio_state::IsSet, St::Height: aspect_ratio_state::IsSet, + St::Width: aspect_ratio_state::IsSet, { /// Build the final struct. pub fn build(self) -> AspectRatio { diff --git a/crates/jacquard-api/src/blog_pckt/block/mention.rs b/crates/jacquard-api/src/blog_pckt/block/mention.rs index d9fbe1a6..82a9e9a4 100644 --- a/crates/jacquard-api/src/blog_pckt/block/mention.rs +++ b/crates/jacquard-api/src/blog_pckt/block/mention.rs @@ -72,37 +72,37 @@ pub mod mention_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Handle; type Did; + type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Handle = Unset; type Did = Unset; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData St>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Handle = Set; - type Did = St::Did; + type Handle = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Handle = St::Handle; type Did = Set; + type Handle = St::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData St>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type Did = St::Did; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `handle` field - pub struct handle(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `handle` field + pub struct handle(()); } } @@ -172,8 +172,8 @@ where impl MentionBuilder where St: mention_state::State, - St::Handle: mention_state::IsSet, St::Did: mention_state::IsSet, + St::Handle: mention_state::IsSet, { /// Build the final struct. pub fn build(self) -> Mention { diff --git a/crates/jacquard-api/src/blog_pckt/block/task_item.rs b/crates/jacquard-api/src/blog_pckt/block/task_item.rs index af8fb633..1541dfa3 100644 --- a/crates/jacquard-api/src/blog_pckt/block/task_item.rs +++ b/crates/jacquard-api/src/blog_pckt/block/task_item.rs @@ -61,37 +61,37 @@ pub mod task_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Checked; type Content; + type Checked; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Checked = Unset; type Content = Unset; - } - ///State transition - sets the `checked` field to Set - pub struct SetChecked(PhantomData St>); - impl sealed::Sealed for SetChecked {} - impl State for SetChecked { - type Checked = Set; - type Content = St::Content; + type Checked = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Checked = St::Checked; type Content = Set; + type Checked = St::Checked; + } + ///State transition - sets the `checked` field to Set + pub struct SetChecked(PhantomData St>); + impl sealed::Sealed for SetChecked {} + impl State for SetChecked { + type Content = St::Content; + type Checked = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `checked` field - pub struct checked(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `checked` field + pub struct checked(()); } } @@ -161,8 +161,8 @@ where impl TaskItemBuilder where St: task_item_state::State, - St::Checked: task_item_state::IsSet, St::Content: task_item_state::IsSet, + St::Checked: task_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> TaskItem { diff --git a/crates/jacquard-api/src/blog_pckt/post.rs b/crates/jacquard-api/src/blog_pckt/post.rs index 2da0bff7..a8f66aa6 100644 --- a/crates/jacquard-api/src/blog_pckt/post.rs +++ b/crates/jacquard-api/src/blog_pckt/post.rs @@ -153,67 +153,67 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Blocks; - type Url; type Blog; type Title; + type Url; + type Blocks; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Blocks = Unset; - type Url = Unset; type Blog = Unset; type Title = Unset; - } - ///State transition - sets the `blocks` field to Set - pub struct SetBlocks(PhantomData St>); - impl sealed::Sealed for SetBlocks {} - impl State for SetBlocks { - type Blocks = Set; - type Url = St::Url; - type Blog = St::Blog; - type Title = St::Title; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Blocks = St::Blocks; - type Url = Set; - type Blog = St::Blog; - type Title = St::Title; + type Url = Unset; + type Blocks = Unset; } ///State transition - sets the `blog` field to Set pub struct SetBlog(PhantomData St>); impl sealed::Sealed for SetBlog {} impl State for SetBlog { - type Blocks = St::Blocks; - type Url = St::Url; type Blog = Set; type Title = St::Title; + type Url = St::Url; + type Blocks = St::Blocks; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Blocks = St::Blocks; - type Url = St::Url; type Blog = St::Blog; type Title = Set; + type Url = St::Url; + type Blocks = St::Blocks; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type Blog = St::Blog; + type Title = St::Title; + type Url = Set; + type Blocks = St::Blocks; + } + ///State transition - sets the `blocks` field to Set + pub struct SetBlocks(PhantomData St>); + impl sealed::Sealed for SetBlocks {} + impl State for SetBlocks { + type Blog = St::Blog; + type Title = St::Title; + type Url = St::Url; + type Blocks = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `blocks` field - pub struct blocks(()); - ///Marker type for the `url` field - pub struct url(()); ///Marker type for the `blog` field pub struct blog(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `url` field + pub struct url(()); + ///Marker type for the `blocks` field + pub struct blocks(()); } } @@ -410,10 +410,10 @@ where impl PostBuilder where St: post_state::State, - St::Blocks: post_state::IsSet, - St::Url: post_state::IsSet, St::Blog: post_state::IsSet, St::Title: post_state::IsSet, + St::Url: post_state::IsSet, + St::Blocks: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/blog_pckt/richtext/facet.rs b/crates/jacquard-api/src/blog_pckt/richtext/facet.rs index e832f36b..98f518a6 100644 --- a/crates/jacquard-api/src/blog_pckt/richtext/facet.rs +++ b/crates/jacquard-api/src/blog_pckt/richtext/facet.rs @@ -740,37 +740,37 @@ pub mod byte_slice_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ByteEnd; type ByteStart; + type ByteEnd; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ByteEnd = Unset; type ByteStart = Unset; - } - ///State transition - sets the `byte_end` field to Set - pub struct SetByteEnd(PhantomData St>); - impl sealed::Sealed for SetByteEnd {} - impl State for SetByteEnd { - type ByteEnd = Set; - type ByteStart = St::ByteStart; + type ByteEnd = Unset; } ///State transition - sets the `byte_start` field to Set pub struct SetByteStart(PhantomData St>); impl sealed::Sealed for SetByteStart {} impl State for SetByteStart { - type ByteEnd = St::ByteEnd; type ByteStart = Set; + type ByteEnd = St::ByteEnd; + } + ///State transition - sets the `byte_end` field to Set + pub struct SetByteEnd(PhantomData St>); + impl sealed::Sealed for SetByteEnd {} + impl State for SetByteEnd { + type ByteStart = St::ByteStart; + type ByteEnd = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `byte_end` field - pub struct byte_end(()); ///Marker type for the `byte_start` field pub struct byte_start(()); + ///Marker type for the `byte_end` field + pub struct byte_end(()); } } @@ -840,8 +840,8 @@ where impl ByteSliceBuilder where St: byte_slice_state::State, - St::ByteEnd: byte_slice_state::IsSet, St::ByteStart: byte_slice_state::IsSet, + St::ByteEnd: byte_slice_state::IsSet, { /// Build the final struct. pub fn build(self) -> ByteSlice { @@ -974,37 +974,37 @@ pub mod facet_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Index; type Features; + type Index; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Index = Unset; type Features = Unset; - } - ///State transition - sets the `index` field to Set - pub struct SetIndex(PhantomData St>); - impl sealed::Sealed for SetIndex {} - impl State for SetIndex { - type Index = Set; - type Features = St::Features; + type Index = Unset; } ///State transition - sets the `features` field to Set pub struct SetFeatures(PhantomData St>); impl sealed::Sealed for SetFeatures {} impl State for SetFeatures { - type Index = St::Index; type Features = Set; + type Index = St::Index; + } + ///State transition - sets the `index` field to Set + pub struct SetIndex(PhantomData St>); + impl sealed::Sealed for SetIndex {} + impl State for SetIndex { + type Features = St::Features; + type Index = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `index` field - pub struct index(()); ///Marker type for the `features` field pub struct features(()); + ///Marker type for the `index` field + pub struct index(()); } } @@ -1074,8 +1074,8 @@ where impl FacetBuilder where St: facet_state::State, - St::Index: facet_state::IsSet, St::Features: facet_state::IsSet, + St::Index: facet_state::IsSet, { /// Build the final struct. pub fn build(self) -> Facet { diff --git a/crates/jacquard-api/src/blue__2048.rs b/crates/jacquard-api/src/blue__2048.rs index 2cf68856..b6fde637 100644 --- a/crates/jacquard-api/src/blue__2048.rs +++ b/crates/jacquard-api/src/blue__2048.rs @@ -75,65 +75,65 @@ pub mod sync_status_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Hash; type UpdatedAt; + type CreatedAt; type SyncedWithAtRepo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Hash = Unset; type UpdatedAt = Unset; + type CreatedAt = Unset; type SyncedWithAtRepo = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Hash = St::Hash; - type UpdatedAt = St::UpdatedAt; - type SyncedWithAtRepo = St::SyncedWithAtRepo; - } ///State transition - sets the `hash` field to Set pub struct SetHash(PhantomData St>); impl sealed::Sealed for SetHash {} impl State for SetHash { - type CreatedAt = St::CreatedAt; type Hash = Set; type UpdatedAt = St::UpdatedAt; + type CreatedAt = St::CreatedAt; type SyncedWithAtRepo = St::SyncedWithAtRepo; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData St>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { - type CreatedAt = St::CreatedAt; type Hash = St::Hash; type UpdatedAt = Set; + type CreatedAt = St::CreatedAt; + type SyncedWithAtRepo = St::SyncedWithAtRepo; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Hash = St::Hash; + type UpdatedAt = St::UpdatedAt; + type CreatedAt = Set; type SyncedWithAtRepo = St::SyncedWithAtRepo; } ///State transition - sets the `synced_with_at_repo` field to Set pub struct SetSyncedWithAtRepo(PhantomData St>); impl sealed::Sealed for SetSyncedWithAtRepo {} impl State for SetSyncedWithAtRepo { - type CreatedAt = St::CreatedAt; type Hash = St::Hash; type UpdatedAt = St::UpdatedAt; + type CreatedAt = St::CreatedAt; type SyncedWithAtRepo = 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 `hash` field pub struct hash(()); ///Marker type for the `updated_at` field pub struct updated_at(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `synced_with_at_repo` field pub struct synced_with_at_repo(()); } @@ -243,9 +243,9 @@ where impl SyncStatusBuilder where St: sync_status_state::State, - St::CreatedAt: sync_status_state::IsSet, St::Hash: sync_status_state::IsSet, St::UpdatedAt: sync_status_state::IsSet, + St::CreatedAt: sync_status_state::IsSet, St::SyncedWithAtRepo: sync_status_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/blue__2048/game.rs b/crates/jacquard-api/src/blue__2048/game.rs index 01c207c1..593034e7 100644 --- a/crates/jacquard-api/src/blue__2048/game.rs +++ b/crates/jacquard-api/src/blue__2048/game.rs @@ -137,105 +137,105 @@ pub mod game_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type SeededRecording; type CurrentScore; - type Won; - type SyncStatus; + type SeededRecording; type Completed; + type CreatedAt; + type SyncStatus; + type Won; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type SeededRecording = Unset; type CurrentScore = Unset; - type Won = Unset; - type SyncStatus = Unset; + type SeededRecording = Unset; type Completed = Unset; + type CreatedAt = Unset; + type SyncStatus = Unset; + type Won = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `current_score` field to Set + pub struct SetCurrentScore(PhantomData St>); + impl sealed::Sealed for SetCurrentScore {} + impl State for SetCurrentScore { + type CurrentScore = Set; type SeededRecording = St::SeededRecording; - type CurrentScore = St::CurrentScore; - type Won = St::Won; - type SyncStatus = St::SyncStatus; type Completed = St::Completed; + type CreatedAt = St::CreatedAt; + type SyncStatus = St::SyncStatus; + type Won = St::Won; } ///State transition - sets the `seeded_recording` field to Set pub struct SetSeededRecording(PhantomData St>); impl sealed::Sealed for SetSeededRecording {} impl State for SetSeededRecording { - type CreatedAt = St::CreatedAt; - type SeededRecording = Set; type CurrentScore = St::CurrentScore; - type Won = St::Won; - type SyncStatus = St::SyncStatus; + type SeededRecording = Set; type Completed = St::Completed; - } - ///State transition - sets the `current_score` field to Set - pub struct SetCurrentScore(PhantomData St>); - impl sealed::Sealed for SetCurrentScore {} - impl State for SetCurrentScore { type CreatedAt = St::CreatedAt; - type SeededRecording = St::SeededRecording; - type CurrentScore = Set; - type Won = St::Won; type SyncStatus = St::SyncStatus; - type Completed = St::Completed; + type Won = St::Won; } - ///State transition - sets the `won` field to Set - pub struct SetWon(PhantomData St>); - impl sealed::Sealed for SetWon {} - impl State for SetWon { - type CreatedAt = St::CreatedAt; - type SeededRecording = St::SeededRecording; + ///State transition - sets the `completed` field to Set + pub struct SetCompleted(PhantomData St>); + impl sealed::Sealed for SetCompleted {} + impl State for SetCompleted { type CurrentScore = St::CurrentScore; - type Won = Set; + type SeededRecording = St::SeededRecording; + type Completed = Set; + type CreatedAt = St::CreatedAt; type SyncStatus = St::SyncStatus; + type Won = St::Won; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CurrentScore = St::CurrentScore; + type SeededRecording = St::SeededRecording; type Completed = St::Completed; + type CreatedAt = Set; + type SyncStatus = St::SyncStatus; + type Won = St::Won; } ///State transition - sets the `sync_status` field to Set pub struct SetSyncStatus(PhantomData St>); impl sealed::Sealed for SetSyncStatus {} impl State for SetSyncStatus { - type CreatedAt = St::CreatedAt; - type SeededRecording = St::SeededRecording; type CurrentScore = St::CurrentScore; - type Won = St::Won; - type SyncStatus = Set; + type SeededRecording = St::SeededRecording; type Completed = St::Completed; - } - ///State transition - sets the `completed` field to Set - pub struct SetCompleted(PhantomData St>); - impl sealed::Sealed for SetCompleted {} - impl State for SetCompleted { type CreatedAt = St::CreatedAt; - type SeededRecording = St::SeededRecording; - type CurrentScore = St::CurrentScore; + type SyncStatus = Set; type Won = St::Won; + } + ///State transition - sets the `won` field to Set + pub struct SetWon(PhantomData St>); + impl sealed::Sealed for SetWon {} + impl State for SetWon { + type CurrentScore = St::CurrentScore; + type SeededRecording = St::SeededRecording; + type Completed = St::Completed; + type CreatedAt = St::CreatedAt; type SyncStatus = St::SyncStatus; - type Completed = Set; + type Won = 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 `seeded_recording` field - pub struct seeded_recording(()); ///Marker type for the `current_score` field pub struct current_score(()); - ///Marker type for the `won` field - pub struct won(()); - ///Marker type for the `sync_status` field - pub struct sync_status(()); + ///Marker type for the `seeded_recording` field + pub struct seeded_recording(()); ///Marker type for the `completed` field pub struct completed(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `sync_status` field + pub struct sync_status(()); + ///Marker type for the `won` field + pub struct won(()); } } @@ -388,12 +388,12 @@ where impl GameBuilder where St: game_state::State, - St::CreatedAt: game_state::IsSet, - St::SeededRecording: game_state::IsSet, St::CurrentScore: game_state::IsSet, - St::Won: game_state::IsSet, - St::SyncStatus: game_state::IsSet, + St::SeededRecording: game_state::IsSet, St::Completed: game_state::IsSet, + St::CreatedAt: game_state::IsSet, + St::SyncStatus: game_state::IsSet, + St::Won: game_state::IsSet, { /// Build the final struct. pub fn build(self) -> Game { diff --git a/crates/jacquard-api/src/blue__2048/key.rs b/crates/jacquard-api/src/blue__2048/key.rs index 2b44a236..c5bc05ca 100644 --- a/crates/jacquard-api/src/blue__2048/key.rs +++ b/crates/jacquard-api/src/blue__2048/key.rs @@ -329,49 +329,49 @@ pub mod signature_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AtUri; type CreatedAt; + type AtUri; type Signature; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AtUri = Unset; type CreatedAt = Unset; + type AtUri = Unset; type Signature = Unset; } - ///State transition - sets the `at_uri` field to Set - pub struct SetAtUri(PhantomData St>); - impl sealed::Sealed for SetAtUri {} - impl State for SetAtUri { - type AtUri = Set; - type CreatedAt = St::CreatedAt; - type Signature = St::Signature; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type AtUri = St::AtUri; type CreatedAt = Set; + type AtUri = St::AtUri; + type Signature = St::Signature; + } + ///State transition - sets the `at_uri` field to Set + pub struct SetAtUri(PhantomData St>); + impl sealed::Sealed for SetAtUri {} + impl State for SetAtUri { + type CreatedAt = St::CreatedAt; + type AtUri = Set; type Signature = St::Signature; } ///State transition - sets the `signature` field to Set pub struct SetSignature(PhantomData St>); impl sealed::Sealed for SetSignature {} impl State for SetSignature { - type AtUri = St::AtUri; type CreatedAt = St::CreatedAt; + type AtUri = St::AtUri; type Signature = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `at_uri` field - pub struct at_uri(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `at_uri` field + pub struct at_uri(()); ///Marker type for the `signature` field pub struct signature(()); } @@ -462,8 +462,8 @@ where impl SignatureRefBuilder where St: signature_ref_state::State, - St::AtUri: signature_ref_state::IsSet, St::CreatedAt: signature_ref_state::IsSet, + St::AtUri: signature_ref_state::IsSet, St::Signature: signature_ref_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/blue__2048/key/game.rs b/crates/jacquard-api/src/blue__2048/key/game.rs index b524ef07..84979b07 100644 --- a/crates/jacquard-api/src/blue__2048/key/game.rs +++ b/crates/jacquard-api/src/blue__2048/key/game.rs @@ -114,37 +114,37 @@ pub mod game_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Key; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Key = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Key = St::Key; + type CreatedAt = Unset; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type CreatedAt = St::CreatedAt; type Key = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Key = St::Key; + type CreatedAt = 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 `key` field pub struct key(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -214,8 +214,8 @@ where impl GameBuilder where St: game_state::State, - St::CreatedAt: game_state::IsSet, St::Key: game_state::IsSet, + St::CreatedAt: game_state::IsSet, { /// Build the final struct. pub fn build(self) -> Game { diff --git a/crates/jacquard-api/src/blue__2048/player/profile.rs b/crates/jacquard-api/src/blue__2048/player/profile.rs index 69240a9d..17dbdcb8 100644 --- a/crates/jacquard-api/src/blue__2048/player/profile.rs +++ b/crates/jacquard-api/src/blue__2048/player/profile.rs @@ -121,51 +121,51 @@ pub mod profile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type SyncStatus; - type SoloPlay; type CreatedAt; + type SoloPlay; + type SyncStatus; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type SyncStatus = Unset; - type SoloPlay = Unset; type CreatedAt = Unset; + type SoloPlay = Unset; + type SyncStatus = Unset; } - ///State transition - sets the `sync_status` field to Set - pub struct SetSyncStatus(PhantomData St>); - impl sealed::Sealed for SetSyncStatus {} - impl State for SetSyncStatus { - type SyncStatus = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type SoloPlay = St::SoloPlay; - type CreatedAt = St::CreatedAt; + type SyncStatus = St::SyncStatus; } ///State transition - sets the `solo_play` field to Set pub struct SetSoloPlay(PhantomData St>); impl sealed::Sealed for SetSoloPlay {} impl State for SetSoloPlay { - type SyncStatus = St::SyncStatus; - type SoloPlay = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type SoloPlay = Set; type SyncStatus = St::SyncStatus; + } + ///State transition - sets the `sync_status` field to Set + pub struct SetSyncStatus(PhantomData St>); + impl sealed::Sealed for SetSyncStatus {} + impl State for SetSyncStatus { + type CreatedAt = St::CreatedAt; type SoloPlay = St::SoloPlay; - type CreatedAt = Set; + type SyncStatus = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `sync_status` field - pub struct sync_status(()); - ///Marker type for the `solo_play` field - pub struct solo_play(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `solo_play` field + pub struct solo_play(()); + ///Marker type for the `sync_status` field + pub struct sync_status(()); } } @@ -254,9 +254,9 @@ where impl ProfileBuilder where St: profile_state::State, - St::SyncStatus: profile_state::IsSet, - St::SoloPlay: profile_state::IsSet, St::CreatedAt: profile_state::IsSet, + St::SoloPlay: profile_state::IsSet, + St::SyncStatus: profile_state::IsSet, { /// Build the final struct. pub fn build(self) -> Profile { diff --git a/crates/jacquard-api/src/blue__2048/player/stats.rs b/crates/jacquard-api/src/blue__2048/player/stats.rs index 268f91ff..71dc3f3e 100644 --- a/crates/jacquard-api/src/blue__2048/player/stats.rs +++ b/crates/jacquard-api/src/blue__2048/player/stats.rs @@ -163,57 +163,85 @@ pub mod stats_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AverageScore; + type CreatedAt; + type SyncStatus; + type HighestScore; type HighestNumberBlock; type TimesTwentyFortyEightBeenFound; - type HighestScore; type LeastMovesToFindTwentyFortyEight; - type CreatedAt; - type SyncStatus; - type GamesPlayed; + type AverageScore; type TotalScore; + type GamesPlayed; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AverageScore = Unset; + type CreatedAt = Unset; + type SyncStatus = Unset; + type HighestScore = Unset; type HighestNumberBlock = Unset; type TimesTwentyFortyEightBeenFound = Unset; - type HighestScore = Unset; type LeastMovesToFindTwentyFortyEight = Unset; - type CreatedAt = Unset; - type SyncStatus = Unset; - type GamesPlayed = Unset; + type AverageScore = Unset; type TotalScore = Unset; + type GamesPlayed = Unset; } - ///State transition - sets the `average_score` field to Set - pub struct SetAverageScore(PhantomData St>); - impl sealed::Sealed for SetAverageScore {} - impl State for SetAverageScore { - type AverageScore = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type SyncStatus = St::SyncStatus; + type HighestScore = St::HighestScore; type HighestNumberBlock = St::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; + type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; + type AverageScore = St::AverageScore; + type TotalScore = St::TotalScore; + type GamesPlayed = St::GamesPlayed; + } + ///State transition - sets the `sync_status` field to Set + pub struct SetSyncStatus(PhantomData St>); + impl sealed::Sealed for SetSyncStatus {} + impl State for SetSyncStatus { + type CreatedAt = St::CreatedAt; + type SyncStatus = Set; type HighestScore = St::HighestScore; + type HighestNumberBlock = St::HighestNumberBlock; + type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; + type AverageScore = St::AverageScore; + type TotalScore = St::TotalScore; + type GamesPlayed = St::GamesPlayed; + } + ///State transition - sets the `highest_score` field to Set + pub struct SetHighestScore(PhantomData St>); + impl sealed::Sealed for SetHighestScore {} + impl State for SetHighestScore { type CreatedAt = St::CreatedAt; type SyncStatus = St::SyncStatus; - type GamesPlayed = St::GamesPlayed; + type HighestScore = Set; + type HighestNumberBlock = St::HighestNumberBlock; + type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; + type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; + type AverageScore = St::AverageScore; type TotalScore = St::TotalScore; + type GamesPlayed = St::GamesPlayed; } ///State transition - sets the `highest_number_block` field to Set pub struct SetHighestNumberBlock(PhantomData St>); impl sealed::Sealed for SetHighestNumberBlock {} impl State for SetHighestNumberBlock { - type AverageScore = St::AverageScore; + type CreatedAt = St::CreatedAt; + type SyncStatus = St::SyncStatus; + type HighestScore = St::HighestScore; type HighestNumberBlock = Set; type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; - type HighestScore = St::HighestScore; type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; - type CreatedAt = St::CreatedAt; - type SyncStatus = St::SyncStatus; - type GamesPlayed = St::GamesPlayed; + type AverageScore = St::AverageScore; type TotalScore = St::TotalScore; + type GamesPlayed = St::GamesPlayed; } ///State transition - sets the `times_twenty_forty_eight_been_found` field to Set pub struct SetTimesTwentyFortyEightBeenFound( @@ -221,31 +249,17 @@ pub mod stats_state { ); impl sealed::Sealed for SetTimesTwentyFortyEightBeenFound {} impl State for SetTimesTwentyFortyEightBeenFound { - type AverageScore = St::AverageScore; + type CreatedAt = St::CreatedAt; + type SyncStatus = St::SyncStatus; + type HighestScore = St::HighestScore; type HighestNumberBlock = St::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = Set< members::times_twenty_forty_eight_been_found, >; - type HighestScore = St::HighestScore; type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; - type CreatedAt = St::CreatedAt; - type SyncStatus = St::SyncStatus; - type GamesPlayed = St::GamesPlayed; - type TotalScore = St::TotalScore; - } - ///State transition - sets the `highest_score` field to Set - pub struct SetHighestScore(PhantomData St>); - impl sealed::Sealed for SetHighestScore {} - impl State for SetHighestScore { type AverageScore = St::AverageScore; - type HighestNumberBlock = St::HighestNumberBlock; - type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; - type HighestScore = Set; - type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; - type CreatedAt = St::CreatedAt; - type SyncStatus = St::SyncStatus; - type GamesPlayed = St::GamesPlayed; type TotalScore = St::TotalScore; + type GamesPlayed = St::GamesPlayed; } ///State transition - sets the `least_moves_to_find_twenty_forty_eight` field to Set pub struct SetLeastMovesToFindTwentyFortyEight( @@ -253,95 +267,81 @@ pub mod stats_state { ); impl sealed::Sealed for SetLeastMovesToFindTwentyFortyEight {} impl State for SetLeastMovesToFindTwentyFortyEight { - type AverageScore = St::AverageScore; + type CreatedAt = St::CreatedAt; + type SyncStatus = St::SyncStatus; + type HighestScore = St::HighestScore; type HighestNumberBlock = St::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; - type HighestScore = St::HighestScore; type LeastMovesToFindTwentyFortyEight = Set< members::least_moves_to_find_twenty_forty_eight, >; - type CreatedAt = St::CreatedAt; - type SyncStatus = St::SyncStatus; - type GamesPlayed = St::GamesPlayed; + type AverageScore = St::AverageScore; type TotalScore = St::TotalScore; + type GamesPlayed = St::GamesPlayed; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type AverageScore = St::AverageScore; + ///State transition - sets the `average_score` field to Set + pub struct SetAverageScore(PhantomData St>); + impl sealed::Sealed for SetAverageScore {} + impl State for SetAverageScore { + type CreatedAt = St::CreatedAt; + type SyncStatus = St::SyncStatus; + type HighestScore = St::HighestScore; type HighestNumberBlock = St::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; - type HighestScore = St::HighestScore; type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; - type CreatedAt = Set; - type SyncStatus = St::SyncStatus; - type GamesPlayed = St::GamesPlayed; + type AverageScore = Set; type TotalScore = St::TotalScore; + type GamesPlayed = St::GamesPlayed; } - ///State transition - sets the `sync_status` field to Set - pub struct SetSyncStatus(PhantomData St>); - impl sealed::Sealed for SetSyncStatus {} - impl State for SetSyncStatus { - type AverageScore = St::AverageScore; + ///State transition - sets the `total_score` field to Set + pub struct SetTotalScore(PhantomData St>); + impl sealed::Sealed for SetTotalScore {} + impl State for SetTotalScore { + type CreatedAt = St::CreatedAt; + type SyncStatus = St::SyncStatus; + type HighestScore = St::HighestScore; type HighestNumberBlock = St::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; - type HighestScore = St::HighestScore; type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; - type CreatedAt = St::CreatedAt; - type SyncStatus = Set; + type AverageScore = St::AverageScore; + type TotalScore = Set; type GamesPlayed = St::GamesPlayed; - type TotalScore = St::TotalScore; } ///State transition - sets the `games_played` field to Set pub struct SetGamesPlayed(PhantomData St>); impl sealed::Sealed for SetGamesPlayed {} impl State for SetGamesPlayed { - type AverageScore = St::AverageScore; - type HighestNumberBlock = St::HighestNumberBlock; - type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; - type HighestScore = St::HighestScore; - type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; type CreatedAt = St::CreatedAt; type SyncStatus = St::SyncStatus; - type GamesPlayed = Set; - type TotalScore = St::TotalScore; - } - ///State transition - sets the `total_score` field to Set - pub struct SetTotalScore(PhantomData St>); - impl sealed::Sealed for SetTotalScore {} - impl State for SetTotalScore { - type AverageScore = St::AverageScore; + type HighestScore = St::HighestScore; type HighestNumberBlock = St::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = St::TimesTwentyFortyEightBeenFound; - type HighestScore = St::HighestScore; type LeastMovesToFindTwentyFortyEight = St::LeastMovesToFindTwentyFortyEight; - type CreatedAt = St::CreatedAt; - type SyncStatus = St::SyncStatus; - type GamesPlayed = St::GamesPlayed; - type TotalScore = Set; + type AverageScore = St::AverageScore; + type TotalScore = St::TotalScore; + type GamesPlayed = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `average_score` field - pub struct average_score(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `sync_status` field + pub struct sync_status(()); + ///Marker type for the `highest_score` field + pub struct highest_score(()); ///Marker type for the `highest_number_block` field pub struct highest_number_block(()); ///Marker type for the `times_twenty_forty_eight_been_found` field pub struct times_twenty_forty_eight_been_found(()); - ///Marker type for the `highest_score` field - pub struct highest_score(()); ///Marker type for the `least_moves_to_find_twenty_forty_eight` field pub struct least_moves_to_find_twenty_forty_eight(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `sync_status` field - pub struct sync_status(()); - ///Marker type for the `games_played` field - pub struct games_played(()); + ///Marker type for the `average_score` field + pub struct average_score(()); ///Marker type for the `total_score` field pub struct total_score(()); + ///Marker type for the `games_played` field + pub struct games_played(()); } } @@ -554,15 +554,15 @@ where impl StatsBuilder where St: stats_state::State, - St::AverageScore: stats_state::IsSet, + St::CreatedAt: stats_state::IsSet, + St::SyncStatus: stats_state::IsSet, + St::HighestScore: stats_state::IsSet, St::HighestNumberBlock: stats_state::IsSet, St::TimesTwentyFortyEightBeenFound: stats_state::IsSet, - St::HighestScore: stats_state::IsSet, St::LeastMovesToFindTwentyFortyEight: stats_state::IsSet, - St::CreatedAt: stats_state::IsSet, - St::SyncStatus: stats_state::IsSet, - St::GamesPlayed: stats_state::IsSet, + St::AverageScore: stats_state::IsSet, St::TotalScore: stats_state::IsSet, + St::GamesPlayed: stats_state::IsSet, { /// Build the final struct. pub fn build(self) -> Stats { diff --git a/crates/jacquard-api/src/blue__2048/verification.rs b/crates/jacquard-api/src/blue__2048/verification.rs index 918d485d..6330fc80 100644 --- a/crates/jacquard-api/src/blue__2048/verification.rs +++ b/crates/jacquard-api/src/blue__2048/verification.rs @@ -71,85 +71,85 @@ pub mod verification_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Signature; type KeyRef; - type CreatedAt; - type Subject; + type Signature; type RecordRef; + type Subject; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Signature = Unset; type KeyRef = Unset; - type CreatedAt = Unset; - type Subject = Unset; + type Signature = Unset; type RecordRef = Unset; - } - ///State transition - sets the `signature` field to Set - pub struct SetSignature(PhantomData St>); - impl sealed::Sealed for SetSignature {} - impl State for SetSignature { - type Signature = Set; - type KeyRef = St::KeyRef; - type CreatedAt = St::CreatedAt; - type Subject = St::Subject; - type RecordRef = St::RecordRef; + type Subject = Unset; + type CreatedAt = Unset; } ///State transition - sets the `key_ref` field to Set pub struct SetKeyRef(PhantomData St>); impl sealed::Sealed for SetKeyRef {} impl State for SetKeyRef { - type Signature = St::Signature; type KeyRef = Set; - type CreatedAt = St::CreatedAt; + type Signature = St::Signature; + type RecordRef = St::RecordRef; type Subject = St::Subject; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `signature` field to Set + pub struct SetSignature(PhantomData St>); + impl sealed::Sealed for SetSignature {} + impl State for SetSignature { + type KeyRef = St::KeyRef; + type Signature = Set; type RecordRef = St::RecordRef; + type Subject = St::Subject; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Signature = St::Signature; + ///State transition - sets the `record_ref` field to Set + pub struct SetRecordRef(PhantomData St>); + impl sealed::Sealed for SetRecordRef {} + impl State for SetRecordRef { type KeyRef = St::KeyRef; - type CreatedAt = Set; + type Signature = St::Signature; + type RecordRef = Set; type Subject = St::Subject; - type RecordRef = St::RecordRef; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Signature = St::Signature; type KeyRef = St::KeyRef; - type CreatedAt = St::CreatedAt; - type Subject = Set; + type Signature = St::Signature; type RecordRef = St::RecordRef; + type Subject = Set; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `record_ref` field to Set - pub struct SetRecordRef(PhantomData St>); - impl sealed::Sealed for SetRecordRef {} - impl State for SetRecordRef { - type Signature = St::Signature; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type KeyRef = St::KeyRef; - type CreatedAt = St::CreatedAt; + type Signature = St::Signature; + type RecordRef = St::RecordRef; type Subject = St::Subject; - type RecordRef = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `signature` field - pub struct signature(()); ///Marker type for the `key_ref` field pub struct key_ref(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `subject` field - pub struct subject(()); + ///Marker type for the `signature` field + pub struct signature(()); ///Marker type for the `record_ref` field pub struct record_ref(()); + ///Marker type for the `subject` field + pub struct subject(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -282,11 +282,11 @@ where impl VerificationRefBuilder where St: verification_ref_state::State, - St::Signature: verification_ref_state::IsSet, St::KeyRef: verification_ref_state::IsSet, - St::CreatedAt: verification_ref_state::IsSet, - St::Subject: verification_ref_state::IsSet, + St::Signature: verification_ref_state::IsSet, St::RecordRef: verification_ref_state::IsSet, + St::Subject: verification_ref_state::IsSet, + St::CreatedAt: verification_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> VerificationRef { diff --git a/crates/jacquard-api/src/blue_atroom/room/layout.rs b/crates/jacquard-api/src/blue_atroom/room/layout.rs index b97274de..2940ccd1 100644 --- a/crates/jacquard-api/src/blue_atroom/room/layout.rs +++ b/crates/jacquard-api/src/blue_atroom/room/layout.rs @@ -958,51 +958,51 @@ pub mod furnishing_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Object; type Rotation; type Position; + type Object; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Object = Unset; type Rotation = Unset; type Position = Unset; - } - ///State transition - sets the `object` field to Set - pub struct SetObject(PhantomData St>); - impl sealed::Sealed for SetObject {} - impl State for SetObject { - type Object = Set; - type Rotation = St::Rotation; - type Position = St::Position; + type Object = Unset; } ///State transition - sets the `rotation` field to Set pub struct SetRotation(PhantomData St>); impl sealed::Sealed for SetRotation {} impl State for SetRotation { - type Object = St::Object; type Rotation = Set; type Position = St::Position; + type Object = St::Object; } ///State transition - sets the `position` field to Set pub struct SetPosition(PhantomData St>); impl sealed::Sealed for SetPosition {} impl State for SetPosition { - type Object = St::Object; type Rotation = St::Rotation; type Position = Set; + type Object = St::Object; + } + ///State transition - sets the `object` field to Set + pub struct SetObject(PhantomData St>); + impl sealed::Sealed for SetObject {} + impl State for SetObject { + type Rotation = St::Rotation; + type Position = St::Position; + type Object = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `object` field - pub struct object(()); ///Marker type for the `rotation` field pub struct rotation(()); ///Marker type for the `position` field pub struct position(()); + ///Marker type for the `object` field + pub struct object(()); } } @@ -1091,9 +1091,9 @@ where impl FurnishingBuilder where St: furnishing_state::State, - St::Object: furnishing_state::IsSet, St::Rotation: furnishing_state::IsSet, St::Position: furnishing_state::IsSet, + St::Object: furnishing_state::IsSet, { /// Build the final struct. pub fn build(self) -> Furnishing { @@ -1128,85 +1128,85 @@ pub mod layout_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Floor; - type Wall; - type Size; - type Furnishings; type CreatedAt; + type Furnishings; + type Size; + type Wall; + type Floor; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Floor = Unset; - type Wall = Unset; - type Size = Unset; - type Furnishings = Unset; type CreatedAt = Unset; + type Furnishings = Unset; + type Size = Unset; + type Wall = Unset; + type Floor = Unset; } - ///State transition - sets the `floor` field to Set - pub struct SetFloor(PhantomData St>); - impl sealed::Sealed for SetFloor {} - impl State for SetFloor { - type Floor = Set; - type Wall = St::Wall; - type Size = St::Size; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Furnishings = St::Furnishings; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `wall` field to Set - pub struct SetWall(PhantomData St>); - impl sealed::Sealed for SetWall {} - impl State for SetWall { - type Floor = St::Floor; - type Wall = Set; type Size = St::Size; - type Furnishings = St::Furnishings; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `size` field to Set - pub struct SetSize(PhantomData St>); - impl sealed::Sealed for SetSize {} - impl State for SetSize { - type Floor = St::Floor; type Wall = St::Wall; - type Size = Set; - type Furnishings = St::Furnishings; - type CreatedAt = St::CreatedAt; + type Floor = St::Floor; } ///State transition - sets the `furnishings` field to Set pub struct SetFurnishings(PhantomData St>); impl sealed::Sealed for SetFurnishings {} impl State for SetFurnishings { - type Floor = St::Floor; - type Wall = St::Wall; - type Size = St::Size; - type Furnishings = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Furnishings = Set; + type Size = St::Size; + type Wall = St::Wall; type Floor = St::Floor; + } + ///State transition - sets the `size` field to Set + pub struct SetSize(PhantomData St>); + impl sealed::Sealed for SetSize {} + impl State for SetSize { + type CreatedAt = St::CreatedAt; + type Furnishings = St::Furnishings; + type Size = Set; type Wall = St::Wall; + type Floor = St::Floor; + } + ///State transition - sets the `wall` field to Set + pub struct SetWall(PhantomData St>); + impl sealed::Sealed for SetWall {} + impl State for SetWall { + type CreatedAt = St::CreatedAt; + type Furnishings = St::Furnishings; type Size = St::Size; + type Wall = Set; + type Floor = St::Floor; + } + ///State transition - sets the `floor` field to Set + pub struct SetFloor(PhantomData St>); + impl sealed::Sealed for SetFloor {} + impl State for SetFloor { + type CreatedAt = St::CreatedAt; type Furnishings = St::Furnishings; - type CreatedAt = Set; + type Size = St::Size; + type Wall = St::Wall; + type Floor = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `floor` field - pub struct floor(()); - ///Marker type for the `wall` field - pub struct wall(()); - ///Marker type for the `size` field - pub struct size(()); - ///Marker type for the `furnishings` field - pub struct furnishings(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `furnishings` field + pub struct furnishings(()); + ///Marker type for the `size` field + pub struct size(()); + ///Marker type for the `wall` field + pub struct wall(()); + ///Marker type for the `floor` field + pub struct floor(()); } } @@ -1339,11 +1339,11 @@ where impl LayoutBuilder where St: layout_state::State, - St::Floor: layout_state::IsSet, - St::Wall: layout_state::IsSet, - St::Size: layout_state::IsSet, - St::Furnishings: layout_state::IsSet, St::CreatedAt: layout_state::IsSet, + St::Furnishings: layout_state::IsSet, + St::Size: layout_state::IsSet, + St::Wall: layout_state::IsSet, + St::Floor: layout_state::IsSet, { /// Build the final struct. pub fn build(self) -> Layout { diff --git a/crates/jacquard-api/src/blue_atroom/room/object.rs b/crates/jacquard-api/src/blue_atroom/room/object.rs index 821ba5c7..163fe525 100644 --- a/crates/jacquard-api/src/blue_atroom/room/object.rs +++ b/crates/jacquard-api/src/blue_atroom/room/object.rs @@ -341,67 +341,67 @@ pub mod object_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Model; + type Scale; type Name; type CreatedAt; - type Scale; + type Model; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Model = Unset; + type Scale = Unset; type Name = Unset; type CreatedAt = Unset; - type Scale = Unset; + type Model = Unset; } - ///State transition - sets the `model` field to Set - pub struct SetModel(PhantomData St>); - impl sealed::Sealed for SetModel {} - impl State for SetModel { - type Model = Set; + ///State transition - sets the `scale` field to Set + pub struct SetScale(PhantomData St>); + impl sealed::Sealed for SetScale {} + impl State for SetScale { + type Scale = Set; type Name = St::Name; type CreatedAt = St::CreatedAt; - type Scale = St::Scale; + type Model = St::Model; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Model = St::Model; + type Scale = St::Scale; type Name = Set; type CreatedAt = St::CreatedAt; - type Scale = St::Scale; + type Model = St::Model; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Model = St::Model; + type Scale = St::Scale; type Name = St::Name; type CreatedAt = Set; - type Scale = St::Scale; - } - ///State transition - sets the `scale` field to Set - pub struct SetScale(PhantomData St>); - impl sealed::Sealed for SetScale {} - impl State for SetScale { type Model = St::Model; + } + ///State transition - sets the `model` field to Set + pub struct SetModel(PhantomData St>); + impl sealed::Sealed for SetModel {} + impl State for SetModel { + type Scale = St::Scale; type Name = St::Name; type CreatedAt = St::CreatedAt; - type Scale = Set; + type Model = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `model` field - pub struct model(()); + ///Marker type for the `scale` field + pub struct scale(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `scale` field - pub struct scale(()); + ///Marker type for the `model` field + pub struct model(()); } } @@ -534,10 +534,10 @@ where impl ObjectBuilder where St: object_state::State, - St::Model: object_state::IsSet, + St::Scale: object_state::IsSet, St::Name: object_state::IsSet, St::CreatedAt: object_state::IsSet, - St::Scale: object_state::IsSet, + St::Model: object_state::IsSet, { /// Build the final struct. pub fn build(self) -> Object { diff --git a/crates/jacquard-api/src/blue_backyard/feed/comment.rs b/crates/jacquard-api/src/blue_backyard/feed/comment.rs index 8aad481e..5181781e 100644 --- a/crates/jacquard-api/src/blue_backyard/feed/comment.rs +++ b/crates/jacquard-api/src/blue_backyard/feed/comment.rs @@ -149,67 +149,67 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; type Root; type Subject; type CreatedAt; + type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Text = Unset; type Root = Unset; type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type Root = St::Root; - type Subject = St::Subject; - type CreatedAt = St::CreatedAt; + type Text = Unset; } ///State transition - sets the `root` field to Set pub struct SetRoot(PhantomData St>); impl sealed::Sealed for SetRoot {} impl State for SetRoot { - type Text = St::Text; type Root = Set; type Subject = St::Subject; type CreatedAt = St::CreatedAt; + type Text = St::Text; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Text = St::Text; type Root = St::Root; type Subject = Set; type CreatedAt = St::CreatedAt; + type Text = St::Text; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = St::Text; type Root = St::Root; type Subject = St::Subject; type CreatedAt = Set; + type Text = St::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type Root = St::Root; + type Subject = St::Subject; + type CreatedAt = St::CreatedAt; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `text` field - pub struct text(()); ///Marker type for the `root` field pub struct root(()); ///Marker type for the `subject` field pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -350,10 +350,10 @@ where impl CommentBuilder where St: comment_state::State, - St::Text: comment_state::IsSet, St::Root: comment_state::IsSet, St::Subject: comment_state::IsSet, St::CreatedAt: comment_state::IsSet, + St::Text: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/blue_backyard/feed/reblog.rs b/crates/jacquard-api/src/blue_backyard/feed/reblog.rs index bdbb5dd8..c084874a 100644 --- a/crates/jacquard-api/src/blue_backyard/feed/reblog.rs +++ b/crates/jacquard-api/src/blue_backyard/feed/reblog.rs @@ -156,37 +156,37 @@ pub mod reblog_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -290,8 +290,8 @@ impl ReblogBuilder { impl ReblogBuilder where St: reblog_state::State, - St::CreatedAt: reblog_state::IsSet, St::Subject: reblog_state::IsSet, + St::CreatedAt: reblog_state::IsSet, { /// Build the final struct. pub fn build(self) -> Reblog { diff --git a/crates/jacquard-api/src/blue_backyard/graph/block.rs b/crates/jacquard-api/src/blue_backyard/graph/block.rs index 80aac425..898de39a 100644 --- a/crates/jacquard-api/src/blue_backyard/graph/block.rs +++ b/crates/jacquard-api/src/blue_backyard/graph/block.rs @@ -113,37 +113,37 @@ pub mod block_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -213,8 +213,8 @@ where impl BlockBuilder where St: block_state::State, - St::Subject: block_state::IsSet, St::CreatedAt: block_state::IsSet, + St::Subject: block_state::IsSet, { /// Build the final struct. pub fn build(self) -> Block { diff --git a/crates/jacquard-api/src/blue_backyard/richtext/facet.rs b/crates/jacquard-api/src/blue_backyard/richtext/facet.rs index e4dbad06..4fc94d4c 100644 --- a/crates/jacquard-api/src/blue_backyard/richtext/facet.rs +++ b/crates/jacquard-api/src/blue_backyard/richtext/facet.rs @@ -558,37 +558,37 @@ pub mod byte_slice_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ByteEnd; type ByteStart; + type ByteEnd; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ByteEnd = Unset; type ByteStart = Unset; - } - ///State transition - sets the `byte_end` field to Set - pub struct SetByteEnd(PhantomData St>); - impl sealed::Sealed for SetByteEnd {} - impl State for SetByteEnd { - type ByteEnd = Set; - type ByteStart = St::ByteStart; + type ByteEnd = Unset; } ///State transition - sets the `byte_start` field to Set pub struct SetByteStart(PhantomData St>); impl sealed::Sealed for SetByteStart {} impl State for SetByteStart { - type ByteEnd = St::ByteEnd; type ByteStart = Set; + type ByteEnd = St::ByteEnd; + } + ///State transition - sets the `byte_end` field to Set + pub struct SetByteEnd(PhantomData St>); + impl sealed::Sealed for SetByteEnd {} + impl State for SetByteEnd { + type ByteStart = St::ByteStart; + type ByteEnd = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `byte_end` field - pub struct byte_end(()); ///Marker type for the `byte_start` field pub struct byte_start(()); + ///Marker type for the `byte_end` field + pub struct byte_end(()); } } @@ -658,8 +658,8 @@ where impl ByteSliceBuilder where St: byte_slice_state::State, - St::ByteEnd: byte_slice_state::IsSet, St::ByteStart: byte_slice_state::IsSet, + St::ByteEnd: byte_slice_state::IsSet, { /// Build the final struct. pub fn build(self) -> ByteSlice { @@ -789,37 +789,37 @@ pub mod facet_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Index; type Features; + type Index; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Index = Unset; type Features = Unset; - } - ///State transition - sets the `index` field to Set - pub struct SetIndex(PhantomData St>); - impl sealed::Sealed for SetIndex {} - impl State for SetIndex { - type Index = Set; - type Features = St::Features; + type Index = Unset; } ///State transition - sets the `features` field to Set pub struct SetFeatures(PhantomData St>); impl sealed::Sealed for SetFeatures {} impl State for SetFeatures { - type Index = St::Index; type Features = Set; + type Index = St::Index; + } + ///State transition - sets the `index` field to Set + pub struct SetIndex(PhantomData St>); + impl sealed::Sealed for SetIndex {} + impl State for SetIndex { + type Features = St::Features; + type Index = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `index` field - pub struct index(()); ///Marker type for the `features` field pub struct features(()); + ///Marker type for the `index` field + pub struct index(()); } } @@ -889,8 +889,8 @@ where impl FacetBuilder where St: facet_state::State, - St::Index: facet_state::IsSet, St::Features: facet_state::IsSet, + St::Index: facet_state::IsSet, { /// Build the final struct. pub fn build(self) -> Facet { diff --git a/crates/jacquard-api/src/blue_recipes/feed.rs b/crates/jacquard-api/src/blue_recipes/feed.rs index 81506e01..3f44526b 100644 --- a/crates/jacquard-api/src/blue_recipes/feed.rs +++ b/crates/jacquard-api/src/blue_recipes/feed.rs @@ -332,83 +332,83 @@ pub mod recipe_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Author; type Uri; - type IndexedAt; type Record; + type IndexedAt; + type Author; type Cid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Author = Unset; type Uri = Unset; - type IndexedAt = Unset; type Record = Unset; + type IndexedAt = Unset; + type Author = Unset; type Cid = Unset; } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Author = Set; - type Uri = St::Uri; - type IndexedAt = St::IndexedAt; - type Record = St::Record; - type Cid = St::Cid; - } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Author = St::Author; type Uri = Set; - type IndexedAt = St::IndexedAt; type Record = St::Record; + type IndexedAt = St::IndexedAt; + type Author = St::Author; + type Cid = St::Cid; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Uri = St::Uri; + type Record = Set; + type IndexedAt = St::IndexedAt; + type Author = St::Author; type Cid = St::Cid; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Author = St::Author; type Uri = St::Uri; - type IndexedAt = Set; type Record = St::Record; + type IndexedAt = Set; + type Author = St::Author; type Cid = St::Cid; } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Author = St::Author; + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { type Uri = St::Uri; + type Record = St::Record; type IndexedAt = St::IndexedAt; - type Record = Set; + type Author = Set; type Cid = St::Cid; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Author = St::Author; type Uri = St::Uri; - type IndexedAt = St::IndexedAt; type Record = St::Record; + type IndexedAt = St::IndexedAt; + type Author = St::Author; type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `author` field - pub struct author(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); + ///Marker type for the `author` field + pub struct author(()); ///Marker type for the `cid` field pub struct cid(()); } @@ -543,10 +543,10 @@ where impl RecipeViewBuilder where St: recipe_view_state::State, - St::Author: recipe_view_state::IsSet, St::Uri: recipe_view_state::IsSet, - St::IndexedAt: recipe_view_state::IsSet, St::Record: recipe_view_state::IsSet, + St::IndexedAt: recipe_view_state::IsSet, + St::Author: recipe_view_state::IsSet, St::Cid: recipe_view_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/blue_recipes/feed/recipe.rs b/crates/jacquard-api/src/blue_recipes/feed/recipe.rs index 40133534..236c4dfb 100644 --- a/crates/jacquard-api/src/blue_recipes/feed/recipe.rs +++ b/crates/jacquard-api/src/blue_recipes/feed/recipe.rs @@ -472,51 +472,51 @@ pub mod recipe_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Ingredients; type Steps; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Ingredients = Unset; type Steps = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Ingredients = St::Ingredients; - type Steps = St::Steps; + type Title = Unset; } ///State transition - sets the `ingredients` field to Set pub struct SetIngredients(PhantomData St>); impl sealed::Sealed for SetIngredients {} impl State for SetIngredients { - type Title = St::Title; type Ingredients = Set; type Steps = St::Steps; + type Title = St::Title; } ///State transition - sets the `steps` field to Set pub struct SetSteps(PhantomData St>); impl sealed::Sealed for SetSteps {} impl State for SetSteps { - type Title = St::Title; type Ingredients = St::Ingredients; type Steps = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Ingredients = St::Ingredients; + type Steps = St::Steps; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `ingredients` field pub struct ingredients(()); ///Marker type for the `steps` field pub struct steps(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -679,9 +679,9 @@ where impl RecipeBuilder where St: recipe_state::State, - St::Title: recipe_state::IsSet, St::Ingredients: recipe_state::IsSet, St::Steps: recipe_state::IsSet, + St::Title: recipe_state::IsSet, { /// Build the final struct. pub fn build(self) -> Recipe { diff --git a/crates/jacquard-api/src/blue_rito/feed/bookmark.rs b/crates/jacquard-api/src/blue_rito/feed/bookmark.rs index 522532e1..7f602493 100644 --- a/crates/jacquard-api/src/blue_rito/feed/bookmark.rs +++ b/crates/jacquard-api/src/blue_rito/feed/bookmark.rs @@ -389,49 +389,49 @@ pub mod bookmark_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type Comments; + type Subject; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type Comments = Unset; + type Subject = Unset; type CreatedAt = Unset; } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type Comments = St::Comments; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `comments` field to Set pub struct SetComments(PhantomData St>); impl sealed::Sealed for SetComments {} impl State for SetComments { - type Subject = St::Subject; type Comments = Set; + type Subject = St::Subject; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Comments = St::Comments; + type Subject = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type Comments = St::Comments; + type Subject = St::Subject; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `comments` field pub struct comments(()); + ///Marker type for the `subject` field + pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -582,8 +582,8 @@ impl BookmarkBuilder { impl BookmarkBuilder where St: bookmark_state::State, - St::Subject: bookmark_state::IsSet, St::Comments: bookmark_state::IsSet, + St::Subject: bookmark_state::IsSet, St::CreatedAt: bookmark_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/blue_rito/label/auto/post.rs b/crates/jacquard-api/src/blue_rito/label/auto/post.rs index 72a2e0b2..3a23ad4b 100644 --- a/crates/jacquard-api/src/blue_rito/label/auto/post.rs +++ b/crates/jacquard-api/src/blue_rito/label/auto/post.rs @@ -122,85 +122,85 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type DurationInHours; + type CreatedAt; type AppliedTo; type Condition; - type DurationInHours; type Label; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type DurationInHours = Unset; + type CreatedAt = Unset; type AppliedTo = Unset; type Condition = Unset; - type DurationInHours = Unset; type Label = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `duration_in_hours` field to Set + pub struct SetDurationInHours(PhantomData St>); + impl sealed::Sealed for SetDurationInHours {} + impl State for SetDurationInHours { + type DurationInHours = Set; + type CreatedAt = St::CreatedAt; + type AppliedTo = St::AppliedTo; + type Condition = St::Condition; + type Label = St::Label; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type DurationInHours = St::DurationInHours; + type CreatedAt = Set; + type AppliedTo = St::AppliedTo; + type Condition = St::Condition; + type Label = St::Label; } ///State transition - sets the `applied_to` field to Set pub struct SetAppliedTo(PhantomData St>); impl sealed::Sealed for SetAppliedTo {} impl State for SetAppliedTo { + type DurationInHours = St::DurationInHours; + type CreatedAt = St::CreatedAt; type AppliedTo = Set; type Condition = St::Condition; - type DurationInHours = St::DurationInHours; type Label = St::Label; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `condition` field to Set pub struct SetCondition(PhantomData St>); impl sealed::Sealed for SetCondition {} impl State for SetCondition { - type AppliedTo = St::AppliedTo; - type Condition = Set; type DurationInHours = St::DurationInHours; - type Label = St::Label; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `duration_in_hours` field to Set - pub struct SetDurationInHours(PhantomData St>); - impl sealed::Sealed for SetDurationInHours {} - impl State for SetDurationInHours { type AppliedTo = St::AppliedTo; - type Condition = St::Condition; - type DurationInHours = Set; + type Condition = Set; type Label = St::Label; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `label` field to Set pub struct SetLabel(PhantomData St>); impl sealed::Sealed for SetLabel {} impl State for SetLabel { - type AppliedTo = St::AppliedTo; - type Condition = St::Condition; type DurationInHours = St::DurationInHours; - type Label = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type AppliedTo = St::AppliedTo; type Condition = St::Condition; - type DurationInHours = St::DurationInHours; - type Label = St::Label; - type CreatedAt = Set; + type Label = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `duration_in_hours` field + pub struct duration_in_hours(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `applied_to` field pub struct applied_to(()); ///Marker type for the `condition` field pub struct condition(()); - ///Marker type for the `duration_in_hours` field - pub struct duration_in_hours(()); ///Marker type for the `label` field pub struct label(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -340,11 +340,11 @@ where impl PostBuilder where St: post_state::State, + St::DurationInHours: post_state::IsSet, + St::CreatedAt: post_state::IsSet, St::AppliedTo: post_state::IsSet, St::Condition: post_state::IsSet, - St::DurationInHours: post_state::IsSet, St::Label: post_state::IsSet, - St::CreatedAt: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/blue_rito/service/get_schema.rs b/crates/jacquard-api/src/blue_rito/service/get_schema.rs index b57d6e2c..c467e3f1 100644 --- a/crates/jacquard-api/src/blue_rito/service/get_schema.rs +++ b/crates/jacquard-api/src/blue_rito/service/get_schema.rs @@ -131,49 +131,49 @@ pub mod langs_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Lang; + type Title; type Moderation; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Lang = Unset; + type Title = Unset; type Moderation = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Lang = St::Lang; - type Moderation = St::Moderation; - } ///State transition - sets the `lang` field to Set pub struct SetLang(PhantomData St>); impl sealed::Sealed for SetLang {} impl State for SetLang { - type Title = St::Title; type Lang = Set; + type Title = St::Title; + type Moderation = St::Moderation; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Lang = St::Lang; + type Title = Set; type Moderation = St::Moderation; } ///State transition - sets the `moderation` field to Set pub struct SetModeration(PhantomData St>); impl sealed::Sealed for SetModeration {} impl State for SetModeration { - type Title = St::Title; type Lang = St::Lang; + type Title = St::Title; type Moderation = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `lang` field pub struct lang(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `moderation` field pub struct moderation(()); } @@ -277,8 +277,8 @@ where impl LangsBuilder where St: langs_state::State, - St::Title: langs_state::IsSet, St::Lang: langs_state::IsSet, + St::Title: langs_state::IsSet, St::Moderation: langs_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/blue_skytalk/talk/comment.rs b/crates/jacquard-api/src/blue_skytalk/talk/comment.rs index bb6c08f7..98e3b4e7 100644 --- a/crates/jacquard-api/src/blue_skytalk/talk/comment.rs +++ b/crates/jacquard-api/src/blue_skytalk/talk/comment.rs @@ -155,50 +155,50 @@ pub mod comment_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type ThreadUri; - type Text; type CreatedAt; + type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type ThreadUri = Unset; - type Text = Unset; type CreatedAt = Unset; + type Text = Unset; } ///State transition - sets the `thread_uri` field to Set pub struct SetThreadUri(PhantomData St>); impl sealed::Sealed for SetThreadUri {} impl State for SetThreadUri { type ThreadUri = Set; - type Text = St::Text; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type ThreadUri = St::ThreadUri; - type Text = Set; type CreatedAt = St::CreatedAt; + type Text = St::Text; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type ThreadUri = St::ThreadUri; - type Text = St::Text; type CreatedAt = Set; + type Text = St::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type ThreadUri = St::ThreadUri; + type CreatedAt = St::CreatedAt; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `thread_uri` field pub struct thread_uri(()); - ///Marker type for the `text` field - pub struct text(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -301,8 +301,8 @@ impl CommentBuilder where St: comment_state::State, St::ThreadUri: comment_state::IsSet, - St::Text: comment_state::IsSet, St::CreatedAt: comment_state::IsSet, + St::Text: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/bond_biblio/book.rs b/crates/jacquard-api/src/bond_biblio/book.rs index 22169f82..49ad967d 100644 --- a/crates/jacquard-api/src/bond_biblio/book.rs +++ b/crates/jacquard-api/src/bond_biblio/book.rs @@ -154,49 +154,49 @@ pub mod book_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type CreatedAt; + type Title; type Authors; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type CreatedAt = Unset; + type Title = Unset; type Authors = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type CreatedAt = St::CreatedAt; - type Authors = St::Authors; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Title = St::Title; type CreatedAt = Set; + type Title = St::Title; + type Authors = St::Authors; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type CreatedAt = St::CreatedAt; + type Title = Set; type Authors = St::Authors; } ///State transition - sets the `authors` field to Set pub struct SetAuthors(PhantomData St>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { - type Title = St::Title; type CreatedAt = St::CreatedAt; + type Title = St::Title; type Authors = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `authors` field pub struct authors(()); } @@ -300,8 +300,8 @@ where impl BookBuilder where St: book_state::State, - St::Title: book_state::IsSet, St::CreatedAt: book_state::IsSet, + St::Title: book_state::IsSet, St::Authors: book_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/bond_biblio/list.rs b/crates/jacquard-api/src/bond_biblio/list.rs index 72edf0a8..d2912284 100644 --- a/crates/jacquard-api/src/bond_biblio/list.rs +++ b/crates/jacquard-api/src/bond_biblio/list.rs @@ -171,84 +171,84 @@ pub mod list_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; + type Librarians; type Books; - type Title; type Duedate; - type Librarians; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; + type Librarians = Unset; type Books = Unset; - type Title = Unset; type Duedate = Unset; - type Librarians = Unset; + type Title = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; + type Librarians = St::Librarians; type Books = St::Books; + type Duedate = St::Duedate; type Title = St::Title; + } + ///State transition - sets the `librarians` field to Set + pub struct SetLibrarians(PhantomData St>); + impl sealed::Sealed for SetLibrarians {} + impl State for SetLibrarians { + type CreatedAt = St::CreatedAt; + type Librarians = Set; + type Books = St::Books; type Duedate = St::Duedate; - type Librarians = St::Librarians; + type Title = St::Title; } ///State transition - sets the `books` field to Set pub struct SetBooks(PhantomData St>); impl sealed::Sealed for SetBooks {} impl State for SetBooks { type CreatedAt = St::CreatedAt; - type Books = Set; - type Title = St::Title; - type Duedate = St::Duedate; type Librarians = St::Librarians; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type CreatedAt = St::CreatedAt; - type Books = St::Books; - type Title = Set; + type Books = Set; type Duedate = St::Duedate; - type Librarians = St::Librarians; + type Title = St::Title; } ///State transition - sets the `duedate` field to Set pub struct SetDuedate(PhantomData St>); impl sealed::Sealed for SetDuedate {} impl State for SetDuedate { type CreatedAt = St::CreatedAt; + type Librarians = St::Librarians; type Books = St::Books; - type Title = St::Title; type Duedate = Set; - type Librarians = St::Librarians; + type Title = St::Title; } - ///State transition - sets the `librarians` field to Set - pub struct SetLibrarians(PhantomData St>); - impl sealed::Sealed for SetLibrarians {} - impl State for SetLibrarians { + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { type CreatedAt = St::CreatedAt; + type Librarians = St::Librarians; type Books = St::Books; - type Title = St::Title; type Duedate = St::Duedate; - type Librarians = Set; + type Title = 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 `librarians` field + pub struct librarians(()); ///Marker type for the `books` field pub struct books(()); - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `duedate` field pub struct duedate(()); - ///Marker type for the `librarians` field - pub struct librarians(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -396,10 +396,10 @@ impl ListBuilder where St: list_state::State, St::CreatedAt: list_state::IsSet, + St::Librarians: list_state::IsSet, St::Books: list_state::IsSet, - St::Title: list_state::IsSet, St::Duedate: list_state::IsSet, - St::Librarians: list_state::IsSet, + St::Title: list_state::IsSet, { /// Build the final struct. pub fn build(self) -> List { diff --git a/crates/jacquard-api/src/bond_biblio/stamp.rs b/crates/jacquard-api/src/bond_biblio/stamp.rs index 6c31e2d3..045745db 100644 --- a/crates/jacquard-api/src/bond_biblio/stamp.rs +++ b/crates/jacquard-api/src/bond_biblio/stamp.rs @@ -116,49 +116,49 @@ pub mod stamp_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type List; type CreatedAt; + type List; type Book; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type List = Unset; type CreatedAt = Unset; + type List = Unset; type Book = Unset; } - ///State transition - sets the `list` field to Set - pub struct SetList(PhantomData St>); - impl sealed::Sealed for SetList {} - impl State for SetList { - type List = Set; - type CreatedAt = St::CreatedAt; - type Book = St::Book; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type List = St::List; type CreatedAt = Set; + type List = St::List; + type Book = St::Book; + } + ///State transition - sets the `list` field to Set + pub struct SetList(PhantomData St>); + impl sealed::Sealed for SetList {} + impl State for SetList { + type CreatedAt = St::CreatedAt; + type List = Set; type Book = St::Book; } ///State transition - sets the `book` field to Set pub struct SetBook(PhantomData St>); impl sealed::Sealed for SetBook {} impl State for SetBook { - type List = St::List; type CreatedAt = St::CreatedAt; + type List = St::List; type Book = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `list` field - pub struct list(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `list` field + pub struct list(()); ///Marker type for the `book` field pub struct book(()); } @@ -249,8 +249,8 @@ where impl StampBuilder where St: stamp_state::State, - St::List: stamp_state::IsSet, St::CreatedAt: stamp_state::IsSet, + St::List: stamp_state::IsSet, St::Book: stamp_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/buzz_bookhive.rs b/crates/jacquard-api/src/buzz_bookhive.rs index 801c0a87..c760db70 100644 --- a/crates/jacquard-api/src/buzz_bookhive.rs +++ b/crates/jacquard-api/src/buzz_bookhive.rs @@ -746,93 +746,97 @@ pub mod activity_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type UserHandle; + type UserDid; type Type; type CreatedAt; type HiveId; type Title; - type UserDid; - type UserHandle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type UserHandle = Unset; + type UserDid = Unset; type Type = Unset; type CreatedAt = Unset; type HiveId = Unset; type Title = Unset; - type UserDid = Unset; - type UserHandle = Unset; + } + ///State transition - sets the `user_handle` field to Set + pub struct SetUserHandle(PhantomData St>); + impl sealed::Sealed for SetUserHandle {} + impl State for SetUserHandle { + type UserHandle = Set; + type UserDid = St::UserDid; + type Type = St::Type; + type CreatedAt = St::CreatedAt; + type HiveId = St::HiveId; + type Title = St::Title; + } + ///State transition - sets the `user_did` field to Set + pub struct SetUserDid(PhantomData St>); + impl sealed::Sealed for SetUserDid {} + impl State for SetUserDid { + type UserHandle = St::UserHandle; + type UserDid = Set; + type Type = St::Type; + type CreatedAt = St::CreatedAt; + type HiveId = St::HiveId; + type Title = St::Title; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { + type UserHandle = St::UserHandle; + type UserDid = St::UserDid; type Type = Set; type CreatedAt = St::CreatedAt; type HiveId = St::HiveId; type Title = St::Title; - type UserDid = St::UserDid; - type UserHandle = St::UserHandle; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type UserHandle = St::UserHandle; + type UserDid = St::UserDid; type Type = St::Type; type CreatedAt = Set; type HiveId = St::HiveId; type Title = St::Title; - type UserDid = St::UserDid; - type UserHandle = St::UserHandle; } ///State transition - sets the `hive_id` field to Set pub struct SetHiveId(PhantomData St>); impl sealed::Sealed for SetHiveId {} impl State for SetHiveId { + type UserHandle = St::UserHandle; + type UserDid = St::UserDid; type Type = St::Type; type CreatedAt = St::CreatedAt; type HiveId = Set; type Title = St::Title; - type UserDid = St::UserDid; - type UserHandle = St::UserHandle; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Type = St::Type; - type CreatedAt = St::CreatedAt; - type HiveId = St::HiveId; - type Title = Set; - type UserDid = St::UserDid; type UserHandle = St::UserHandle; - } - ///State transition - sets the `user_did` field to Set - pub struct SetUserDid(PhantomData St>); - impl sealed::Sealed for SetUserDid {} - impl State for SetUserDid { - type Type = St::Type; - type CreatedAt = St::CreatedAt; - type HiveId = St::HiveId; - type Title = St::Title; - type UserDid = Set; - type UserHandle = St::UserHandle; - } - ///State transition - sets the `user_handle` field to Set - pub struct SetUserHandle(PhantomData St>); - impl sealed::Sealed for SetUserHandle {} - impl State for SetUserHandle { + type UserDid = St::UserDid; type Type = St::Type; type CreatedAt = St::CreatedAt; type HiveId = St::HiveId; - type Title = St::Title; - type UserDid = St::UserDid; - type UserHandle = Set; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `user_handle` field + pub struct user_handle(()); + ///Marker type for the `user_did` field + pub struct user_did(()); ///Marker type for the `type` field pub struct r#type(()); ///Marker type for the `created_at` field @@ -841,10 +845,6 @@ pub mod activity_state { pub struct hive_id(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `user_did` field - pub struct user_did(()); - ///Marker type for the `user_handle` field - pub struct user_handle(()); } } @@ -997,12 +997,12 @@ where impl ActivityBuilder where St: activity_state::State, + St::UserHandle: activity_state::IsSet, + St::UserDid: activity_state::IsSet, St::Type: activity_state::IsSet, St::CreatedAt: activity_state::IsSet, St::HiveId: activity_state::IsSet, St::Title: activity_state::IsSet, - St::UserDid: activity_state::IsSet, - St::UserHandle: activity_state::IsSet, { /// Build the final struct. pub fn build(self) -> Activity { @@ -1799,105 +1799,105 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Handle; - type Comment; type CreatedAt; - type Book; type Parent; type Did; + type Handle; + type Book; + type Comment; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Handle = Unset; - type Comment = Unset; type CreatedAt = Unset; - type Book = Unset; type Parent = Unset; type Did = Unset; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData St>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Handle = Set; - type Comment = St::Comment; - type CreatedAt = St::CreatedAt; - type Book = St::Book; - type Parent = St::Parent; - type Did = St::Did; - } - ///State transition - sets the `comment` field to Set - pub struct SetComment(PhantomData St>); - impl sealed::Sealed for SetComment {} - impl State for SetComment { - type Handle = St::Handle; - type Comment = Set; - type CreatedAt = St::CreatedAt; - type Book = St::Book; - type Parent = St::Parent; - type Did = St::Did; + type Handle = Unset; + type Book = Unset; + type Comment = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Handle = St::Handle; - type Comment = St::Comment; type CreatedAt = Set; - type Book = St::Book; type Parent = St::Parent; type Did = St::Did; - } - ///State transition - sets the `book` field to Set - pub struct SetBook(PhantomData St>); - impl sealed::Sealed for SetBook {} - impl State for SetBook { type Handle = St::Handle; + type Book = St::Book; type Comment = St::Comment; - type CreatedAt = St::CreatedAt; - type Book = Set; - type Parent = St::Parent; - type Did = St::Did; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData St>); impl sealed::Sealed for SetParent {} impl State for SetParent { - type Handle = St::Handle; - type Comment = St::Comment; type CreatedAt = St::CreatedAt; - type Book = St::Book; type Parent = Set; type Did = St::Did; + type Handle = St::Handle; + type Book = St::Book; + type Comment = St::Comment; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { + type CreatedAt = St::CreatedAt; + type Parent = St::Parent; + type Did = Set; type Handle = St::Handle; + type Book = St::Book; type Comment = St::Comment; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData St>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { type CreatedAt = St::CreatedAt; + type Parent = St::Parent; + type Did = St::Did; + type Handle = Set; type Book = St::Book; + type Comment = St::Comment; + } + ///State transition - sets the `book` field to Set + pub struct SetBook(PhantomData St>); + impl sealed::Sealed for SetBook {} + impl State for SetBook { + type CreatedAt = St::CreatedAt; type Parent = St::Parent; - type Did = Set; + type Did = St::Did; + type Handle = St::Handle; + type Book = Set; + type Comment = St::Comment; + } + ///State transition - sets the `comment` field to Set + pub struct SetComment(PhantomData St>); + impl sealed::Sealed for SetComment {} + impl State for SetComment { + type CreatedAt = St::CreatedAt; + type Parent = St::Parent; + type Did = St::Did; + type Handle = St::Handle; + type Book = St::Book; + type Comment = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `handle` field - pub struct handle(()); - ///Marker type for the `comment` field - pub struct comment(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `book` field - pub struct book(()); ///Marker type for the `parent` field pub struct parent(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `handle` field + pub struct handle(()); + ///Marker type for the `book` field + pub struct book(()); + ///Marker type for the `comment` field + pub struct comment(()); } } @@ -2050,12 +2050,12 @@ where impl CommentBuilder where St: comment_state::State, - St::Handle: comment_state::IsSet, - St::Comment: comment_state::IsSet, St::CreatedAt: comment_state::IsSet, - St::Book: comment_state::IsSet, St::Parent: comment_state::IsSet, St::Did: comment_state::IsSet, + St::Handle: comment_state::IsSet, + St::Book: comment_state::IsSet, + St::Comment: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { @@ -2093,67 +2093,67 @@ pub mod profile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Reviews; + type BooksRead; type DisplayName; type Handle; - type BooksRead; + type Reviews; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Reviews = Unset; + type BooksRead = Unset; type DisplayName = Unset; type Handle = Unset; - type BooksRead = Unset; + type Reviews = Unset; } - ///State transition - sets the `reviews` field to Set - pub struct SetReviews(PhantomData St>); - impl sealed::Sealed for SetReviews {} - impl State for SetReviews { - type Reviews = Set; + ///State transition - sets the `books_read` field to Set + pub struct SetBooksRead(PhantomData St>); + impl sealed::Sealed for SetBooksRead {} + impl State for SetBooksRead { + type BooksRead = Set; type DisplayName = St::DisplayName; type Handle = St::Handle; - type BooksRead = St::BooksRead; + type Reviews = St::Reviews; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData St>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Reviews = St::Reviews; + type BooksRead = St::BooksRead; type DisplayName = Set; type Handle = St::Handle; - type BooksRead = St::BooksRead; + type Reviews = St::Reviews; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Reviews = St::Reviews; + type BooksRead = St::BooksRead; type DisplayName = St::DisplayName; type Handle = Set; - type BooksRead = St::BooksRead; - } - ///State transition - sets the `books_read` field to Set - pub struct SetBooksRead(PhantomData St>); - impl sealed::Sealed for SetBooksRead {} - impl State for SetBooksRead { type Reviews = St::Reviews; + } + ///State transition - sets the `reviews` field to Set + pub struct SetReviews(PhantomData St>); + impl sealed::Sealed for SetReviews {} + impl State for SetReviews { + type BooksRead = St::BooksRead; type DisplayName = St::DisplayName; type Handle = St::Handle; - type BooksRead = Set; + type Reviews = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `reviews` field - pub struct reviews(()); + ///Marker type for the `books_read` field + pub struct books_read(()); ///Marker type for the `display_name` field pub struct display_name(()); ///Marker type for the `handle` field pub struct handle(()); - ///Marker type for the `books_read` field - pub struct books_read(()); + ///Marker type for the `reviews` field + pub struct reviews(()); } } @@ -2308,10 +2308,10 @@ where impl ProfileBuilder where St: profile_state::State, - St::Reviews: profile_state::IsSet, + St::BooksRead: profile_state::IsSet, St::DisplayName: profile_state::IsSet, St::Handle: profile_state::IsSet, - St::BooksRead: profile_state::IsSet, + St::Reviews: profile_state::IsSet, { /// Build the final struct. pub fn build(self) -> Profile { @@ -2351,65 +2351,65 @@ pub mod review_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Did; type Review; + type CreatedAt; type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Did = Unset; type Review = Unset; + type CreatedAt = Unset; type Handle = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Did = St::Did; - type Review = St::Review; - type Handle = St::Handle; - } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type CreatedAt = St::CreatedAt; type Did = Set; type Review = St::Review; + type CreatedAt = St::CreatedAt; type Handle = St::Handle; } ///State transition - sets the `review` field to Set pub struct SetReview(PhantomData St>); impl sealed::Sealed for SetReview {} impl State for SetReview { - type CreatedAt = St::CreatedAt; type Did = St::Did; type Review = Set; + type CreatedAt = St::CreatedAt; + type Handle = St::Handle; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Did = St::Did; + type Review = St::Review; + type CreatedAt = Set; type Handle = St::Handle; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type CreatedAt = St::CreatedAt; type Did = St::Did; type Review = St::Review; + type CreatedAt = St::CreatedAt; type Handle = 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 `did` field pub struct did(()); ///Marker type for the `review` field pub struct review(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `handle` field pub struct handle(()); } @@ -2532,9 +2532,9 @@ impl ReviewBuilder { impl ReviewBuilder where St: review_state::State, - St::CreatedAt: review_state::IsSet, St::Did: review_state::IsSet, St::Review: review_state::IsSet, + St::CreatedAt: review_state::IsSet, St::Handle: review_state::IsSet, { /// Build the final struct. @@ -2571,105 +2571,105 @@ pub mod user_book_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Thumbnail; - type UserDid; type Title; type HiveId; + type CreatedAt; + type UserDid; type Authors; + type Thumbnail; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Thumbnail = Unset; - type UserDid = Unset; type Title = Unset; type HiveId = Unset; + type CreatedAt = Unset; + type UserDid = Unset; type Authors = Unset; + type Thumbnail = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Thumbnail = St::Thumbnail; - type UserDid = St::UserDid; - type Title = St::Title; + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Title = Set; type HiveId = St::HiveId; + type CreatedAt = St::CreatedAt; + type UserDid = St::UserDid; type Authors = St::Authors; + type Thumbnail = St::Thumbnail; } - ///State transition - sets the `thumbnail` field to Set - pub struct SetThumbnail(PhantomData St>); - impl sealed::Sealed for SetThumbnail {} - impl State for SetThumbnail { + ///State transition - sets the `hive_id` field to Set + pub struct SetHiveId(PhantomData St>); + impl sealed::Sealed for SetHiveId {} + impl State for SetHiveId { + type Title = St::Title; + type HiveId = Set; type CreatedAt = St::CreatedAt; - type Thumbnail = Set; type UserDid = St::UserDid; + type Authors = St::Authors; + type Thumbnail = St::Thumbnail; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type Title = St::Title; type HiveId = St::HiveId; + type CreatedAt = Set; + type UserDid = St::UserDid; type Authors = St::Authors; + type Thumbnail = St::Thumbnail; } ///State transition - sets the `user_did` field to Set pub struct SetUserDid(PhantomData St>); impl sealed::Sealed for SetUserDid {} impl State for SetUserDid { - type CreatedAt = St::CreatedAt; - type Thumbnail = St::Thumbnail; - type UserDid = Set; type Title = St::Title; type HiveId = St::HiveId; - type Authors = St::Authors; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { type CreatedAt = St::CreatedAt; - type Thumbnail = St::Thumbnail; - type UserDid = St::UserDid; - type Title = Set; - type HiveId = St::HiveId; + type UserDid = Set; type Authors = St::Authors; - } - ///State transition - sets the `hive_id` field to Set - pub struct SetHiveId(PhantomData St>); - impl sealed::Sealed for SetHiveId {} - impl State for SetHiveId { - type CreatedAt = St::CreatedAt; type Thumbnail = St::Thumbnail; - type UserDid = St::UserDid; - type Title = St::Title; - type HiveId = Set; - type Authors = St::Authors; } ///State transition - sets the `authors` field to Set pub struct SetAuthors(PhantomData St>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { + type Title = St::Title; + type HiveId = St::HiveId; type CreatedAt = St::CreatedAt; - type Thumbnail = St::Thumbnail; type UserDid = St::UserDid; + type Authors = Set; + type Thumbnail = St::Thumbnail; + } + ///State transition - sets the `thumbnail` field to Set + pub struct SetThumbnail(PhantomData St>); + impl sealed::Sealed for SetThumbnail {} + impl State for SetThumbnail { type Title = St::Title; type HiveId = St::HiveId; - type Authors = Set; + type CreatedAt = St::CreatedAt; + type UserDid = St::UserDid; + type Authors = St::Authors; + type Thumbnail = 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 `thumbnail` field - pub struct thumbnail(()); - ///Marker type for the `user_did` field - pub struct user_did(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `hive_id` field pub struct hive_id(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `user_did` field + pub struct user_did(()); ///Marker type for the `authors` field pub struct authors(()); + ///Marker type for the `thumbnail` field + pub struct thumbnail(()); } } @@ -2985,12 +2985,12 @@ impl UserBookBuilder { impl UserBookBuilder where St: user_book_state::State, - St::CreatedAt: user_book_state::IsSet, - St::Thumbnail: user_book_state::IsSet, - St::UserDid: user_book_state::IsSet, St::Title: user_book_state::IsSet, St::HiveId: user_book_state::IsSet, + St::CreatedAt: user_book_state::IsSet, + St::UserDid: user_book_state::IsSet, St::Authors: user_book_state::IsSet, + St::Thumbnail: user_book_state::IsSet, { /// Build the final struct. pub fn build(self) -> UserBook { diff --git a/crates/jacquard-api/src/buzz_bookhive/book.rs b/crates/jacquard-api/src/buzz_bookhive/book.rs index cb394a34..9424212b 100644 --- a/crates/jacquard-api/src/buzz_bookhive/book.rs +++ b/crates/jacquard-api/src/buzz_bookhive/book.rs @@ -343,67 +343,67 @@ pub mod book_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Authors; type CreatedAt; - type HiveId; type Title; + type HiveId; + type Authors; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Authors = Unset; type CreatedAt = Unset; - type HiveId = Unset; type Title = Unset; - } - ///State transition - sets the `authors` field to Set - pub struct SetAuthors(PhantomData St>); - impl sealed::Sealed for SetAuthors {} - impl State for SetAuthors { - type Authors = Set; - type CreatedAt = St::CreatedAt; - type HiveId = St::HiveId; - type Title = St::Title; + type HiveId = Unset; + type Authors = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Authors = St::Authors; type CreatedAt = Set; - type HiveId = St::HiveId; type Title = St::Title; + type HiveId = St::HiveId; + type Authors = St::Authors; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type CreatedAt = St::CreatedAt; + type Title = Set; + type HiveId = St::HiveId; + type Authors = St::Authors; } ///State transition - sets the `hive_id` field to Set pub struct SetHiveId(PhantomData St>); impl sealed::Sealed for SetHiveId {} impl State for SetHiveId { - type Authors = St::Authors; type CreatedAt = St::CreatedAt; - type HiveId = Set; type Title = St::Title; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { + type HiveId = Set; type Authors = St::Authors; + } + ///State transition - sets the `authors` field to Set + pub struct SetAuthors(PhantomData St>); + impl sealed::Sealed for SetAuthors {} + impl State for SetAuthors { type CreatedAt = St::CreatedAt; + type Title = St::Title; type HiveId = St::HiveId; - type Title = Set; + type Authors = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `authors` field - pub struct authors(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `hive_id` field - pub struct hive_id(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `hive_id` field + pub struct hive_id(()); + ///Marker type for the `authors` field + pub struct authors(()); } } @@ -614,10 +614,10 @@ where impl BookBuilder where St: book_state::State, - St::Authors: book_state::IsSet, St::CreatedAt: book_state::IsSet, - St::HiveId: book_state::IsSet, St::Title: book_state::IsSet, + St::HiveId: book_state::IsSet, + St::Authors: book_state::IsSet, { /// Build the final struct. pub fn build(self) -> Book { diff --git a/crates/jacquard-api/src/buzz_bookhive/buzz.rs b/crates/jacquard-api/src/buzz_bookhive/buzz.rs index a67008f0..a64eb6a7 100644 --- a/crates/jacquard-api/src/buzz_bookhive/buzz.rs +++ b/crates/jacquard-api/src/buzz_bookhive/buzz.rs @@ -141,65 +141,65 @@ pub mod buzz_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Book; type Comment; + type Book; + type CreatedAt; type Parent; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Book = Unset; type Comment = Unset; + type Book = Unset; + type CreatedAt = Unset; type Parent = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `comment` field to Set + pub struct SetComment(PhantomData St>); + impl sealed::Sealed for SetComment {} + impl State for SetComment { + type Comment = Set; type Book = St::Book; - type Comment = St::Comment; + type CreatedAt = St::CreatedAt; type Parent = St::Parent; } ///State transition - sets the `book` field to Set pub struct SetBook(PhantomData St>); impl sealed::Sealed for SetBook {} impl State for SetBook { - type CreatedAt = St::CreatedAt; - type Book = Set; type Comment = St::Comment; + type Book = Set; + type CreatedAt = St::CreatedAt; type Parent = St::Parent; } - ///State transition - sets the `comment` field to Set - pub struct SetComment(PhantomData St>); - impl sealed::Sealed for SetComment {} - impl State for SetComment { - type CreatedAt = St::CreatedAt; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Comment = St::Comment; type Book = St::Book; - type Comment = Set; + type CreatedAt = Set; type Parent = St::Parent; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData St>); impl sealed::Sealed for SetParent {} impl State for SetParent { - type CreatedAt = St::CreatedAt; - type Book = St::Book; type Comment = St::Comment; + type Book = St::Book; + type CreatedAt = St::CreatedAt; type Parent = 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 `book` field - pub struct book(()); ///Marker type for the `comment` field pub struct comment(()); + ///Marker type for the `book` field + pub struct book(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `parent` field pub struct parent(()); } @@ -309,9 +309,9 @@ where impl BuzzBuilder where St: buzz_state::State, - St::CreatedAt: buzz_state::IsSet, - St::Book: buzz_state::IsSet, St::Comment: buzz_state::IsSet, + St::Book: buzz_state::IsSet, + St::CreatedAt: buzz_state::IsSet, St::Parent: buzz_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/buzz_bookhive/hive_book.rs b/crates/jacquard-api/src/buzz_bookhive/hive_book.rs index ec7fcf86..760a1a7b 100644 --- a/crates/jacquard-api/src/buzz_bookhive/hive_book.rs +++ b/crates/jacquard-api/src/buzz_bookhive/hive_book.rs @@ -217,105 +217,105 @@ pub mod hive_book_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type UpdatedAt; type Thumbnail; type Id; - type CreatedAt; - type Authors; - type UpdatedAt; type Title; + type Authors; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type UpdatedAt = Unset; type Thumbnail = Unset; type Id = Unset; - type CreatedAt = Unset; - type Authors = Unset; - type UpdatedAt = Unset; type Title = Unset; + type Authors = Unset; + type CreatedAt = Unset; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type UpdatedAt = Set; + type Thumbnail = St::Thumbnail; + type Id = St::Id; + type Title = St::Title; + type Authors = St::Authors; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `thumbnail` field to Set pub struct SetThumbnail(PhantomData St>); impl sealed::Sealed for SetThumbnail {} impl State for SetThumbnail { + type UpdatedAt = St::UpdatedAt; type Thumbnail = Set; type Id = St::Id; - type CreatedAt = St::CreatedAt; - type Authors = St::Authors; - type UpdatedAt = St::UpdatedAt; type Title = St::Title; + type Authors = St::Authors; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { + type UpdatedAt = St::UpdatedAt; type Thumbnail = St::Thumbnail; type Id = Set; - type CreatedAt = St::CreatedAt; - type Authors = St::Authors; - type UpdatedAt = St::UpdatedAt; type Title = St::Title; + type Authors = St::Authors; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type UpdatedAt = St::UpdatedAt; type Thumbnail = St::Thumbnail; type Id = St::Id; - type CreatedAt = Set; + type Title = Set; type Authors = St::Authors; - type UpdatedAt = St::UpdatedAt; - type Title = St::Title; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `authors` field to Set pub struct SetAuthors(PhantomData St>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { - type Thumbnail = St::Thumbnail; - type Id = St::Id; - type CreatedAt = St::CreatedAt; - type Authors = Set; type UpdatedAt = St::UpdatedAt; - type Title = St::Title; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { type Thumbnail = St::Thumbnail; type Id = St::Id; - type CreatedAt = St::CreatedAt; - type Authors = St::Authors; - type UpdatedAt = Set; type Title = St::Title; + type Authors = Set; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type UpdatedAt = St::UpdatedAt; type Thumbnail = St::Thumbnail; type Id = St::Id; - type CreatedAt = St::CreatedAt; + type Title = St::Title; type Authors = St::Authors; - type UpdatedAt = St::UpdatedAt; - type Title = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `updated_at` field + pub struct updated_at(()); ///Marker type for the `thumbnail` field pub struct thumbnail(()); ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `authors` field - pub struct authors(()); - ///Marker type for the `updated_at` field - pub struct updated_at(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `authors` field + pub struct authors(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -595,12 +595,12 @@ where impl HiveBookBuilder where St: hive_book_state::State, + St::UpdatedAt: hive_book_state::IsSet, St::Thumbnail: hive_book_state::IsSet, St::Id: hive_book_state::IsSet, - St::CreatedAt: hive_book_state::IsSet, - St::Authors: hive_book_state::IsSet, - St::UpdatedAt: hive_book_state::IsSet, St::Title: hive_book_state::IsSet, + St::Authors: hive_book_state::IsSet, + St::CreatedAt: hive_book_state::IsSet, { /// Build the final struct. pub fn build(self) -> HiveBook { diff --git a/crates/jacquard-api/src/cat_vt3e/gallery/group_item.rs b/crates/jacquard-api/src/cat_vt3e/gallery/group_item.rs index 83a18b27..73b68a56 100644 --- a/crates/jacquard-api/src/cat_vt3e/gallery/group_item.rs +++ b/crates/jacquard-api/src/cat_vt3e/gallery/group_item.rs @@ -117,51 +117,51 @@ pub mod group_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type AddedAt; type Group; type Image; - type AddedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type AddedAt = Unset; type Group = Unset; type Image = Unset; - type AddedAt = Unset; + } + ///State transition - sets the `added_at` field to Set + pub struct SetAddedAt(PhantomData St>); + impl sealed::Sealed for SetAddedAt {} + impl State for SetAddedAt { + type AddedAt = Set; + type Group = St::Group; + type Image = St::Image; } ///State transition - sets the `group` field to Set pub struct SetGroup(PhantomData St>); impl sealed::Sealed for SetGroup {} impl State for SetGroup { + type AddedAt = St::AddedAt; type Group = Set; type Image = St::Image; - type AddedAt = St::AddedAt; } ///State transition - sets the `image` field to Set pub struct SetImage(PhantomData St>); impl sealed::Sealed for SetImage {} impl State for SetImage { - type Group = St::Group; - type Image = Set; type AddedAt = St::AddedAt; - } - ///State transition - sets the `added_at` field to Set - pub struct SetAddedAt(PhantomData St>); - impl sealed::Sealed for SetAddedAt {} - impl State for SetAddedAt { type Group = St::Group; - type Image = St::Image; - type AddedAt = Set; + type Image = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `added_at` field + pub struct added_at(()); ///Marker type for the `group` field pub struct group(()); ///Marker type for the `image` field pub struct image(()); - ///Marker type for the `added_at` field - pub struct added_at(()); } } @@ -263,9 +263,9 @@ impl GroupItemBuilder { impl GroupItemBuilder where St: group_item_state::State, + St::AddedAt: group_item_state::IsSet, St::Group: group_item_state::IsSet, St::Image: group_item_state::IsSet, - St::AddedAt: group_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> GroupItem { diff --git a/crates/jacquard-api/src/ch_indiemusi/alpha/recording.rs b/crates/jacquard-api/src/ch_indiemusi/alpha/recording.rs index ea182576..6b5972a6 100644 --- a/crates/jacquard-api/src/ch_indiemusi/alpha/recording.rs +++ b/crates/jacquard-api/src/ch_indiemusi/alpha/recording.rs @@ -413,37 +413,37 @@ pub mod recording_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Artists; type Title; + type Artists; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Artists = Unset; type Title = Unset; - } - ///State transition - sets the `artists` field to Set - pub struct SetArtists(PhantomData St>); - impl sealed::Sealed for SetArtists {} - impl State for SetArtists { - type Artists = Set; - type Title = St::Title; + type Artists = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Artists = St::Artists; type Title = Set; + type Artists = St::Artists; + } + ///State transition - sets the `artists` field to Set + pub struct SetArtists(PhantomData St>); + impl sealed::Sealed for SetArtists {} + impl State for SetArtists { + type Title = St::Title; + type Artists = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `artists` field - pub struct artists(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `artists` field + pub struct artists(()); } } @@ -592,8 +592,8 @@ where impl RecordingBuilder where St: recording_state::State, - St::Artists: recording_state::IsSet, St::Title: recording_state::IsSet, + St::Artists: recording_state::IsSet, { /// Build the final struct. pub fn build(self) -> Recording { diff --git a/crates/jacquard-api/src/ch_indiemusi/alpha/release.rs b/crates/jacquard-api/src/ch_indiemusi/alpha/release.rs index 1aea7607..1541dfb2 100644 --- a/crates/jacquard-api/src/ch_indiemusi/alpha/release.rs +++ b/crates/jacquard-api/src/ch_indiemusi/alpha/release.rs @@ -348,51 +348,51 @@ pub mod release_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Recordings; type Title; type Artists; + type Recordings; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Recordings = Unset; type Title = Unset; type Artists = Unset; - } - ///State transition - sets the `recordings` field to Set - pub struct SetRecordings(PhantomData St>); - impl sealed::Sealed for SetRecordings {} - impl State for SetRecordings { - type Recordings = Set; - type Title = St::Title; - type Artists = St::Artists; + type Recordings = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Recordings = St::Recordings; type Title = Set; type Artists = St::Artists; + type Recordings = St::Recordings; } ///State transition - sets the `artists` field to Set pub struct SetArtists(PhantomData St>); impl sealed::Sealed for SetArtists {} impl State for SetArtists { - type Recordings = St::Recordings; type Title = St::Title; type Artists = Set; + type Recordings = St::Recordings; + } + ///State transition - sets the `recordings` field to Set + pub struct SetRecordings(PhantomData St>); + impl sealed::Sealed for SetRecordings {} + impl State for SetRecordings { + type Title = St::Title; + type Artists = St::Artists; + type Recordings = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `recordings` field - pub struct recordings(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `artists` field pub struct artists(()); + ///Marker type for the `recordings` field + pub struct recordings(()); } } @@ -527,9 +527,9 @@ where impl ReleaseBuilder where St: release_state::State, - St::Recordings: release_state::IsSet, St::Title: release_state::IsSet, St::Artists: release_state::IsSet, + St::Recordings: release_state::IsSet, { /// Build the final struct. pub fn build(self) -> Release { diff --git a/crates/jacquard-api/src/ch_indiemusi/alpha/song.rs b/crates/jacquard-api/src/ch_indiemusi/alpha/song.rs index b71fa331..8841298d 100644 --- a/crates/jacquard-api/src/ch_indiemusi/alpha/song.rs +++ b/crates/jacquard-api/src/ch_indiemusi/alpha/song.rs @@ -387,37 +387,37 @@ pub mod song_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type InterestedParties; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type InterestedParties = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type InterestedParties = St::InterestedParties; + type Title = Unset; } ///State transition - sets the `interested_parties` field to Set pub struct SetInterestedParties(PhantomData St>); impl sealed::Sealed for SetInterestedParties {} impl State for SetInterestedParties { - type Title = St::Title; type InterestedParties = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type InterestedParties = St::InterestedParties; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `interested_parties` field pub struct interested_parties(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -500,8 +500,8 @@ where impl SongBuilder where St: song_state::State, - St::Title: song_state::IsSet, St::InterestedParties: song_state::IsSet, + St::Title: song_state::IsSet, { /// Build the final struct. pub fn build(self) -> Song { diff --git a/crates/jacquard-api/src/ch_indiemusi/alpha/track.rs b/crates/jacquard-api/src/ch_indiemusi/alpha/track.rs index b6e3eb9d..23d5b3c2 100644 --- a/crates/jacquard-api/src/ch_indiemusi/alpha/track.rs +++ b/crates/jacquard-api/src/ch_indiemusi/alpha/track.rs @@ -189,67 +189,67 @@ pub mod track_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type CreatedAt; - type AudioBlob; type EncryptedContentIv; + type Title; + type AudioBlob; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type CreatedAt = Unset; - type AudioBlob = Unset; type EncryptedContentIv = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type CreatedAt = St::CreatedAt; - type AudioBlob = St::AudioBlob; - type EncryptedContentIv = St::EncryptedContentIv; + type Title = Unset; + type AudioBlob = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Title = St::Title; type CreatedAt = Set; - type AudioBlob = St::AudioBlob; type EncryptedContentIv = St::EncryptedContentIv; - } - ///State transition - sets the `audio_blob` field to Set - pub struct SetAudioBlob(PhantomData St>); - impl sealed::Sealed for SetAudioBlob {} - impl State for SetAudioBlob { type Title = St::Title; - type CreatedAt = St::CreatedAt; - type AudioBlob = Set; - type EncryptedContentIv = St::EncryptedContentIv; + type AudioBlob = St::AudioBlob; } ///State transition - sets the `encrypted_content_iv` field to Set pub struct SetEncryptedContentIv(PhantomData St>); impl sealed::Sealed for SetEncryptedContentIv {} impl State for SetEncryptedContentIv { + type CreatedAt = St::CreatedAt; + type EncryptedContentIv = Set; type Title = St::Title; + type AudioBlob = St::AudioBlob; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { type CreatedAt = St::CreatedAt; + type EncryptedContentIv = St::EncryptedContentIv; + type Title = Set; type AudioBlob = St::AudioBlob; - type EncryptedContentIv = Set; + } + ///State transition - sets the `audio_blob` field to Set + pub struct SetAudioBlob(PhantomData St>); + impl sealed::Sealed for SetAudioBlob {} + impl State for SetAudioBlob { + type CreatedAt = St::CreatedAt; + type EncryptedContentIv = St::EncryptedContentIv; + type Title = St::Title; + type AudioBlob = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `audio_blob` field - pub struct audio_blob(()); ///Marker type for the `encrypted_content_iv` field pub struct encrypted_content_iv(()); + ///Marker type for the `title` field + pub struct title(()); + ///Marker type for the `audio_blob` field + pub struct audio_blob(()); } } @@ -370,10 +370,10 @@ where impl TrackBuilder where St: track_state::State, - St::Title: track_state::IsSet, St::CreatedAt: track_state::IsSet, - St::AudioBlob: track_state::IsSet, St::EncryptedContentIv: track_state::IsSet, + St::Title: track_state::IsSet, + St::AudioBlob: track_state::IsSet, { /// Build the final struct. pub fn build(self) -> Track { diff --git a/crates/jacquard-api/src/chat_bsky/actor.rs b/crates/jacquard-api/src/chat_bsky/actor.rs index af02527e..c6f9fc38 100644 --- a/crates/jacquard-api/src/chat_bsky/actor.rs +++ b/crates/jacquard-api/src/chat_bsky/actor.rs @@ -105,37 +105,37 @@ pub mod profile_view_basic_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Handle; type Did; + type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Handle = Unset; type Did = Unset; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData St>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Handle = Set; - type Did = St::Did; + type Handle = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Handle = St::Handle; type Did = Set; + type Handle = St::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData St>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type Did = St::Did; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `handle` field - pub struct handle(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `handle` field + pub struct handle(()); } } @@ -309,8 +309,8 @@ impl ProfileViewBasicBuilder ProfileViewBasicBuilder where St: profile_view_basic_state::State, - St::Handle: profile_view_basic_state::IsSet, St::Did: profile_view_basic_state::IsSet, + St::Handle: profile_view_basic_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProfileViewBasic { diff --git a/crates/jacquard-api/src/chat_bsky/convo.rs b/crates/jacquard-api/src/chat_bsky/convo.rs index af4f493c..4e19ff2a 100644 --- a/crates/jacquard-api/src/chat_bsky/convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo.rs @@ -759,84 +759,84 @@ pub mod convo_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Members; - type Muted; type Id; - type UnreadCount; type Rev; + type Muted; + type UnreadCount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Members = Unset; - type Muted = Unset; type Id = Unset; - type UnreadCount = Unset; type Rev = Unset; + type Muted = Unset; + type UnreadCount = Unset; } ///State transition - sets the `members` field to Set pub struct SetMembers(PhantomData St>); impl sealed::Sealed for SetMembers {} impl State for SetMembers { type Members = Set; - type Muted = St::Muted; type Id = St::Id; - type UnreadCount = St::UnreadCount; type Rev = St::Rev; - } - ///State transition - sets the `muted` field to Set - pub struct SetMuted(PhantomData St>); - impl sealed::Sealed for SetMuted {} - impl State for SetMuted { - type Members = St::Members; - type Muted = Set; - type Id = St::Id; + type Muted = St::Muted; type UnreadCount = St::UnreadCount; - type Rev = St::Rev; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { type Members = St::Members; - type Muted = St::Muted; type Id = Set; - type UnreadCount = St::UnreadCount; type Rev = St::Rev; - } - ///State transition - sets the `unread_count` field to Set - pub struct SetUnreadCount(PhantomData St>); - impl sealed::Sealed for SetUnreadCount {} - impl State for SetUnreadCount { - type Members = St::Members; type Muted = St::Muted; - type Id = St::Id; - type UnreadCount = Set; - type Rev = St::Rev; + type UnreadCount = St::UnreadCount; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData St>); impl sealed::Sealed for SetRev {} impl State for SetRev { type Members = St::Members; + type Id = St::Id; + type Rev = Set; type Muted = St::Muted; + type UnreadCount = St::UnreadCount; + } + ///State transition - sets the `muted` field to Set + pub struct SetMuted(PhantomData St>); + impl sealed::Sealed for SetMuted {} + impl State for SetMuted { + type Members = St::Members; type Id = St::Id; + type Rev = St::Rev; + type Muted = Set; type UnreadCount = St::UnreadCount; - type Rev = Set; + } + ///State transition - sets the `unread_count` field to Set + pub struct SetUnreadCount(PhantomData St>); + impl sealed::Sealed for SetUnreadCount {} + impl State for SetUnreadCount { + type Members = St::Members; + type Id = St::Id; + type Rev = St::Rev; + type Muted = St::Muted; + type UnreadCount = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `members` field pub struct members(()); - ///Marker type for the `muted` field - pub struct muted(()); ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `unread_count` field - pub struct unread_count(()); ///Marker type for the `rev` field pub struct rev(()); + ///Marker type for the `muted` field + pub struct muted(()); + ///Marker type for the `unread_count` field + pub struct unread_count(()); } } @@ -1021,10 +1021,10 @@ impl ConvoViewBuilder where St: convo_view_state::State, St::Members: convo_view_state::IsSet, - St::Muted: convo_view_state::IsSet, St::Id: convo_view_state::IsSet, - St::UnreadCount: convo_view_state::IsSet, St::Rev: convo_view_state::IsSet, + St::Muted: convo_view_state::IsSet, + St::UnreadCount: convo_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ConvoView { @@ -1761,67 +1761,67 @@ pub mod deleted_message_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Id; type Rev; - type SentAt; type Sender; - type Id; + type SentAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Id = Unset; type Rev = Unset; - type SentAt = Unset; type Sender = Unset; - type Id = Unset; + type SentAt = Unset; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Id = Set; + type Rev = St::Rev; + type Sender = St::Sender; + type SentAt = St::SentAt; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData St>); impl sealed::Sealed for SetRev {} impl State for SetRev { - type Rev = Set; - type SentAt = St::SentAt; - type Sender = St::Sender; type Id = St::Id; - } - ///State transition - sets the `sent_at` field to Set - pub struct SetSentAt(PhantomData St>); - impl sealed::Sealed for SetSentAt {} - impl State for SetSentAt { - type Rev = St::Rev; - type SentAt = Set; + type Rev = Set; type Sender = St::Sender; - type Id = St::Id; + type SentAt = St::SentAt; } ///State transition - sets the `sender` field to Set pub struct SetSender(PhantomData St>); impl sealed::Sealed for SetSender {} impl State for SetSender { + type Id = St::Id; type Rev = St::Rev; - type SentAt = St::SentAt; type Sender = Set; - type Id = St::Id; + type SentAt = St::SentAt; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { + ///State transition - sets the `sent_at` field to Set + pub struct SetSentAt(PhantomData St>); + impl sealed::Sealed for SetSentAt {} + impl State for SetSentAt { + type Id = St::Id; type Rev = St::Rev; - type SentAt = St::SentAt; type Sender = St::Sender; - type Id = Set; + type SentAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `rev` field pub struct rev(()); - ///Marker type for the `sent_at` field - pub struct sent_at(()); ///Marker type for the `sender` field pub struct sender(()); - ///Marker type for the `id` field - pub struct id(()); + ///Marker type for the `sent_at` field + pub struct sent_at(()); } } @@ -1934,10 +1934,10 @@ where impl DeletedMessageViewBuilder where St: deleted_message_view_state::State, + St::Id: deleted_message_view_state::IsSet, St::Rev: deleted_message_view_state::IsSet, - St::SentAt: deleted_message_view_state::IsSet, St::Sender: deleted_message_view_state::IsSet, - St::Id: deleted_message_view_state::IsSet, + St::SentAt: deleted_message_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> DeletedMessageView { @@ -1974,67 +1974,67 @@ pub mod log_add_reaction_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Rev; type Message; - type ConvoId; type Reaction; + type Rev; + type ConvoId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Rev = Unset; type Message = Unset; - type ConvoId = Unset; type Reaction = Unset; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData St>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { - type Rev = Set; - type Message = St::Message; - type ConvoId = St::ConvoId; - type Reaction = St::Reaction; + type Rev = Unset; + type ConvoId = Unset; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData St>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type Rev = St::Rev; type Message = Set; - type ConvoId = St::ConvoId; type Reaction = St::Reaction; - } - ///State transition - sets the `convo_id` field to Set - pub struct SetConvoId(PhantomData St>); - impl sealed::Sealed for SetConvoId {} - impl State for SetConvoId { type Rev = St::Rev; - type Message = St::Message; - type ConvoId = Set; - type Reaction = St::Reaction; + type ConvoId = St::ConvoId; } ///State transition - sets the `reaction` field to Set pub struct SetReaction(PhantomData St>); impl sealed::Sealed for SetReaction {} impl State for SetReaction { + type Message = St::Message; + type Reaction = Set; type Rev = St::Rev; + type ConvoId = St::ConvoId; + } + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData St>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { type Message = St::Message; + type Reaction = St::Reaction; + type Rev = Set; type ConvoId = St::ConvoId; - type Reaction = Set; + } + ///State transition - sets the `convo_id` field to Set + pub struct SetConvoId(PhantomData St>); + impl sealed::Sealed for SetConvoId {} + impl State for SetConvoId { + type Message = St::Message; + type Reaction = St::Reaction; + type Rev = St::Rev; + type ConvoId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `rev` field - pub struct rev(()); ///Marker type for the `message` field pub struct message(()); - ///Marker type for the `convo_id` field - pub struct convo_id(()); ///Marker type for the `reaction` field pub struct reaction(()); + ///Marker type for the `rev` field + pub struct rev(()); + ///Marker type for the `convo_id` field + pub struct convo_id(()); } } @@ -2147,10 +2147,10 @@ where impl LogAddReactionBuilder where St: log_add_reaction_state::State, - St::Rev: log_add_reaction_state::IsSet, St::Message: log_add_reaction_state::IsSet, - St::ConvoId: log_add_reaction_state::IsSet, St::Reaction: log_add_reaction_state::IsSet, + St::Rev: log_add_reaction_state::IsSet, + St::ConvoId: log_add_reaction_state::IsSet, { /// Build the final struct. pub fn build(self) -> LogAddReaction { @@ -2187,51 +2187,51 @@ pub mod log_create_message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Rev; - type ConvoId; type Message; + type ConvoId; + type Rev; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Rev = Unset; - type ConvoId = Unset; type Message = Unset; + type ConvoId = Unset; + type Rev = Unset; } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData St>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { - type Rev = Set; + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData St>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; type ConvoId = St::ConvoId; - type Message = St::Message; + type Rev = St::Rev; } ///State transition - sets the `convo_id` field to Set pub struct SetConvoId(PhantomData St>); impl sealed::Sealed for SetConvoId {} impl State for SetConvoId { - type Rev = St::Rev; - type ConvoId = Set; type Message = St::Message; - } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData St>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { + type ConvoId = Set; type Rev = St::Rev; + } + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData St>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Message = St::Message; type ConvoId = St::ConvoId; - type Message = Set; + type Rev = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `rev` field - pub struct rev(()); - ///Marker type for the `convo_id` field - pub struct convo_id(()); ///Marker type for the `message` field pub struct message(()); + ///Marker type for the `convo_id` field + pub struct convo_id(()); + ///Marker type for the `rev` field + pub struct rev(()); } } @@ -2320,9 +2320,9 @@ where impl LogCreateMessageBuilder where St: log_create_message_state::State, - St::Rev: log_create_message_state::IsSet, - St::ConvoId: log_create_message_state::IsSet, St::Message: log_create_message_state::IsSet, + St::ConvoId: log_create_message_state::IsSet, + St::Rev: log_create_message_state::IsSet, { /// Build the final struct. pub fn build(self) -> LogCreateMessage { @@ -2527,51 +2527,51 @@ pub mod log_read_message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Rev; type ConvoId; type Message; - type Rev; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Rev = Unset; type ConvoId = Unset; type Message = Unset; - type Rev = Unset; + } + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData St>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Rev = Set; + type ConvoId = St::ConvoId; + type Message = St::Message; } ///State transition - sets the `convo_id` field to Set pub struct SetConvoId(PhantomData St>); impl sealed::Sealed for SetConvoId {} impl State for SetConvoId { + type Rev = St::Rev; type ConvoId = Set; type Message = St::Message; - type Rev = St::Rev; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData St>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type ConvoId = St::ConvoId; - type Message = Set; type Rev = St::Rev; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData St>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { type ConvoId = St::ConvoId; - type Message = St::Message; - type Rev = Set; + type Message = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `rev` field + pub struct rev(()); ///Marker type for the `convo_id` field pub struct convo_id(()); ///Marker type for the `message` field pub struct message(()); - ///Marker type for the `rev` field - pub struct rev(()); } } @@ -2660,9 +2660,9 @@ where impl LogReadMessageBuilder where St: log_read_message_state::State, + St::Rev: log_read_message_state::IsSet, St::ConvoId: log_read_message_state::IsSet, St::Message: log_read_message_state::IsSet, - St::Rev: log_read_message_state::IsSet, { /// Build the final struct. pub fn build(self) -> LogReadMessage { @@ -2697,65 +2697,65 @@ pub mod log_remove_reaction_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ConvoId; - type Message; type Rev; + type Message; + type ConvoId; type Reaction; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ConvoId = Unset; - type Message = Unset; type Rev = Unset; + type Message = Unset; + type ConvoId = Unset; type Reaction = Unset; } - ///State transition - sets the `convo_id` field to Set - pub struct SetConvoId(PhantomData St>); - impl sealed::Sealed for SetConvoId {} - impl State for SetConvoId { - type ConvoId = Set; + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData St>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Rev = Set; type Message = St::Message; - type Rev = St::Rev; + type ConvoId = St::ConvoId; type Reaction = St::Reaction; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData St>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type ConvoId = St::ConvoId; - type Message = Set; type Rev = St::Rev; + type Message = Set; + type ConvoId = St::ConvoId; type Reaction = St::Reaction; } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData St>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { - type ConvoId = St::ConvoId; + ///State transition - sets the `convo_id` field to Set + pub struct SetConvoId(PhantomData St>); + impl sealed::Sealed for SetConvoId {} + impl State for SetConvoId { + type Rev = St::Rev; type Message = St::Message; - type Rev = Set; + type ConvoId = Set; type Reaction = St::Reaction; } ///State transition - sets the `reaction` field to Set pub struct SetReaction(PhantomData St>); impl sealed::Sealed for SetReaction {} impl State for SetReaction { - type ConvoId = St::ConvoId; - type Message = St::Message; type Rev = St::Rev; + type Message = St::Message; + type ConvoId = St::ConvoId; type Reaction = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `convo_id` field - pub struct convo_id(()); - ///Marker type for the `message` field - pub struct message(()); ///Marker type for the `rev` field pub struct rev(()); + ///Marker type for the `message` field + pub struct message(()); + ///Marker type for the `convo_id` field + pub struct convo_id(()); ///Marker type for the `reaction` field pub struct reaction(()); } @@ -2870,9 +2870,9 @@ where impl LogRemoveReactionBuilder where St: log_remove_reaction_state::State, - St::ConvoId: log_remove_reaction_state::IsSet, - St::Message: log_remove_reaction_state::IsSet, St::Rev: log_remove_reaction_state::IsSet, + St::Message: log_remove_reaction_state::IsSet, + St::ConvoId: log_remove_reaction_state::IsSet, St::Reaction: log_remove_reaction_state::IsSet, { /// Build the final struct. @@ -3058,51 +3058,51 @@ pub mod message_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type MessageId; type ConvoId; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type MessageId = Unset; type ConvoId = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type MessageId = St::MessageId; - type ConvoId = St::ConvoId; + type Did = Unset; } ///State transition - sets the `message_id` field to Set pub struct SetMessageId(PhantomData St>); impl sealed::Sealed for SetMessageId {} impl State for SetMessageId { - type Did = St::Did; type MessageId = Set; type ConvoId = St::ConvoId; + type Did = St::Did; } ///State transition - sets the `convo_id` field to Set pub struct SetConvoId(PhantomData St>); impl sealed::Sealed for SetConvoId {} impl State for SetConvoId { - type Did = St::Did; type MessageId = St::MessageId; type ConvoId = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type MessageId = St::MessageId; + type ConvoId = St::ConvoId; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `message_id` field pub struct message_id(()); ///Marker type for the `convo_id` field pub struct convo_id(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -3191,9 +3191,9 @@ where impl MessageRefBuilder where St: message_ref_state::State, - St::Did: message_ref_state::IsSet, St::MessageId: message_ref_state::IsSet, St::ConvoId: message_ref_state::IsSet, + St::Did: message_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> MessageRef { @@ -3228,85 +3228,85 @@ pub mod message_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type SentAt; - type Id; + type Rev; type Text; + type SentAt; type Sender; - type Rev; + type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type SentAt = Unset; - type Id = Unset; + type Rev = Unset; type Text = Unset; + type SentAt = Unset; type Sender = Unset; - type Rev = Unset; + type Id = Unset; } - ///State transition - sets the `sent_at` field to Set - pub struct SetSentAt(PhantomData St>); - impl sealed::Sealed for SetSentAt {} - impl State for SetSentAt { - type SentAt = Set; - type Id = St::Id; + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData St>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Rev = Set; type Text = St::Text; - type Sender = St::Sender; - type Rev = St::Rev; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { type SentAt = St::SentAt; - type Id = Set; - type Text = St::Text; type Sender = St::Sender; - type Rev = St::Rev; + type Id = St::Id; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { - type SentAt = St::SentAt; - type Id = St::Id; + type Rev = St::Rev; type Text = Set; + type SentAt = St::SentAt; type Sender = St::Sender; + type Id = St::Id; + } + ///State transition - sets the `sent_at` field to Set + pub struct SetSentAt(PhantomData St>); + impl sealed::Sealed for SetSentAt {} + impl State for SetSentAt { type Rev = St::Rev; + type Text = St::Text; + type SentAt = Set; + type Sender = St::Sender; + type Id = St::Id; } ///State transition - sets the `sender` field to Set pub struct SetSender(PhantomData St>); impl sealed::Sealed for SetSender {} impl State for SetSender { - type SentAt = St::SentAt; - type Id = St::Id; - type Text = St::Text; - type Sender = Set; type Rev = St::Rev; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData St>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { + type Text = St::Text; type SentAt = St::SentAt; + type Sender = Set; type Id = St::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Rev = St::Rev; type Text = St::Text; + type SentAt = St::SentAt; type Sender = St::Sender; - type Rev = Set; + type Id = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `sent_at` field - pub struct sent_at(()); - ///Marker type for the `id` field - pub struct id(()); + ///Marker type for the `rev` field + pub struct rev(()); ///Marker type for the `text` field pub struct text(()); + ///Marker type for the `sent_at` field + pub struct sent_at(()); ///Marker type for the `sender` field pub struct sender(()); - ///Marker type for the `rev` field - pub struct rev(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -3487,11 +3487,11 @@ where impl MessageViewBuilder where St: message_view_state::State, - St::SentAt: message_view_state::IsSet, - St::Id: message_view_state::IsSet, + St::Rev: message_view_state::IsSet, St::Text: message_view_state::IsSet, + St::SentAt: message_view_state::IsSet, St::Sender: message_view_state::IsSet, - St::Rev: message_view_state::IsSet, + St::Id: message_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> MessageView { @@ -3636,51 +3636,51 @@ pub mod reaction_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Value; type Sender; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Value = Unset; type Sender = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Value = St::Value; - type Sender = St::Sender; + type CreatedAt = Unset; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type CreatedAt = St::CreatedAt; type Value = Set; type Sender = St::Sender; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `sender` field to Set pub struct SetSender(PhantomData St>); impl sealed::Sealed for SetSender {} impl State for SetSender { - type CreatedAt = St::CreatedAt; type Value = St::Value; type Sender = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Value = St::Value; + type Sender = St::Sender; + type CreatedAt = 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 `value` field pub struct value(()); ///Marker type for the `sender` field pub struct sender(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -3769,9 +3769,9 @@ where impl ReactionViewBuilder where St: reaction_view_state::State, - St::CreatedAt: reaction_view_state::IsSet, St::Value: reaction_view_state::IsSet, St::Sender: reaction_view_state::IsSet, + St::CreatedAt: reaction_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReactionView { diff --git a/crates/jacquard-api/src/chat_bsky/convo/send_message.rs b/crates/jacquard-api/src/chat_bsky/convo/send_message.rs index 4ca03030..f809b344 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/send_message.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/send_message.rs @@ -75,37 +75,37 @@ pub mod send_message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ConvoId; type Message; + type ConvoId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ConvoId = Unset; type Message = Unset; - } - ///State transition - sets the `convo_id` field to Set - pub struct SetConvoId(PhantomData St>); - impl sealed::Sealed for SetConvoId {} - impl State for SetConvoId { - type ConvoId = Set; - type Message = St::Message; + type ConvoId = Unset; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData St>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type ConvoId = St::ConvoId; type Message = Set; + type ConvoId = St::ConvoId; + } + ///State transition - sets the `convo_id` field to Set + pub struct SetConvoId(PhantomData St>); + impl sealed::Sealed for SetConvoId {} + impl State for SetConvoId { + type Message = St::Message; + type ConvoId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `convo_id` field - pub struct convo_id(()); ///Marker type for the `message` field pub struct message(()); + ///Marker type for the `convo_id` field + pub struct convo_id(()); } } @@ -175,8 +175,8 @@ where impl SendMessageBuilder where St: send_message_state::State, - St::ConvoId: send_message_state::IsSet, St::Message: send_message_state::IsSet, + St::ConvoId: send_message_state::IsSet, { /// Build the final struct. pub fn build(self) -> SendMessage { diff --git a/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs b/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs index 6c5d5a4b..9fb02527 100644 --- a/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs +++ b/crates/jacquard-api/src/chat_bsky/moderation/get_actor_metadata.rs @@ -193,67 +193,67 @@ pub mod metadata_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type MessagesSent; - type Convos; type MessagesReceived; + type MessagesSent; type ConvosStarted; + type Convos; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type MessagesSent = Unset; - type Convos = Unset; type MessagesReceived = Unset; + type MessagesSent = Unset; type ConvosStarted = Unset; - } - ///State transition - sets the `messages_sent` field to Set - pub struct SetMessagesSent(PhantomData St>); - impl sealed::Sealed for SetMessagesSent {} - impl State for SetMessagesSent { - type MessagesSent = Set; - type Convos = St::Convos; - type MessagesReceived = St::MessagesReceived; - type ConvosStarted = St::ConvosStarted; - } - ///State transition - sets the `convos` field to Set - pub struct SetConvos(PhantomData St>); - impl sealed::Sealed for SetConvos {} - impl State for SetConvos { - type MessagesSent = St::MessagesSent; - type Convos = Set; - type MessagesReceived = St::MessagesReceived; - type ConvosStarted = St::ConvosStarted; + type Convos = Unset; } ///State transition - sets the `messages_received` field to Set pub struct SetMessagesReceived(PhantomData St>); impl sealed::Sealed for SetMessagesReceived {} impl State for SetMessagesReceived { + type MessagesReceived = Set; type MessagesSent = St::MessagesSent; + type ConvosStarted = St::ConvosStarted; type Convos = St::Convos; - type MessagesReceived = Set; + } + ///State transition - sets the `messages_sent` field to Set + pub struct SetMessagesSent(PhantomData St>); + impl sealed::Sealed for SetMessagesSent {} + impl State for SetMessagesSent { + type MessagesReceived = St::MessagesReceived; + type MessagesSent = Set; type ConvosStarted = St::ConvosStarted; + type Convos = St::Convos; } ///State transition - sets the `convos_started` field to Set pub struct SetConvosStarted(PhantomData St>); impl sealed::Sealed for SetConvosStarted {} impl State for SetConvosStarted { + type MessagesReceived = St::MessagesReceived; type MessagesSent = St::MessagesSent; + type ConvosStarted = Set; type Convos = St::Convos; + } + ///State transition - sets the `convos` field to Set + pub struct SetConvos(PhantomData St>); + impl sealed::Sealed for SetConvos {} + impl State for SetConvos { type MessagesReceived = St::MessagesReceived; - type ConvosStarted = Set; + type MessagesSent = St::MessagesSent; + type ConvosStarted = St::ConvosStarted; + type Convos = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `messages_sent` field - pub struct messages_sent(()); - ///Marker type for the `convos` field - pub struct convos(()); ///Marker type for the `messages_received` field pub struct messages_received(()); + ///Marker type for the `messages_sent` field + pub struct messages_sent(()); ///Marker type for the `convos_started` field pub struct convos_started(()); + ///Marker type for the `convos` field + pub struct convos(()); } } @@ -361,10 +361,10 @@ where impl MetadataBuilder where St: metadata_state::State, - St::MessagesSent: metadata_state::IsSet, - St::Convos: metadata_state::IsSet, St::MessagesReceived: metadata_state::IsSet, + St::MessagesSent: metadata_state::IsSet, St::ConvosStarted: metadata_state::IsSet, + St::Convos: metadata_state::IsSet, { /// Build the final struct. pub fn build(self) -> Metadata { diff --git a/crates/jacquard-api/src/club_stellz/evm/address_control.rs b/crates/jacquard-api/src/club_stellz/evm/address_control.rs index 9ae2da32..bad3139b 100644 --- a/crates/jacquard-api/src/club_stellz/evm/address_control.rs +++ b/crates/jacquard-api/src/club_stellz/evm/address_control.rs @@ -522,149 +522,149 @@ pub mod siwe_message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Domain; type Address; - type Uri; - type Version; - type ChainId; type Nonce; + type ChainId; type IssuedAt; - type Domain; + type Uri; + type Version; type Statement; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Domain = Unset; type Address = Unset; - type Uri = Unset; - type Version = Unset; - type ChainId = Unset; type Nonce = Unset; + type ChainId = Unset; type IssuedAt = Unset; - type Domain = Unset; + type Uri = Unset; + type Version = Unset; type Statement = Unset; } + ///State transition - sets the `domain` field to Set + pub struct SetDomain(PhantomData St>); + impl sealed::Sealed for SetDomain {} + impl State for SetDomain { + type Domain = Set; + type Address = St::Address; + type Nonce = St::Nonce; + type ChainId = St::ChainId; + type IssuedAt = St::IssuedAt; + type Uri = St::Uri; + type Version = St::Version; + type Statement = St::Statement; + } ///State transition - sets the `address` field to Set pub struct SetAddress(PhantomData St>); impl sealed::Sealed for SetAddress {} impl State for SetAddress { + type Domain = St::Domain; type Address = Set; - type Uri = St::Uri; - type Version = St::Version; - type ChainId = St::ChainId; type Nonce = St::Nonce; - type IssuedAt = St::IssuedAt; - type Domain = St::Domain; - type Statement = St::Statement; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Address = St::Address; - type Uri = Set; - type Version = St::Version; type ChainId = St::ChainId; - type Nonce = St::Nonce; type IssuedAt = St::IssuedAt; - type Domain = St::Domain; + type Uri = St::Uri; + type Version = St::Version; type Statement = St::Statement; } - ///State transition - sets the `version` field to Set - pub struct SetVersion(PhantomData St>); - impl sealed::Sealed for SetVersion {} - impl State for SetVersion { + ///State transition - sets the `nonce` field to Set + pub struct SetNonce(PhantomData St>); + impl sealed::Sealed for SetNonce {} + impl State for SetNonce { + type Domain = St::Domain; type Address = St::Address; - type Uri = St::Uri; - type Version = Set; + type Nonce = Set; type ChainId = St::ChainId; - type Nonce = St::Nonce; type IssuedAt = St::IssuedAt; - type Domain = St::Domain; + type Uri = St::Uri; + type Version = St::Version; type Statement = St::Statement; } ///State transition - sets the `chain_id` field to Set pub struct SetChainId(PhantomData St>); impl sealed::Sealed for SetChainId {} impl State for SetChainId { + type Domain = St::Domain; type Address = St::Address; - type Uri = St::Uri; - type Version = St::Version; - type ChainId = Set; type Nonce = St::Nonce; + type ChainId = Set; type IssuedAt = St::IssuedAt; - type Domain = St::Domain; - type Statement = St::Statement; - } - ///State transition - sets the `nonce` field to Set - pub struct SetNonce(PhantomData St>); - impl sealed::Sealed for SetNonce {} - impl State for SetNonce { - type Address = St::Address; type Uri = St::Uri; type Version = St::Version; - type ChainId = St::ChainId; - type Nonce = Set; - type IssuedAt = St::IssuedAt; - type Domain = St::Domain; type Statement = St::Statement; } ///State transition - sets the `issued_at` field to Set pub struct SetIssuedAt(PhantomData St>); impl sealed::Sealed for SetIssuedAt {} impl State for SetIssuedAt { + type Domain = St::Domain; type Address = St::Address; - type Uri = St::Uri; - type Version = St::Version; - type ChainId = St::ChainId; type Nonce = St::Nonce; + type ChainId = St::ChainId; type IssuedAt = Set; - type Domain = St::Domain; + type Uri = St::Uri; + type Version = St::Version; type Statement = St::Statement; } - ///State transition - sets the `domain` field to Set - pub struct SetDomain(PhantomData St>); - impl sealed::Sealed for SetDomain {} - impl State for SetDomain { + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Domain = St::Domain; type Address = St::Address; - type Uri = St::Uri; - type Version = St::Version; + type Nonce = St::Nonce; type ChainId = St::ChainId; + type IssuedAt = St::IssuedAt; + type Uri = Set; + type Version = St::Version; + type Statement = St::Statement; + } + ///State transition - sets the `version` field to Set + pub struct SetVersion(PhantomData St>); + impl sealed::Sealed for SetVersion {} + impl State for SetVersion { + type Domain = St::Domain; + type Address = St::Address; type Nonce = St::Nonce; + type ChainId = St::ChainId; type IssuedAt = St::IssuedAt; - type Domain = Set; + type Uri = St::Uri; + type Version = Set; type Statement = St::Statement; } ///State transition - sets the `statement` field to Set pub struct SetStatement(PhantomData St>); impl sealed::Sealed for SetStatement {} impl State for SetStatement { + type Domain = St::Domain; type Address = St::Address; - type Uri = St::Uri; - type Version = St::Version; - type ChainId = St::ChainId; type Nonce = St::Nonce; + type ChainId = St::ChainId; type IssuedAt = St::IssuedAt; - type Domain = St::Domain; + type Uri = St::Uri; + type Version = St::Version; type Statement = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `domain` field + pub struct domain(()); ///Marker type for the `address` field pub struct address(()); - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `version` field - pub struct version(()); - ///Marker type for the `chain_id` field - pub struct chain_id(()); ///Marker type for the `nonce` field pub struct nonce(()); + ///Marker type for the `chain_id` field + pub struct chain_id(()); ///Marker type for the `issued_at` field pub struct issued_at(()); - ///Marker type for the `domain` field - pub struct domain(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `version` field + pub struct version(()); ///Marker type for the `statement` field pub struct statement(()); } @@ -859,13 +859,13 @@ where impl SiweMessageBuilder where St: siwe_message_state::State, + St::Domain: siwe_message_state::IsSet, St::Address: siwe_message_state::IsSet, - St::Uri: siwe_message_state::IsSet, - St::Version: siwe_message_state::IsSet, - St::ChainId: siwe_message_state::IsSet, St::Nonce: siwe_message_state::IsSet, + St::ChainId: siwe_message_state::IsSet, St::IssuedAt: siwe_message_state::IsSet, - St::Domain: siwe_message_state::IsSet, + St::Uri: siwe_message_state::IsSet, + St::Version: siwe_message_state::IsSet, St::Statement: siwe_message_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/com__5jiji/test/publish_video.rs b/crates/jacquard-api/src/com__5jiji/test/publish_video.rs index 817870cc..81f5a7b2 100644 --- a/crates/jacquard-api/src/com__5jiji/test/publish_video.rs +++ b/crates/jacquard-api/src/com__5jiji/test/publish_video.rs @@ -90,7 +90,7 @@ impl jacquard_common::xrpc::XrpcRequest for PublishVideo { type Response = PublishVideoResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, diff --git a/crates/jacquard-api/src/com__5jiji/test/videos.rs b/crates/jacquard-api/src/com__5jiji/test/videos.rs index b65d9420..48c3eccc 100644 --- a/crates/jacquard-api/src/com__5jiji/test/videos.rs +++ b/crates/jacquard-api/src/com__5jiji/test/videos.rs @@ -126,51 +126,51 @@ pub mod videos_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Id; type Creator; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Id = Unset; type Creator = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Id = St::Id; - type Creator = St::Creator; + type Title = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type Title = St::Title; type Id = Set; type Creator = St::Creator; + type Title = St::Title; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData St>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Title = St::Title; type Id = St::Id; type Creator = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Id = St::Id; + type Creator = St::Creator; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `id` field pub struct id(()); ///Marker type for the `creator` field pub struct creator(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -259,9 +259,9 @@ where impl VideosBuilder where St: videos_state::State, - St::Title: videos_state::IsSet, St::Id: videos_state::IsSet, St::Creator: videos_state::IsSet, + St::Title: videos_state::IsSet, { /// Build the final struct. pub fn build(self) -> Videos { diff --git a/crates/jacquard-api/src/com_atproto/admin/send_email.rs b/crates/jacquard-api/src/com_atproto/admin/send_email.rs index 160ea6df..b664007c 100644 --- a/crates/jacquard-api/src/com_atproto/admin/send_email.rs +++ b/crates/jacquard-api/src/com_atproto/admin/send_email.rs @@ -80,50 +80,50 @@ pub mod send_email_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type SenderDid; - type RecipientDid; type Content; + type RecipientDid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type SenderDid = Unset; - type RecipientDid = Unset; type Content = Unset; + type RecipientDid = Unset; } ///State transition - sets the `sender_did` field to Set pub struct SetSenderDid(PhantomData St>); impl sealed::Sealed for SetSenderDid {} impl State for SetSenderDid { type SenderDid = Set; - type RecipientDid = St::RecipientDid; - type Content = St::Content; - } - ///State transition - sets the `recipient_did` field to Set - pub struct SetRecipientDid(PhantomData St>); - impl sealed::Sealed for SetRecipientDid {} - impl State for SetRecipientDid { - type SenderDid = St::SenderDid; - type RecipientDid = Set; type Content = St::Content; + type RecipientDid = St::RecipientDid; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { type SenderDid = St::SenderDid; - type RecipientDid = St::RecipientDid; type Content = Set; + type RecipientDid = St::RecipientDid; + } + ///State transition - sets the `recipient_did` field to Set + pub struct SetRecipientDid(PhantomData St>); + impl sealed::Sealed for SetRecipientDid {} + impl State for SetRecipientDid { + type SenderDid = St::SenderDid; + type Content = St::Content; + type RecipientDid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `sender_did` field pub struct sender_did(()); - ///Marker type for the `recipient_did` field - pub struct recipient_did(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `recipient_did` field + pub struct recipient_did(()); } } @@ -239,8 +239,8 @@ impl SendEmailBuilder where St: send_email_state::State, St::SenderDid: send_email_state::IsSet, - St::RecipientDid: send_email_state::IsSet, St::Content: send_email_state::IsSet, + St::RecipientDid: send_email_state::IsSet, { /// Build the final struct. pub fn build(self) -> SendEmail { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs index 6961ad83..479b10eb 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_password.rs @@ -64,37 +64,37 @@ pub mod update_account_password_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Password; type Did; + type Password; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Password = Unset; type Did = Unset; - } - ///State transition - sets the `password` field to Set - pub struct SetPassword(PhantomData St>); - impl sealed::Sealed for SetPassword {} - impl State for SetPassword { - type Password = Set; - type Did = St::Did; + type Password = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Password = St::Password; type Did = Set; + type Password = St::Password; + } + ///State transition - sets the `password` field to Set + pub struct SetPassword(PhantomData St>); + impl sealed::Sealed for SetPassword {} + impl State for SetPassword { + type Did = St::Did; + type Password = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `password` field - pub struct password(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `password` field + pub struct password(()); } } @@ -173,8 +173,8 @@ where impl UpdateAccountPasswordBuilder where St: update_account_password_state::State, - St::Password: update_account_password_state::IsSet, St::Did: update_account_password_state::IsSet, + St::Password: update_account_password_state::IsSet, { /// Build the final struct. pub fn build(self) -> UpdateAccountPassword { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs index 3c1cead3..918f6645 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_signing_key.rs @@ -65,37 +65,37 @@ pub mod update_account_signing_key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type SigningKey; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type SigningKey = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type SigningKey = St::SigningKey; + type Did = Unset; } ///State transition - sets the `signing_key` field to Set pub struct SetSigningKey(PhantomData St>); impl sealed::Sealed for SetSigningKey {} impl State for SetSigningKey { - type Did = St::Did; type SigningKey = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type SigningKey = St::SigningKey; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `signing_key` field pub struct signing_key(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -179,8 +179,8 @@ where impl UpdateAccountSigningKeyBuilder where St: update_account_signing_key_state::State, - St::Did: update_account_signing_key_state::IsSet, St::SigningKey: update_account_signing_key_state::IsSet, + St::Did: update_account_signing_key_state::IsSet, { /// Build the final struct. pub fn build(self) -> UpdateAccountSigningKey { diff --git a/crates/jacquard-api/src/com_atproto/identity.rs b/crates/jacquard-api/src/com_atproto/identity.rs index 25fc8bb7..8d6dde9b 100644 --- a/crates/jacquard-api/src/com_atproto/identity.rs +++ b/crates/jacquard-api/src/com_atproto/identity.rs @@ -73,49 +73,49 @@ pub mod identity_info_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Handle; + type Did; type DidDoc; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Handle = Unset; + type Did = Unset; type DidDoc = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = St::Handle; - type DidDoc = St::DidDoc; - } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = St::Did; type Handle = Set; + type Did = St::Did; + type DidDoc = St::DidDoc; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = St::Handle; + type Did = Set; type DidDoc = St::DidDoc; } ///State transition - sets the `did_doc` field to Set pub struct SetDidDoc(PhantomData St>); impl sealed::Sealed for SetDidDoc {} impl State for SetDidDoc { - type Did = St::Did; type Handle = St::Handle; + type Did = St::Did; type DidDoc = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `did_doc` field pub struct did_doc(()); } @@ -206,8 +206,8 @@ where impl IdentityInfoBuilder where St: identity_info_state::State, - St::Did: identity_info_state::IsSet, St::Handle: identity_info_state::IsSet, + St::Did: identity_info_state::IsSet, St::DidDoc: identity_info_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/com_atproto/label.rs b/crates/jacquard-api/src/com_atproto/label.rs index 6b894d92..0f5e9236 100644 --- a/crates/jacquard-api/src/com_atproto/label.rs +++ b/crates/jacquard-api/src/com_atproto/label.rs @@ -674,65 +674,65 @@ pub mod label_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Cts; type Val; type Uri; - type Cts; type Src; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Cts = Unset; type Val = Unset; type Uri = Unset; - type Cts = Unset; type Src = Unset; } + ///State transition - sets the `cts` field to Set + pub struct SetCts(PhantomData St>); + impl sealed::Sealed for SetCts {} + impl State for SetCts { + type Cts = Set; + type Val = St::Val; + type Uri = St::Uri; + type Src = St::Src; + } ///State transition - sets the `val` field to Set pub struct SetVal(PhantomData St>); impl sealed::Sealed for SetVal {} impl State for SetVal { + type Cts = St::Cts; type Val = Set; type Uri = St::Uri; - type Cts = St::Cts; type Src = St::Src; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Val = St::Val; - type Uri = Set; type Cts = St::Cts; - type Src = St::Src; - } - ///State transition - sets the `cts` field to Set - pub struct SetCts(PhantomData St>); - impl sealed::Sealed for SetCts {} - impl State for SetCts { type Val = St::Val; - type Uri = St::Uri; - type Cts = Set; + type Uri = Set; type Src = St::Src; } ///State transition - sets the `src` field to Set pub struct SetSrc(PhantomData St>); impl sealed::Sealed for SetSrc {} impl State for SetSrc { + type Cts = St::Cts; type Val = St::Val; type Uri = St::Uri; - type Cts = St::Cts; type Src = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `cts` field + pub struct cts(()); ///Marker type for the `val` field pub struct val(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `cts` field - pub struct cts(()); ///Marker type for the `src` field pub struct src(()); } @@ -917,9 +917,9 @@ impl LabelBuilder { impl LabelBuilder where St: label_state::State, + St::Cts: label_state::IsSet, St::Val: label_state::IsSet, St::Uri: label_state::IsSet, - St::Cts: label_state::IsSet, St::Src: label_state::IsSet, { /// Build the final struct. @@ -1292,67 +1292,67 @@ pub mod label_value_definition_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Blurs; + type Identifier; type Locales; type Severity; - type Identifier; - type Blurs; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Blurs = Unset; + type Identifier = Unset; type Locales = Unset; type Severity = Unset; - type Identifier = Unset; - type Blurs = Unset; + } + ///State transition - sets the `blurs` field to Set + pub struct SetBlurs(PhantomData St>); + impl sealed::Sealed for SetBlurs {} + impl State for SetBlurs { + type Blurs = Set; + type Identifier = St::Identifier; + type Locales = St::Locales; + type Severity = St::Severity; + } + ///State transition - sets the `identifier` field to Set + pub struct SetIdentifier(PhantomData St>); + impl sealed::Sealed for SetIdentifier {} + impl State for SetIdentifier { + type Blurs = St::Blurs; + type Identifier = Set; + type Locales = St::Locales; + type Severity = St::Severity; } ///State transition - sets the `locales` field to Set pub struct SetLocales(PhantomData St>); impl sealed::Sealed for SetLocales {} impl State for SetLocales { + type Blurs = St::Blurs; + type Identifier = St::Identifier; type Locales = Set; type Severity = St::Severity; - type Identifier = St::Identifier; - type Blurs = St::Blurs; } ///State transition - sets the `severity` field to Set pub struct SetSeverity(PhantomData St>); impl sealed::Sealed for SetSeverity {} impl State for SetSeverity { - type Locales = St::Locales; - type Severity = Set; - type Identifier = St::Identifier; - type Blurs = St::Blurs; - } - ///State transition - sets the `identifier` field to Set - pub struct SetIdentifier(PhantomData St>); - impl sealed::Sealed for SetIdentifier {} - impl State for SetIdentifier { - type Locales = St::Locales; - type Severity = St::Severity; - type Identifier = Set; type Blurs = St::Blurs; - } - ///State transition - sets the `blurs` field to Set - pub struct SetBlurs(PhantomData St>); - impl sealed::Sealed for SetBlurs {} - impl State for SetBlurs { - type Locales = St::Locales; - type Severity = St::Severity; type Identifier = St::Identifier; - type Blurs = Set; + type Locales = St::Locales; + type Severity = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `blurs` field + pub struct blurs(()); + ///Marker type for the `identifier` field + pub struct identifier(()); ///Marker type for the `locales` field pub struct locales(()); ///Marker type for the `severity` field pub struct severity(()); - ///Marker type for the `identifier` field - pub struct identifier(()); - ///Marker type for the `blurs` field - pub struct blurs(()); } } @@ -1511,10 +1511,10 @@ where impl LabelValueDefinitionBuilder where St: label_value_definition_state::State, + St::Blurs: label_value_definition_state::IsSet, + St::Identifier: label_value_definition_state::IsSet, St::Locales: label_value_definition_state::IsSet, St::Severity: label_value_definition_state::IsSet, - St::Identifier: label_value_definition_state::IsSet, - St::Blurs: label_value_definition_state::IsSet, { /// Build the final struct. pub fn build(self) -> LabelValueDefinition { @@ -1555,51 +1555,51 @@ pub mod label_value_definition_strings_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type Lang; type Description; + type Lang; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type Lang = Unset; type Description = Unset; + type Lang = Unset; + type Name = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type Description = Set; type Lang = St::Lang; - type Description = St::Description; + type Name = St::Name; } ///State transition - sets the `lang` field to Set pub struct SetLang(PhantomData St>); impl sealed::Sealed for SetLang {} impl State for SetLang { - type Name = St::Name; - type Lang = Set; type Description = St::Description; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { + type Lang = Set; type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Description = St::Description; type Lang = St::Lang; - type Description = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `lang` field - pub struct lang(()); ///Marker type for the `description` field pub struct description(()); + ///Marker type for the `lang` field + pub struct lang(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -1705,9 +1705,9 @@ where impl LabelValueDefinitionStringsBuilder where St: label_value_definition_strings_state::State, - St::Name: label_value_definition_strings_state::IsSet, - St::Lang: label_value_definition_strings_state::IsSet, St::Description: label_value_definition_strings_state::IsSet, + St::Lang: label_value_definition_strings_state::IsSet, + St::Name: label_value_definition_strings_state::IsSet, { /// Build the final struct. pub fn build(self) -> LabelValueDefinitionStrings { diff --git a/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs b/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs index bbfe4560..4d67b93b 100644 --- a/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs +++ b/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs @@ -923,37 +923,37 @@ pub mod create_result_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Cid = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = St::Cid; + type Uri = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = St::Uri; type Cid = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = St::Cid; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -1042,8 +1042,8 @@ impl CreateResultBuilder { impl CreateResultBuilder where St: create_result_state::State, - St::Uri: create_result_state::IsSet, St::Cid: create_result_state::IsSet, + St::Uri: create_result_state::IsSet, { /// Build the final struct. pub fn build(self) -> CreateResult { @@ -1209,37 +1209,37 @@ pub mod apply_writes_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Writes; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Writes = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Writes = St::Writes; + type Repo = Unset; } ///State transition - sets the `writes` field to Set pub struct SetWrites(PhantomData St>); impl sealed::Sealed for SetWrites {} impl State for SetWrites { - type Repo = St::Repo; type Writes = Set; + type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Writes = St::Writes; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `writes` field pub struct writes(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -1340,8 +1340,8 @@ where impl ApplyWritesBuilder where St: apply_writes_state::State, - St::Repo: apply_writes_state::IsSet, St::Writes: apply_writes_state::IsSet, + St::Repo: apply_writes_state::IsSet, { /// Build the final struct. pub fn build(self) -> ApplyWrites { @@ -1378,49 +1378,49 @@ pub mod update_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Value; type Rkey; + type Value; type Collection; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Value = Unset; type Rkey = Unset; + type Value = Unset; type Collection = Unset; } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { - type Value = Set; - type Rkey = St::Rkey; - type Collection = St::Collection; - } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Value = St::Value; type Rkey = Set; + type Value = St::Value; + type Collection = St::Collection; + } + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type Rkey = St::Rkey; + type Value = Set; type Collection = St::Collection; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Value = St::Value; type Rkey = St::Rkey; + type Value = St::Value; type Collection = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `value` field - pub struct value(()); ///Marker type for the `rkey` field pub struct rkey(()); + ///Marker type for the `value` field + pub struct value(()); ///Marker type for the `collection` field pub struct collection(()); } @@ -1511,8 +1511,8 @@ where impl UpdateBuilder where St: update_state::State, - St::Value: update_state::IsSet, St::Rkey: update_state::IsSet, + St::Value: update_state::IsSet, St::Collection: update_state::IsSet, { /// Build the final struct. @@ -1545,37 +1545,37 @@ pub mod update_result_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Cid = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = St::Cid; + type Uri = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = St::Uri; type Cid = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = St::Cid; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -1664,8 +1664,8 @@ impl UpdateResultBuilder { impl UpdateResultBuilder where St: update_result_state::State, - St::Uri: update_result_state::IsSet, St::Cid: update_result_state::IsSet, + St::Uri: update_result_state::IsSet, { /// Build the final struct. pub fn build(self) -> UpdateResult { diff --git a/crates/jacquard-api/src/com_atproto/repo/create_record.rs b/crates/jacquard-api/src/com_atproto/repo/create_record.rs index fbfbef51..8c100643 100644 --- a/crates/jacquard-api/src/com_atproto/repo/create_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/create_record.rs @@ -222,50 +222,50 @@ pub mod create_record_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Record; - type Collection; type Repo; + type Collection; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Record = Unset; - type Collection = Unset; type Repo = Unset; + type Collection = Unset; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { type Record = Set; - type Collection = St::Collection; - type Repo = St::Repo; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData St>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Record = St::Record; - type Collection = Set; type Repo = St::Repo; + type Collection = St::Collection; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { type Record = St::Record; - type Collection = St::Collection; type Repo = Set; + type Collection = St::Collection; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData St>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type Record = St::Record; + type Repo = St::Repo; + type Collection = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `record` field pub struct record(()); - ///Marker type for the `collection` field - pub struct collection(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `collection` field + pub struct collection(()); } } @@ -401,8 +401,8 @@ impl CreateRecordBuilder where St: create_record_state::State, St::Record: create_record_state::IsSet, - St::Collection: create_record_state::IsSet, St::Repo: create_record_state::IsSet, + St::Collection: create_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> CreateRecord { diff --git a/crates/jacquard-api/src/com_atproto/repo/delete_record.rs b/crates/jacquard-api/src/com_atproto/repo/delete_record.rs index 21940442..fa9f4e7c 100644 --- a/crates/jacquard-api/src/com_atproto/repo/delete_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/delete_record.rs @@ -129,50 +129,50 @@ pub mod delete_record_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Rkey; - type Collection; type Repo; + type Collection; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Rkey = Unset; - type Collection = Unset; type Repo = Unset; + type Collection = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { type Rkey = Set; - type Collection = St::Collection; - type Repo = St::Repo; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData St>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Rkey = St::Rkey; - type Collection = Set; type Repo = St::Repo; + type Collection = St::Collection; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { type Rkey = St::Rkey; - type Collection = St::Collection; type Repo = Set; + type Collection = St::Collection; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData St>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type Rkey = St::Rkey; + type Repo = St::Repo; + type Collection = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `rkey` field pub struct rkey(()); - ///Marker type for the `collection` field - pub struct collection(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `collection` field + pub struct collection(()); } } @@ -294,8 +294,8 @@ impl DeleteRecordBuilder where St: delete_record_state::State, St::Rkey: delete_record_state::IsSet, - St::Collection: delete_record_state::IsSet, St::Repo: delete_record_state::IsSet, + St::Collection: delete_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> DeleteRecord { diff --git a/crates/jacquard-api/src/com_atproto/repo/get_record.rs b/crates/jacquard-api/src/com_atproto/repo/get_record.rs index a8a2a835..9b1ecd72 100644 --- a/crates/jacquard-api/src/com_atproto/repo/get_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/get_record.rs @@ -116,51 +116,51 @@ pub mod get_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Collection; type Rkey; type Repo; + type Collection; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Collection = Unset; type Rkey = Unset; type Repo = Unset; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData St>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Collection = Set; - type Rkey = St::Rkey; - type Repo = St::Repo; + type Collection = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Collection = St::Collection; type Rkey = Set; type Repo = St::Repo; + type Collection = St::Collection; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Collection = St::Collection; type Rkey = St::Rkey; type Repo = Set; + type Collection = St::Collection; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData St>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type Rkey = St::Rkey; + type Repo = St::Repo; + type Collection = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `collection` field - pub struct collection(()); ///Marker type for the `rkey` field pub struct rkey(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `collection` field + pub struct collection(()); } } @@ -267,9 +267,9 @@ where impl GetRecordBuilder where St: get_record_state::State, - St::Collection: get_record_state::IsSet, St::Rkey: get_record_state::IsSet, St::Repo: get_record_state::IsSet, + St::Collection: get_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetRecord { diff --git a/crates/jacquard-api/src/com_atproto/repo/import_repo.rs b/crates/jacquard-api/src/com_atproto/repo/import_repo.rs index a5ed2732..3a33f3a6 100644 --- a/crates/jacquard-api/src/com_atproto/repo/import_repo.rs +++ b/crates/jacquard-api/src/com_atproto/repo/import_repo.rs @@ -40,7 +40,7 @@ impl jacquard_common::xrpc::XrpcRequest for ImportRepo { type Response = ImportRepoResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, diff --git a/crates/jacquard-api/src/com_atproto/repo/list_records.rs b/crates/jacquard-api/src/com_atproto/repo/list_records.rs index d79e0221..26732584 100644 --- a/crates/jacquard-api/src/com_atproto/repo/list_records.rs +++ b/crates/jacquard-api/src/com_atproto/repo/list_records.rs @@ -117,37 +117,37 @@ pub mod list_records_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Collection; type Repo; + type Collection; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Collection = Unset; type Repo = Unset; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData St>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Collection = Set; - type Repo = St::Repo; + type Collection = Unset; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Collection = St::Collection; type Repo = Set; + type Collection = St::Collection; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData St>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type Repo = St::Repo; + type Collection = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `collection` field - pub struct collection(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `collection` field + pub struct collection(()); } } @@ -262,8 +262,8 @@ impl ListRecordsBuilder { impl ListRecordsBuilder where St: list_records_state::State, - St::Collection: list_records_state::IsSet, St::Repo: list_records_state::IsSet, + St::Collection: list_records_state::IsSet, { /// Build the final struct. pub fn build(self) -> ListRecords { @@ -287,51 +287,51 @@ pub mod record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Value; - type Cid; type Uri; + type Cid; + type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Value = Unset; - type Cid = Unset; type Uri = Unset; + type Cid = Unset; + type Value = Unset; } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { - type Value = Set; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; type Cid = St::Cid; - type Uri = St::Uri; + type Value = St::Value; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Value = St::Value; - type Cid = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + type Cid = Set; type Value = St::Value; + } + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type Uri = St::Uri; type Cid = St::Cid; - type Uri = Set; + type Value = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `value` field - pub struct value(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `value` field + pub struct value(()); } } @@ -420,9 +420,9 @@ where impl RecordBuilder where St: record_state::State, - St::Value: record_state::IsSet, - St::Cid: record_state::IsSet, St::Uri: record_state::IsSet, + St::Cid: record_state::IsSet, + St::Value: record_state::IsSet, { /// Build the final struct. pub fn build(self) -> Record { diff --git a/crates/jacquard-api/src/com_atproto/repo/put_record.rs b/crates/jacquard-api/src/com_atproto/repo/put_record.rs index 4a1ebe1f..5e7e6597 100644 --- a/crates/jacquard-api/src/com_atproto/repo/put_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/put_record.rs @@ -222,65 +222,65 @@ pub mod put_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Collection; type Record; + type Repo; type Rkey; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Collection = Unset; type Record = Unset; + type Repo = Unset; type Rkey = Unset; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Collection = St::Collection; - type Record = St::Record; - type Rkey = St::Rkey; - } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Repo = St::Repo; type Collection = Set; type Record = St::Record; + type Repo = St::Repo; type Rkey = St::Rkey; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Repo = St::Repo; type Collection = St::Collection; type Record = Set; + type Repo = St::Repo; + type Rkey = St::Rkey; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Collection = St::Collection; + type Record = St::Record; + type Repo = Set; type Rkey = St::Rkey; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Repo = St::Repo; type Collection = St::Collection; type Record = St::Record; + type Repo = St::Repo; type Rkey = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `collection` field pub struct collection(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `repo` field + pub struct repo(()); ///Marker type for the `rkey` field pub struct rkey(()); } @@ -437,9 +437,9 @@ impl PutRecordBuilder { impl PutRecordBuilder where St: put_record_state::State, - St::Repo: put_record_state::IsSet, St::Collection: put_record_state::IsSet, St::Record: put_record_state::IsSet, + St::Repo: put_record_state::IsSet, St::Rkey: put_record_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs b/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs index 759037d4..3afcf441 100644 --- a/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs +++ b/crates/jacquard-api/src/com_atproto/repo/upload_blob.rs @@ -50,7 +50,7 @@ impl jacquard_common::xrpc::XrpcRequest for UploadBlob { type Response = UploadBlobResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, diff --git a/crates/jacquard-api/src/com_atproto/server.rs b/crates/jacquard-api/src/com_atproto/server.rs index b810dc69..ab36f756 100644 --- a/crates/jacquard-api/src/com_atproto/server.rs +++ b/crates/jacquard-api/src/com_atproto/server.rs @@ -118,126 +118,126 @@ pub mod invite_code_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type CreatedBy; + type ForAccount; type Uses; - type Disabled; - type Available; type Code; - type ForAccount; + type Available; + type Disabled; + type CreatedBy; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type CreatedBy = Unset; + type ForAccount = Unset; type Uses = Unset; - type Disabled = Unset; - type Available = Unset; type Code = Unset; - type ForAccount = Unset; + type Available = Unset; + type Disabled = Unset; + type CreatedBy = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type CreatedBy = St::CreatedBy; + type ForAccount = St::ForAccount; type Uses = St::Uses; - type Disabled = St::Disabled; - type Available = St::Available; type Code = St::Code; - type ForAccount = St::ForAccount; + type Available = St::Available; + type Disabled = St::Disabled; + type CreatedBy = St::CreatedBy; } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData St>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { + ///State transition - sets the `for_account` field to Set + pub struct SetForAccount(PhantomData St>); + impl sealed::Sealed for SetForAccount {} + impl State for SetForAccount { type CreatedAt = St::CreatedAt; - type CreatedBy = Set; + type ForAccount = Set; type Uses = St::Uses; - type Disabled = St::Disabled; - type Available = St::Available; type Code = St::Code; - type ForAccount = St::ForAccount; + type Available = St::Available; + type Disabled = St::Disabled; + type CreatedBy = St::CreatedBy; } ///State transition - sets the `uses` field to Set pub struct SetUses(PhantomData St>); impl sealed::Sealed for SetUses {} impl State for SetUses { type CreatedAt = St::CreatedAt; - type CreatedBy = St::CreatedBy; + type ForAccount = St::ForAccount; type Uses = Set; - type Disabled = St::Disabled; - type Available = St::Available; type Code = St::Code; - type ForAccount = St::ForAccount; + type Available = St::Available; + type Disabled = St::Disabled; + type CreatedBy = St::CreatedBy; } - ///State transition - sets the `disabled` field to Set - pub struct SetDisabled(PhantomData St>); - impl sealed::Sealed for SetDisabled {} - impl State for SetDisabled { + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData St>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { type CreatedAt = St::CreatedAt; - type CreatedBy = St::CreatedBy; + type ForAccount = St::ForAccount; type Uses = St::Uses; - type Disabled = Set; + type Code = Set; type Available = St::Available; - type Code = St::Code; - type ForAccount = St::ForAccount; + type Disabled = St::Disabled; + type CreatedBy = St::CreatedBy; } ///State transition - sets the `available` field to Set pub struct SetAvailable(PhantomData St>); impl sealed::Sealed for SetAvailable {} impl State for SetAvailable { type CreatedAt = St::CreatedAt; - type CreatedBy = St::CreatedBy; + type ForAccount = St::ForAccount; type Uses = St::Uses; - type Disabled = St::Disabled; - type Available = Set; type Code = St::Code; - type ForAccount = St::ForAccount; + type Available = Set; + type Disabled = St::Disabled; + type CreatedBy = St::CreatedBy; } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData St>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { + ///State transition - sets the `disabled` field to Set + pub struct SetDisabled(PhantomData St>); + impl sealed::Sealed for SetDisabled {} + impl State for SetDisabled { type CreatedAt = St::CreatedAt; - type CreatedBy = St::CreatedBy; + type ForAccount = St::ForAccount; type Uses = St::Uses; - type Disabled = St::Disabled; + type Code = St::Code; type Available = St::Available; - type Code = Set; - type ForAccount = St::ForAccount; + type Disabled = Set; + type CreatedBy = St::CreatedBy; } - ///State transition - sets the `for_account` field to Set - pub struct SetForAccount(PhantomData St>); - impl sealed::Sealed for SetForAccount {} - impl State for SetForAccount { + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData St>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { type CreatedAt = St::CreatedAt; - type CreatedBy = St::CreatedBy; + type ForAccount = St::ForAccount; type Uses = St::Uses; - type Disabled = St::Disabled; - type Available = St::Available; type Code = St::Code; - type ForAccount = Set; + type Available = St::Available; + type Disabled = St::Disabled; + type CreatedBy = 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 `created_by` field - pub struct created_by(()); + ///Marker type for the `for_account` field + pub struct for_account(()); ///Marker type for the `uses` field pub struct uses(()); - ///Marker type for the `disabled` field - pub struct disabled(()); - ///Marker type for the `available` field - pub struct available(()); ///Marker type for the `code` field pub struct code(()); - ///Marker type for the `for_account` field - pub struct for_account(()); + ///Marker type for the `available` field + pub struct available(()); + ///Marker type for the `disabled` field + pub struct disabled(()); + ///Marker type for the `created_by` field + pub struct created_by(()); } } @@ -411,12 +411,12 @@ impl InviteCodeBuilder where St: invite_code_state::State, St::CreatedAt: invite_code_state::IsSet, - St::CreatedBy: invite_code_state::IsSet, + St::ForAccount: invite_code_state::IsSet, St::Uses: invite_code_state::IsSet, - St::Disabled: invite_code_state::IsSet, - St::Available: invite_code_state::IsSet, St::Code: invite_code_state::IsSet, - St::ForAccount: invite_code_state::IsSet, + St::Available: invite_code_state::IsSet, + St::Disabled: invite_code_state::IsSet, + St::CreatedBy: invite_code_state::IsSet, { /// Build the final struct. pub fn build(self) -> InviteCode { diff --git a/crates/jacquard-api/src/com_atproto/server/create_app_password.rs b/crates/jacquard-api/src/com_atproto/server/create_app_password.rs index 1f399fda..7a1d57aa 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_app_password.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_app_password.rs @@ -157,50 +157,50 @@ pub mod app_password_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type Name; type Password; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type Name = Unset; type Password = Unset; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type Name = St::Name; - type Password = St::Password; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type CreatedAt = St::CreatedAt; - type Name = Set; type Password = St::Password; + type Name = St::Name; } ///State transition - sets the `password` field to Set pub struct SetPassword(PhantomData St>); impl sealed::Sealed for SetPassword {} impl State for SetPassword { type CreatedAt = St::CreatedAt; - type Name = St::Name; type Password = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Password = St::Password; + type Name = 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 `name` field - pub struct name(()); ///Marker type for the `password` field pub struct password(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -303,8 +303,8 @@ impl AppPasswordBuilder where St: app_password_state::State, St::CreatedAt: app_password_state::IsSet, - St::Name: app_password_state::IsSet, St::Password: app_password_state::IsSet, + St::Name: app_password_state::IsSet, { /// Build the final struct. pub fn build(self) -> AppPassword { diff --git a/crates/jacquard-api/src/com_atproto/server/delete_account.rs b/crates/jacquard-api/src/com_atproto/server/delete_account.rs index e5b61917..39d5141c 100644 --- a/crates/jacquard-api/src/com_atproto/server/delete_account.rs +++ b/crates/jacquard-api/src/com_atproto/server/delete_account.rs @@ -116,51 +116,51 @@ pub mod delete_account_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Password; type Did; type Token; - type Password; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Password = Unset; type Did = Unset; type Token = Unset; - type Password = Unset; + } + ///State transition - sets the `password` field to Set + pub struct SetPassword(PhantomData St>); + impl sealed::Sealed for SetPassword {} + impl State for SetPassword { + type Password = Set; + type Did = St::Did; + type Token = St::Token; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { + type Password = St::Password; type Did = Set; type Token = St::Token; - type Password = St::Password; } ///State transition - sets the `token` field to Set pub struct SetToken(PhantomData St>); impl sealed::Sealed for SetToken {} impl State for SetToken { - type Did = St::Did; - type Token = Set; type Password = St::Password; - } - ///State transition - sets the `password` field to Set - pub struct SetPassword(PhantomData St>); - impl sealed::Sealed for SetPassword {} - impl State for SetPassword { type Did = St::Did; - type Token = St::Token; - type Password = Set; + type Token = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `password` field + pub struct password(()); ///Marker type for the `did` field pub struct did(()); ///Marker type for the `token` field pub struct token(()); - ///Marker type for the `password` field - pub struct password(()); } } @@ -249,9 +249,9 @@ where impl DeleteAccountBuilder where St: delete_account_state::State, + St::Password: delete_account_state::IsSet, St::Did: delete_account_state::IsSet, St::Token: delete_account_state::IsSet, - St::Password: delete_account_state::IsSet, { /// Build the final struct. pub fn build(self) -> DeleteAccount { diff --git a/crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs b/crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs index 8e4e0ab6..ca3ab5c3 100644 --- a/crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs +++ b/crates/jacquard-api/src/com_atproto/server/list_app_passwords.rs @@ -141,37 +141,37 @@ pub mod app_password_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = 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 `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -254,8 +254,8 @@ impl AppPasswordBuilder { impl AppPasswordBuilder where St: app_password_state::State, - St::CreatedAt: app_password_state::IsSet, St::Name: app_password_state::IsSet, + St::CreatedAt: app_password_state::IsSet, { /// Build the final struct. pub fn build(self) -> AppPassword { diff --git a/crates/jacquard-api/src/com_atproto/sync/get_record.rs b/crates/jacquard-api/src/com_atproto/sync/get_record.rs index 9d3325f9..23582c61 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_record.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_record.rs @@ -164,51 +164,51 @@ pub mod get_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; - type Collection; type Rkey; + type Collection; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; - type Collection = Unset; type Rkey = Unset; + type Collection = Unset; + type Did = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; + ///State transition - sets the `rkey` field to Set + pub struct SetRkey(PhantomData St>); + impl sealed::Sealed for SetRkey {} + impl State for SetRkey { + type Rkey = Set; type Collection = St::Collection; - type Rkey = St::Rkey; + type Did = St::Did; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Did = St::Did; - type Collection = Set; type Rkey = St::Rkey; - } - ///State transition - sets the `rkey` field to Set - pub struct SetRkey(PhantomData St>); - impl sealed::Sealed for SetRkey {} - impl State for SetRkey { + type Collection = Set; type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Rkey = St::Rkey; type Collection = St::Collection; - type Rkey = Set; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); - ///Marker type for the `collection` field - pub struct collection(()); ///Marker type for the `rkey` field pub struct rkey(()); + ///Marker type for the `collection` field + pub struct collection(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -297,9 +297,9 @@ where impl GetRecordBuilder where St: get_record_state::State, - St::Did: get_record_state::IsSet, - St::Collection: get_record_state::IsSet, St::Rkey: get_record_state::IsSet, + St::Collection: get_record_state::IsSet, + St::Did: get_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetRecord { diff --git a/crates/jacquard-api/src/com_atproto/sync/list_repos.rs b/crates/jacquard-api/src/com_atproto/sync/list_repos.rs index 25b861e4..30f45ee4 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_repos.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_repos.rs @@ -296,51 +296,51 @@ pub mod repo_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Head; type Rev; type Did; + type Head; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Head = Unset; type Rev = Unset; type Did = Unset; - } - ///State transition - sets the `head` field to Set - pub struct SetHead(PhantomData St>); - impl sealed::Sealed for SetHead {} - impl State for SetHead { - type Head = Set; - type Rev = St::Rev; - type Did = St::Did; + type Head = Unset; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData St>); impl sealed::Sealed for SetRev {} impl State for SetRev { - type Head = St::Head; type Rev = Set; type Did = St::Did; + type Head = St::Head; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Head = St::Head; type Rev = St::Rev; type Did = Set; + type Head = St::Head; + } + ///State transition - sets the `head` field to Set + pub struct SetHead(PhantomData St>); + impl sealed::Sealed for SetHead {} + impl State for SetHead { + type Rev = St::Rev; + type Did = St::Did; + type Head = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `head` field - pub struct head(()); ///Marker type for the `rev` field pub struct rev(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `head` field + pub struct head(()); } } @@ -461,9 +461,9 @@ impl RepoBuilder { impl RepoBuilder where St: repo_state::State, - St::Head: repo_state::IsSet, St::Rev: repo_state::IsSet, St::Did: repo_state::IsSet, + St::Head: repo_state::IsSet, { /// Build the final struct. pub fn build(self) -> Repo { diff --git a/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs b/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs index 9ecd51b1..4cb32941 100644 --- a/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs +++ b/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs @@ -664,67 +664,67 @@ pub mod account_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Seq; type Did; - type Time; type Active; - type Seq; + type Time; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Seq = Unset; type Did = Unset; - type Time = Unset; type Active = Unset; - type Seq = Unset; + type Time = Unset; + } + ///State transition - sets the `seq` field to Set + pub struct SetSeq(PhantomData St>); + impl sealed::Sealed for SetSeq {} + impl State for SetSeq { + type Seq = Set; + type Did = St::Did; + type Active = St::Active; + type Time = St::Time; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Did = Set; - type Time = St::Time; - type Active = St::Active; type Seq = St::Seq; - } - ///State transition - sets the `time` field to Set - pub struct SetTime(PhantomData St>); - impl sealed::Sealed for SetTime {} - impl State for SetTime { - type Did = St::Did; - type Time = Set; + type Did = Set; type Active = St::Active; - type Seq = St::Seq; + type Time = St::Time; } ///State transition - sets the `active` field to Set pub struct SetActive(PhantomData St>); impl sealed::Sealed for SetActive {} impl State for SetActive { + type Seq = St::Seq; type Did = St::Did; - type Time = St::Time; type Active = Set; - type Seq = St::Seq; + type Time = St::Time; } - ///State transition - sets the `seq` field to Set - pub struct SetSeq(PhantomData St>); - impl sealed::Sealed for SetSeq {} - impl State for SetSeq { + ///State transition - sets the `time` field to Set + pub struct SetTime(PhantomData St>); + impl sealed::Sealed for SetTime {} + impl State for SetTime { + type Seq = St::Seq; type Did = St::Did; - type Time = St::Time; type Active = St::Active; - type Seq = Set; + type Time = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `seq` field + pub struct seq(()); ///Marker type for the `did` field pub struct did(()); - ///Marker type for the `time` field - pub struct time(()); ///Marker type for the `active` field pub struct active(()); - ///Marker type for the `seq` field - pub struct seq(()); + ///Marker type for the `time` field + pub struct time(()); } } @@ -851,10 +851,10 @@ where impl AccountBuilder where St: account_state::State, + St::Seq: account_state::IsSet, St::Did: account_state::IsSet, - St::Time: account_state::IsSet, St::Active: account_state::IsSet, - St::Seq: account_state::IsSet, + St::Time: account_state::IsSet, { /// Build the final struct. pub fn build(self) -> Account { @@ -1305,205 +1305,205 @@ pub mod commit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Time; + type Rev; type Seq; type TooBig; + type Commit; type Ops; - type Rev; - type Rebase; - type Repo; type Blocks; + type Repo; type Blobs; - type Commit; + type Time; + type Rebase; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Time = Unset; + type Rev = Unset; type Seq = Unset; type TooBig = Unset; + type Commit = Unset; type Ops = Unset; - type Rev = Unset; - type Rebase = Unset; - type Repo = Unset; type Blocks = Unset; + type Repo = Unset; type Blobs = Unset; - type Commit = Unset; + type Time = Unset; + type Rebase = Unset; } - ///State transition - sets the `time` field to Set - pub struct SetTime(PhantomData St>); - impl sealed::Sealed for SetTime {} - impl State for SetTime { - type Time = Set; + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData St>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Rev = Set; type Seq = St::Seq; type TooBig = St::TooBig; + type Commit = St::Commit; type Ops = St::Ops; - type Rev = St::Rev; - type Rebase = St::Rebase; - type Repo = St::Repo; type Blocks = St::Blocks; + type Repo = St::Repo; type Blobs = St::Blobs; - type Commit = St::Commit; + type Time = St::Time; + type Rebase = St::Rebase; } ///State transition - sets the `seq` field to Set pub struct SetSeq(PhantomData St>); impl sealed::Sealed for SetSeq {} impl State for SetSeq { - type Time = St::Time; + type Rev = St::Rev; type Seq = Set; type TooBig = St::TooBig; + type Commit = St::Commit; type Ops = St::Ops; - type Rev = St::Rev; - type Rebase = St::Rebase; - type Repo = St::Repo; type Blocks = St::Blocks; + type Repo = St::Repo; type Blobs = St::Blobs; - type Commit = St::Commit; + type Time = St::Time; + type Rebase = St::Rebase; } ///State transition - sets the `too_big` field to Set pub struct SetTooBig(PhantomData St>); impl sealed::Sealed for SetTooBig {} impl State for SetTooBig { - type Time = St::Time; + type Rev = St::Rev; type Seq = St::Seq; type TooBig = Set; + type Commit = St::Commit; type Ops = St::Ops; - type Rev = St::Rev; - type Rebase = St::Rebase; + type Blocks = St::Blocks; type Repo = St::Repo; + type Blobs = St::Blobs; + type Time = St::Time; + type Rebase = St::Rebase; + } + ///State transition - sets the `commit` field to Set + pub struct SetCommit(PhantomData St>); + impl sealed::Sealed for SetCommit {} + impl State for SetCommit { + type Rev = St::Rev; + type Seq = St::Seq; + type TooBig = St::TooBig; + type Commit = Set; + type Ops = St::Ops; type Blocks = St::Blocks; + type Repo = St::Repo; type Blobs = St::Blobs; - type Commit = St::Commit; + type Time = St::Time; + type Rebase = St::Rebase; } ///State transition - sets the `ops` field to Set pub struct SetOps(PhantomData St>); impl sealed::Sealed for SetOps {} impl State for SetOps { - type Time = St::Time; + type Rev = St::Rev; type Seq = St::Seq; type TooBig = St::TooBig; + type Commit = St::Commit; type Ops = Set; - type Rev = St::Rev; - type Rebase = St::Rebase; - type Repo = St::Repo; type Blocks = St::Blocks; + type Repo = St::Repo; type Blobs = St::Blobs; - type Commit = St::Commit; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData St>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { type Time = St::Time; - type Seq = St::Seq; - type TooBig = St::TooBig; - type Ops = St::Ops; - type Rev = Set; type Rebase = St::Rebase; - type Repo = St::Repo; - type Blocks = St::Blocks; - type Blobs = St::Blobs; - type Commit = St::Commit; } - ///State transition - sets the `rebase` field to Set - pub struct SetRebase(PhantomData St>); - impl sealed::Sealed for SetRebase {} - impl State for SetRebase { - type Time = St::Time; + ///State transition - sets the `blocks` field to Set + pub struct SetBlocks(PhantomData St>); + impl sealed::Sealed for SetBlocks {} + impl State for SetBlocks { + type Rev = St::Rev; type Seq = St::Seq; type TooBig = St::TooBig; + type Commit = St::Commit; type Ops = St::Ops; - type Rev = St::Rev; - type Rebase = Set; + type Blocks = Set; type Repo = St::Repo; - type Blocks = St::Blocks; type Blobs = St::Blobs; - type Commit = St::Commit; + type Time = St::Time; + type Rebase = St::Rebase; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Time = St::Time; + type Rev = St::Rev; type Seq = St::Seq; type TooBig = St::TooBig; + type Commit = St::Commit; type Ops = St::Ops; - type Rev = St::Rev; - type Rebase = St::Rebase; - type Repo = Set; type Blocks = St::Blocks; + type Repo = Set; type Blobs = St::Blobs; - type Commit = St::Commit; - } - ///State transition - sets the `blocks` field to Set - pub struct SetBlocks(PhantomData St>); - impl sealed::Sealed for SetBlocks {} - impl State for SetBlocks { type Time = St::Time; - type Seq = St::Seq; - type TooBig = St::TooBig; - type Ops = St::Ops; - type Rev = St::Rev; type Rebase = St::Rebase; - type Repo = St::Repo; - type Blocks = Set; - type Blobs = St::Blobs; - type Commit = St::Commit; } ///State transition - sets the `blobs` field to Set pub struct SetBlobs(PhantomData St>); impl sealed::Sealed for SetBlobs {} impl State for SetBlobs { - type Time = St::Time; + type Rev = St::Rev; type Seq = St::Seq; type TooBig = St::TooBig; + type Commit = St::Commit; type Ops = St::Ops; - type Rev = St::Rev; - type Rebase = St::Rebase; - type Repo = St::Repo; type Blocks = St::Blocks; + type Repo = St::Repo; type Blobs = Set; - type Commit = St::Commit; - } - ///State transition - sets the `commit` field to Set - pub struct SetCommit(PhantomData St>); - impl sealed::Sealed for SetCommit {} - impl State for SetCommit { type Time = St::Time; + type Rebase = St::Rebase; + } + ///State transition - sets the `time` field to Set + pub struct SetTime(PhantomData St>); + impl sealed::Sealed for SetTime {} + impl State for SetTime { + type Rev = St::Rev; type Seq = St::Seq; type TooBig = St::TooBig; + type Commit = St::Commit; type Ops = St::Ops; - type Rev = St::Rev; - type Rebase = St::Rebase; + type Blocks = St::Blocks; type Repo = St::Repo; + type Blobs = St::Blobs; + type Time = Set; + type Rebase = St::Rebase; + } + ///State transition - sets the `rebase` field to Set + pub struct SetRebase(PhantomData St>); + impl sealed::Sealed for SetRebase {} + impl State for SetRebase { + type Rev = St::Rev; + type Seq = St::Seq; + type TooBig = St::TooBig; + type Commit = St::Commit; + type Ops = St::Ops; type Blocks = St::Blocks; + type Repo = St::Repo; type Blobs = St::Blobs; - type Commit = Set; + type Time = St::Time; + type Rebase = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `time` field - pub struct time(()); + ///Marker type for the `rev` field + pub struct rev(()); ///Marker type for the `seq` field pub struct seq(()); ///Marker type for the `too_big` field pub struct too_big(()); + ///Marker type for the `commit` field + pub struct commit(()); ///Marker type for the `ops` field pub struct ops(()); - ///Marker type for the `rev` field - pub struct rev(()); - ///Marker type for the `rebase` field - pub struct rebase(()); - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `blocks` field pub struct blocks(()); + ///Marker type for the `repo` field + pub struct repo(()); ///Marker type for the `blobs` field pub struct blobs(()); - ///Marker type for the `commit` field - pub struct commit(()); + ///Marker type for the `time` field + pub struct time(()); + ///Marker type for the `rebase` field + pub struct rebase(()); } } @@ -1777,16 +1777,16 @@ where impl CommitBuilder where St: commit_state::State, - St::Time: commit_state::IsSet, + St::Rev: commit_state::IsSet, St::Seq: commit_state::IsSet, St::TooBig: commit_state::IsSet, + St::Commit: commit_state::IsSet, St::Ops: commit_state::IsSet, - St::Rev: commit_state::IsSet, - St::Rebase: commit_state::IsSet, - St::Repo: commit_state::IsSet, St::Blocks: commit_state::IsSet, + St::Repo: commit_state::IsSet, St::Blobs: commit_state::IsSet, - St::Commit: commit_state::IsSet, + St::Time: commit_state::IsSet, + St::Rebase: commit_state::IsSet, { /// Build the final struct. pub fn build(self) -> Commit { @@ -1837,50 +1837,50 @@ pub mod identity_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Time; - type Did; type Seq; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Time = Unset; - type Did = Unset; type Seq = Unset; + type Did = Unset; } ///State transition - sets the `time` field to Set pub struct SetTime(PhantomData St>); impl sealed::Sealed for SetTime {} impl State for SetTime { type Time = Set; - type Did = St::Did; - type Seq = St::Seq; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Time = St::Time; - type Did = Set; type Seq = St::Seq; + type Did = St::Did; } ///State transition - sets the `seq` field to Set pub struct SetSeq(PhantomData St>); impl sealed::Sealed for SetSeq {} impl State for SetSeq { type Time = St::Time; - type Did = St::Did; type Seq = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Time = St::Time; + type Seq = St::Seq; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `time` field pub struct time(()); - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `seq` field pub struct seq(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -1983,8 +1983,8 @@ impl IdentityBuilder where St: identity_state::State, St::Time: identity_state::IsSet, - St::Did: identity_state::IsSet, St::Seq: identity_state::IsSet, + St::Did: identity_state::IsSet, { /// Build the final struct. pub fn build(self) -> Identity { @@ -2251,85 +2251,85 @@ pub mod sync_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Blocks; - type Rev; - type Seq; - type Did; type Time; + type Did; + type Seq; + type Rev; + type Blocks; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Blocks = Unset; - type Rev = Unset; - type Seq = Unset; - type Did = Unset; type Time = Unset; + type Did = Unset; + type Seq = Unset; + type Rev = Unset; + type Blocks = Unset; } - ///State transition - sets the `blocks` field to Set - pub struct SetBlocks(PhantomData St>); - impl sealed::Sealed for SetBlocks {} - impl State for SetBlocks { - type Blocks = Set; - type Rev = St::Rev; - type Seq = St::Seq; + ///State transition - sets the `time` field to Set + pub struct SetTime(PhantomData St>); + impl sealed::Sealed for SetTime {} + impl State for SetTime { + type Time = Set; type Did = St::Did; - type Time = St::Time; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData St>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { - type Blocks = St::Blocks; - type Rev = Set; type Seq = St::Seq; - type Did = St::Did; - type Time = St::Time; - } - ///State transition - sets the `seq` field to Set - pub struct SetSeq(PhantomData St>); - impl sealed::Sealed for SetSeq {} - impl State for SetSeq { - type Blocks = St::Blocks; type Rev = St::Rev; - type Seq = Set; - type Did = St::Did; - type Time = St::Time; + type Blocks = St::Blocks; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Blocks = St::Blocks; - type Rev = St::Rev; - type Seq = St::Seq; - type Did = Set; type Time = St::Time; - } - ///State transition - sets the `time` field to Set - pub struct SetTime(PhantomData St>); - impl sealed::Sealed for SetTime {} - impl State for SetTime { + type Did = Set; + type Seq = St::Seq; + type Rev = St::Rev; type Blocks = St::Blocks; + } + ///State transition - sets the `seq` field to Set + pub struct SetSeq(PhantomData St>); + impl sealed::Sealed for SetSeq {} + impl State for SetSeq { + type Time = St::Time; + type Did = St::Did; + type Seq = Set; type Rev = St::Rev; + type Blocks = St::Blocks; + } + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData St>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Time = St::Time; + type Did = St::Did; type Seq = St::Seq; + type Rev = Set; + type Blocks = St::Blocks; + } + ///State transition - sets the `blocks` field to Set + pub struct SetBlocks(PhantomData St>); + impl sealed::Sealed for SetBlocks {} + impl State for SetBlocks { + type Time = St::Time; type Did = St::Did; - type Time = Set; + type Seq = St::Seq; + type Rev = St::Rev; + type Blocks = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `blocks` field - pub struct blocks(()); - ///Marker type for the `rev` field - pub struct rev(()); - ///Marker type for the `seq` field - pub struct seq(()); - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `time` field pub struct time(()); + ///Marker type for the `did` field + pub struct did(()); + ///Marker type for the `seq` field + pub struct seq(()); + ///Marker type for the `rev` field + pub struct rev(()); + ///Marker type for the `blocks` field + pub struct blocks(()); } } @@ -2453,11 +2453,11 @@ where impl SyncBuilder where St: sync_state::State, - St::Blocks: sync_state::IsSet, - St::Rev: sync_state::IsSet, - St::Seq: sync_state::IsSet, - St::Did: sync_state::IsSet, St::Time: sync_state::IsSet, + St::Did: sync_state::IsSet, + St::Seq: sync_state::IsSet, + St::Rev: sync_state::IsSet, + St::Blocks: sync_state::IsSet, { /// Build the final struct. pub fn build(self) -> Sync { diff --git a/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs b/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs index f83c9d84..754848ab 100644 --- a/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs +++ b/crates/jacquard-api/src/com_atproto/temp/check_handle_availability.rs @@ -593,37 +593,37 @@ pub mod suggestion_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Method; type Handle; + type Method; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Method = Unset; type Handle = Unset; - } - ///State transition - sets the `method` field to Set - pub struct SetMethod(PhantomData St>); - impl sealed::Sealed for SetMethod {} - impl State for SetMethod { - type Method = Set; - type Handle = St::Handle; + type Method = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Method = St::Method; type Handle = Set; + type Method = St::Method; + } + ///State transition - sets the `method` field to Set + pub struct SetMethod(PhantomData St>); + impl sealed::Sealed for SetMethod {} + impl State for SetMethod { + type Handle = St::Handle; + type Method = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `method` field - pub struct method(()); ///Marker type for the `handle` field pub struct handle(()); + ///Marker type for the `method` field + pub struct method(()); } } @@ -693,8 +693,8 @@ where impl SuggestionBuilder where St: suggestion_state::State, - St::Method: suggestion_state::IsSet, St::Handle: suggestion_state::IsSet, + St::Method: suggestion_state::IsSet, { /// Build the final struct. pub fn build(self) -> Suggestion { diff --git a/crates/jacquard-api/src/com_chrisvanderloo/project.rs b/crates/jacquard-api/src/com_chrisvanderloo/project.rs index f2502131..5059c83c 100644 --- a/crates/jacquard-api/src/com_chrisvanderloo/project.rs +++ b/crates/jacquard-api/src/com_chrisvanderloo/project.rs @@ -170,67 +170,67 @@ pub mod project_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Language; - type Description; type Title; type Repo; + type Description; + type Language; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Language = Unset; - type Description = Unset; type Title = Unset; type Repo = Unset; - } - ///State transition - sets the `language` field to Set - pub struct SetLanguage(PhantomData St>); - impl sealed::Sealed for SetLanguage {} - impl State for SetLanguage { - type Language = Set; - type Description = St::Description; - type Title = St::Title; - type Repo = St::Repo; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { - type Language = St::Language; - type Description = Set; - type Title = St::Title; - type Repo = St::Repo; + type Description = Unset; + type Language = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Language = St::Language; - type Description = St::Description; type Title = Set; type Repo = St::Repo; + type Description = St::Description; + type Language = St::Language; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Language = St::Language; - type Description = St::Description; type Title = St::Title; type Repo = Set; + type Description = St::Description; + type Language = St::Language; + } + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type Title = St::Title; + type Repo = St::Repo; + type Description = Set; + type Language = St::Language; + } + ///State transition - sets the `language` field to Set + pub struct SetLanguage(PhantomData St>); + impl sealed::Sealed for SetLanguage {} + impl State for SetLanguage { + type Title = St::Title; + type Repo = St::Repo; + type Description = St::Description; + type Language = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `language` field - pub struct language(()); - ///Marker type for the `description` field - pub struct description(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `description` field + pub struct description(()); + ///Marker type for the `language` field + pub struct language(()); } } @@ -351,10 +351,10 @@ where impl ProjectBuilder where St: project_state::State, - St::Language: project_state::IsSet, - St::Description: project_state::IsSet, St::Title: project_state::IsSet, St::Repo: project_state::IsSet, + St::Description: project_state::IsSet, + St::Language: project_state::IsSet, { /// Build the final struct. pub fn build(self) -> Project { diff --git a/crates/jacquard-api/src/com_crabdance/nandi/post.rs b/crates/jacquard-api/src/com_crabdance/nandi/post.rs index b519cebd..5effe870 100644 --- a/crates/jacquard-api/src/com_crabdance/nandi/post.rs +++ b/crates/jacquard-api/src/com_crabdance/nandi/post.rs @@ -194,51 +194,51 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Content; type CreatedAt; type Title; - type Content; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Content = Unset; type CreatedAt = Unset; type Title = Unset; - type Content = Unset; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Content = Set; + type CreatedAt = St::CreatedAt; + type Title = St::Title; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Content = St::Content; type CreatedAt = Set; type Title = St::Title; - type Content = St::Content; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type CreatedAt = St::CreatedAt; - type Title = Set; type Content = St::Content; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { type CreatedAt = St::CreatedAt; - type Title = St::Title; - type Content = Set; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `content` field + pub struct content(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `content` field - pub struct content(()); } } @@ -387,9 +387,9 @@ impl PostBuilder { impl PostBuilder where St: post_state::State, + St::Content: post_state::IsSet, St::CreatedAt: post_state::IsSet, St::Title: post_state::IsSet, - St::Content: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/com_deckbelcher/collection/list.rs b/crates/jacquard-api/src/com_deckbelcher/collection/list.rs index feefbc2d..885e22ec 100644 --- a/crates/jacquard-api/src/com_deckbelcher/collection/list.rs +++ b/crates/jacquard-api/src/com_deckbelcher/collection/list.rs @@ -217,37 +217,37 @@ pub mod card_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AddedAt; type Ref; + type AddedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AddedAt = Unset; type Ref = Unset; - } - ///State transition - sets the `added_at` field to Set - pub struct SetAddedAt(PhantomData St>); - impl sealed::Sealed for SetAddedAt {} - impl State for SetAddedAt { - type AddedAt = Set; - type Ref = St::Ref; + type AddedAt = Unset; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type AddedAt = St::AddedAt; type Ref = Set; + type AddedAt = St::AddedAt; + } + ///State transition - sets the `added_at` field to Set + pub struct SetAddedAt(PhantomData St>); + impl sealed::Sealed for SetAddedAt {} + impl State for SetAddedAt { + type Ref = St::Ref; + type AddedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `added_at` field - pub struct added_at(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `added_at` field + pub struct added_at(()); } } @@ -317,8 +317,8 @@ where impl CardItemBuilder where St: card_item_state::State, - St::AddedAt: card_item_state::IsSet, St::Ref: card_item_state::IsSet, + St::AddedAt: card_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> CardItem { @@ -510,37 +510,37 @@ pub mod deck_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AddedAt; type Ref; + type AddedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AddedAt = Unset; type Ref = Unset; - } - ///State transition - sets the `added_at` field to Set - pub struct SetAddedAt(PhantomData St>); - impl sealed::Sealed for SetAddedAt {} - impl State for SetAddedAt { - type AddedAt = Set; - type Ref = St::Ref; + type AddedAt = Unset; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type AddedAt = St::AddedAt; type Ref = Set; + type AddedAt = St::AddedAt; + } + ///State transition - sets the `added_at` field to Set + pub struct SetAddedAt(PhantomData St>); + impl sealed::Sealed for SetAddedAt {} + impl State for SetAddedAt { + type Ref = St::Ref; + type AddedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `added_at` field - pub struct added_at(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `added_at` field + pub struct added_at(()); } } @@ -610,8 +610,8 @@ where impl DeckItemBuilder where St: deck_item_state::State, - St::AddedAt: deck_item_state::IsSet, St::Ref: deck_item_state::IsSet, + St::AddedAt: deck_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> DeckItem { @@ -641,51 +641,51 @@ pub mod list_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Name; type Items; + type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Name = Unset; type Items = Unset; + type Name = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `items` field to Set + pub struct SetItems(PhantomData St>); + impl sealed::Sealed for SetItems {} + impl State for SetItems { + type Items = Set; type Name = St::Name; - type Items = St::Items; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; - type Name = Set; type Items = St::Items; - } - ///State transition - sets the `items` field to Set - pub struct SetItems(PhantomData St>); - impl sealed::Sealed for SetItems {} - impl State for SetItems { + type Name = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Items = St::Items; type Name = St::Name; - type Items = Set; + type CreatedAt = 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 `name` field - pub struct name(()); ///Marker type for the `items` field pub struct items(()); + ///Marker type for the `name` field + pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -806,9 +806,9 @@ impl ListBuilder { impl ListBuilder where St: list_state::State, - St::CreatedAt: list_state::IsSet, - St::Name: list_state::IsSet, St::Items: list_state::IsSet, + St::Name: list_state::IsSet, + St::CreatedAt: list_state::IsSet, { /// Build the final struct. pub fn build(self) -> List { diff --git a/crates/jacquard-api/src/com_deckbelcher/deck/list.rs b/crates/jacquard-api/src/com_deckbelcher/deck/list.rs index f7f380a8..d861ba35 100644 --- a/crates/jacquard-api/src/com_deckbelcher/deck/list.rs +++ b/crates/jacquard-api/src/com_deckbelcher/deck/list.rs @@ -531,51 +531,51 @@ pub mod card_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Quantity; - type Section; type Ref; + type Section; + type Quantity; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Quantity = Unset; - type Section = Unset; type Ref = Unset; + type Section = Unset; + type Quantity = Unset; } - ///State transition - sets the `quantity` field to Set - pub struct SetQuantity(PhantomData St>); - impl sealed::Sealed for SetQuantity {} - impl State for SetQuantity { - type Quantity = Set; + ///State transition - sets the `ref` field to Set + pub struct SetRef(PhantomData St>); + impl sealed::Sealed for SetRef {} + impl State for SetRef { + type Ref = Set; type Section = St::Section; - type Ref = St::Ref; + type Quantity = St::Quantity; } ///State transition - sets the `section` field to Set pub struct SetSection(PhantomData St>); impl sealed::Sealed for SetSection {} impl State for SetSection { - type Quantity = St::Quantity; - type Section = Set; type Ref = St::Ref; - } - ///State transition - sets the `ref` field to Set - pub struct SetRef(PhantomData St>); - impl sealed::Sealed for SetRef {} - impl State for SetRef { + type Section = Set; type Quantity = St::Quantity; + } + ///State transition - sets the `quantity` field to Set + pub struct SetQuantity(PhantomData St>); + impl sealed::Sealed for SetQuantity {} + impl State for SetQuantity { + type Ref = St::Ref; type Section = St::Section; - type Ref = Set; + type Quantity = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `quantity` field - pub struct quantity(()); - ///Marker type for the `section` field - pub struct section(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `section` field + pub struct section(()); + ///Marker type for the `quantity` field + pub struct quantity(()); } } @@ -677,9 +677,9 @@ impl CardBuilder { impl CardBuilder where St: card_state::State, - St::Quantity: card_state::IsSet, - St::Section: card_state::IsSet, St::Ref: card_state::IsSet, + St::Section: card_state::IsSet, + St::Quantity: card_state::IsSet, { /// Build the final struct. pub fn build(self) -> Card { @@ -954,51 +954,51 @@ pub mod list_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cards; type Name; type CreatedAt; + type Cards; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cards = Unset; type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `cards` field to Set - pub struct SetCards(PhantomData St>); - impl sealed::Sealed for SetCards {} - impl State for SetCards { - type Cards = Set; - type Name = St::Name; - type CreatedAt = St::CreatedAt; + type Cards = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Cards = St::Cards; type Name = Set; type CreatedAt = St::CreatedAt; + type Cards = St::Cards; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Cards = St::Cards; type Name = St::Name; type CreatedAt = Set; + type Cards = St::Cards; + } + ///State transition - sets the `cards` field to Set + pub struct SetCards(PhantomData St>); + impl sealed::Sealed for SetCards {} + impl State for SetCards { + type Name = St::Name; + type CreatedAt = St::CreatedAt; + type Cards = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cards` field - pub struct cards(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `cards` field + pub struct cards(()); } } @@ -1133,9 +1133,9 @@ impl ListBuilder { impl ListBuilder where St: list_state::State, - St::Cards: list_state::IsSet, St::Name: list_state::IsSet, St::CreatedAt: list_state::IsSet, + St::Cards: list_state::IsSet, { /// Build the final struct. pub fn build(self) -> List { diff --git a/crates/jacquard-api/src/com_deckbelcher/richtext/facet.rs b/crates/jacquard-api/src/com_deckbelcher/richtext/facet.rs index 180062be..90542759 100644 --- a/crates/jacquard-api/src/com_deckbelcher/richtext/facet.rs +++ b/crates/jacquard-api/src/com_deckbelcher/richtext/facet.rs @@ -949,37 +949,37 @@ pub mod facet_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Index; type Features; + type Index; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Index = Unset; type Features = Unset; - } - ///State transition - sets the `index` field to Set - pub struct SetIndex(PhantomData St>); - impl sealed::Sealed for SetIndex {} - impl State for SetIndex { - type Index = Set; - type Features = St::Features; + type Index = Unset; } ///State transition - sets the `features` field to Set pub struct SetFeatures(PhantomData St>); impl sealed::Sealed for SetFeatures {} impl State for SetFeatures { - type Index = St::Index; type Features = Set; + type Index = St::Index; + } + ///State transition - sets the `index` field to Set + pub struct SetIndex(PhantomData St>); + impl sealed::Sealed for SetIndex {} + impl State for SetIndex { + type Features = St::Features; + type Index = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `index` field - pub struct index(()); ///Marker type for the `features` field pub struct features(()); + ///Marker type for the `index` field + pub struct index(()); } } @@ -1049,8 +1049,8 @@ where impl FacetBuilder where St: facet_state::State, - St::Index: facet_state::IsSet, St::Features: facet_state::IsSet, + St::Index: facet_state::IsSet, { /// Build the final struct. pub fn build(self) -> Facet { diff --git a/crates/jacquard-api/src/com_deckbelcher/social/reply.rs b/crates/jacquard-api/src/com_deckbelcher/social/reply.rs index 7788a927..63348cff 100644 --- a/crates/jacquard-api/src/com_deckbelcher/social/reply.rs +++ b/crates/jacquard-api/src/com_deckbelcher/social/reply.rs @@ -121,67 +121,67 @@ pub mod reply_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Content; type Parent; type Root; type CreatedAt; - type Content; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Content = Unset; type Parent = Unset; type Root = Unset; type CreatedAt = Unset; - type Content = Unset; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Content = Set; + type Parent = St::Parent; + type Root = St::Root; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData St>); impl sealed::Sealed for SetParent {} impl State for SetParent { + type Content = St::Content; type Parent = Set; type Root = St::Root; type CreatedAt = St::CreatedAt; - type Content = St::Content; } ///State transition - sets the `root` field to Set pub struct SetRoot(PhantomData St>); impl sealed::Sealed for SetRoot {} impl State for SetRoot { + type Content = St::Content; type Parent = St::Parent; type Root = Set; type CreatedAt = St::CreatedAt; - type Content = St::Content; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Parent = St::Parent; - type Root = St::Root; - type CreatedAt = Set; type Content = St::Content; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { type Parent = St::Parent; type Root = St::Root; - type CreatedAt = St::CreatedAt; - type Content = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `content` field + pub struct content(()); ///Marker type for the `parent` field pub struct parent(()); ///Marker type for the `root` field pub struct root(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `content` field - pub struct content(()); } } @@ -308,10 +308,10 @@ impl ReplyBuilder { impl ReplyBuilder where St: reply_state::State, + St::Content: reply_state::IsSet, St::Parent: reply_state::IsSet, St::Root: reply_state::IsSet, St::CreatedAt: reply_state::IsSet, - St::Content: reply_state::IsSet, { /// Build the final struct. pub fn build(self) -> Reply { diff --git a/crates/jacquard-api/src/com_germnetwork/declaration.rs b/crates/jacquard-api/src/com_germnetwork/declaration.rs index 7ed14496..a6439946 100644 --- a/crates/jacquard-api/src/com_germnetwork/declaration.rs +++ b/crates/jacquard-api/src/com_germnetwork/declaration.rs @@ -315,37 +315,37 @@ pub mod declaration_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CurrentKey; type Version; + type CurrentKey; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CurrentKey = Unset; type Version = Unset; - } - ///State transition - sets the `current_key` field to Set - pub struct SetCurrentKey(PhantomData St>); - impl sealed::Sealed for SetCurrentKey {} - impl State for SetCurrentKey { - type CurrentKey = Set; - type Version = St::Version; + type CurrentKey = Unset; } ///State transition - sets the `version` field to Set pub struct SetVersion(PhantomData St>); impl sealed::Sealed for SetVersion {} impl State for SetVersion { - type CurrentKey = St::CurrentKey; type Version = Set; + type CurrentKey = St::CurrentKey; + } + ///State transition - sets the `current_key` field to Set + pub struct SetCurrentKey(PhantomData St>); + impl sealed::Sealed for SetCurrentKey {} + impl State for SetCurrentKey { + type Version = St::Version; + type CurrentKey = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `current_key` field - pub struct current_key(()); ///Marker type for the `version` field pub struct version(()); + ///Marker type for the `current_key` field + pub struct current_key(()); } } @@ -463,8 +463,8 @@ where impl DeclarationBuilder where St: declaration_state::State, - St::CurrentKey: declaration_state::IsSet, St::Version: declaration_state::IsSet, + St::CurrentKey: declaration_state::IsSet, { /// Build the final struct. pub fn build(self) -> Declaration { @@ -630,37 +630,37 @@ pub mod message_me_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ShowButtonTo; type MessageMeUrl; + type ShowButtonTo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ShowButtonTo = Unset; type MessageMeUrl = Unset; - } - ///State transition - sets the `show_button_to` field to Set - pub struct SetShowButtonTo(PhantomData St>); - impl sealed::Sealed for SetShowButtonTo {} - impl State for SetShowButtonTo { - type ShowButtonTo = Set; - type MessageMeUrl = St::MessageMeUrl; + type ShowButtonTo = Unset; } ///State transition - sets the `message_me_url` field to Set pub struct SetMessageMeUrl(PhantomData St>); impl sealed::Sealed for SetMessageMeUrl {} impl State for SetMessageMeUrl { - type ShowButtonTo = St::ShowButtonTo; type MessageMeUrl = Set; + type ShowButtonTo = St::ShowButtonTo; + } + ///State transition - sets the `show_button_to` field to Set + pub struct SetShowButtonTo(PhantomData St>); + impl sealed::Sealed for SetShowButtonTo {} + impl State for SetShowButtonTo { + type MessageMeUrl = St::MessageMeUrl; + type ShowButtonTo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `show_button_to` field - pub struct show_button_to(()); ///Marker type for the `message_me_url` field pub struct message_me_url(()); + ///Marker type for the `show_button_to` field + pub struct show_button_to(()); } } @@ -730,8 +730,8 @@ where impl MessageMeBuilder where St: message_me_state::State, - St::ShowButtonTo: message_me_state::IsSet, St::MessageMeUrl: message_me_state::IsSet, + St::ShowButtonTo: message_me_state::IsSet, { /// Build the final struct. pub fn build(self) -> MessageMe { diff --git a/crates/jacquard-api/src/com_kipclip/annotation.rs b/crates/jacquard-api/src/com_kipclip/annotation.rs index 63695eba..ead305d1 100644 --- a/crates/jacquard-api/src/com_kipclip/annotation.rs +++ b/crates/jacquard-api/src/com_kipclip/annotation.rs @@ -154,37 +154,37 @@ pub mod annotation_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -327,8 +327,8 @@ impl AnnotationBuilder { impl AnnotationBuilder where St: annotation_state::State, - St::Subject: annotation_state::IsSet, St::CreatedAt: annotation_state::IsSet, + St::Subject: annotation_state::IsSet, { /// Build the final struct. pub fn build(self) -> Annotation { diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/app_view_defs.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/app_view_defs.rs index 097c9b56..eb849552 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/app_view_defs.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/app_view_defs.rs @@ -140,37 +140,37 @@ pub mod author_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Handle; type Did; + type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Handle = Unset; type Did = Unset; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData St>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Handle = Set; - type Did = St::Did; + type Handle = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Handle = St::Handle; type Did = Set; + type Handle = St::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData St>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type Did = St::Did; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `handle` field - pub struct handle(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `handle` field + pub struct handle(()); } } @@ -240,8 +240,8 @@ where impl AuthorBuilder where St: author_state::State, - St::Handle: author_state::IsSet, St::Did: author_state::IsSet, + St::Handle: author_state::IsSet, { /// Build the final struct. pub fn build(self) -> Author { @@ -445,105 +445,105 @@ pub mod hydrated_oekaki_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Image; type CreationTime; type Nsfw; type Cid; - type At; - type Image; type Author; + type At; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Image = Unset; type CreationTime = Unset; type Nsfw = Unset; type Cid = Unset; - type At = Unset; - type Image = Unset; type Author = Unset; + type At = Unset; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData St>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type Image = Set; + type CreationTime = St::CreationTime; + type Nsfw = St::Nsfw; + type Cid = St::Cid; + type Author = St::Author; + type At = St::At; } ///State transition - sets the `creation_time` field to Set pub struct SetCreationTime(PhantomData St>); impl sealed::Sealed for SetCreationTime {} impl State for SetCreationTime { + type Image = St::Image; type CreationTime = Set; type Nsfw = St::Nsfw; type Cid = St::Cid; - type At = St::At; - type Image = St::Image; type Author = St::Author; + type At = St::At; } ///State transition - sets the `nsfw` field to Set pub struct SetNsfw(PhantomData St>); impl sealed::Sealed for SetNsfw {} impl State for SetNsfw { + type Image = St::Image; type CreationTime = St::CreationTime; type Nsfw = Set; type Cid = St::Cid; - type At = St::At; - type Image = St::Image; type Author = St::Author; + type At = St::At; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type CreationTime = St::CreationTime; - type Nsfw = St::Nsfw; - type Cid = Set; - type At = St::At; type Image = St::Image; - type Author = St::Author; - } - ///State transition - sets the `at` field to Set - pub struct SetAt(PhantomData St>); - impl sealed::Sealed for SetAt {} - impl State for SetAt { type CreationTime = St::CreationTime; type Nsfw = St::Nsfw; - type Cid = St::Cid; - type At = Set; - type Image = St::Image; + type Cid = Set; type Author = St::Author; - } - ///State transition - sets the `image` field to Set - pub struct SetImage(PhantomData St>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type CreationTime = St::CreationTime; - type Nsfw = St::Nsfw; - type Cid = St::Cid; type At = St::At; - type Image = Set; - type Author = St::Author; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { + type Image = St::Image; type CreationTime = St::CreationTime; type Nsfw = St::Nsfw; type Cid = St::Cid; + type Author = Set; type At = St::At; + } + ///State transition - sets the `at` field to Set + pub struct SetAt(PhantomData St>); + impl sealed::Sealed for SetAt {} + impl State for SetAt { type Image = St::Image; - type Author = Set; + type CreationTime = St::CreationTime; + type Nsfw = St::Nsfw; + type Cid = St::Cid; + type Author = St::Author; + type At = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `image` field + pub struct image(()); ///Marker type for the `creation_time` field pub struct creation_time(()); ///Marker type for the `nsfw` field pub struct nsfw(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `at` field - pub struct at(()); - ///Marker type for the `image` field - pub struct image(()); ///Marker type for the `author` field pub struct author(()); + ///Marker type for the `at` field + pub struct at(()); } } @@ -724,12 +724,12 @@ impl HydratedOekakiBuilder { impl HydratedOekakiBuilder where St: hydrated_oekaki_state::State, + St::Image: hydrated_oekaki_state::IsSet, St::CreationTime: hydrated_oekaki_state::IsSet, St::Nsfw: hydrated_oekaki_state::IsSet, St::Cid: hydrated_oekaki_state::IsSet, - St::At: hydrated_oekaki_state::IsSet, - St::Image: hydrated_oekaki_state::IsSet, St::Author: hydrated_oekaki_state::IsSet, + St::At: hydrated_oekaki_state::IsSet, { /// Build the final struct. pub fn build(self) -> HydratedOekaki { diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs index 823923a2..f791deff 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs @@ -81,37 +81,37 @@ pub mod get_oekaki_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Rkey; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Rkey = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Rkey = St::Rkey; + type Did = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Did = St::Did; type Rkey = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Rkey = St::Rkey; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `rkey` field pub struct rkey(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -181,8 +181,8 @@ where impl GetOekakiBuilder where St: get_oekaki_state::State, - St::Did: get_oekaki_state::IsSet, St::Rkey: get_oekaki_state::IsSet, + St::Did: get_oekaki_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetOekaki { diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/get_parent_for_reply.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/get_parent_for_reply.rs index 19aae72f..b6d0b7c1 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_parent_for_reply.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_parent_for_reply.rs @@ -70,37 +70,37 @@ pub mod get_parent_for_reply_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Rkey; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Rkey = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Rkey = St::Rkey; + type Did = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Did = St::Did; type Rkey = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Rkey = St::Rkey; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `rkey` field pub struct rkey(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -170,8 +170,8 @@ where impl GetParentForReplyBuilder where St: get_parent_for_reply_state::State, - St::Did: get_parent_for_reply_state::IsSet, St::Rkey: get_parent_for_reply_state::IsSet, + St::Did: get_parent_for_reply_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetParentForReply { diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs index 49130720..d4b401c6 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs @@ -228,37 +228,37 @@ pub mod image_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ImageLink; type Blob; + type ImageLink; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ImageLink = Unset; type Blob = Unset; - } - ///State transition - sets the `image_link` field to Set - pub struct SetImageLink(PhantomData St>); - impl sealed::Sealed for SetImageLink {} - impl State for SetImageLink { - type ImageLink = Set; - type Blob = St::Blob; + type ImageLink = Unset; } ///State transition - sets the `blob` field to Set pub struct SetBlob(PhantomData St>); impl sealed::Sealed for SetBlob {} impl State for SetBlob { - type ImageLink = St::ImageLink; type Blob = Set; + type ImageLink = St::ImageLink; + } + ///State transition - sets the `image_link` field to Set + pub struct SetImageLink(PhantomData St>); + impl sealed::Sealed for SetImageLink {} + impl State for SetImageLink { + type Blob = St::Blob; + type ImageLink = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `image_link` field - pub struct image_link(()); ///Marker type for the `blob` field pub struct blob(()); + ///Marker type for the `image_link` field + pub struct image_link(()); } } @@ -328,8 +328,8 @@ where impl ImageBuilder where St: image_state::State, - St::ImageLink: image_state::IsSet, St::Blob: image_state::IsSet, + St::ImageLink: image_state::IsSet, { /// Build the final struct. pub fn build(self) -> Image { @@ -495,37 +495,37 @@ pub mod oekaki_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Image; type CreatedAt; + type Image; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Image = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `image` field to Set - pub struct SetImage(PhantomData St>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type CreatedAt = St::CreatedAt; + type Image = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Image = St::Image; type CreatedAt = Set; + type Image = St::Image; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData St>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type CreatedAt = St::CreatedAt; + type Image = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `image` field - pub struct image(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `image` field + pub struct image(()); } } @@ -640,8 +640,8 @@ impl OekakiBuilder { impl OekakiBuilder where St: oekaki_state::State, - St::Image: oekaki_state::IsSet, St::CreatedAt: oekaki_state::IsSet, + St::Image: oekaki_state::IsSet, { /// Build the final struct. pub fn build(self) -> Oekaki { diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/profile.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/profile.rs index 104004b8..3f0e589e 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/profile.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/profile.rs @@ -472,37 +472,37 @@ pub mod profile_link_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Link; type Name; + type Link; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Link = Unset; type Name = Unset; - } - ///State transition - sets the `link` field to Set - pub struct SetLink(PhantomData St>); - impl sealed::Sealed for SetLink {} - impl State for SetLink { - type Link = Set; - type Name = St::Name; + type Link = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Link = St::Link; type Name = Set; + type Link = St::Link; + } + ///State transition - sets the `link` field to Set + pub struct SetLink(PhantomData St>); + impl sealed::Sealed for SetLink {} + impl State for SetLink { + type Name = St::Name; + type Link = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `link` field - pub struct link(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `link` field + pub struct link(()); } } @@ -572,8 +572,8 @@ where impl ProfileLinkBuilder where St: profile_link_state::State, - St::Link: profile_link_state::IsSet, St::Name: profile_link_state::IsSet, + St::Link: profile_link_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProfileLink { diff --git a/crates/jacquard-api/src/com_suibari/atsumeat/sticker.rs b/crates/jacquard-api/src/com_suibari/atsumeat/sticker.rs index 16deda9c..1f06ec5d 100644 --- a/crates/jacquard-api/src/com_suibari/atsumeat/sticker.rs +++ b/crates/jacquard-api/src/com_suibari/atsumeat/sticker.rs @@ -429,105 +429,105 @@ pub mod sticker_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Image; type SignedPayload; + type Image; type Signature; - type OriginalOwner; - type ObtainedAt; type Model; + type ObtainedAt; + type OriginalOwner; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Image = Unset; type SignedPayload = Unset; + type Image = Unset; type Signature = Unset; - type OriginalOwner = Unset; - type ObtainedAt = Unset; type Model = Unset; - } - ///State transition - sets the `image` field to Set - pub struct SetImage(PhantomData St>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type SignedPayload = St::SignedPayload; - type Signature = St::Signature; - type OriginalOwner = St::OriginalOwner; - type ObtainedAt = St::ObtainedAt; - type Model = St::Model; + type ObtainedAt = Unset; + type OriginalOwner = Unset; } ///State transition - sets the `signed_payload` field to Set pub struct SetSignedPayload(PhantomData St>); impl sealed::Sealed for SetSignedPayload {} impl State for SetSignedPayload { - type Image = St::Image; type SignedPayload = Set; + type Image = St::Image; type Signature = St::Signature; - type OriginalOwner = St::OriginalOwner; + type Model = St::Model; type ObtainedAt = St::ObtainedAt; + type OriginalOwner = St::OriginalOwner; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData St>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type SignedPayload = St::SignedPayload; + type Image = Set; + type Signature = St::Signature; type Model = St::Model; + type ObtainedAt = St::ObtainedAt; + type OriginalOwner = St::OriginalOwner; } ///State transition - sets the `signature` field to Set pub struct SetSignature(PhantomData St>); impl sealed::Sealed for SetSignature {} impl State for SetSignature { - type Image = St::Image; type SignedPayload = St::SignedPayload; + type Image = St::Image; type Signature = Set; - type OriginalOwner = St::OriginalOwner; - type ObtainedAt = St::ObtainedAt; type Model = St::Model; + type ObtainedAt = St::ObtainedAt; + type OriginalOwner = St::OriginalOwner; } - ///State transition - sets the `original_owner` field to Set - pub struct SetOriginalOwner(PhantomData St>); - impl sealed::Sealed for SetOriginalOwner {} - impl State for SetOriginalOwner { - type Image = St::Image; + ///State transition - sets the `model` field to Set + pub struct SetModel(PhantomData St>); + impl sealed::Sealed for SetModel {} + impl State for SetModel { type SignedPayload = St::SignedPayload; + type Image = St::Image; type Signature = St::Signature; - type OriginalOwner = Set; + type Model = Set; type ObtainedAt = St::ObtainedAt; - type Model = St::Model; + type OriginalOwner = St::OriginalOwner; } ///State transition - sets the `obtained_at` field to Set pub struct SetObtainedAt(PhantomData St>); impl sealed::Sealed for SetObtainedAt {} impl State for SetObtainedAt { - type Image = St::Image; type SignedPayload = St::SignedPayload; + type Image = St::Image; type Signature = St::Signature; - type OriginalOwner = St::OriginalOwner; - type ObtainedAt = Set; type Model = St::Model; + type ObtainedAt = Set; + type OriginalOwner = St::OriginalOwner; } - ///State transition - sets the `model` field to Set - pub struct SetModel(PhantomData St>); - impl sealed::Sealed for SetModel {} - impl State for SetModel { - type Image = St::Image; + ///State transition - sets the `original_owner` field to Set + pub struct SetOriginalOwner(PhantomData St>); + impl sealed::Sealed for SetOriginalOwner {} + impl State for SetOriginalOwner { type SignedPayload = St::SignedPayload; + type Image = St::Image; type Signature = St::Signature; - type OriginalOwner = St::OriginalOwner; + type Model = St::Model; type ObtainedAt = St::ObtainedAt; - type Model = Set; + type OriginalOwner = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `image` field - pub struct image(()); ///Marker type for the `signed_payload` field pub struct signed_payload(()); + ///Marker type for the `image` field + pub struct image(()); ///Marker type for the `signature` field pub struct signature(()); - ///Marker type for the `original_owner` field - pub struct original_owner(()); - ///Marker type for the `obtained_at` field - pub struct obtained_at(()); ///Marker type for the `model` field pub struct model(()); + ///Marker type for the `obtained_at` field + pub struct obtained_at(()); + ///Marker type for the `original_owner` field + pub struct original_owner(()); } } @@ -792,12 +792,12 @@ impl StickerBuilder { impl StickerBuilder where St: sticker_state::State, - St::Image: sticker_state::IsSet, St::SignedPayload: sticker_state::IsSet, + St::Image: sticker_state::IsSet, St::Signature: sticker_state::IsSet, - St::OriginalOwner: sticker_state::IsSet, - St::ObtainedAt: sticker_state::IsSet, St::Model: sticker_state::IsSet, + St::ObtainedAt: sticker_state::IsSet, + St::OriginalOwner: sticker_state::IsSet, { /// Build the final struct. pub fn build(self) -> Sticker { diff --git a/crates/jacquard-api/src/com_suibari/atsumeat/transaction.rs b/crates/jacquard-api/src/com_suibari/atsumeat/transaction.rs index 200e74c4..d35b4f73 100644 --- a/crates/jacquard-api/src/com_suibari/atsumeat/transaction.rs +++ b/crates/jacquard-api/src/com_suibari/atsumeat/transaction.rs @@ -250,37 +250,37 @@ pub mod transaction_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Status; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Status = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Status = St::Status; + type CreatedAt = Unset; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type CreatedAt = St::CreatedAt; type Status = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Status = St::Status; + type CreatedAt = 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 `status` field pub struct status(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -451,8 +451,8 @@ impl TransactionBuilder { impl TransactionBuilder where St: transaction_state::State, - St::CreatedAt: transaction_state::IsSet, St::Status: transaction_state::IsSet, + St::CreatedAt: transaction_state::IsSet, { /// Build the final struct. pub fn build(self) -> Transaction { diff --git a/crates/jacquard-api/src/com_whtwnd/blog.rs b/crates/jacquard-api/src/com_whtwnd/blog.rs index 4f1e173b..a812cbc3 100644 --- a/crates/jacquard-api/src/com_whtwnd/blog.rs +++ b/crates/jacquard-api/src/com_whtwnd/blog.rs @@ -435,37 +435,37 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type EntryUri; type Content; + type EntryUri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type EntryUri = Unset; type Content = Unset; - } - ///State transition - sets the `entry_uri` field to Set - pub struct SetEntryUri(PhantomData St>); - impl sealed::Sealed for SetEntryUri {} - impl State for SetEntryUri { - type EntryUri = Set; - type Content = St::Content; + type EntryUri = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type EntryUri = St::EntryUri; type Content = Set; + type EntryUri = St::EntryUri; + } + ///State transition - sets the `entry_uri` field to Set + pub struct SetEntryUri(PhantomData St>); + impl sealed::Sealed for SetEntryUri {} + impl State for SetEntryUri { + type Content = St::Content; + type EntryUri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `entry_uri` field - pub struct entry_uri(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `entry_uri` field + pub struct entry_uri(()); } } @@ -535,8 +535,8 @@ where impl CommentBuilder where St: comment_state::State, - St::EntryUri: comment_state::IsSet, St::Content: comment_state::IsSet, + St::EntryUri: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/community_lexicon/calendar/event.rs b/crates/jacquard-api/src/community_lexicon/calendar/event.rs index e2fc3abf..9f861abe 100644 --- a/crates/jacquard-api/src/community_lexicon/calendar/event.rs +++ b/crates/jacquard-api/src/community_lexicon/calendar/event.rs @@ -475,37 +475,37 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -679,8 +679,8 @@ impl EventBuilder { impl EventBuilder where St: event_state::State, - St::Name: event_state::IsSet, St::CreatedAt: event_state::IsSet, + St::Name: event_state::IsSet, { /// Build the final struct. pub fn build(self) -> Event { diff --git a/crates/jacquard-api/src/community_lexicon/calendar/get_event.rs b/crates/jacquard-api/src/community_lexicon/calendar/get_event.rs index 93d86683..38785701 100644 --- a/crates/jacquard-api/src/community_lexicon/calendar/get_event.rs +++ b/crates/jacquard-api/src/community_lexicon/calendar/get_event.rs @@ -151,67 +151,67 @@ pub mod event_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CountNotGoing; - type CountInterested; type Url; + type CountInterested; type CountGoing; + type CountNotGoing; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CountNotGoing = Unset; - type CountInterested = Unset; type Url = Unset; + type CountInterested = Unset; type CountGoing = Unset; + type CountNotGoing = Unset; } - ///State transition - sets the `count_not_going` field to Set - pub struct SetCountNotGoing(PhantomData St>); - impl sealed::Sealed for SetCountNotGoing {} - impl State for SetCountNotGoing { - type CountNotGoing = Set; + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type Url = Set; type CountInterested = St::CountInterested; - type Url = St::Url; type CountGoing = St::CountGoing; + type CountNotGoing = St::CountNotGoing; } ///State transition - sets the `count_interested` field to Set pub struct SetCountInterested(PhantomData St>); impl sealed::Sealed for SetCountInterested {} impl State for SetCountInterested { - type CountNotGoing = St::CountNotGoing; - type CountInterested = Set; type Url = St::Url; + type CountInterested = Set; type CountGoing = St::CountGoing; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { type CountNotGoing = St::CountNotGoing; - type CountInterested = St::CountInterested; - type Url = Set; - type CountGoing = St::CountGoing; } ///State transition - sets the `count_going` field to Set pub struct SetCountGoing(PhantomData St>); impl sealed::Sealed for SetCountGoing {} impl State for SetCountGoing { - type CountNotGoing = St::CountNotGoing; - type CountInterested = St::CountInterested; type Url = St::Url; + type CountInterested = St::CountInterested; type CountGoing = Set; + type CountNotGoing = St::CountNotGoing; + } + ///State transition - sets the `count_not_going` field to Set + pub struct SetCountNotGoing(PhantomData St>); + impl sealed::Sealed for SetCountNotGoing {} + impl State for SetCountNotGoing { + type Url = St::Url; + type CountInterested = St::CountInterested; + type CountGoing = St::CountGoing; + type CountNotGoing = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `count_not_going` field - pub struct count_not_going(()); - ///Marker type for the `count_interested` field - pub struct count_interested(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `count_interested` field + pub struct count_interested(()); ///Marker type for the `count_going` field pub struct count_going(()); + ///Marker type for the `count_not_going` field + pub struct count_not_going(()); } } @@ -319,10 +319,10 @@ where impl EventViewBuilder where St: event_view_state::State, - St::CountNotGoing: event_view_state::IsSet, - St::CountInterested: event_view_state::IsSet, St::Url: event_view_state::IsSet, + St::CountInterested: event_view_state::IsSet, St::CountGoing: event_view_state::IsSet, + St::CountNotGoing: event_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> EventView { @@ -472,37 +472,37 @@ pub mod get_event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repository; type RecordKey; + type Repository; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repository = Unset; type RecordKey = Unset; - } - ///State transition - sets the `repository` field to Set - pub struct SetRepository(PhantomData St>); - impl sealed::Sealed for SetRepository {} - impl State for SetRepository { - type Repository = Set; - type RecordKey = St::RecordKey; + type Repository = Unset; } ///State transition - sets the `record_key` field to Set pub struct SetRecordKey(PhantomData St>); impl sealed::Sealed for SetRecordKey {} impl State for SetRecordKey { - type Repository = St::Repository; type RecordKey = Set; + type Repository = St::Repository; + } + ///State transition - sets the `repository` field to Set + pub struct SetRepository(PhantomData St>); + impl sealed::Sealed for SetRepository {} + impl State for SetRepository { + type RecordKey = St::RecordKey; + type Repository = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repository` field - pub struct repository(()); ///Marker type for the `record_key` field pub struct record_key(()); + ///Marker type for the `repository` field + pub struct repository(()); } } @@ -572,8 +572,8 @@ where impl GetEventBuilder where St: get_event_state::State, - St::Repository: get_event_state::IsSet, St::RecordKey: get_event_state::IsSet, + St::Repository: get_event_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetEvent { diff --git a/crates/jacquard-api/src/community_lexicon/calendar/get_rsvp.rs b/crates/jacquard-api/src/community_lexicon/calendar/get_rsvp.rs index 7a698c7f..de97ed7e 100644 --- a/crates/jacquard-api/src/community_lexicon/calendar/get_rsvp.rs +++ b/crates/jacquard-api/src/community_lexicon/calendar/get_rsvp.rs @@ -115,37 +115,37 @@ pub mod get_rsvp_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Identity; type Event; + type Identity; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Identity = Unset; type Event = Unset; - } - ///State transition - sets the `identity` field to Set - pub struct SetIdentity(PhantomData St>); - impl sealed::Sealed for SetIdentity {} - impl State for SetIdentity { - type Identity = Set; - type Event = St::Event; + type Identity = Unset; } ///State transition - sets the `event` field to Set pub struct SetEvent(PhantomData St>); impl sealed::Sealed for SetEvent {} impl State for SetEvent { - type Identity = St::Identity; type Event = Set; + type Identity = St::Identity; + } + ///State transition - sets the `identity` field to Set + pub struct SetIdentity(PhantomData St>); + impl sealed::Sealed for SetIdentity {} + impl State for SetIdentity { + type Event = St::Event; + type Identity = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `identity` field - pub struct identity(()); ///Marker type for the `event` field pub struct event(()); + ///Marker type for the `identity` field + pub struct identity(()); } } @@ -215,8 +215,8 @@ where impl GetRsvpBuilder where St: get_rsvp_state::State, - St::Identity: get_rsvp_state::IsSet, St::Event: get_rsvp_state::IsSet, + St::Identity: get_rsvp_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetRsvp { diff --git a/crates/jacquard-api/src/community_lexicon/calendar/rsvp.rs b/crates/jacquard-api/src/community_lexicon/calendar/rsvp.rs index 373aae39..37c3e6fa 100644 --- a/crates/jacquard-api/src/community_lexicon/calendar/rsvp.rs +++ b/crates/jacquard-api/src/community_lexicon/calendar/rsvp.rs @@ -225,37 +225,37 @@ pub mod rsvp_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Status; type Subject; + type Status; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Status = Unset; type Subject = Unset; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { - type Status = Set; - type Subject = St::Subject; + type Status = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Status = St::Status; type Subject = Set; + type Status = St::Status; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type Subject = St::Subject; + type Status = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `status` field - pub struct status(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `status` field + pub struct status(()); } } @@ -325,8 +325,8 @@ where impl RsvpBuilder where St: rsvp_state::State, - St::Status: rsvp_state::IsSet, St::Subject: rsvp_state::IsSet, + St::Status: rsvp_state::IsSet, { /// Build the final struct. pub fn build(self) -> Rsvp { diff --git a/crates/jacquard-api/src/community_lexicon/calendar/search_events.rs b/crates/jacquard-api/src/community_lexicon/calendar/search_events.rs index 6bdcb2fa..d166c27b 100644 --- a/crates/jacquard-api/src/community_lexicon/calendar/search_events.rs +++ b/crates/jacquard-api/src/community_lexicon/calendar/search_events.rs @@ -177,67 +177,67 @@ pub mod event_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CountInterested; + type CountNotGoing; type Url; + type CountInterested; type CountGoing; - type CountNotGoing; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CountInterested = Unset; + type CountNotGoing = Unset; type Url = Unset; + type CountInterested = Unset; type CountGoing = Unset; - type CountNotGoing = Unset; } - ///State transition - sets the `count_interested` field to Set - pub struct SetCountInterested(PhantomData St>); - impl sealed::Sealed for SetCountInterested {} - impl State for SetCountInterested { - type CountInterested = Set; + ///State transition - sets the `count_not_going` field to Set + pub struct SetCountNotGoing(PhantomData St>); + impl sealed::Sealed for SetCountNotGoing {} + impl State for SetCountNotGoing { + type CountNotGoing = Set; type Url = St::Url; + type CountInterested = St::CountInterested; type CountGoing = St::CountGoing; - type CountNotGoing = St::CountNotGoing; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type CountInterested = St::CountInterested; + type CountNotGoing = St::CountNotGoing; type Url = Set; + type CountInterested = St::CountInterested; type CountGoing = St::CountGoing; + } + ///State transition - sets the `count_interested` field to Set + pub struct SetCountInterested(PhantomData St>); + impl sealed::Sealed for SetCountInterested {} + impl State for SetCountInterested { type CountNotGoing = St::CountNotGoing; + type Url = St::Url; + type CountInterested = Set; + type CountGoing = St::CountGoing; } ///State transition - sets the `count_going` field to Set pub struct SetCountGoing(PhantomData St>); impl sealed::Sealed for SetCountGoing {} impl State for SetCountGoing { - type CountInterested = St::CountInterested; - type Url = St::Url; - type CountGoing = Set; type CountNotGoing = St::CountNotGoing; - } - ///State transition - sets the `count_not_going` field to Set - pub struct SetCountNotGoing(PhantomData St>); - impl sealed::Sealed for SetCountNotGoing {} - impl State for SetCountNotGoing { - type CountInterested = St::CountInterested; type Url = St::Url; - type CountGoing = St::CountGoing; - type CountNotGoing = Set; + type CountInterested = St::CountInterested; + type CountGoing = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `count_interested` field - pub struct count_interested(()); + ///Marker type for the `count_not_going` field + pub struct count_not_going(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `count_interested` field + pub struct count_interested(()); ///Marker type for the `count_going` field pub struct count_going(()); - ///Marker type for the `count_not_going` field - pub struct count_not_going(()); } } @@ -345,10 +345,10 @@ where impl EventViewBuilder where St: event_view_state::State, - St::CountInterested: event_view_state::IsSet, + St::CountNotGoing: event_view_state::IsSet, St::Url: event_view_state::IsSet, + St::CountInterested: event_view_state::IsSet, St::CountGoing: event_view_state::IsSet, - St::CountNotGoing: event_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> EventView { diff --git a/crates/jacquard-api/src/computer_aesthetic/kidlisp.rs b/crates/jacquard-api/src/computer_aesthetic/kidlisp.rs index 65c5413d..ae2f40d6 100644 --- a/crates/jacquard-api/src/computer_aesthetic/kidlisp.rs +++ b/crates/jacquard-api/src/computer_aesthetic/kidlisp.rs @@ -152,66 +152,66 @@ pub mod kidlisp_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Source; - type Code; type Ref; type When; + type Code; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Source = Unset; - type Code = Unset; type Ref = Unset; type When = Unset; + type Code = Unset; } ///State transition - sets the `source` field to Set pub struct SetSource(PhantomData St>); impl sealed::Sealed for SetSource {} impl State for SetSource { type Source = Set; - type Code = St::Code; - type Ref = St::Ref; - type When = St::When; - } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData St>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type Source = St::Source; - type Code = Set; type Ref = St::Ref; type When = St::When; + type Code = St::Code; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { type Source = St::Source; - type Code = St::Code; type Ref = Set; type When = St::When; + type Code = St::Code; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { type Source = St::Source; - type Code = St::Code; type Ref = St::Ref; type When = Set; + type Code = St::Code; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData St>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type Source = St::Source; + type Ref = St::Ref; + type When = St::When; + type Code = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `source` field pub struct source(()); - ///Marker type for the `code` field - pub struct code(()); ///Marker type for the `ref` field pub struct r#ref(()); ///Marker type for the `when` field pub struct when(()); + ///Marker type for the `code` field + pub struct code(()); } } @@ -320,9 +320,9 @@ impl KidlispBuilder where St: kidlisp_state::State, St::Source: kidlisp_state::IsSet, - St::Code: kidlisp_state::IsSet, St::Ref: kidlisp_state::IsSet, St::When: kidlisp_state::IsSet, + St::Code: kidlisp_state::IsSet, { /// Build the final struct. pub fn build(self) -> Kidlisp { diff --git a/crates/jacquard-api/src/computer_aesthetic/mood.rs b/crates/jacquard-api/src/computer_aesthetic/mood.rs index 060eb85a..a23a469f 100644 --- a/crates/jacquard-api/src/computer_aesthetic/mood.rs +++ b/crates/jacquard-api/src/computer_aesthetic/mood.rs @@ -127,51 +127,51 @@ pub mod mood_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Ref; type Mood; type When; - type Ref; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Ref = Unset; type Mood = Unset; type When = Unset; - type Ref = Unset; + } + ///State transition - sets the `ref` field to Set + pub struct SetRef(PhantomData St>); + impl sealed::Sealed for SetRef {} + impl State for SetRef { + type Ref = Set; + type Mood = St::Mood; + type When = St::When; } ///State transition - sets the `mood` field to Set pub struct SetMood(PhantomData St>); impl sealed::Sealed for SetMood {} impl State for SetMood { + type Ref = St::Ref; type Mood = Set; type When = St::When; - type Ref = St::Ref; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Mood = St::Mood; - type When = Set; type Ref = St::Ref; - } - ///State transition - sets the `ref` field to Set - pub struct SetRef(PhantomData St>); - impl sealed::Sealed for SetRef {} - impl State for SetRef { type Mood = St::Mood; - type When = St::When; - type Ref = Set; + type When = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `ref` field + pub struct r#ref(()); ///Marker type for the `mood` field pub struct mood(()); ///Marker type for the `when` field pub struct when(()); - ///Marker type for the `ref` field - pub struct r#ref(()); } } @@ -260,9 +260,9 @@ where impl MoodBuilder where St: mood_state::State, + St::Ref: mood_state::IsSet, St::Mood: mood_state::IsSet, St::When: mood_state::IsSet, - St::Ref: mood_state::IsSet, { /// Build the final struct. pub fn build(self) -> Mood { diff --git a/crates/jacquard-api/src/computer_aesthetic/painting.rs b/crates/jacquard-api/src/computer_aesthetic/painting.rs index 3e8880d8..6727e538 100644 --- a/crates/jacquard-api/src/computer_aesthetic/painting.rs +++ b/crates/jacquard-api/src/computer_aesthetic/painting.rs @@ -221,85 +221,85 @@ pub mod painting_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type When; type ImageUrl; - type Code; - type Ref; type Slug; + type When; + type Ref; + type Code; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type When = Unset; type ImageUrl = Unset; - type Code = Unset; - type Ref = Unset; type Slug = Unset; - } - ///State transition - sets the `when` field to Set - pub struct SetWhen(PhantomData St>); - impl sealed::Sealed for SetWhen {} - impl State for SetWhen { - type When = Set; - type ImageUrl = St::ImageUrl; - type Code = St::Code; - type Ref = St::Ref; - type Slug = St::Slug; + type When = Unset; + type Ref = Unset; + type Code = Unset; } ///State transition - sets the `image_url` field to Set pub struct SetImageUrl(PhantomData St>); impl sealed::Sealed for SetImageUrl {} impl State for SetImageUrl { - type When = St::When; type ImageUrl = Set; - type Code = St::Code; - type Ref = St::Ref; type Slug = St::Slug; - } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData St>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { type When = St::When; + type Ref = St::Ref; + type Code = St::Code; + } + ///State transition - sets the `slug` field to Set + pub struct SetSlug(PhantomData St>); + impl sealed::Sealed for SetSlug {} + impl State for SetSlug { type ImageUrl = St::ImageUrl; - type Code = Set; + type Slug = Set; + type When = St::When; type Ref = St::Ref; + type Code = St::Code; + } + ///State transition - sets the `when` field to Set + pub struct SetWhen(PhantomData St>); + impl sealed::Sealed for SetWhen {} + impl State for SetWhen { + type ImageUrl = St::ImageUrl; type Slug = St::Slug; + type When = Set; + type Ref = St::Ref; + type Code = St::Code; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type When = St::When; type ImageUrl = St::ImageUrl; - type Code = St::Code; - type Ref = Set; type Slug = St::Slug; - } - ///State transition - sets the `slug` field to Set - pub struct SetSlug(PhantomData St>); - impl sealed::Sealed for SetSlug {} - impl State for SetSlug { type When = St::When; - type ImageUrl = St::ImageUrl; + type Ref = Set; type Code = St::Code; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData St>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type ImageUrl = St::ImageUrl; + type Slug = St::Slug; + type When = St::When; type Ref = St::Ref; - type Slug = Set; + type Code = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `when` field - pub struct when(()); ///Marker type for the `image_url` field pub struct image_url(()); - ///Marker type for the `code` field - pub struct code(()); - ///Marker type for the `ref` field - pub struct r#ref(()); ///Marker type for the `slug` field pub struct slug(()); + ///Marker type for the `when` field + pub struct when(()); + ///Marker type for the `ref` field + pub struct r#ref(()); + ///Marker type for the `code` field + pub struct code(()); } } @@ -460,11 +460,11 @@ where impl PaintingBuilder where St: painting_state::State, - St::When: painting_state::IsSet, St::ImageUrl: painting_state::IsSet, - St::Code: painting_state::IsSet, - St::Ref: painting_state::IsSet, St::Slug: painting_state::IsSet, + St::When: painting_state::IsSet, + St::Ref: painting_state::IsSet, + St::Code: painting_state::IsSet, { /// Build the final struct. pub fn build(self) -> Painting { diff --git a/crates/jacquard-api/src/computer_aesthetic/piece.rs b/crates/jacquard-api/src/computer_aesthetic/piece.rs index edccf558..7f9b221f 100644 --- a/crates/jacquard-api/src/computer_aesthetic/piece.rs +++ b/crates/jacquard-api/src/computer_aesthetic/piece.rs @@ -138,51 +138,51 @@ pub mod piece_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type When; type Ref; type Slug; + type When; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type When = Unset; type Ref = Unset; type Slug = Unset; - } - ///State transition - sets the `when` field to Set - pub struct SetWhen(PhantomData St>); - impl sealed::Sealed for SetWhen {} - impl State for SetWhen { - type When = Set; - type Ref = St::Ref; - type Slug = St::Slug; + type When = Unset; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type When = St::When; type Ref = Set; type Slug = St::Slug; + type When = St::When; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData St>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { - type When = St::When; type Ref = St::Ref; type Slug = Set; + type When = St::When; + } + ///State transition - sets the `when` field to Set + pub struct SetWhen(PhantomData St>); + impl sealed::Sealed for SetWhen {} + impl State for SetWhen { + type Ref = St::Ref; + type Slug = St::Slug; + type When = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `when` field - pub struct when(()); ///Marker type for the `ref` field pub struct r#ref(()); ///Marker type for the `slug` field pub struct slug(()); + ///Marker type for the `when` field + pub struct when(()); } } @@ -271,9 +271,9 @@ where impl PieceBuilder where St: piece_state::State, - St::When: piece_state::IsSet, St::Ref: piece_state::IsSet, St::Slug: piece_state::IsSet, + St::When: piece_state::IsSet, { /// Build the final struct. pub fn build(self) -> Piece { diff --git a/crates/jacquard-api/src/computer_aesthetic/tape.rs b/crates/jacquard-api/src/computer_aesthetic/tape.rs index d56e55f6..d844e15d 100644 --- a/crates/jacquard-api/src/computer_aesthetic/tape.rs +++ b/crates/jacquard-api/src/computer_aesthetic/tape.rs @@ -209,51 +209,51 @@ pub mod tape_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type When; - type Code; type Slug; + type Code; + type When; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type When = Unset; - type Code = Unset; type Slug = Unset; + type Code = Unset; + type When = Unset; } - ///State transition - sets the `when` field to Set - pub struct SetWhen(PhantomData St>); - impl sealed::Sealed for SetWhen {} - impl State for SetWhen { - type When = Set; + ///State transition - sets the `slug` field to Set + pub struct SetSlug(PhantomData St>); + impl sealed::Sealed for SetSlug {} + impl State for SetSlug { + type Slug = Set; type Code = St::Code; - type Slug = St::Slug; + type When = St::When; } ///State transition - sets the `code` field to Set pub struct SetCode(PhantomData St>); impl sealed::Sealed for SetCode {} impl State for SetCode { - type When = St::When; - type Code = Set; type Slug = St::Slug; - } - ///State transition - sets the `slug` field to Set - pub struct SetSlug(PhantomData St>); - impl sealed::Sealed for SetSlug {} - impl State for SetSlug { + type Code = Set; type When = St::When; + } + ///State transition - sets the `when` field to Set + pub struct SetWhen(PhantomData St>); + impl sealed::Sealed for SetWhen {} + impl State for SetWhen { + type Slug = St::Slug; type Code = St::Code; - type Slug = Set; + type When = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `when` field - pub struct when(()); - ///Marker type for the `code` field - pub struct code(()); ///Marker type for the `slug` field pub struct slug(()); + ///Marker type for the `code` field + pub struct code(()); + ///Marker type for the `when` field + pub struct when(()); } } @@ -416,9 +416,9 @@ impl TapeBuilder { impl TapeBuilder where St: tape_state::State, - St::When: tape_state::IsSet, - St::Code: tape_state::IsSet, St::Slug: tape_state::IsSet, + St::Code: tape_state::IsSet, + St::When: tape_state::IsSet, { /// Build the final struct. pub fn build(self) -> Tape { diff --git a/crates/jacquard-api/src/coop_hypha/pollen/claim.rs b/crates/jacquard-api/src/coop_hypha/pollen/claim.rs index 774f4ebf..bb0bf504 100644 --- a/crates/jacquard-api/src/coop_hypha/pollen/claim.rs +++ b/crates/jacquard-api/src/coop_hypha/pollen/claim.rs @@ -123,67 +123,67 @@ pub mod claim_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Cid; - type Content; type Pfp; + type Content; + type Cid; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Cid = Unset; - type Content = Unset; type Pfp = Unset; + type Content = Unset; + type Cid = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Cid = St::Cid; + ///State transition - sets the `pfp` field to Set + pub struct SetPfp(PhantomData St>); + impl sealed::Sealed for SetPfp {} + impl State for SetPfp { + type Pfp = Set; type Content = St::Content; - type Pfp = St::Pfp; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { + type Cid = St::Cid; type CreatedAt = St::CreatedAt; - type Cid = Set; - type Content = St::Content; - type Pfp = St::Pfp; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type CreatedAt = St::CreatedAt; - type Cid = St::Cid; - type Content = Set; type Pfp = St::Pfp; + type Content = Set; + type Cid = St::Cid; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `pfp` field to Set - pub struct SetPfp(PhantomData St>); - impl sealed::Sealed for SetPfp {} - impl State for SetPfp { + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Pfp = St::Pfp; + type Content = St::Content; + type Cid = Set; type CreatedAt = St::CreatedAt; - type Cid = St::Cid; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Pfp = St::Pfp; type Content = St::Content; - type Pfp = Set; + type Cid = St::Cid; + type CreatedAt = 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 `cid` field - pub struct cid(()); - ///Marker type for the `content` field - pub struct content(()); ///Marker type for the `pfp` field pub struct pfp(()); + ///Marker type for the `content` field + pub struct content(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -310,10 +310,10 @@ impl ClaimBuilder { impl ClaimBuilder where St: claim_state::State, - St::CreatedAt: claim_state::IsSet, - St::Cid: claim_state::IsSet, - St::Content: claim_state::IsSet, St::Pfp: claim_state::IsSet, + St::Content: claim_state::IsSet, + St::Cid: claim_state::IsSet, + St::CreatedAt: claim_state::IsSet, { /// Build the final struct. pub fn build(self) -> Claim { diff --git a/crates/jacquard-api/src/coop_hypha/spores/content/text.rs b/crates/jacquard-api/src/coop_hypha/spores/content/text.rs index 46cb1637..ac7056af 100644 --- a/crates/jacquard-api/src/coop_hypha/spores/content/text.rs +++ b/crates/jacquard-api/src/coop_hypha/spores/content/text.rs @@ -249,37 +249,37 @@ pub mod text_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Content; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Content = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Content = St::Content; + type CreatedAt = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type CreatedAt = St::CreatedAt; type Content = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Content = St::Content; + type CreatedAt = 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 `content` field pub struct content(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -375,8 +375,8 @@ impl TextBuilder { impl TextBuilder where St: text_state::State, - St::CreatedAt: text_state::IsSet, St::Content: text_state::IsSet, + St::CreatedAt: text_state::IsSet, { /// Build the final struct. pub fn build(self) -> Text { diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs b/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs index d3f48bd4..bd4618af 100644 --- a/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs +++ b/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs @@ -113,51 +113,51 @@ pub mod calories_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Intake; type Burned; type CreatedAt; - type Intake; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Intake = Unset; type Burned = Unset; type CreatedAt = Unset; - type Intake = Unset; + } + ///State transition - sets the `intake` field to Set + pub struct SetIntake(PhantomData St>); + impl sealed::Sealed for SetIntake {} + impl State for SetIntake { + type Intake = Set; + type Burned = St::Burned; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `burned` field to Set pub struct SetBurned(PhantomData St>); impl sealed::Sealed for SetBurned {} impl State for SetBurned { + type Intake = St::Intake; type Burned = Set; type CreatedAt = St::CreatedAt; - type Intake = St::Intake; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Burned = St::Burned; - type CreatedAt = Set; type Intake = St::Intake; - } - ///State transition - sets the `intake` field to Set - pub struct SetIntake(PhantomData St>); - impl sealed::Sealed for SetIntake {} - impl State for SetIntake { type Burned = St::Burned; - type CreatedAt = St::CreatedAt; - type Intake = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `intake` field + pub struct intake(()); ///Marker type for the `burned` field pub struct burned(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `intake` field - pub struct intake(()); } } @@ -246,9 +246,9 @@ where impl CaloriesBuilder where St: calories_state::State, + St::Intake: calories_state::IsSet, St::Burned: calories_state::IsSet, St::CreatedAt: calories_state::IsSet, - St::Intake: calories_state::IsSet, { /// Build the final struct. pub fn build(self) -> Calories { diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs b/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs index 762fdb61..e201488d 100644 --- a/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs +++ b/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs @@ -123,127 +123,127 @@ pub mod rings_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Exercise; - type ExerciseGoal; - type StandHours; type StandGoal; type CreatedAt; + type StandHours; + type Exercise; type Move; type MoveGoal; + type ExerciseGoal; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Exercise = Unset; - type ExerciseGoal = Unset; - type StandHours = Unset; type StandGoal = Unset; type CreatedAt = Unset; + type StandHours = Unset; + type Exercise = Unset; type Move = Unset; type MoveGoal = Unset; + type ExerciseGoal = Unset; } - ///State transition - sets the `exercise` field to Set - pub struct SetExercise(PhantomData St>); - impl sealed::Sealed for SetExercise {} - impl State for SetExercise { - type Exercise = Set; - type ExerciseGoal = St::ExerciseGoal; - type StandHours = St::StandHours; - type StandGoal = St::StandGoal; + ///State transition - sets the `stand_goal` field to Set + pub struct SetStandGoal(PhantomData St>); + impl sealed::Sealed for SetStandGoal {} + impl State for SetStandGoal { + type StandGoal = Set; type CreatedAt = St::CreatedAt; + type StandHours = St::StandHours; + type Exercise = St::Exercise; type Move = St::Move; type MoveGoal = St::MoveGoal; + type ExerciseGoal = St::ExerciseGoal; } - ///State transition - sets the `exercise_goal` field to Set - pub struct SetExerciseGoal(PhantomData St>); - impl sealed::Sealed for SetExerciseGoal {} - impl State for SetExerciseGoal { - type Exercise = St::Exercise; - type ExerciseGoal = Set; - type StandHours = St::StandHours; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type StandGoal = St::StandGoal; - type CreatedAt = St::CreatedAt; + type CreatedAt = Set; + type StandHours = St::StandHours; + type Exercise = St::Exercise; type Move = St::Move; type MoveGoal = St::MoveGoal; + type ExerciseGoal = St::ExerciseGoal; } ///State transition - sets the `stand_hours` field to Set pub struct SetStandHours(PhantomData St>); impl sealed::Sealed for SetStandHours {} impl State for SetStandHours { - type Exercise = St::Exercise; - type ExerciseGoal = St::ExerciseGoal; - type StandHours = Set; type StandGoal = St::StandGoal; type CreatedAt = St::CreatedAt; - type Move = St::Move; - type MoveGoal = St::MoveGoal; - } - ///State transition - sets the `stand_goal` field to Set - pub struct SetStandGoal(PhantomData St>); - impl sealed::Sealed for SetStandGoal {} - impl State for SetStandGoal { + type StandHours = Set; type Exercise = St::Exercise; - type ExerciseGoal = St::ExerciseGoal; - type StandHours = St::StandHours; - type StandGoal = Set; - type CreatedAt = St::CreatedAt; type Move = St::Move; type MoveGoal = St::MoveGoal; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Exercise = St::Exercise; type ExerciseGoal = St::ExerciseGoal; - type StandHours = St::StandHours; + } + ///State transition - sets the `exercise` field to Set + pub struct SetExercise(PhantomData St>); + impl sealed::Sealed for SetExercise {} + impl State for SetExercise { type StandGoal = St::StandGoal; - type CreatedAt = Set; + type CreatedAt = St::CreatedAt; + type StandHours = St::StandHours; + type Exercise = Set; type Move = St::Move; type MoveGoal = St::MoveGoal; + type ExerciseGoal = St::ExerciseGoal; } ///State transition - sets the `move` field to Set pub struct SetMove(PhantomData St>); impl sealed::Sealed for SetMove {} impl State for SetMove { - type Exercise = St::Exercise; - type ExerciseGoal = St::ExerciseGoal; - type StandHours = St::StandHours; type StandGoal = St::StandGoal; type CreatedAt = St::CreatedAt; + type StandHours = St::StandHours; + type Exercise = St::Exercise; type Move = Set; type MoveGoal = St::MoveGoal; + type ExerciseGoal = St::ExerciseGoal; } ///State transition - sets the `move_goal` field to Set pub struct SetMoveGoal(PhantomData St>); impl sealed::Sealed for SetMoveGoal {} impl State for SetMoveGoal { + type StandGoal = St::StandGoal; + type CreatedAt = St::CreatedAt; + type StandHours = St::StandHours; type Exercise = St::Exercise; + type Move = St::Move; + type MoveGoal = Set; type ExerciseGoal = St::ExerciseGoal; - type StandHours = St::StandHours; + } + ///State transition - sets the `exercise_goal` field to Set + pub struct SetExerciseGoal(PhantomData St>); + impl sealed::Sealed for SetExerciseGoal {} + impl State for SetExerciseGoal { type StandGoal = St::StandGoal; type CreatedAt = St::CreatedAt; + type StandHours = St::StandHours; + type Exercise = St::Exercise; type Move = St::Move; - type MoveGoal = Set; + type MoveGoal = St::MoveGoal; + type ExerciseGoal = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `exercise` field - pub struct exercise(()); - ///Marker type for the `exercise_goal` field - pub struct exercise_goal(()); - ///Marker type for the `stand_hours` field - pub struct stand_hours(()); ///Marker type for the `stand_goal` field pub struct stand_goal(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `stand_hours` field + pub struct stand_hours(()); + ///Marker type for the `exercise` field + pub struct exercise(()); ///Marker type for the `move` field pub struct r#move(()); ///Marker type for the `move_goal` field pub struct move_goal(()); + ///Marker type for the `exercise_goal` field + pub struct exercise_goal(()); } } @@ -416,13 +416,13 @@ where impl RingsBuilder where St: rings_state::State, - St::Exercise: rings_state::IsSet, - St::ExerciseGoal: rings_state::IsSet, - St::StandHours: rings_state::IsSet, St::StandGoal: rings_state::IsSet, St::CreatedAt: rings_state::IsSet, + St::StandHours: rings_state::IsSet, + St::Exercise: rings_state::IsSet, St::Move: rings_state::IsSet, St::MoveGoal: rings_state::IsSet, + St::ExerciseGoal: rings_state::IsSet, { /// Build the final struct. pub fn build(self) -> Rings { diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs b/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs index e16b45fc..c2fc6667 100644 --- a/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs +++ b/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs @@ -111,37 +111,37 @@ pub mod steps_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Steps; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Steps = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Steps = St::Steps; + type CreatedAt = Unset; } ///State transition - sets the `steps` field to Set pub struct SetSteps(PhantomData St>); impl sealed::Sealed for SetSteps {} impl State for SetSteps { - type CreatedAt = St::CreatedAt; type Steps = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Steps = St::Steps; + type CreatedAt = 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 `steps` field pub struct steps(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -211,8 +211,8 @@ where impl StepsBuilder where St: steps_state::State, - St::CreatedAt: steps_state::IsSet, St::Steps: steps_state::IsSet, + St::CreatedAt: steps_state::IsSet, { /// Build the final struct. pub fn build(self) -> Steps { diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs b/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs index 903f2a59..9e69dc1f 100644 --- a/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs +++ b/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs @@ -121,105 +121,105 @@ pub mod workout_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Activity; - type EndTime; - type Duration; - type StartTime; type CreatedAt; type CaloriesBurned; + type Duration; + type EndTime; + type StartTime; + type Activity; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Activity = Unset; - type EndTime = Unset; - type Duration = Unset; - type StartTime = Unset; type CreatedAt = Unset; type CaloriesBurned = Unset; + type Duration = Unset; + type EndTime = Unset; + type StartTime = Unset; + type Activity = Unset; } - ///State transition - sets the `activity` field to Set - pub struct SetActivity(PhantomData St>); - impl sealed::Sealed for SetActivity {} - impl State for SetActivity { - type Activity = Set; - type EndTime = St::EndTime; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type CaloriesBurned = St::CaloriesBurned; type Duration = St::Duration; + type EndTime = St::EndTime; type StartTime = St::StartTime; - type CreatedAt = St::CreatedAt; - type CaloriesBurned = St::CaloriesBurned; - } - ///State transition - sets the `end_time` field to Set - pub struct SetEndTime(PhantomData St>); - impl sealed::Sealed for SetEndTime {} - impl State for SetEndTime { type Activity = St::Activity; - type EndTime = Set; + } + ///State transition - sets the `calories_burned` field to Set + pub struct SetCaloriesBurned(PhantomData St>); + impl sealed::Sealed for SetCaloriesBurned {} + impl State for SetCaloriesBurned { + type CreatedAt = St::CreatedAt; + type CaloriesBurned = Set; type Duration = St::Duration; + type EndTime = St::EndTime; type StartTime = St::StartTime; - type CreatedAt = St::CreatedAt; - type CaloriesBurned = St::CaloriesBurned; + type Activity = St::Activity; } ///State transition - sets the `duration` field to Set pub struct SetDuration(PhantomData St>); impl sealed::Sealed for SetDuration {} impl State for SetDuration { - type Activity = St::Activity; - type EndTime = St::EndTime; + type CreatedAt = St::CreatedAt; + type CaloriesBurned = St::CaloriesBurned; type Duration = Set; + type EndTime = St::EndTime; type StartTime = St::StartTime; + type Activity = St::Activity; + } + ///State transition - sets the `end_time` field to Set + pub struct SetEndTime(PhantomData St>); + impl sealed::Sealed for SetEndTime {} + impl State for SetEndTime { type CreatedAt = St::CreatedAt; type CaloriesBurned = St::CaloriesBurned; + type Duration = St::Duration; + type EndTime = Set; + type StartTime = St::StartTime; + type Activity = St::Activity; } ///State transition - sets the `start_time` field to Set pub struct SetStartTime(PhantomData St>); impl sealed::Sealed for SetStartTime {} impl State for SetStartTime { - type Activity = St::Activity; - type EndTime = St::EndTime; + type CreatedAt = St::CreatedAt; + type CaloriesBurned = St::CaloriesBurned; type Duration = St::Duration; + type EndTime = St::EndTime; type StartTime = Set; + type Activity = St::Activity; + } + ///State transition - sets the `activity` field to Set + pub struct SetActivity(PhantomData St>); + impl sealed::Sealed for SetActivity {} + impl State for SetActivity { type CreatedAt = St::CreatedAt; type CaloriesBurned = St::CaloriesBurned; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Activity = St::Activity; - type EndTime = St::EndTime; type Duration = St::Duration; - type StartTime = St::StartTime; - type CreatedAt = Set; - type CaloriesBurned = St::CaloriesBurned; - } - ///State transition - sets the `calories_burned` field to Set - pub struct SetCaloriesBurned(PhantomData St>); - impl sealed::Sealed for SetCaloriesBurned {} - impl State for SetCaloriesBurned { - type Activity = St::Activity; type EndTime = St::EndTime; - type Duration = St::Duration; type StartTime = St::StartTime; - type CreatedAt = St::CreatedAt; - type CaloriesBurned = Set; + type Activity = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `activity` field - pub struct activity(()); - ///Marker type for the `end_time` field - pub struct end_time(()); - ///Marker type for the `duration` field - pub struct duration(()); - ///Marker type for the `start_time` field - pub struct start_time(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `calories_burned` field pub struct calories_burned(()); + ///Marker type for the `duration` field + pub struct duration(()); + ///Marker type for the `end_time` field + pub struct end_time(()); + ///Marker type for the `start_time` field + pub struct start_time(()); + ///Marker type for the `activity` field + pub struct activity(()); } } @@ -386,12 +386,12 @@ where impl WorkoutBuilder where St: workout_state::State, - St::Activity: workout_state::IsSet, - St::EndTime: workout_state::IsSet, - St::Duration: workout_state::IsSet, - St::StartTime: workout_state::IsSet, St::CreatedAt: workout_state::IsSet, St::CaloriesBurned: workout_state::IsSet, + St::Duration: workout_state::IsSet, + St::EndTime: workout_state::IsSet, + St::StartTime: workout_state::IsSet, + St::Activity: workout_state::IsSet, { /// Build the final struct. pub fn build(self) -> Workout { diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/post.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/post.rs index 958f8818..8c83091b 100644 --- a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/post.rs +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/post.rs @@ -176,105 +176,105 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Category; - type Content; type Title; type Forum; - type Tags; type CreatedAt; + type Content; + type Category; + type Tags; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Category = Unset; - type Content = Unset; type Title = Unset; type Forum = Unset; - type Tags = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `category` field to Set - pub struct SetCategory(PhantomData St>); - impl sealed::Sealed for SetCategory {} - impl State for SetCategory { - type Category = Set; - type Content = St::Content; - type Title = St::Title; - type Forum = St::Forum; - type Tags = St::Tags; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type Category = St::Category; - type Content = Set; - type Title = St::Title; - type Forum = St::Forum; - type Tags = St::Tags; - type CreatedAt = St::CreatedAt; + type Content = Unset; + type Category = Unset; + type Tags = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Category = St::Category; - type Content = St::Content; type Title = Set; type Forum = St::Forum; - type Tags = St::Tags; type CreatedAt = St::CreatedAt; + type Content = St::Content; + type Category = St::Category; + type Tags = St::Tags; } ///State transition - sets the `forum` field to Set pub struct SetForum(PhantomData St>); impl sealed::Sealed for SetForum {} impl State for SetForum { + type Title = St::Title; + type Forum = Set; + type CreatedAt = St::CreatedAt; + type Content = St::Content; type Category = St::Category; + type Tags = St::Tags; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Title = St::Title; + type Forum = St::Forum; + type CreatedAt = Set; type Content = St::Content; + type Category = St::Category; + type Tags = St::Tags; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { type Title = St::Title; - type Forum = Set; + type Forum = St::Forum; + type CreatedAt = St::CreatedAt; + type Content = Set; + type Category = St::Category; type Tags = St::Tags; + } + ///State transition - sets the `category` field to Set + pub struct SetCategory(PhantomData St>); + impl sealed::Sealed for SetCategory {} + impl State for SetCategory { + type Title = St::Title; + type Forum = St::Forum; type CreatedAt = St::CreatedAt; + type Content = St::Content; + type Category = Set; + type Tags = St::Tags; } ///State transition - sets the `tags` field to Set pub struct SetTags(PhantomData St>); impl sealed::Sealed for SetTags {} impl State for SetTags { - type Category = St::Category; - type Content = St::Content; type Title = St::Title; type Forum = St::Forum; - type Tags = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Category = St::Category; type Content = St::Content; - type Title = St::Title; - type Forum = St::Forum; - type Tags = St::Tags; - type CreatedAt = Set; + type Category = St::Category; + type Tags = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `category` field - pub struct category(()); - ///Marker type for the `content` field - pub struct content(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `forum` field pub struct forum(()); - ///Marker type for the `tags` field - pub struct tags(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `content` field + pub struct content(()); + ///Marker type for the `category` field + pub struct category(()); + ///Marker type for the `tags` field + pub struct tags(()); } } @@ -455,12 +455,12 @@ impl PostBuilder { impl PostBuilder where St: post_state::State, - St::Category: post_state::IsSet, - St::Content: post_state::IsSet, St::Title: post_state::IsSet, St::Forum: post_state::IsSet, - St::Tags: post_state::IsSet, St::CreatedAt: post_state::IsSet, + St::Content: post_state::IsSet, + St::Category: post_state::IsSet, + St::Tags: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/question.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/question.rs index f978909a..797e5ce6 100644 --- a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/question.rs +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/question.rs @@ -174,105 +174,105 @@ pub mod question_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Forum; - type IsOpen; + type CreatedAt; type Content; type Tags; type Title; - type CreatedAt; + type Forum; + type IsOpen; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Forum = Unset; - type IsOpen = Unset; + type CreatedAt = Unset; type Content = Unset; type Tags = Unset; type Title = Unset; - type CreatedAt = Unset; + type Forum = Unset; + type IsOpen = Unset; } - ///State transition - sets the `forum` field to Set - pub struct SetForum(PhantomData St>); - impl sealed::Sealed for SetForum {} - impl State for SetForum { - type Forum = Set; - type IsOpen = St::IsOpen; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Content = St::Content; type Tags = St::Tags; type Title = St::Title; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `is_open` field to Set - pub struct SetIsOpen(PhantomData St>); - impl sealed::Sealed for SetIsOpen {} - impl State for SetIsOpen { type Forum = St::Forum; - type IsOpen = Set; - type Content = St::Content; - type Tags = St::Tags; - type Title = St::Title; - type CreatedAt = St::CreatedAt; + type IsOpen = St::IsOpen; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Forum = St::Forum; - type IsOpen = St::IsOpen; + type CreatedAt = St::CreatedAt; type Content = Set; type Tags = St::Tags; type Title = St::Title; - type CreatedAt = St::CreatedAt; + type Forum = St::Forum; + type IsOpen = St::IsOpen; } ///State transition - sets the `tags` field to Set pub struct SetTags(PhantomData St>); impl sealed::Sealed for SetTags {} impl State for SetTags { - type Forum = St::Forum; - type IsOpen = St::IsOpen; + type CreatedAt = St::CreatedAt; type Content = St::Content; type Tags = Set; type Title = St::Title; - type CreatedAt = St::CreatedAt; + type Forum = St::Forum; + type IsOpen = St::IsOpen; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Forum = St::Forum; - type IsOpen = St::IsOpen; + type CreatedAt = St::CreatedAt; type Content = St::Content; type Tags = St::Tags; type Title = Set; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Forum = St::Forum; type IsOpen = St::IsOpen; + } + ///State transition - sets the `forum` field to Set + pub struct SetForum(PhantomData St>); + impl sealed::Sealed for SetForum {} + impl State for SetForum { + type CreatedAt = St::CreatedAt; type Content = St::Content; type Tags = St::Tags; type Title = St::Title; - type CreatedAt = Set; + type Forum = Set; + type IsOpen = St::IsOpen; + } + ///State transition - sets the `is_open` field to Set + pub struct SetIsOpen(PhantomData St>); + impl sealed::Sealed for SetIsOpen {} + impl State for SetIsOpen { + type CreatedAt = St::CreatedAt; + type Content = St::Content; + type Tags = St::Tags; + type Title = St::Title; + type Forum = St::Forum; + type IsOpen = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `forum` field - pub struct forum(()); - ///Marker type for the `is_open` field - pub struct is_open(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `content` field pub struct content(()); ///Marker type for the `tags` field pub struct tags(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `forum` field + pub struct forum(()); + ///Marker type for the `is_open` field + pub struct is_open(()); } } @@ -439,12 +439,12 @@ impl QuestionBuilder { impl QuestionBuilder where St: question_state::State, - St::Forum: question_state::IsSet, - St::IsOpen: question_state::IsSet, + St::CreatedAt: question_state::IsSet, St::Content: question_state::IsSet, St::Tags: question_state::IsSet, St::Title: question_state::IsSet, - St::CreatedAt: question_state::IsSet, + St::Forum: question_state::IsSet, + St::IsOpen: question_state::IsSet, { /// Build the final struct. pub fn build(self) -> Question { diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/reply.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/reply.rs index 7443a441..e63d52a2 100644 --- a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/reply.rs +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/reply.rs @@ -126,51 +126,51 @@ pub mod reply_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Root; type CreatedAt; type Content; + type Root; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Root = Unset; type CreatedAt = Unset; type Content = Unset; - } - ///State transition - sets the `root` field to Set - pub struct SetRoot(PhantomData St>); - impl sealed::Sealed for SetRoot {} - impl State for SetRoot { - type Root = Set; - type CreatedAt = St::CreatedAt; - type Content = St::Content; + type Root = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Root = St::Root; type CreatedAt = Set; type Content = St::Content; + type Root = St::Root; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Root = St::Root; type CreatedAt = St::CreatedAt; type Content = Set; + type Root = St::Root; + } + ///State transition - sets the `root` field to Set + pub struct SetRoot(PhantomData St>); + impl sealed::Sealed for SetRoot {} + impl State for SetRoot { + type CreatedAt = St::CreatedAt; + type Content = St::Content; + type Root = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `root` field - pub struct root(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `root` field + pub struct root(()); } } @@ -272,9 +272,9 @@ impl ReplyBuilder { impl ReplyBuilder where St: reply_state::State, - St::Root: reply_state::IsSet, St::CreatedAt: reply_state::IsSet, St::Content: reply_state::IsSet, + St::Root: reply_state::IsSet, { /// Build the final struct. pub fn build(self) -> Reply { diff --git a/crates/jacquard-api/src/dev_kanad/lexicon_test_2026_02_26/example_cat_lexicon.rs b/crates/jacquard-api/src/dev_kanad/lexicon_test_2026_02_26/example_cat_lexicon.rs index 379c217f..05e7aa35 100644 --- a/crates/jacquard-api/src/dev_kanad/lexicon_test_2026_02_26/example_cat_lexicon.rs +++ b/crates/jacquard-api/src/dev_kanad/lexicon_test_2026_02_26/example_cat_lexicon.rs @@ -192,37 +192,37 @@ pub mod example_cat_lexicon_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -305,8 +305,8 @@ where impl ExampleCatLexiconBuilder where St: example_cat_lexicon_state::State, - St::Name: example_cat_lexicon_state::IsSet, St::CreatedAt: example_cat_lexicon_state::IsSet, + St::Name: example_cat_lexicon_state::IsSet, { /// Build the final struct. pub fn build(self) -> ExampleCatLexicon { diff --git a/crates/jacquard-api/src/dev_keytrace/claim.rs b/crates/jacquard-api/src/dev_keytrace/claim.rs index dfcc42a4..a42f081b 100644 --- a/crates/jacquard-api/src/dev_keytrace/claim.rs +++ b/crates/jacquard-api/src/dev_keytrace/claim.rs @@ -633,85 +633,85 @@ pub mod claim_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type ClaimUri; - type Sigs; - type CreatedAt; + type Type; type Identity; + type CreatedAt; + type Sigs; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type ClaimUri = Unset; - type Sigs = Unset; - type CreatedAt = Unset; + type Type = Unset; type Identity = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type ClaimUri = St::ClaimUri; - type Sigs = St::Sigs; - type CreatedAt = St::CreatedAt; - type Identity = St::Identity; + type CreatedAt = Unset; + type Sigs = Unset; } ///State transition - sets the `claim_uri` field to Set pub struct SetClaimUri(PhantomData St>); impl sealed::Sealed for SetClaimUri {} impl State for SetClaimUri { - type Type = St::Type; type ClaimUri = Set; - type Sigs = St::Sigs; + type Type = St::Type; + type Identity = St::Identity; type CreatedAt = St::CreatedAt; + type Sigs = St::Sigs; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type ClaimUri = St::ClaimUri; + type Type = Set; type Identity = St::Identity; + type CreatedAt = St::CreatedAt; + type Sigs = St::Sigs; } - ///State transition - sets the `sigs` field to Set - pub struct SetSigs(PhantomData St>); - impl sealed::Sealed for SetSigs {} - impl State for SetSigs { - type Type = St::Type; + ///State transition - sets the `identity` field to Set + pub struct SetIdentity(PhantomData St>); + impl sealed::Sealed for SetIdentity {} + impl State for SetIdentity { type ClaimUri = St::ClaimUri; - type Sigs = Set; + type Type = St::Type; + type Identity = Set; type CreatedAt = St::CreatedAt; - type Identity = St::Identity; + type Sigs = St::Sigs; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Type = St::Type; type ClaimUri = St::ClaimUri; - type Sigs = St::Sigs; - type CreatedAt = Set; + type Type = St::Type; type Identity = St::Identity; + type CreatedAt = Set; + type Sigs = St::Sigs; } - ///State transition - sets the `identity` field to Set - pub struct SetIdentity(PhantomData St>); - impl sealed::Sealed for SetIdentity {} - impl State for SetIdentity { - type Type = St::Type; + ///State transition - sets the `sigs` field to Set + pub struct SetSigs(PhantomData St>); + impl sealed::Sealed for SetSigs {} + impl State for SetSigs { type ClaimUri = St::ClaimUri; - type Sigs = St::Sigs; + type Type = St::Type; + type Identity = St::Identity; type CreatedAt = St::CreatedAt; - type Identity = Set; + type Sigs = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `claim_uri` field pub struct claim_uri(()); - ///Marker type for the `sigs` field - pub struct sigs(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `type` field + pub struct r#type(()); ///Marker type for the `identity` field pub struct identity(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `sigs` field + pub struct sigs(()); } } @@ -955,11 +955,11 @@ where impl ClaimBuilder where St: claim_state::State, - St::Type: claim_state::IsSet, St::ClaimUri: claim_state::IsSet, - St::Sigs: claim_state::IsSet, - St::CreatedAt: claim_state::IsSet, + St::Type: claim_state::IsSet, St::Identity: claim_state::IsSet, + St::CreatedAt: claim_state::IsSet, + St::Sigs: claim_state::IsSet, { /// Build the final struct. pub fn build(self) -> Claim { diff --git a/crates/jacquard-api/src/dev_keytrace/server_public_key.rs b/crates/jacquard-api/src/dev_keytrace/server_public_key.rs index af5ca651..e7d0eb2d 100644 --- a/crates/jacquard-api/src/dev_keytrace/server_public_key.rs +++ b/crates/jacquard-api/src/dev_keytrace/server_public_key.rs @@ -142,51 +142,51 @@ pub mod server_public_key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ValidUntil; - type PublicJwk; type ValidFrom; + type PublicJwk; + type ValidUntil; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ValidUntil = Unset; - type PublicJwk = Unset; type ValidFrom = Unset; + type PublicJwk = Unset; + type ValidUntil = Unset; } - ///State transition - sets the `valid_until` field to Set - pub struct SetValidUntil(PhantomData St>); - impl sealed::Sealed for SetValidUntil {} - impl State for SetValidUntil { - type ValidUntil = Set; + ///State transition - sets the `valid_from` field to Set + pub struct SetValidFrom(PhantomData St>); + impl sealed::Sealed for SetValidFrom {} + impl State for SetValidFrom { + type ValidFrom = Set; type PublicJwk = St::PublicJwk; - type ValidFrom = St::ValidFrom; + type ValidUntil = St::ValidUntil; } ///State transition - sets the `public_jwk` field to Set pub struct SetPublicJwk(PhantomData St>); impl sealed::Sealed for SetPublicJwk {} impl State for SetPublicJwk { - type ValidUntil = St::ValidUntil; - type PublicJwk = Set; type ValidFrom = St::ValidFrom; - } - ///State transition - sets the `valid_from` field to Set - pub struct SetValidFrom(PhantomData St>); - impl sealed::Sealed for SetValidFrom {} - impl State for SetValidFrom { + type PublicJwk = Set; type ValidUntil = St::ValidUntil; + } + ///State transition - sets the `valid_until` field to Set + pub struct SetValidUntil(PhantomData St>); + impl sealed::Sealed for SetValidUntil {} + impl State for SetValidUntil { + type ValidFrom = St::ValidFrom; type PublicJwk = St::PublicJwk; - type ValidFrom = Set; + type ValidUntil = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `valid_until` field - pub struct valid_until(()); - ///Marker type for the `public_jwk` field - pub struct public_jwk(()); ///Marker type for the `valid_from` field pub struct valid_from(()); + ///Marker type for the `public_jwk` field + pub struct public_jwk(()); + ///Marker type for the `valid_until` field + pub struct valid_until(()); } } @@ -288,9 +288,9 @@ where impl ServerPublicKeyBuilder where St: server_public_key_state::State, - St::ValidUntil: server_public_key_state::IsSet, - St::PublicJwk: server_public_key_state::IsSet, St::ValidFrom: server_public_key_state::IsSet, + St::PublicJwk: server_public_key_state::IsSet, + St::ValidUntil: server_public_key_state::IsSet, { /// Build the final struct. pub fn build(self) -> ServerPublicKey { diff --git a/crates/jacquard-api/src/dev_keytrace/signature.rs b/crates/jacquard-api/src/dev_keytrace/signature.rs index fe4000e0..90080571 100644 --- a/crates/jacquard-api/src/dev_keytrace/signature.rs +++ b/crates/jacquard-api/src/dev_keytrace/signature.rs @@ -87,84 +87,84 @@ pub mod signature_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Kid; + type SignedFields; + type Src; type Attestation; type SignedAt; - type Src; - type SignedFields; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Kid = Unset; + type SignedFields = Unset; + type Src = Unset; type Attestation = Unset; type SignedAt = Unset; - type Src = Unset; - type SignedFields = Unset; } ///State transition - sets the `kid` field to Set pub struct SetKid(PhantomData St>); impl sealed::Sealed for SetKid {} impl State for SetKid { type Kid = Set; + type SignedFields = St::SignedFields; + type Src = St::Src; type Attestation = St::Attestation; type SignedAt = St::SignedAt; + } + ///State transition - sets the `signed_fields` field to Set + pub struct SetSignedFields(PhantomData St>); + impl sealed::Sealed for SetSignedFields {} + impl State for SetSignedFields { + type Kid = St::Kid; + type SignedFields = Set; type Src = St::Src; + type Attestation = St::Attestation; + type SignedAt = St::SignedAt; + } + ///State transition - sets the `src` field to Set + pub struct SetSrc(PhantomData St>); + impl sealed::Sealed for SetSrc {} + impl State for SetSrc { + type Kid = St::Kid; type SignedFields = St::SignedFields; + type Src = Set; + type Attestation = St::Attestation; + type SignedAt = St::SignedAt; } ///State transition - sets the `attestation` field to Set pub struct SetAttestation(PhantomData St>); impl sealed::Sealed for SetAttestation {} impl State for SetAttestation { type Kid = St::Kid; + type SignedFields = St::SignedFields; + type Src = St::Src; type Attestation = Set; type SignedAt = St::SignedAt; - type Src = St::Src; - type SignedFields = St::SignedFields; } ///State transition - sets the `signed_at` field to Set pub struct SetSignedAt(PhantomData St>); impl sealed::Sealed for SetSignedAt {} impl State for SetSignedAt { type Kid = St::Kid; - type Attestation = St::Attestation; - type SignedAt = Set; - type Src = St::Src; - type SignedFields = St::SignedFields; - } - ///State transition - sets the `src` field to Set - pub struct SetSrc(PhantomData St>); - impl sealed::Sealed for SetSrc {} - impl State for SetSrc { - type Kid = St::Kid; - type Attestation = St::Attestation; - type SignedAt = St::SignedAt; - type Src = Set; type SignedFields = St::SignedFields; - } - ///State transition - sets the `signed_fields` field to Set - pub struct SetSignedFields(PhantomData St>); - impl sealed::Sealed for SetSignedFields {} - impl State for SetSignedFields { - type Kid = St::Kid; - type Attestation = St::Attestation; - type SignedAt = St::SignedAt; type Src = St::Src; - type SignedFields = Set; + type Attestation = St::Attestation; + type SignedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `kid` field pub struct kid(()); + ///Marker type for the `signed_fields` field + pub struct signed_fields(()); + ///Marker type for the `src` field + pub struct src(()); ///Marker type for the `attestation` field pub struct attestation(()); ///Marker type for the `signed_at` field pub struct signed_at(()); - ///Marker type for the `src` field - pub struct src(()); - ///Marker type for the `signed_fields` field - pub struct signed_fields(()); } } @@ -326,10 +326,10 @@ impl SignatureBuilder where St: signature_state::State, St::Kid: signature_state::IsSet, + St::SignedFields: signature_state::IsSet, + St::Src: signature_state::IsSet, St::Attestation: signature_state::IsSet, St::SignedAt: signature_state::IsSet, - St::Src: signature_state::IsSet, - St::SignedFields: signature_state::IsSet, { /// Build the final struct. pub fn build(self) -> Signature { diff --git a/crates/jacquard-api/src/dev_keytrace/statement.rs b/crates/jacquard-api/src/dev_keytrace/statement.rs index 1ac52532..0121f9cd 100644 --- a/crates/jacquard-api/src/dev_keytrace/statement.rs +++ b/crates/jacquard-api/src/dev_keytrace/statement.rs @@ -160,67 +160,67 @@ pub mod statement_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Sig; type KeyRef; type CreatedAt; type Content; - type Sig; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Sig = Unset; type KeyRef = Unset; type CreatedAt = Unset; type Content = Unset; - type Sig = Unset; + } + ///State transition - sets the `sig` field to Set + pub struct SetSig(PhantomData St>); + impl sealed::Sealed for SetSig {} + impl State for SetSig { + type Sig = Set; + type KeyRef = St::KeyRef; + type CreatedAt = St::CreatedAt; + type Content = St::Content; } ///State transition - sets the `key_ref` field to Set pub struct SetKeyRef(PhantomData St>); impl sealed::Sealed for SetKeyRef {} impl State for SetKeyRef { + type Sig = St::Sig; type KeyRef = Set; type CreatedAt = St::CreatedAt; type Content = St::Content; - type Sig = St::Sig; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Sig = St::Sig; type KeyRef = St::KeyRef; type CreatedAt = Set; type Content = St::Content; - type Sig = St::Sig; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type KeyRef = St::KeyRef; - type CreatedAt = St::CreatedAt; - type Content = Set; type Sig = St::Sig; - } - ///State transition - sets the `sig` field to Set - pub struct SetSig(PhantomData St>); - impl sealed::Sealed for SetSig {} - impl State for SetSig { type KeyRef = St::KeyRef; type CreatedAt = St::CreatedAt; - type Content = St::Content; - type Sig = Set; + type Content = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `sig` field + pub struct sig(()); ///Marker type for the `key_ref` field pub struct key_ref(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `content` field pub struct content(()); - ///Marker type for the `sig` field - pub struct sig(()); } } @@ -361,10 +361,10 @@ impl StatementBuilder { impl StatementBuilder where St: statement_state::State, + St::Sig: statement_state::IsSet, St::KeyRef: statement_state::IsSet, St::CreatedAt: statement_state::IsSet, St::Content: statement_state::IsSet, - St::Sig: statement_state::IsSet, { /// Build the final struct. pub fn build(self) -> Statement { diff --git a/crates/jacquard-api/src/dev_keytrace/user_public_key.rs b/crates/jacquard-api/src/dev_keytrace/user_public_key.rs index 9f56e1e9..44df4bd8 100644 --- a/crates/jacquard-api/src/dev_keytrace/user_public_key.rs +++ b/crates/jacquard-api/src/dev_keytrace/user_public_key.rs @@ -276,49 +276,49 @@ pub mod user_public_key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type KeyType; type CreatedAt; + type KeyType; type PublicKeyArmored; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type KeyType = Unset; type CreatedAt = Unset; + type KeyType = Unset; type PublicKeyArmored = Unset; } - ///State transition - sets the `key_type` field to Set - pub struct SetKeyType(PhantomData St>); - impl sealed::Sealed for SetKeyType {} - impl State for SetKeyType { - type KeyType = Set; - type CreatedAt = St::CreatedAt; - type PublicKeyArmored = St::PublicKeyArmored; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type KeyType = St::KeyType; type CreatedAt = Set; + type KeyType = St::KeyType; + type PublicKeyArmored = St::PublicKeyArmored; + } + ///State transition - sets the `key_type` field to Set + pub struct SetKeyType(PhantomData St>); + impl sealed::Sealed for SetKeyType {} + impl State for SetKeyType { + type CreatedAt = St::CreatedAt; + type KeyType = Set; type PublicKeyArmored = St::PublicKeyArmored; } ///State transition - sets the `public_key_armored` field to Set pub struct SetPublicKeyArmored(PhantomData St>); impl sealed::Sealed for SetPublicKeyArmored {} impl State for SetPublicKeyArmored { - type KeyType = St::KeyType; type CreatedAt = St::CreatedAt; + type KeyType = St::KeyType; type PublicKeyArmored = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `key_type` field - pub struct key_type(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `key_type` field + pub struct key_type(()); ///Marker type for the `public_key_armored` field pub struct public_key_armored(()); } @@ -483,8 +483,8 @@ impl UserPublicKeyBuilder { impl UserPublicKeyBuilder where St: user_public_key_state::State, - St::KeyType: user_public_key_state::IsSet, St::CreatedAt: user_public_key_state::IsSet, + St::KeyType: user_public_key_state::IsSet, St::PublicKeyArmored: user_public_key_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs b/crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs index cb2279f5..32f53c53 100644 --- a/crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs +++ b/crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs @@ -141,67 +141,67 @@ pub mod board_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Nsfw; - type Description; type CreatedAt; type Title; + type Nsfw; + type Description; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Nsfw = Unset; - type Description = Unset; type CreatedAt = Unset; type Title = Unset; - } - ///State transition - sets the `nsfw` field to Set - pub struct SetNsfw(PhantomData St>); - impl sealed::Sealed for SetNsfw {} - impl State for SetNsfw { - type Nsfw = Set; - type Description = St::Description; - type CreatedAt = St::CreatedAt; - type Title = St::Title; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { - type Nsfw = St::Nsfw; - type Description = Set; - type CreatedAt = St::CreatedAt; - type Title = St::Title; + type Nsfw = Unset; + type Description = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Nsfw = St::Nsfw; - type Description = St::Description; type CreatedAt = Set; type Title = St::Title; + type Nsfw = St::Nsfw; + type Description = St::Description; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { + type CreatedAt = St::CreatedAt; + type Title = Set; type Nsfw = St::Nsfw; type Description = St::Description; + } + ///State transition - sets the `nsfw` field to Set + pub struct SetNsfw(PhantomData St>); + impl sealed::Sealed for SetNsfw {} + impl State for SetNsfw { type CreatedAt = St::CreatedAt; - type Title = Set; + type Title = St::Title; + type Nsfw = Set; + type Description = St::Description; + } + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type CreatedAt = St::CreatedAt; + type Title = St::Title; + type Nsfw = St::Nsfw; + type Description = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `nsfw` field - pub struct nsfw(()); - ///Marker type for the `description` field - pub struct description(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `nsfw` field + pub struct nsfw(()); + ///Marker type for the `description` field + pub struct description(()); } } @@ -309,10 +309,10 @@ where impl BoardBuilder where St: board_state::State, - St::Nsfw: board_state::IsSet, - St::Description: board_state::IsSet, St::CreatedAt: board_state::IsSet, St::Title: board_state::IsSet, + St::Nsfw: board_state::IsSet, + St::Description: board_state::IsSet, { /// Build the final struct. pub fn build(self) -> Board { diff --git a/crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs b/crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs index 92f2ab65..ea6a5190 100644 --- a/crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs +++ b/crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs @@ -168,51 +168,51 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; type CreatedAt; type Parent; + type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Text = Unset; type CreatedAt = Unset; type Parent = Unset; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type CreatedAt = St::CreatedAt; - type Parent = St::Parent; + type Text = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = St::Text; type CreatedAt = Set; type Parent = St::Parent; + type Text = St::Text; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData St>); impl sealed::Sealed for SetParent {} impl State for SetParent { - type Text = St::Text; type CreatedAt = St::CreatedAt; type Parent = Set; + type Text = St::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = St::CreatedAt; + type Parent = St::Parent; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `text` field - pub struct text(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `parent` field pub struct parent(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -314,9 +314,9 @@ where impl PostBuilder where St: post_state::State, - St::Text: post_state::IsSet, St::CreatedAt: post_state::IsSet, St::Parent: post_state::IsSet, + St::Text: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/dev_regnault/webfishing/savefile.rs b/crates/jacquard-api/src/dev_regnault/webfishing/savefile.rs index 2dd30735..70865c5e 100644 --- a/crates/jacquard-api/src/dev_regnault/webfishing/savefile.rs +++ b/crates/jacquard-api/src/dev_regnault/webfishing/savefile.rs @@ -112,37 +112,37 @@ pub mod savefile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Uri; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Uri = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Uri = St::Uri; + type Name = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Name = St::Name; type Uri = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Uri = St::Uri; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -212,8 +212,8 @@ where impl SavefileBuilder where St: savefile_state::State, - St::Name: savefile_state::IsSet, St::Uri: savefile_state::IsSet, + St::Name: savefile_state::IsSet, { /// Build the final struct. pub fn build(self) -> Savefile { diff --git a/crates/jacquard-api/src/dev_sensorthings/datastream.rs b/crates/jacquard-api/src/dev_sensorthings/datastream.rs index ff69edbd..4b91df37 100644 --- a/crates/jacquard-api/src/dev_sensorthings/datastream.rs +++ b/crates/jacquard-api/src/dev_sensorthings/datastream.rs @@ -215,127 +215,127 @@ pub mod datastream_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type UnitOfMeasurement; + type ObservedProperty; type Name; + type ObservationType; + type CreatedAt; type Thing; type Sensor; - type ObservedProperty; - type UnitOfMeasurement; - type CreatedAt; - type ObservationType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type UnitOfMeasurement = Unset; + type ObservedProperty = Unset; type Name = Unset; + type ObservationType = Unset; + type CreatedAt = Unset; type Thing = Unset; type Sensor = Unset; - type ObservedProperty = Unset; - type UnitOfMeasurement = Unset; - type CreatedAt = Unset; - type ObservationType = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Thing = St::Thing; - type Sensor = St::Sensor; + ///State transition - sets the `unit_of_measurement` field to Set + pub struct SetUnitOfMeasurement(PhantomData St>); + impl sealed::Sealed for SetUnitOfMeasurement {} + impl State for SetUnitOfMeasurement { + type UnitOfMeasurement = Set; type ObservedProperty = St::ObservedProperty; - type UnitOfMeasurement = St::UnitOfMeasurement; - type CreatedAt = St::CreatedAt; - type ObservationType = St::ObservationType; - } - ///State transition - sets the `thing` field to Set - pub struct SetThing(PhantomData St>); - impl sealed::Sealed for SetThing {} - impl State for SetThing { type Name = St::Name; - type Thing = Set; - type Sensor = St::Sensor; - type ObservedProperty = St::ObservedProperty; - type UnitOfMeasurement = St::UnitOfMeasurement; - type CreatedAt = St::CreatedAt; type ObservationType = St::ObservationType; - } - ///State transition - sets the `sensor` field to Set - pub struct SetSensor(PhantomData St>); - impl sealed::Sealed for SetSensor {} - impl State for SetSensor { - type Name = St::Name; - type Thing = St::Thing; - type Sensor = Set; - type ObservedProperty = St::ObservedProperty; - type UnitOfMeasurement = St::UnitOfMeasurement; type CreatedAt = St::CreatedAt; - type ObservationType = St::ObservationType; + type Thing = St::Thing; + type Sensor = St::Sensor; } ///State transition - sets the `observed_property` field to Set pub struct SetObservedProperty(PhantomData St>); impl sealed::Sealed for SetObservedProperty {} impl State for SetObservedProperty { + type UnitOfMeasurement = St::UnitOfMeasurement; + type ObservedProperty = Set; type Name = St::Name; + type ObservationType = St::ObservationType; + type CreatedAt = St::CreatedAt; type Thing = St::Thing; type Sensor = St::Sensor; - type ObservedProperty = Set; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { type UnitOfMeasurement = St::UnitOfMeasurement; - type CreatedAt = St::CreatedAt; + type ObservedProperty = St::ObservedProperty; + type Name = Set; type ObservationType = St::ObservationType; - } - ///State transition - sets the `unit_of_measurement` field to Set - pub struct SetUnitOfMeasurement(PhantomData St>); - impl sealed::Sealed for SetUnitOfMeasurement {} - impl State for SetUnitOfMeasurement { - type Name = St::Name; + type CreatedAt = St::CreatedAt; type Thing = St::Thing; type Sensor = St::Sensor; + } + ///State transition - sets the `observation_type` field to Set + pub struct SetObservationType(PhantomData St>); + impl sealed::Sealed for SetObservationType {} + impl State for SetObservationType { + type UnitOfMeasurement = St::UnitOfMeasurement; type ObservedProperty = St::ObservedProperty; - type UnitOfMeasurement = Set; + type Name = St::Name; + type ObservationType = Set; type CreatedAt = St::CreatedAt; - type ObservationType = St::ObservationType; + type Thing = St::Thing; + type Sensor = St::Sensor; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type UnitOfMeasurement = St::UnitOfMeasurement; + type ObservedProperty = St::ObservedProperty; type Name = St::Name; + type ObservationType = St::ObservationType; + type CreatedAt = Set; type Thing = St::Thing; type Sensor = St::Sensor; - type ObservedProperty = St::ObservedProperty; - type UnitOfMeasurement = St::UnitOfMeasurement; - type CreatedAt = Set; - type ObservationType = St::ObservationType; } - ///State transition - sets the `observation_type` field to Set - pub struct SetObservationType(PhantomData St>); - impl sealed::Sealed for SetObservationType {} - impl State for SetObservationType { + ///State transition - sets the `thing` field to Set + pub struct SetThing(PhantomData St>); + impl sealed::Sealed for SetThing {} + impl State for SetThing { + type UnitOfMeasurement = St::UnitOfMeasurement; + type ObservedProperty = St::ObservedProperty; type Name = St::Name; - type Thing = St::Thing; + type ObservationType = St::ObservationType; + type CreatedAt = St::CreatedAt; + type Thing = Set; type Sensor = St::Sensor; - type ObservedProperty = St::ObservedProperty; + } + ///State transition - sets the `sensor` field to Set + pub struct SetSensor(PhantomData St>); + impl sealed::Sealed for SetSensor {} + impl State for SetSensor { type UnitOfMeasurement = St::UnitOfMeasurement; + type ObservedProperty = St::ObservedProperty; + type Name = St::Name; + type ObservationType = St::ObservationType; type CreatedAt = St::CreatedAt; - type ObservationType = Set; + type Thing = St::Thing; + type Sensor = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `unit_of_measurement` field + pub struct unit_of_measurement(()); + ///Marker type for the `observed_property` field + pub struct observed_property(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `observation_type` field + pub struct observation_type(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `thing` field pub struct thing(()); ///Marker type for the `sensor` field pub struct sensor(()); - ///Marker type for the `observed_property` field - pub struct observed_property(()); - ///Marker type for the `unit_of_measurement` field - pub struct unit_of_measurement(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `observation_type` field - pub struct observation_type(()); } } @@ -564,13 +564,13 @@ impl DatastreamBuilder { impl DatastreamBuilder where St: datastream_state::State, + St::UnitOfMeasurement: datastream_state::IsSet, + St::ObservedProperty: datastream_state::IsSet, St::Name: datastream_state::IsSet, + St::ObservationType: datastream_state::IsSet, + St::CreatedAt: datastream_state::IsSet, St::Thing: datastream_state::IsSet, St::Sensor: datastream_state::IsSet, - St::ObservedProperty: datastream_state::IsSet, - St::UnitOfMeasurement: datastream_state::IsSet, - St::CreatedAt: datastream_state::IsSet, - St::ObservationType: datastream_state::IsSet, { /// Build the final struct. pub fn build(self) -> Datastream { diff --git a/crates/jacquard-api/src/dev_sensorthings/feature_of_interest.rs b/crates/jacquard-api/src/dev_sensorthings/feature_of_interest.rs index 9ebc61f2..55958fbd 100644 --- a/crates/jacquard-api/src/dev_sensorthings/feature_of_interest.rs +++ b/crates/jacquard-api/src/dev_sensorthings/feature_of_interest.rs @@ -150,67 +150,67 @@ pub mod feature_of_interest_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type EncodingType; - type Feature; type Name; type CreatedAt; + type EncodingType; + type Feature; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type EncodingType = Unset; - type Feature = Unset; type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `encoding_type` field to Set - pub struct SetEncodingType(PhantomData St>); - impl sealed::Sealed for SetEncodingType {} - impl State for SetEncodingType { - type EncodingType = Set; - type Feature = St::Feature; - type Name = St::Name; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `feature` field to Set - pub struct SetFeature(PhantomData St>); - impl sealed::Sealed for SetFeature {} - impl State for SetFeature { - type EncodingType = St::EncodingType; - type Feature = Set; - type Name = St::Name; - type CreatedAt = St::CreatedAt; + type EncodingType = Unset; + type Feature = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type EncodingType = St::EncodingType; - type Feature = St::Feature; type Name = Set; type CreatedAt = St::CreatedAt; + type EncodingType = St::EncodingType; + type Feature = St::Feature; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = Set; type EncodingType = St::EncodingType; type Feature = St::Feature; + } + ///State transition - sets the `encoding_type` field to Set + pub struct SetEncodingType(PhantomData St>); + impl sealed::Sealed for SetEncodingType {} + impl State for SetEncodingType { type Name = St::Name; - type CreatedAt = Set; + type CreatedAt = St::CreatedAt; + type EncodingType = Set; + type Feature = St::Feature; + } + ///State transition - sets the `feature` field to Set + pub struct SetFeature(PhantomData St>); + impl sealed::Sealed for SetFeature {} + impl State for SetFeature { + type Name = St::Name; + type CreatedAt = St::CreatedAt; + type EncodingType = St::EncodingType; + type Feature = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `encoding_type` field - pub struct encoding_type(()); - ///Marker type for the `feature` field - pub struct feature(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `encoding_type` field + pub struct encoding_type(()); + ///Marker type for the `feature` field + pub struct feature(()); } } @@ -331,10 +331,10 @@ where impl FeatureOfInterestBuilder where St: feature_of_interest_state::State, - St::EncodingType: feature_of_interest_state::IsSet, - St::Feature: feature_of_interest_state::IsSet, St::Name: feature_of_interest_state::IsSet, St::CreatedAt: feature_of_interest_state::IsSet, + St::EncodingType: feature_of_interest_state::IsSet, + St::Feature: feature_of_interest_state::IsSet, { /// Build the final struct. pub fn build(self) -> FeatureOfInterest { diff --git a/crates/jacquard-api/src/dev_sensorthings/multi_observation.rs b/crates/jacquard-api/src/dev_sensorthings/multi_observation.rs index e93cacc2..ee8318e0 100644 --- a/crates/jacquard-api/src/dev_sensorthings/multi_observation.rs +++ b/crates/jacquard-api/src/dev_sensorthings/multi_observation.rs @@ -394,67 +394,67 @@ pub mod multi_observation_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Thing; - type Sensor; type PhenomenonTime; type Entries; + type Thing; + type Sensor; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Thing = Unset; - type Sensor = Unset; type PhenomenonTime = Unset; type Entries = Unset; - } - ///State transition - sets the `thing` field to Set - pub struct SetThing(PhantomData St>); - impl sealed::Sealed for SetThing {} - impl State for SetThing { - type Thing = Set; - type Sensor = St::Sensor; - type PhenomenonTime = St::PhenomenonTime; - type Entries = St::Entries; - } - ///State transition - sets the `sensor` field to Set - pub struct SetSensor(PhantomData St>); - impl sealed::Sealed for SetSensor {} - impl State for SetSensor { - type Thing = St::Thing; - type Sensor = Set; - type PhenomenonTime = St::PhenomenonTime; - type Entries = St::Entries; + type Thing = Unset; + type Sensor = Unset; } ///State transition - sets the `phenomenon_time` field to Set pub struct SetPhenomenonTime(PhantomData St>); impl sealed::Sealed for SetPhenomenonTime {} impl State for SetPhenomenonTime { - type Thing = St::Thing; - type Sensor = St::Sensor; type PhenomenonTime = Set; type Entries = St::Entries; + type Thing = St::Thing; + type Sensor = St::Sensor; } ///State transition - sets the `entries` field to Set pub struct SetEntries(PhantomData St>); impl sealed::Sealed for SetEntries {} impl State for SetEntries { + type PhenomenonTime = St::PhenomenonTime; + type Entries = Set; type Thing = St::Thing; type Sensor = St::Sensor; + } + ///State transition - sets the `thing` field to Set + pub struct SetThing(PhantomData St>); + impl sealed::Sealed for SetThing {} + impl State for SetThing { type PhenomenonTime = St::PhenomenonTime; - type Entries = Set; + type Entries = St::Entries; + type Thing = Set; + type Sensor = St::Sensor; + } + ///State transition - sets the `sensor` field to Set + pub struct SetSensor(PhantomData St>); + impl sealed::Sealed for SetSensor {} + impl State for SetSensor { + type PhenomenonTime = St::PhenomenonTime; + type Entries = St::Entries; + type Thing = St::Thing; + type Sensor = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `thing` field - pub struct thing(()); - ///Marker type for the `sensor` field - pub struct sensor(()); ///Marker type for the `phenomenon_time` field pub struct phenomenon_time(()); ///Marker type for the `entries` field pub struct entries(()); + ///Marker type for the `thing` field + pub struct thing(()); + ///Marker type for the `sensor` field + pub struct sensor(()); } } @@ -629,10 +629,10 @@ where impl MultiObservationBuilder where St: multi_observation_state::State, - St::Thing: multi_observation_state::IsSet, - St::Sensor: multi_observation_state::IsSet, St::PhenomenonTime: multi_observation_state::IsSet, St::Entries: multi_observation_state::IsSet, + St::Thing: multi_observation_state::IsSet, + St::Sensor: multi_observation_state::IsSet, { /// Build the final struct. pub fn build(self) -> MultiObservation { @@ -896,50 +896,50 @@ pub mod multi_observation_entry_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type UnitOfMeasurement; - type ObservedProperty; type Result; + type ObservedProperty; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type UnitOfMeasurement = Unset; - type ObservedProperty = Unset; type Result = Unset; + type ObservedProperty = Unset; } ///State transition - sets the `unit_of_measurement` field to Set pub struct SetUnitOfMeasurement(PhantomData St>); impl sealed::Sealed for SetUnitOfMeasurement {} impl State for SetUnitOfMeasurement { type UnitOfMeasurement = Set; - type ObservedProperty = St::ObservedProperty; - type Result = St::Result; - } - ///State transition - sets the `observed_property` field to Set - pub struct SetObservedProperty(PhantomData St>); - impl sealed::Sealed for SetObservedProperty {} - impl State for SetObservedProperty { - type UnitOfMeasurement = St::UnitOfMeasurement; - type ObservedProperty = Set; type Result = St::Result; + type ObservedProperty = St::ObservedProperty; } ///State transition - sets the `result` field to Set pub struct SetResult(PhantomData St>); impl sealed::Sealed for SetResult {} impl State for SetResult { type UnitOfMeasurement = St::UnitOfMeasurement; - type ObservedProperty = St::ObservedProperty; type Result = Set; + type ObservedProperty = St::ObservedProperty; + } + ///State transition - sets the `observed_property` field to Set + pub struct SetObservedProperty(PhantomData St>); + impl sealed::Sealed for SetObservedProperty {} + impl State for SetObservedProperty { + type UnitOfMeasurement = St::UnitOfMeasurement; + type Result = St::Result; + type ObservedProperty = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `unit_of_measurement` field pub struct unit_of_measurement(()); - ///Marker type for the `observed_property` field - pub struct observed_property(()); ///Marker type for the `result` field pub struct result(()); + ///Marker type for the `observed_property` field + pub struct observed_property(()); } } @@ -1085,8 +1085,8 @@ impl MultiObservationEntryBuilder where St: multi_observation_entry_state::State, St::UnitOfMeasurement: multi_observation_entry_state::IsSet, - St::ObservedProperty: multi_observation_entry_state::IsSet, St::Result: multi_observation_entry_state::IsSet, + St::ObservedProperty: multi_observation_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> MultiObservationEntry { diff --git a/crates/jacquard-api/src/dev_sensorthings/observation_batch.rs b/crates/jacquard-api/src/dev_sensorthings/observation_batch.rs index 32114055..10b894d7 100644 --- a/crates/jacquard-api/src/dev_sensorthings/observation_batch.rs +++ b/crates/jacquard-api/src/dev_sensorthings/observation_batch.rs @@ -517,67 +517,67 @@ pub mod observation_batch_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Datastream; + type WindowEnd; type Observations; type WindowStart; - type WindowEnd; - type Datastream; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Datastream = Unset; + type WindowEnd = Unset; type Observations = Unset; type WindowStart = Unset; - type WindowEnd = Unset; - type Datastream = Unset; + } + ///State transition - sets the `datastream` field to Set + pub struct SetDatastream(PhantomData St>); + impl sealed::Sealed for SetDatastream {} + impl State for SetDatastream { + type Datastream = Set; + type WindowEnd = St::WindowEnd; + type Observations = St::Observations; + type WindowStart = St::WindowStart; + } + ///State transition - sets the `window_end` field to Set + pub struct SetWindowEnd(PhantomData St>); + impl sealed::Sealed for SetWindowEnd {} + impl State for SetWindowEnd { + type Datastream = St::Datastream; + type WindowEnd = Set; + type Observations = St::Observations; + type WindowStart = St::WindowStart; } ///State transition - sets the `observations` field to Set pub struct SetObservations(PhantomData St>); impl sealed::Sealed for SetObservations {} impl State for SetObservations { + type Datastream = St::Datastream; + type WindowEnd = St::WindowEnd; type Observations = Set; type WindowStart = St::WindowStart; - type WindowEnd = St::WindowEnd; - type Datastream = St::Datastream; } ///State transition - sets the `window_start` field to Set pub struct SetWindowStart(PhantomData St>); impl sealed::Sealed for SetWindowStart {} impl State for SetWindowStart { - type Observations = St::Observations; - type WindowStart = Set; - type WindowEnd = St::WindowEnd; - type Datastream = St::Datastream; - } - ///State transition - sets the `window_end` field to Set - pub struct SetWindowEnd(PhantomData St>); - impl sealed::Sealed for SetWindowEnd {} - impl State for SetWindowEnd { - type Observations = St::Observations; - type WindowStart = St::WindowStart; - type WindowEnd = Set; type Datastream = St::Datastream; - } - ///State transition - sets the `datastream` field to Set - pub struct SetDatastream(PhantomData St>); - impl sealed::Sealed for SetDatastream {} - impl State for SetDatastream { - type Observations = St::Observations; - type WindowStart = St::WindowStart; type WindowEnd = St::WindowEnd; - type Datastream = Set; + type Observations = St::Observations; + type WindowStart = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `datastream` field + pub struct datastream(()); + ///Marker type for the `window_end` field + pub struct window_end(()); ///Marker type for the `observations` field pub struct observations(()); ///Marker type for the `window_start` field pub struct window_start(()); - ///Marker type for the `window_end` field - pub struct window_end(()); - ///Marker type for the `datastream` field - pub struct datastream(()); } } @@ -690,10 +690,10 @@ where impl ObservationBatchBuilder where St: observation_batch_state::State, + St::Datastream: observation_batch_state::IsSet, + St::WindowEnd: observation_batch_state::IsSet, St::Observations: observation_batch_state::IsSet, St::WindowStart: observation_batch_state::IsSet, - St::WindowEnd: observation_batch_state::IsSet, - St::Datastream: observation_batch_state::IsSet, { /// Build the final struct. pub fn build(self) -> ObservationBatch { diff --git a/crates/jacquard-api/src/dev_sensorthings/sensor.rs b/crates/jacquard-api/src/dev_sensorthings/sensor.rs index b62e8327..82b58c8f 100644 --- a/crates/jacquard-api/src/dev_sensorthings/sensor.rs +++ b/crates/jacquard-api/src/dev_sensorthings/sensor.rs @@ -161,51 +161,51 @@ pub mod sensor_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type EncodingType; type CreatedAt; + type EncodingType; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type EncodingType = Unset; type CreatedAt = Unset; + type EncodingType = Unset; + type Name = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type EncodingType = St::EncodingType; - type CreatedAt = St::CreatedAt; + type Name = St::Name; } ///State transition - sets the `encoding_type` field to Set pub struct SetEncodingType(PhantomData St>); impl sealed::Sealed for SetEncodingType {} impl State for SetEncodingType { - type Name = St::Name; - type EncodingType = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type EncodingType = Set; type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; type EncodingType = St::EncodingType; - type CreatedAt = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `encoding_type` field - pub struct encoding_type(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `encoding_type` field + pub struct encoding_type(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -320,9 +320,9 @@ where impl SensorBuilder where St: sensor_state::State, - St::Name: sensor_state::IsSet, - St::EncodingType: sensor_state::IsSet, St::CreatedAt: sensor_state::IsSet, + St::EncodingType: sensor_state::IsSet, + St::Name: sensor_state::IsSet, { /// Build the final struct. pub fn build(self) -> Sensor { diff --git a/crates/jacquard-api/src/dev_tsunagite/chart.rs b/crates/jacquard-api/src/dev_tsunagite/chart.rs index 19713e27..e3a1f5ed 100644 --- a/crates/jacquard-api/src/dev_tsunagite/chart.rs +++ b/crates/jacquard-api/src/dev_tsunagite/chart.rs @@ -188,67 +188,67 @@ pub mod chart_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Rating; type Game; - type Difficulty; type Song; - type Rating; + type Difficulty; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Rating = Unset; type Game = Unset; - type Difficulty = Unset; type Song = Unset; - type Rating = Unset; + type Difficulty = Unset; + } + ///State transition - sets the `rating` field to Set + pub struct SetRating(PhantomData St>); + impl sealed::Sealed for SetRating {} + impl State for SetRating { + type Rating = Set; + type Game = St::Game; + type Song = St::Song; + type Difficulty = St::Difficulty; } ///State transition - sets the `game` field to Set pub struct SetGame(PhantomData St>); impl sealed::Sealed for SetGame {} impl State for SetGame { - type Game = Set; - type Difficulty = St::Difficulty; - type Song = St::Song; type Rating = St::Rating; - } - ///State transition - sets the `difficulty` field to Set - pub struct SetDifficulty(PhantomData St>); - impl sealed::Sealed for SetDifficulty {} - impl State for SetDifficulty { - type Game = St::Game; - type Difficulty = Set; + type Game = Set; type Song = St::Song; - type Rating = St::Rating; + type Difficulty = St::Difficulty; } ///State transition - sets the `song` field to Set pub struct SetSong(PhantomData St>); impl sealed::Sealed for SetSong {} impl State for SetSong { + type Rating = St::Rating; type Game = St::Game; - type Difficulty = St::Difficulty; type Song = Set; - type Rating = St::Rating; + type Difficulty = St::Difficulty; } - ///State transition - sets the `rating` field to Set - pub struct SetRating(PhantomData St>); - impl sealed::Sealed for SetRating {} - impl State for SetRating { + ///State transition - sets the `difficulty` field to Set + pub struct SetDifficulty(PhantomData St>); + impl sealed::Sealed for SetDifficulty {} + impl State for SetDifficulty { + type Rating = St::Rating; type Game = St::Game; - type Difficulty = St::Difficulty; type Song = St::Song; - type Rating = Set; + type Difficulty = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `rating` field + pub struct rating(()); ///Marker type for the `game` field pub struct game(()); - ///Marker type for the `difficulty` field - pub struct difficulty(()); ///Marker type for the `song` field pub struct song(()); - ///Marker type for the `rating` field - pub struct rating(()); + ///Marker type for the `difficulty` field + pub struct difficulty(()); } } @@ -403,10 +403,10 @@ where impl ChartBuilder where St: chart_state::State, + St::Rating: chart_state::IsSet, St::Game: chart_state::IsSet, - St::Difficulty: chart_state::IsSet, St::Song: chart_state::IsSet, - St::Rating: chart_state::IsSet, + St::Difficulty: chart_state::IsSet, { /// Build the final struct. pub fn build(self) -> Chart { diff --git a/crates/jacquard-api/src/dev_tsunagite/game.rs b/crates/jacquard-api/src/dev_tsunagite/game.rs index 894fe481..0323d795 100644 --- a/crates/jacquard-api/src/dev_tsunagite/game.rs +++ b/crates/jacquard-api/src/dev_tsunagite/game.rs @@ -402,51 +402,51 @@ pub mod enum_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Id; type Values; type Name; - type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Id = Unset; type Values = Unset; type Name = Unset; - type Id = Unset; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Id = Set; + type Values = St::Values; + type Name = St::Name; } ///State transition - sets the `values` field to Set pub struct SetValues(PhantomData St>); impl sealed::Sealed for SetValues {} impl State for SetValues { + type Id = St::Id; type Values = Set; type Name = St::Name; - type Id = St::Id; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Values = St::Values; - type Name = Set; type Id = St::Id; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { type Values = St::Values; - type Name = St::Name; - type Id = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `values` field pub struct values(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `id` field - pub struct id(()); } } @@ -535,9 +535,9 @@ where impl EnumBuilder where St: enum_state::State, + St::Id: enum_state::IsSet, St::Values: enum_state::IsSet, St::Name: enum_state::IsSet, - St::Id: enum_state::IsSet, { /// Build the final struct. pub fn build(self) -> Enum { @@ -902,8 +902,8 @@ pub mod game_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Judgments; + type Name; type ScoreComponents; type DefaultComponent; } @@ -911,26 +911,26 @@ pub mod game_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Judgments = Unset; + type Name = Unset; type ScoreComponents = Unset; type DefaultComponent = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Judgments = St::Judgments; - type ScoreComponents = St::ScoreComponents; - type DefaultComponent = St::DefaultComponent; - } ///State transition - sets the `judgments` field to Set pub struct SetJudgments(PhantomData St>); impl sealed::Sealed for SetJudgments {} impl State for SetJudgments { - type Name = St::Name; type Judgments = Set; + type Name = St::Name; + type ScoreComponents = St::ScoreComponents; + type DefaultComponent = St::DefaultComponent; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Judgments = St::Judgments; + type Name = Set; type ScoreComponents = St::ScoreComponents; type DefaultComponent = St::DefaultComponent; } @@ -938,8 +938,8 @@ pub mod game_state { pub struct SetScoreComponents(PhantomData St>); impl sealed::Sealed for SetScoreComponents {} impl State for SetScoreComponents { - type Name = St::Name; type Judgments = St::Judgments; + type Name = St::Name; type ScoreComponents = Set; type DefaultComponent = St::DefaultComponent; } @@ -947,18 +947,18 @@ pub mod game_state { pub struct SetDefaultComponent(PhantomData St>); impl sealed::Sealed for SetDefaultComponent {} impl State for SetDefaultComponent { - type Name = St::Name; type Judgments = St::Judgments; + type Name = St::Name; type ScoreComponents = St::ScoreComponents; type DefaultComponent = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `judgments` field pub struct judgments(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `score_components` field pub struct score_components(()); ///Marker type for the `default_component` field @@ -1117,8 +1117,8 @@ where impl GameBuilder where St: game_state::State, - St::Name: game_state::IsSet, St::Judgments: game_state::IsSet, + St::Name: game_state::IsSet, St::ScoreComponents: game_state::IsSet, St::DefaultComponent: game_state::IsSet, { @@ -1168,67 +1168,67 @@ pub mod percentage_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Maximum; type Id; - type Name; type Precision; - type Maximum; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Maximum = Unset; type Id = Unset; - type Name = Unset; type Precision = Unset; - type Maximum = Unset; + type Name = Unset; + } + ///State transition - sets the `maximum` field to Set + pub struct SetMaximum(PhantomData St>); + impl sealed::Sealed for SetMaximum {} + impl State for SetMaximum { + type Maximum = Set; + type Id = St::Id; + type Precision = St::Precision; + type Name = St::Name; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type Id = Set; - type Name = St::Name; - type Precision = St::Precision; type Maximum = St::Maximum; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Id = St::Id; - type Name = Set; + type Id = Set; type Precision = St::Precision; - type Maximum = St::Maximum; + type Name = St::Name; } ///State transition - sets the `precision` field to Set pub struct SetPrecision(PhantomData St>); impl sealed::Sealed for SetPrecision {} impl State for SetPrecision { + type Maximum = St::Maximum; type Id = St::Id; - type Name = St::Name; type Precision = Set; - type Maximum = St::Maximum; + type Name = St::Name; } - ///State transition - sets the `maximum` field to Set - pub struct SetMaximum(PhantomData St>); - impl sealed::Sealed for SetMaximum {} - impl State for SetMaximum { + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Maximum = St::Maximum; type Id = St::Id; - type Name = St::Name; type Precision = St::Precision; - type Maximum = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `maximum` field + pub struct maximum(()); ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `precision` field pub struct precision(()); - ///Marker type for the `maximum` field - pub struct maximum(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -1336,10 +1336,10 @@ where impl PercentageBuilder where St: percentage_state::State, + St::Maximum: percentage_state::IsSet, St::Id: percentage_state::IsSet, - St::Name: percentage_state::IsSet, St::Precision: percentage_state::IsSet, - St::Maximum: percentage_state::IsSet, + St::Name: percentage_state::IsSet, { /// Build the final struct. pub fn build(self) -> Percentage { diff --git a/crates/jacquard-api/src/dev_tsunagite/song.rs b/crates/jacquard-api/src/dev_tsunagite/song.rs index 4ae57221..f2d1c0d3 100644 --- a/crates/jacquard-api/src/dev_tsunagite/song.rs +++ b/crates/jacquard-api/src/dev_tsunagite/song.rs @@ -178,51 +178,51 @@ pub mod song_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Composer; type Game; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Composer = Unset; type Game = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Composer = St::Composer; - type Game = St::Game; + type Title = Unset; } ///State transition - sets the `composer` field to Set pub struct SetComposer(PhantomData St>); impl sealed::Sealed for SetComposer {} impl State for SetComposer { - type Title = St::Title; type Composer = Set; type Game = St::Game; + type Title = St::Title; } ///State transition - sets the `game` field to Set pub struct SetGame(PhantomData St>); impl sealed::Sealed for SetGame {} impl State for SetGame { - type Title = St::Title; type Composer = St::Composer; type Game = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Composer = St::Composer; + type Game = St::Game; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `composer` field pub struct composer(()); ///Marker type for the `game` field pub struct game(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -385,9 +385,9 @@ where impl SongBuilder where St: song_state::State, - St::Title: song_state::IsSet, St::Composer: song_state::IsSet, St::Game: song_state::IsSet, + St::Title: song_state::IsSet, { /// Build the final struct. pub fn build(self) -> Song { diff --git a/crates/jacquard-api/src/dev_tsunagite/types.rs b/crates/jacquard-api/src/dev_tsunagite/types.rs index bbecc2a1..77d1326e 100644 --- a/crates/jacquard-api/src/dev_tsunagite/types.rs +++ b/crates/jacquard-api/src/dev_tsunagite/types.rs @@ -116,51 +116,51 @@ pub mod indexable_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; type Name; type Index; + type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Id = Unset; type Name = Unset; type Index = Unset; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type Name = St::Name; - type Index = St::Index; + type Id = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Id = St::Id; type Name = Set; type Index = St::Index; + type Id = St::Id; } ///State transition - sets the `index` field to Set pub struct SetIndex(PhantomData St>); impl sealed::Sealed for SetIndex {} impl State for SetIndex { - type Id = St::Id; type Name = St::Name; type Index = Set; + type Id = St::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Name = St::Name; + type Index = St::Index; + type Id = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `id` field - pub struct id(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `index` field pub struct index(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -249,9 +249,9 @@ where impl IndexableBuilder where St: indexable_state::State, - St::Id: indexable_state::IsSet, St::Name: indexable_state::IsSet, St::Index: indexable_state::IsSet, + St::Id: indexable_state::IsSet, { /// Build the final struct. pub fn build(self) -> Indexable { diff --git a/crates/jacquard-api/src/dev_vielle/guestbook/entry.rs b/crates/jacquard-api/src/dev_vielle/guestbook/entry.rs index 45f29af1..c65276a4 100644 --- a/crates/jacquard-api/src/dev_vielle/guestbook/entry.rs +++ b/crates/jacquard-api/src/dev_vielle/guestbook/entry.rs @@ -111,37 +111,37 @@ pub mod entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Contents; type Book; + type Contents; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Contents = Unset; type Book = Unset; - } - ///State transition - sets the `contents` field to Set - pub struct SetContents(PhantomData St>); - impl sealed::Sealed for SetContents {} - impl State for SetContents { - type Contents = Set; - type Book = St::Book; + type Contents = Unset; } ///State transition - sets the `book` field to Set pub struct SetBook(PhantomData St>); impl sealed::Sealed for SetBook {} impl State for SetBook { - type Contents = St::Contents; type Book = Set; + type Contents = St::Contents; + } + ///State transition - sets the `contents` field to Set + pub struct SetContents(PhantomData St>); + impl sealed::Sealed for SetContents {} + impl State for SetContents { + type Book = St::Book; + type Contents = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `contents` field - pub struct contents(()); ///Marker type for the `book` field pub struct book(()); + ///Marker type for the `contents` field + pub struct contents(()); } } @@ -211,8 +211,8 @@ where impl EntryBuilder where St: entry_state::State, - St::Contents: entry_state::IsSet, St::Book: entry_state::IsSet, + St::Contents: entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> Entry { diff --git a/crates/jacquard-api/src/directory_evnt/event.rs b/crates/jacquard-api/src/directory_evnt/event.rs index 31b4f830..870d17c7 100644 --- a/crates/jacquard-api/src/directory_evnt/event.rs +++ b/crates/jacquard-api/src/directory_evnt/event.rs @@ -663,37 +663,37 @@ pub mod coordinates_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Lat; type Lng; + type Lat; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Lat = Unset; type Lng = Unset; - } - ///State transition - sets the `lat` field to Set - pub struct SetLat(PhantomData St>); - impl sealed::Sealed for SetLat {} - impl State for SetLat { - type Lat = Set; - type Lng = St::Lng; + type Lat = Unset; } ///State transition - sets the `lng` field to Set pub struct SetLng(PhantomData St>); impl sealed::Sealed for SetLng {} impl State for SetLng { - type Lat = St::Lat; type Lng = Set; + type Lat = St::Lat; + } + ///State transition - sets the `lat` field to Set + pub struct SetLat(PhantomData St>); + impl sealed::Sealed for SetLat {} + impl State for SetLat { + type Lng = St::Lng; + type Lat = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `lat` field - pub struct lat(()); ///Marker type for the `lng` field pub struct lng(()); + ///Marker type for the `lat` field + pub struct lat(()); } } @@ -763,8 +763,8 @@ where impl CoordinatesBuilder where St: coordinates_state::State, - St::Lat: coordinates_state::IsSet, St::Lng: coordinates_state::IsSet, + St::Lat: coordinates_state::IsSet, { /// Build the final struct. pub fn build(self) -> Coordinates { @@ -1116,51 +1116,51 @@ pub mod physical_venue_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Id; type Name; type Type; - type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Id = Unset; type Name = Unset; type Type = Unset; - type Id = Unset; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Id = Set; + type Name = St::Name; + type Type = St::Type; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { + type Id = St::Id; type Name = Set; type Type = St::Type; - type Id = St::Id; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { - type Name = St::Name; - type Type = Set; type Id = St::Id; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { type Name = St::Name; - type Type = St::Type; - type Id = Set; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `type` field pub struct r#type(()); - ///Marker type for the `id` field - pub struct id(()); } } @@ -1275,9 +1275,9 @@ where impl PhysicalVenueBuilder where St: physical_venue_state::State, + St::Id: physical_venue_state::IsSet, St::Name: physical_venue_state::IsSet, St::Type: physical_venue_state::IsSet, - St::Id: physical_venue_state::IsSet, { /// Build the final struct. pub fn build(self) -> PhysicalVenue { @@ -1316,51 +1316,51 @@ pub mod unknown_venue_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Type; type Name; type Id; - type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Type = Unset; type Name = Unset; type Id = Unset; - type Type = Unset; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Type = Set; + type Name = St::Name; + type Id = St::Id; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { + type Type = St::Type; type Name = Set; type Id = St::Id; - type Type = St::Type; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type Name = St::Name; - type Id = Set; type Type = St::Type; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { type Name = St::Name; - type Id = St::Id; - type Type = Set; + type Id = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `type` field + pub struct r#type(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `type` field - pub struct r#type(()); } } @@ -1449,9 +1449,9 @@ where impl UnknownVenueBuilder where St: unknown_venue_state::State, + St::Type: unknown_venue_state::IsSet, St::Name: unknown_venue_state::IsSet, St::Id: unknown_venue_state::IsSet, - St::Type: unknown_venue_state::IsSet, { /// Build the final struct. pub fn build(self) -> UnknownVenue { @@ -1486,37 +1486,37 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type V; type Name; + type V; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type V = Unset; type Name = Unset; - } - ///State transition - sets the `v` field to Set - pub struct SetV(PhantomData St>); - impl sealed::Sealed for SetV {} - impl State for SetV { - type V = Set; - type Name = St::Name; + type V = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type V = St::V; type Name = Set; + type V = St::V; + } + ///State transition - sets the `v` field to Set + pub struct SetV(PhantomData St>); + impl sealed::Sealed for SetV {} + impl State for SetV { + type Name = St::Name; + type V = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `v` field - pub struct v(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `v` field + pub struct v(()); } } @@ -1656,8 +1656,8 @@ impl EventBuilder { impl EventBuilder where St: event_state::State, - St::V: event_state::IsSet, St::Name: event_state::IsSet, + St::V: event_state::IsSet, { /// Build the final struct. pub fn build(self) -> Event { diff --git a/crates/jacquard-api/src/diy_razorgirl/winter/fact.rs b/crates/jacquard-api/src/diy_razorgirl/winter/fact.rs index b6f05fc5..804146e0 100644 --- a/crates/jacquard-api/src/diy_razorgirl/winter/fact.rs +++ b/crates/jacquard-api/src/diy_razorgirl/winter/fact.rs @@ -157,51 +157,51 @@ pub mod fact_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Predicate; type Args; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Predicate = Unset; type Args = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Predicate = St::Predicate; - type Args = St::Args; + type CreatedAt = Unset; } ///State transition - sets the `predicate` field to Set pub struct SetPredicate(PhantomData St>); impl sealed::Sealed for SetPredicate {} impl State for SetPredicate { - type CreatedAt = St::CreatedAt; type Predicate = Set; type Args = St::Args; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `args` field to Set pub struct SetArgs(PhantomData St>); impl sealed::Sealed for SetArgs {} impl State for SetArgs { - type CreatedAt = St::CreatedAt; type Predicate = St::Predicate; type Args = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Predicate = St::Predicate; + type Args = St::Args; + type CreatedAt = 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 `predicate` field pub struct predicate(()); ///Marker type for the `args` field pub struct args(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -364,9 +364,9 @@ impl FactBuilder { impl FactBuilder where St: fact_state::State, - St::CreatedAt: fact_state::IsSet, St::Predicate: fact_state::IsSet, St::Args: fact_state::IsSet, + St::CreatedAt: fact_state::IsSet, { /// Build the final struct. pub fn build(self) -> Fact { diff --git a/crates/jacquard-api/src/diy_razorgirl/winter/job.rs b/crates/jacquard-api/src/diy_razorgirl/winter/job.rs index 79232a6f..39032a93 100644 --- a/crates/jacquard-api/src/diy_razorgirl/winter/job.rs +++ b/crates/jacquard-api/src/diy_razorgirl/winter/job.rs @@ -293,37 +293,37 @@ pub mod interval_schedule_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type Seconds; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type Seconds = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type Seconds = St::Seconds; + type Type = Unset; } ///State transition - sets the `seconds` field to Set pub struct SetSeconds(PhantomData St>); impl sealed::Sealed for SetSeconds {} impl State for SetSeconds { - type Type = St::Type; type Seconds = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Seconds = St::Seconds; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `seconds` field pub struct seconds(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -393,8 +393,8 @@ where impl IntervalScheduleBuilder where St: interval_schedule_state::State, - St::Type: interval_schedule_state::IsSet, St::Seconds: interval_schedule_state::IsSet, + St::Type: interval_schedule_state::IsSet, { /// Build the final struct. pub fn build(self) -> IntervalSchedule { @@ -576,67 +576,67 @@ pub mod job_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Instructions; type Schedule; - type CreatedAt; + type Instructions; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Instructions = Unset; type Schedule = Unset; - type CreatedAt = Unset; + type Instructions = Unset; type Name = Unset; - } - ///State transition - sets the `instructions` field to Set - pub struct SetInstructions(PhantomData St>); - impl sealed::Sealed for SetInstructions {} - impl State for SetInstructions { - type Instructions = Set; - type Schedule = St::Schedule; - type CreatedAt = St::CreatedAt; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `schedule` field to Set pub struct SetSchedule(PhantomData St>); impl sealed::Sealed for SetSchedule {} impl State for SetSchedule { - type Instructions = St::Instructions; type Schedule = Set; - type CreatedAt = St::CreatedAt; + type Instructions = St::Instructions; type Name = St::Name; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Instructions = St::Instructions; + ///State transition - sets the `instructions` field to Set + pub struct SetInstructions(PhantomData St>); + impl sealed::Sealed for SetInstructions {} + impl State for SetInstructions { type Schedule = St::Schedule; - type CreatedAt = Set; + type Instructions = Set; type Name = St::Name; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Instructions = St::Instructions; type Schedule = St::Schedule; - type CreatedAt = St::CreatedAt; + type Instructions = St::Instructions; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Schedule = St::Schedule; + type Instructions = St::Instructions; + type Name = St::Name; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `instructions` field - pub struct instructions(()); ///Marker type for the `schedule` field pub struct schedule(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `instructions` field + pub struct instructions(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -802,10 +802,10 @@ impl JobBuilder { impl JobBuilder where St: job_state::State, - St::Instructions: job_state::IsSet, St::Schedule: job_state::IsSet, - St::CreatedAt: job_state::IsSet, + St::Instructions: job_state::IsSet, St::Name: job_state::IsSet, + St::CreatedAt: job_state::IsSet, { /// Build the final struct. pub fn build(self) -> Job { @@ -847,37 +847,37 @@ pub mod once_schedule_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type RunAt; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type RunAt = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type RunAt = St::RunAt; + type Type = Unset; } ///State transition - sets the `run_at` field to Set pub struct SetRunAt(PhantomData St>); impl sealed::Sealed for SetRunAt {} impl State for SetRunAt { - type Type = St::Type; type RunAt = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type RunAt = St::RunAt; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `run_at` field pub struct run_at(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -947,8 +947,8 @@ where impl OnceScheduleBuilder where St: once_schedule_state::State, - St::Type: once_schedule_state::IsSet, St::RunAt: once_schedule_state::IsSet, + St::Type: once_schedule_state::IsSet, { /// Build the final struct. pub fn build(self) -> OnceSchedule { diff --git a/crates/jacquard-api/src/diy_razorgirl/winter/note.rs b/crates/jacquard-api/src/diy_razorgirl/winter/note.rs index 8ac5fbae..176b4b38 100644 --- a/crates/jacquard-api/src/diy_razorgirl/winter/note.rs +++ b/crates/jacquard-api/src/diy_razorgirl/winter/note.rs @@ -162,65 +162,65 @@ pub mod note_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type LastUpdated; - type CreatedAt; type Content; + type CreatedAt; + type LastUpdated; type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type LastUpdated = Unset; - type CreatedAt = Unset; type Content = Unset; + type CreatedAt = Unset; + type LastUpdated = Unset; type Title = Unset; } - ///State transition - sets the `last_updated` field to Set - pub struct SetLastUpdated(PhantomData St>); - impl sealed::Sealed for SetLastUpdated {} - impl State for SetLastUpdated { - type LastUpdated = Set; + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Content = Set; type CreatedAt = St::CreatedAt; - type Content = St::Content; + type LastUpdated = St::LastUpdated; type Title = St::Title; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type LastUpdated = St::LastUpdated; - type CreatedAt = Set; type Content = St::Content; + type CreatedAt = Set; + type LastUpdated = St::LastUpdated; type Title = St::Title; } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type LastUpdated = St::LastUpdated; + ///State transition - sets the `last_updated` field to Set + pub struct SetLastUpdated(PhantomData St>); + impl sealed::Sealed for SetLastUpdated {} + impl State for SetLastUpdated { + type Content = St::Content; type CreatedAt = St::CreatedAt; - type Content = Set; + type LastUpdated = Set; type Title = St::Title; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type LastUpdated = St::LastUpdated; - type CreatedAt = St::CreatedAt; type Content = St::Content; + type CreatedAt = St::CreatedAt; + type LastUpdated = St::LastUpdated; type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `last_updated` field - pub struct last_updated(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `last_updated` field + pub struct last_updated(()); ///Marker type for the `title` field pub struct title(()); } @@ -377,9 +377,9 @@ where impl NoteBuilder where St: note_state::State, - St::LastUpdated: note_state::IsSet, - St::CreatedAt: note_state::IsSet, St::Content: note_state::IsSet, + St::CreatedAt: note_state::IsSet, + St::LastUpdated: note_state::IsSet, St::Title: note_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/diy_razorgirl/winter/tool.rs b/crates/jacquard-api/src/diy_razorgirl/winter/tool.rs index 7dad0235..86aa7f12 100644 --- a/crates/jacquard-api/src/diy_razorgirl/winter/tool.rs +++ b/crates/jacquard-api/src/diy_razorgirl/winter/tool.rs @@ -165,84 +165,84 @@ pub mod tool_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type InputSchema; - type Code; type Description; - type CreatedAt; type Name; + type Code; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type InputSchema = Unset; - type Code = Unset; type Description = Unset; - type CreatedAt = Unset; type Name = Unset; + type Code = Unset; + type CreatedAt = Unset; } ///State transition - sets the `input_schema` field to Set pub struct SetInputSchema(PhantomData St>); impl sealed::Sealed for SetInputSchema {} impl State for SetInputSchema { type InputSchema = Set; - type Code = St::Code; type Description = St::Description; - type CreatedAt = St::CreatedAt; type Name = St::Name; - } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData St>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type InputSchema = St::InputSchema; - type Code = Set; - type Description = St::Description; + type Code = St::Code; type CreatedAt = St::CreatedAt; - type Name = St::Name; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { type InputSchema = St::InputSchema; - type Code = St::Code; type Description = Set; - type CreatedAt = St::CreatedAt; type Name = St::Name; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type InputSchema = St::InputSchema; type Code = St::Code; - type Description = St::Description; - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { type InputSchema = St::InputSchema; + type Description = St::Description; + type Name = Set; type Code = St::Code; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData St>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type InputSchema = St::InputSchema; type Description = St::Description; + type Name = St::Name; + type Code = Set; type CreatedAt = St::CreatedAt; - type Name = Set; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type InputSchema = St::InputSchema; + type Description = St::Description; + type Name = St::Name; + type Code = St::Code; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `input_schema` field pub struct input_schema(()); - ///Marker type for the `code` field - pub struct code(()); ///Marker type for the `description` field pub struct description(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `code` field + pub struct code(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -487,10 +487,10 @@ impl ToolBuilder where St: tool_state::State, St::InputSchema: tool_state::IsSet, - St::Code: tool_state::IsSet, St::Description: tool_state::IsSet, - St::CreatedAt: tool_state::IsSet, St::Name: tool_state::IsSet, + St::Code: tool_state::IsSet, + St::CreatedAt: tool_state::IsSet, { /// Build the final struct. pub fn build(self) -> Tool { diff --git a/crates/jacquard-api/src/diy_razorgirl/winter/wiki_entry.rs b/crates/jacquard-api/src/diy_razorgirl/winter/wiki_entry.rs index 8b29dd96..f6c2ae3f 100644 --- a/crates/jacquard-api/src/diy_razorgirl/winter/wiki_entry.rs +++ b/crates/jacquard-api/src/diy_razorgirl/winter/wiki_entry.rs @@ -272,84 +272,84 @@ pub mod wiki_entry_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Title; + type Content; + type CreatedAt; type LastUpdated; type Slug; - type CreatedAt; - type Content; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Title = Unset; + type Content = Unset; + type CreatedAt = Unset; type LastUpdated = Unset; type Slug = Unset; - type CreatedAt = Unset; - type Content = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { type Title = Set; + type Content = St::Content; + type CreatedAt = St::CreatedAt; type LastUpdated = St::LastUpdated; type Slug = St::Slug; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Title = St::Title; + type Content = Set; type CreatedAt = St::CreatedAt; + type LastUpdated = St::LastUpdated; + type Slug = St::Slug; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Title = St::Title; type Content = St::Content; + type CreatedAt = Set; + type LastUpdated = St::LastUpdated; + type Slug = St::Slug; } ///State transition - sets the `last_updated` field to Set pub struct SetLastUpdated(PhantomData St>); impl sealed::Sealed for SetLastUpdated {} impl State for SetLastUpdated { type Title = St::Title; + type Content = St::Content; + type CreatedAt = St::CreatedAt; type LastUpdated = Set; type Slug = St::Slug; - type CreatedAt = St::CreatedAt; - type Content = St::Content; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData St>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { type Title = St::Title; - type LastUpdated = St::LastUpdated; - type Slug = Set; - type CreatedAt = St::CreatedAt; - type Content = St::Content; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Title = St::Title; - type LastUpdated = St::LastUpdated; - type Slug = St::Slug; - type CreatedAt = Set; type Content = St::Content; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type Title = St::Title; - type LastUpdated = St::LastUpdated; - type Slug = St::Slug; type CreatedAt = St::CreatedAt; - type Content = Set; + type LastUpdated = St::LastUpdated; + type Slug = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `content` field + pub struct content(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `last_updated` field pub struct last_updated(()); ///Marker type for the `slug` field pub struct slug(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `content` field - pub struct content(()); } } @@ -553,10 +553,10 @@ impl WikiEntryBuilder where St: wiki_entry_state::State, St::Title: wiki_entry_state::IsSet, + St::Content: wiki_entry_state::IsSet, + St::CreatedAt: wiki_entry_state::IsSet, St::LastUpdated: wiki_entry_state::IsSet, St::Slug: wiki_entry_state::IsSet, - St::CreatedAt: wiki_entry_state::IsSet, - St::Content: wiki_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> WikiEntry { diff --git a/crates/jacquard-api/src/diy_razorgirl/winter/wiki_link.rs b/crates/jacquard-api/src/diy_razorgirl/winter/wiki_link.rs index e4845eb5..418a2709 100644 --- a/crates/jacquard-api/src/diy_razorgirl/winter/wiki_link.rs +++ b/crates/jacquard-api/src/diy_razorgirl/winter/wiki_link.rs @@ -238,65 +238,65 @@ pub mod wiki_link_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type LinkType; type Target; type Source; - type LinkType; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type LinkType = Unset; type Target = Unset; type Source = Unset; - type LinkType = Unset; type CreatedAt = Unset; } + ///State transition - sets the `link_type` field to Set + pub struct SetLinkType(PhantomData St>); + impl sealed::Sealed for SetLinkType {} + impl State for SetLinkType { + type LinkType = Set; + type Target = St::Target; + type Source = St::Source; + type CreatedAt = St::CreatedAt; + } ///State transition - sets the `target` field to Set pub struct SetTarget(PhantomData St>); impl sealed::Sealed for SetTarget {} impl State for SetTarget { + type LinkType = St::LinkType; type Target = Set; type Source = St::Source; - type LinkType = St::LinkType; type CreatedAt = St::CreatedAt; } ///State transition - sets the `source` field to Set pub struct SetSource(PhantomData St>); impl sealed::Sealed for SetSource {} impl State for SetSource { - type Target = St::Target; - type Source = Set; type LinkType = St::LinkType; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `link_type` field to Set - pub struct SetLinkType(PhantomData St>); - impl sealed::Sealed for SetLinkType {} - impl State for SetLinkType { type Target = St::Target; - type Source = St::Source; - type LinkType = Set; + type Source = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type LinkType = St::LinkType; type Target = St::Target; type Source = St::Source; - type LinkType = St::LinkType; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `link_type` field + pub struct link_type(()); ///Marker type for the `target` field pub struct target(()); ///Marker type for the `source` field pub struct source(()); - ///Marker type for the `link_type` field - pub struct link_type(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -453,9 +453,9 @@ impl WikiLinkBuilder { impl WikiLinkBuilder where St: wiki_link_state::State, + St::LinkType: wiki_link_state::IsSet, St::Target: wiki_link_state::IsSet, St::Source: wiki_link_state::IsSet, - St::LinkType: wiki_link_state::IsSet, St::CreatedAt: wiki_link_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/download_darkworld/site/get_state.rs b/crates/jacquard-api/src/download_darkworld/site/get_state.rs index 8f99d4b0..a2e5f31d 100644 --- a/crates/jacquard-api/src/download_darkworld/site/get_state.rs +++ b/crates/jacquard-api/src/download_darkworld/site/get_state.rs @@ -194,67 +194,45 @@ pub mod output_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type FavoriteGames; type TitleColors; - type UseSusieProphecy; - type FavoriteArtists; - type FavoriteDeltaruneCharacters; type FavoriteAlbums; + type FavoriteDeltaruneCharacters; + type FavoriteArtists; + type FavoriteGames; + type UseSusieProphecy; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type FavoriteGames = Unset; type TitleColors = Unset; - type UseSusieProphecy = Unset; - type FavoriteArtists = Unset; - type FavoriteDeltaruneCharacters = Unset; type FavoriteAlbums = Unset; - } - ///State transition - sets the `favorite_games` field to Set - pub struct SetFavoriteGames(PhantomData St>); - impl sealed::Sealed for SetFavoriteGames {} - impl State for SetFavoriteGames { - type FavoriteGames = Set; - type TitleColors = St::TitleColors; - type UseSusieProphecy = St::UseSusieProphecy; - type FavoriteArtists = St::FavoriteArtists; - type FavoriteDeltaruneCharacters = St::FavoriteDeltaruneCharacters; - type FavoriteAlbums = St::FavoriteAlbums; + type FavoriteDeltaruneCharacters = Unset; + type FavoriteArtists = Unset; + type FavoriteGames = Unset; + type UseSusieProphecy = Unset; } ///State transition - sets the `title_colors` field to Set pub struct SetTitleColors(PhantomData St>); impl sealed::Sealed for SetTitleColors {} impl State for SetTitleColors { - type FavoriteGames = St::FavoriteGames; type TitleColors = Set; - type UseSusieProphecy = St::UseSusieProphecy; - type FavoriteArtists = St::FavoriteArtists; - type FavoriteDeltaruneCharacters = St::FavoriteDeltaruneCharacters; type FavoriteAlbums = St::FavoriteAlbums; - } - ///State transition - sets the `use_susie_prophecy` field to Set - pub struct SetUseSusieProphecy(PhantomData St>); - impl sealed::Sealed for SetUseSusieProphecy {} - impl State for SetUseSusieProphecy { + type FavoriteDeltaruneCharacters = St::FavoriteDeltaruneCharacters; + type FavoriteArtists = St::FavoriteArtists; type FavoriteGames = St::FavoriteGames; + type UseSusieProphecy = St::UseSusieProphecy; + } + ///State transition - sets the `favorite_albums` field to Set + pub struct SetFavoriteAlbums(PhantomData St>); + impl sealed::Sealed for SetFavoriteAlbums {} + impl State for SetFavoriteAlbums { type TitleColors = St::TitleColors; - type UseSusieProphecy = Set; - type FavoriteArtists = St::FavoriteArtists; + type FavoriteAlbums = Set; type FavoriteDeltaruneCharacters = St::FavoriteDeltaruneCharacters; - type FavoriteAlbums = St::FavoriteAlbums; - } - ///State transition - sets the `favorite_artists` field to Set - pub struct SetFavoriteArtists(PhantomData St>); - impl sealed::Sealed for SetFavoriteArtists {} - impl State for SetFavoriteArtists { + type FavoriteArtists = St::FavoriteArtists; type FavoriteGames = St::FavoriteGames; - type TitleColors = St::TitleColors; type UseSusieProphecy = St::UseSusieProphecy; - type FavoriteArtists = Set; - type FavoriteDeltaruneCharacters = St::FavoriteDeltaruneCharacters; - type FavoriteAlbums = St::FavoriteAlbums; } ///State transition - sets the `favorite_deltarune_characters` field to Set pub struct SetFavoriteDeltaruneCharacters( @@ -262,39 +240,61 @@ pub mod output_state { ); impl sealed::Sealed for SetFavoriteDeltaruneCharacters {} impl State for SetFavoriteDeltaruneCharacters { - type FavoriteGames = St::FavoriteGames; type TitleColors = St::TitleColors; - type UseSusieProphecy = St::UseSusieProphecy; - type FavoriteArtists = St::FavoriteArtists; - type FavoriteDeltaruneCharacters = Set; type FavoriteAlbums = St::FavoriteAlbums; - } - ///State transition - sets the `favorite_albums` field to Set - pub struct SetFavoriteAlbums(PhantomData St>); - impl sealed::Sealed for SetFavoriteAlbums {} - impl State for SetFavoriteAlbums { + type FavoriteDeltaruneCharacters = Set; + type FavoriteArtists = St::FavoriteArtists; type FavoriteGames = St::FavoriteGames; + type UseSusieProphecy = St::UseSusieProphecy; + } + ///State transition - sets the `favorite_artists` field to Set + pub struct SetFavoriteArtists(PhantomData St>); + impl sealed::Sealed for SetFavoriteArtists {} + impl State for SetFavoriteArtists { type TitleColors = St::TitleColors; + type FavoriteAlbums = St::FavoriteAlbums; + type FavoriteDeltaruneCharacters = St::FavoriteDeltaruneCharacters; + type FavoriteArtists = Set; + type FavoriteGames = St::FavoriteGames; type UseSusieProphecy = St::UseSusieProphecy; + } + ///State transition - sets the `favorite_games` field to Set + pub struct SetFavoriteGames(PhantomData St>); + impl sealed::Sealed for SetFavoriteGames {} + impl State for SetFavoriteGames { + type TitleColors = St::TitleColors; + type FavoriteAlbums = St::FavoriteAlbums; + type FavoriteDeltaruneCharacters = St::FavoriteDeltaruneCharacters; type FavoriteArtists = St::FavoriteArtists; + type FavoriteGames = Set; + type UseSusieProphecy = St::UseSusieProphecy; + } + ///State transition - sets the `use_susie_prophecy` field to Set + pub struct SetUseSusieProphecy(PhantomData St>); + impl sealed::Sealed for SetUseSusieProphecy {} + impl State for SetUseSusieProphecy { + type TitleColors = St::TitleColors; + type FavoriteAlbums = St::FavoriteAlbums; type FavoriteDeltaruneCharacters = St::FavoriteDeltaruneCharacters; - type FavoriteAlbums = Set; + type FavoriteArtists = St::FavoriteArtists; + type FavoriteGames = St::FavoriteGames; + type UseSusieProphecy = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `favorite_games` field - pub struct favorite_games(()); ///Marker type for the `title_colors` field pub struct title_colors(()); - ///Marker type for the `use_susie_prophecy` field - pub struct use_susie_prophecy(()); - ///Marker type for the `favorite_artists` field - pub struct favorite_artists(()); - ///Marker type for the `favorite_deltarune_characters` field - pub struct favorite_deltarune_characters(()); ///Marker type for the `favorite_albums` field pub struct favorite_albums(()); + ///Marker type for the `favorite_deltarune_characters` field + pub struct favorite_deltarune_characters(()); + ///Marker type for the `favorite_artists` field + pub struct favorite_artists(()); + ///Marker type for the `favorite_games` field + pub struct favorite_games(()); + ///Marker type for the `use_susie_prophecy` field + pub struct use_susie_prophecy(()); } } @@ -447,12 +447,12 @@ where impl OutputBuilder where St: output_state::State, - St::FavoriteGames: output_state::IsSet, St::TitleColors: output_state::IsSet, - St::UseSusieProphecy: output_state::IsSet, - St::FavoriteArtists: output_state::IsSet, - St::FavoriteDeltaruneCharacters: output_state::IsSet, St::FavoriteAlbums: output_state::IsSet, + St::FavoriteDeltaruneCharacters: output_state::IsSet, + St::FavoriteArtists: output_state::IsSet, + St::FavoriteGames: output_state::IsSet, + St::UseSusieProphecy: output_state::IsSet, { /// Build the final struct. pub fn build(self) -> Output { diff --git a/crates/jacquard-api/src/eu_atchef/recipe.rs b/crates/jacquard-api/src/eu_atchef/recipe.rs index cc99102f..0977fd3b 100644 --- a/crates/jacquard-api/src/eu_atchef/recipe.rs +++ b/crates/jacquard-api/src/eu_atchef/recipe.rs @@ -285,51 +285,51 @@ pub mod recipe_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Name; type Content; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Name = Unset; type Content = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Name = St::Name; + type Content = St::Content; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { + type CreatedAt = St::CreatedAt; type Name = Set; type Content = St::Content; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Name = St::Name; - type Content = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Name = St::Name; - type Content = St::Content; - type CreatedAt = Set; + type Content = 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 `name` field pub struct name(()); ///Marker type for the `content` field pub struct content(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -520,9 +520,9 @@ impl RecipeBuilder { impl RecipeBuilder where St: recipe_state::State, + St::CreatedAt: recipe_state::IsSet, St::Name: recipe_state::IsSet, St::Content: recipe_state::IsSet, - St::CreatedAt: recipe_state::IsSet, { /// Build the final struct. pub fn build(self) -> Recipe { diff --git a/crates/jacquard-api/src/events_smokesignal/lfg.rs b/crates/jacquard-api/src/events_smokesignal/lfg.rs index 90e30681..7c5e141f 100644 --- a/crates/jacquard-api/src/events_smokesignal/lfg.rs +++ b/crates/jacquard-api/src/events_smokesignal/lfg.rs @@ -150,104 +150,104 @@ pub mod lfg_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Active; + type StartsAt; type EndsAt; + type Location; type Tags; - type StartsAt; type CreatedAt; - type Location; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Active = Unset; + type StartsAt = Unset; type EndsAt = Unset; + type Location = Unset; type Tags = Unset; - type StartsAt = Unset; type CreatedAt = Unset; - type Location = Unset; } ///State transition - sets the `active` field to Set pub struct SetActive(PhantomData St>); impl sealed::Sealed for SetActive {} impl State for SetActive { type Active = Set; + type StartsAt = St::StartsAt; type EndsAt = St::EndsAt; + type Location = St::Location; type Tags = St::Tags; - type StartsAt = St::StartsAt; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `starts_at` field to Set + pub struct SetStartsAt(PhantomData St>); + impl sealed::Sealed for SetStartsAt {} + impl State for SetStartsAt { + type Active = St::Active; + type StartsAt = Set; + type EndsAt = St::EndsAt; type Location = St::Location; + type Tags = St::Tags; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `ends_at` field to Set pub struct SetEndsAt(PhantomData St>); impl sealed::Sealed for SetEndsAt {} impl State for SetEndsAt { type Active = St::Active; + type StartsAt = St::StartsAt; type EndsAt = Set; + type Location = St::Location; type Tags = St::Tags; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `location` field to Set + pub struct SetLocation(PhantomData St>); + impl sealed::Sealed for SetLocation {} + impl State for SetLocation { + type Active = St::Active; type StartsAt = St::StartsAt; + type EndsAt = St::EndsAt; + type Location = Set; + type Tags = St::Tags; type CreatedAt = St::CreatedAt; - type Location = St::Location; } ///State transition - sets the `tags` field to Set pub struct SetTags(PhantomData St>); impl sealed::Sealed for SetTags {} impl State for SetTags { type Active = St::Active; - type EndsAt = St::EndsAt; - type Tags = Set; type StartsAt = St::StartsAt; - type CreatedAt = St::CreatedAt; - type Location = St::Location; - } - ///State transition - sets the `starts_at` field to Set - pub struct SetStartsAt(PhantomData St>); - impl sealed::Sealed for SetStartsAt {} - impl State for SetStartsAt { - type Active = St::Active; type EndsAt = St::EndsAt; - type Tags = St::Tags; - type StartsAt = Set; - type CreatedAt = St::CreatedAt; type Location = St::Location; + type Tags = Set; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Active = St::Active; - type EndsAt = St::EndsAt; - type Tags = St::Tags; type StartsAt = St::StartsAt; - type CreatedAt = Set; - type Location = St::Location; - } - ///State transition - sets the `location` field to Set - pub struct SetLocation(PhantomData St>); - impl sealed::Sealed for SetLocation {} - impl State for SetLocation { - type Active = St::Active; type EndsAt = St::EndsAt; + type Location = St::Location; type Tags = St::Tags; - type StartsAt = St::StartsAt; - type CreatedAt = St::CreatedAt; - type Location = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `active` field pub struct active(()); + ///Marker type for the `starts_at` field + pub struct starts_at(()); ///Marker type for the `ends_at` field pub struct ends_at(()); + ///Marker type for the `location` field + pub struct location(()); ///Marker type for the `tags` field pub struct tags(()); - ///Marker type for the `starts_at` field - pub struct starts_at(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `location` field - pub struct location(()); } } @@ -401,11 +401,11 @@ impl LfgBuilder where St: lfg_state::State, St::Active: lfg_state::IsSet, + St::StartsAt: lfg_state::IsSet, St::EndsAt: lfg_state::IsSet, + St::Location: lfg_state::IsSet, St::Tags: lfg_state::IsSet, - St::StartsAt: lfg_state::IsSet, St::CreatedAt: lfg_state::IsSet, - St::Location: lfg_state::IsSet, { /// Build the final struct. pub fn build(self) -> Lfg { diff --git a/crates/jacquard-api/src/fm_teal/alpha/feed.rs b/crates/jacquard-api/src/fm_teal/alpha/feed.rs index df3aa776..1f68deff 100644 --- a/crates/jacquard-api/src/fm_teal/alpha/feed.rs +++ b/crates/jacquard-api/src/fm_teal/alpha/feed.rs @@ -434,37 +434,37 @@ pub mod play_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Artists; type TrackName; + type Artists; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Artists = Unset; type TrackName = Unset; - } - ///State transition - sets the `artists` field to Set - pub struct SetArtists(PhantomData St>); - impl sealed::Sealed for SetArtists {} - impl State for SetArtists { - type Artists = Set; - type TrackName = St::TrackName; + type Artists = Unset; } ///State transition - sets the `track_name` field to Set pub struct SetTrackName(PhantomData St>); impl sealed::Sealed for SetTrackName {} impl State for SetTrackName { - type Artists = St::Artists; type TrackName = Set; + type Artists = St::Artists; + } + ///State transition - sets the `artists` field to Set + pub struct SetArtists(PhantomData St>); + impl sealed::Sealed for SetArtists {} + impl State for SetArtists { + type TrackName = St::TrackName; + type Artists = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `artists` field - pub struct artists(()); ///Marker type for the `track_name` field pub struct track_name(()); + ///Marker type for the `artists` field + pub struct artists(()); } } @@ -690,8 +690,8 @@ where impl PlayViewBuilder where St: play_view_state::State, - St::Artists: play_view_state::IsSet, St::TrackName: play_view_state::IsSet, + St::Artists: play_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> PlayView { diff --git a/crates/jacquard-api/src/fm_teal/alpha/stats.rs b/crates/jacquard-api/src/fm_teal/alpha/stats.rs index b393bb51..8947ef2e 100644 --- a/crates/jacquard-api/src/fm_teal/alpha/stats.rs +++ b/crates/jacquard-api/src/fm_teal/alpha/stats.rs @@ -127,51 +127,51 @@ pub mod artist_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type PlayCount; type Mbid; + type PlayCount; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type PlayCount = Unset; type Mbid = Unset; + type PlayCount = Unset; + type Name = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; + ///State transition - sets the `mbid` field to Set + pub struct SetMbid(PhantomData St>); + impl sealed::Sealed for SetMbid {} + impl State for SetMbid { + type Mbid = Set; type PlayCount = St::PlayCount; - type Mbid = St::Mbid; + type Name = St::Name; } ///State transition - sets the `play_count` field to Set pub struct SetPlayCount(PhantomData St>); impl sealed::Sealed for SetPlayCount {} impl State for SetPlayCount { - type Name = St::Name; - type PlayCount = Set; type Mbid = St::Mbid; - } - ///State transition - sets the `mbid` field to Set - pub struct SetMbid(PhantomData St>); - impl sealed::Sealed for SetMbid {} - impl State for SetMbid { + type PlayCount = Set; type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Mbid = St::Mbid; type PlayCount = St::PlayCount; - type Mbid = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `play_count` field - pub struct play_count(()); ///Marker type for the `mbid` field pub struct mbid(()); + ///Marker type for the `play_count` field + pub struct play_count(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -260,9 +260,9 @@ where impl ArtistViewBuilder where St: artist_view_state::State, - St::Name: artist_view_state::IsSet, - St::PlayCount: artist_view_state::IsSet, St::Mbid: artist_view_state::IsSet, + St::PlayCount: artist_view_state::IsSet, + St::Name: artist_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ArtistView { @@ -432,51 +432,51 @@ pub mod recording_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Name; type PlayCount; type Mbid; - type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Name = Unset; type PlayCount = Unset; type Mbid = Unset; - type Name = Unset; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Name = Set; + type PlayCount = St::PlayCount; + type Mbid = St::Mbid; } ///State transition - sets the `play_count` field to Set pub struct SetPlayCount(PhantomData St>); impl sealed::Sealed for SetPlayCount {} impl State for SetPlayCount { + type Name = St::Name; type PlayCount = Set; type Mbid = St::Mbid; - type Name = St::Name; } ///State transition - sets the `mbid` field to Set pub struct SetMbid(PhantomData St>); impl sealed::Sealed for SetMbid {} impl State for SetMbid { - type PlayCount = St::PlayCount; - type Mbid = Set; type Name = St::Name; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { type PlayCount = St::PlayCount; - type Mbid = St::Mbid; - type Name = Set; + type Mbid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `play_count` field pub struct play_count(()); ///Marker type for the `mbid` field pub struct mbid(()); - ///Marker type for the `name` field - pub struct name(()); } } @@ -565,9 +565,9 @@ where impl RecordingViewBuilder where St: recording_view_state::State, + St::Name: recording_view_state::IsSet, St::PlayCount: recording_view_state::IsSet, St::Mbid: recording_view_state::IsSet, - St::Name: recording_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> RecordingView { @@ -602,51 +602,51 @@ pub mod release_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type PlayCount; type Name; type Mbid; + type PlayCount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type PlayCount = Unset; type Name = Unset; type Mbid = Unset; - } - ///State transition - sets the `play_count` field to Set - pub struct SetPlayCount(PhantomData St>); - impl sealed::Sealed for SetPlayCount {} - impl State for SetPlayCount { - type PlayCount = Set; - type Name = St::Name; - type Mbid = St::Mbid; + type PlayCount = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type PlayCount = St::PlayCount; type Name = Set; type Mbid = St::Mbid; + type PlayCount = St::PlayCount; } ///State transition - sets the `mbid` field to Set pub struct SetMbid(PhantomData St>); impl sealed::Sealed for SetMbid {} impl State for SetMbid { - type PlayCount = St::PlayCount; type Name = St::Name; type Mbid = Set; + type PlayCount = St::PlayCount; + } + ///State transition - sets the `play_count` field to Set + pub struct SetPlayCount(PhantomData St>); + impl sealed::Sealed for SetPlayCount {} + impl State for SetPlayCount { + type Name = St::Name; + type Mbid = St::Mbid; + type PlayCount = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `play_count` field - pub struct play_count(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `mbid` field pub struct mbid(()); + ///Marker type for the `play_count` field + pub struct play_count(()); } } @@ -735,9 +735,9 @@ where impl ReleaseViewBuilder where St: release_view_state::State, - St::PlayCount: release_view_state::IsSet, St::Name: release_view_state::IsSet, St::Mbid: release_view_state::IsSet, + St::PlayCount: release_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReleaseView { diff --git a/crates/jacquard-api/src/fyi_frontpage/feed/comment.rs b/crates/jacquard-api/src/fyi_frontpage/feed/comment.rs index 2d2d1cda..d6bc7b93 100644 --- a/crates/jacquard-api/src/fyi_frontpage/feed/comment.rs +++ b/crates/jacquard-api/src/fyi_frontpage/feed/comment.rs @@ -130,51 +130,51 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Post; - type CreatedAt; type Blocks; + type CreatedAt; + type Post; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Post = Unset; - type CreatedAt = Unset; type Blocks = Unset; + type CreatedAt = Unset; + type Post = Unset; } - ///State transition - sets the `post` field to Set - pub struct SetPost(PhantomData St>); - impl sealed::Sealed for SetPost {} - impl State for SetPost { - type Post = Set; + ///State transition - sets the `blocks` field to Set + pub struct SetBlocks(PhantomData St>); + impl sealed::Sealed for SetBlocks {} + impl State for SetBlocks { + type Blocks = Set; type CreatedAt = St::CreatedAt; - type Blocks = St::Blocks; + type Post = St::Post; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Post = St::Post; - type CreatedAt = Set; type Blocks = St::Blocks; - } - ///State transition - sets the `blocks` field to Set - pub struct SetBlocks(PhantomData St>); - impl sealed::Sealed for SetBlocks {} - impl State for SetBlocks { + type CreatedAt = Set; type Post = St::Post; + } + ///State transition - sets the `post` field to Set + pub struct SetPost(PhantomData St>); + impl sealed::Sealed for SetPost {} + impl State for SetPost { + type Blocks = St::Blocks; type CreatedAt = St::CreatedAt; - type Blocks = Set; + type Post = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `post` field - pub struct post(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `blocks` field pub struct blocks(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `post` field + pub struct post(()); } } @@ -281,9 +281,9 @@ where impl CommentBuilder where St: comment_state::State, - St::Post: comment_state::IsSet, - St::CreatedAt: comment_state::IsSet, St::Blocks: comment_state::IsSet, + St::CreatedAt: comment_state::IsSet, + St::Post: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/fyi_frontpage/feed/post.rs b/crates/jacquard-api/src/fyi_frontpage/feed/post.rs index 41eefe10..29650eb2 100644 --- a/crates/jacquard-api/src/fyi_frontpage/feed/post.rs +++ b/crates/jacquard-api/src/fyi_frontpage/feed/post.rs @@ -166,50 +166,50 @@ pub mod post_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type Title; type Subject; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type Title = Unset; type Subject = Unset; + type Title = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type Title = St::Title; - type Subject = St::Subject; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type CreatedAt = St::CreatedAt; - type Title = Set; type Subject = St::Subject; + type Title = St::Title; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type CreatedAt = St::CreatedAt; - type Title = St::Title; type Subject = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type CreatedAt = St::CreatedAt; + type Subject = St::Subject; + type Title = 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 `title` field - pub struct title(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -299,8 +299,8 @@ impl PostBuilder where St: post_state::State, St::CreatedAt: post_state::IsSet, - St::Title: post_state::IsSet, St::Subject: post_state::IsSet, + St::Title: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/fyi_questionable/answer.rs b/crates/jacquard-api/src/fyi_questionable/answer.rs index 9f7b34a6..5c4d9996 100644 --- a/crates/jacquard-api/src/fyi_questionable/answer.rs +++ b/crates/jacquard-api/src/fyi_questionable/answer.rs @@ -128,51 +128,51 @@ pub mod answer_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Content; type Question; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Content = Unset; type Question = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Content = St::Content; + type Question = St::Question; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { + type CreatedAt = St::CreatedAt; type Content = Set; type Question = St::Question; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `question` field to Set pub struct SetQuestion(PhantomData St>); impl sealed::Sealed for SetQuestion {} impl State for SetQuestion { - type Content = St::Content; - type Question = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Content = St::Content; - type Question = St::Question; - type CreatedAt = Set; + type Question = 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 `content` field pub struct content(()); ///Marker type for the `question` field pub struct question(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -279,9 +279,9 @@ where impl AnswerBuilder where St: answer_state::State, + St::CreatedAt: answer_state::IsSet, St::Content: answer_state::IsSet, St::Question: answer_state::IsSet, - St::CreatedAt: answer_state::IsSet, { /// Build the final struct. pub fn build(self) -> Answer { diff --git a/crates/jacquard-api/src/fyi_questionable/richtext/facet.rs b/crates/jacquard-api/src/fyi_questionable/richtext/facet.rs index 1149ee35..d0fff207 100644 --- a/crates/jacquard-api/src/fyi_questionable/richtext/facet.rs +++ b/crates/jacquard-api/src/fyi_questionable/richtext/facet.rs @@ -555,37 +555,37 @@ pub mod byte_slice_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ByteStart; type ByteEnd; + type ByteStart; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ByteStart = Unset; type ByteEnd = Unset; - } - ///State transition - sets the `byte_start` field to Set - pub struct SetByteStart(PhantomData St>); - impl sealed::Sealed for SetByteStart {} - impl State for SetByteStart { - type ByteStart = Set; - type ByteEnd = St::ByteEnd; + type ByteStart = Unset; } ///State transition - sets the `byte_end` field to Set pub struct SetByteEnd(PhantomData St>); impl sealed::Sealed for SetByteEnd {} impl State for SetByteEnd { - type ByteStart = St::ByteStart; type ByteEnd = Set; + type ByteStart = St::ByteStart; + } + ///State transition - sets the `byte_start` field to Set + pub struct SetByteStart(PhantomData St>); + impl sealed::Sealed for SetByteStart {} + impl State for SetByteStart { + type ByteEnd = St::ByteEnd; + type ByteStart = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `byte_start` field - pub struct byte_start(()); ///Marker type for the `byte_end` field pub struct byte_end(()); + ///Marker type for the `byte_start` field + pub struct byte_start(()); } } @@ -655,8 +655,8 @@ where impl ByteSliceBuilder where St: byte_slice_state::State, - St::ByteStart: byte_slice_state::IsSet, St::ByteEnd: byte_slice_state::IsSet, + St::ByteStart: byte_slice_state::IsSet, { /// Build the final struct. pub fn build(self) -> ByteSlice { diff --git a/crates/jacquard-api/src/fyi_questionable/richtext/image.rs b/crates/jacquard-api/src/fyi_questionable/richtext/image.rs index f9d098c0..eb72e071 100644 --- a/crates/jacquard-api/src/fyi_questionable/richtext/image.rs +++ b/crates/jacquard-api/src/fyi_questionable/richtext/image.rs @@ -367,37 +367,37 @@ pub mod image_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Image; type AspectRatio; + type Image; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Image = Unset; type AspectRatio = Unset; - } - ///State transition - sets the `image` field to Set - pub struct SetImage(PhantomData St>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type AspectRatio = St::AspectRatio; + type Image = Unset; } ///State transition - sets the `aspect_ratio` field to Set pub struct SetAspectRatio(PhantomData St>); impl sealed::Sealed for SetAspectRatio {} impl State for SetAspectRatio { - type Image = St::Image; type AspectRatio = Set; + type Image = St::Image; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData St>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type AspectRatio = St::AspectRatio; + type Image = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `image` field - pub struct image(()); ///Marker type for the `aspect_ratio` field pub struct aspect_ratio(()); + ///Marker type for the `image` field + pub struct image(()); } } @@ -480,8 +480,8 @@ where impl ImageBuilder where St: image_state::State, - St::Image: image_state::IsSet, St::AspectRatio: image_state::IsSet, + St::Image: image_state::IsSet, { /// Build the final struct. pub fn build(self) -> Image { diff --git a/crates/jacquard-api/src/fyi_questionable/selected_answer.rs b/crates/jacquard-api/src/fyi_questionable/selected_answer.rs index c107b9d3..9215f9d2 100644 --- a/crates/jacquard-api/src/fyi_questionable/selected_answer.rs +++ b/crates/jacquard-api/src/fyi_questionable/selected_answer.rs @@ -115,51 +115,51 @@ pub mod selected_answer_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AnswerRef; type CreatedAt; type QuestionRef; + type AnswerRef; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AnswerRef = Unset; type CreatedAt = Unset; type QuestionRef = Unset; - } - ///State transition - sets the `answer_ref` field to Set - pub struct SetAnswerRef(PhantomData St>); - impl sealed::Sealed for SetAnswerRef {} - impl State for SetAnswerRef { - type AnswerRef = Set; - type CreatedAt = St::CreatedAt; - type QuestionRef = St::QuestionRef; + type AnswerRef = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type AnswerRef = St::AnswerRef; type CreatedAt = Set; type QuestionRef = St::QuestionRef; + type AnswerRef = St::AnswerRef; } ///State transition - sets the `question_ref` field to Set pub struct SetQuestionRef(PhantomData St>); impl sealed::Sealed for SetQuestionRef {} impl State for SetQuestionRef { - type AnswerRef = St::AnswerRef; type CreatedAt = St::CreatedAt; type QuestionRef = Set; + type AnswerRef = St::AnswerRef; + } + ///State transition - sets the `answer_ref` field to Set + pub struct SetAnswerRef(PhantomData St>); + impl sealed::Sealed for SetAnswerRef {} + impl State for SetAnswerRef { + type CreatedAt = St::CreatedAt; + type QuestionRef = St::QuestionRef; + type AnswerRef = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `answer_ref` field - pub struct answer_ref(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `question_ref` field pub struct question_ref(()); + ///Marker type for the `answer_ref` field + pub struct answer_ref(()); } } @@ -248,9 +248,9 @@ where impl SelectedAnswerBuilder where St: selected_answer_state::State, - St::AnswerRef: selected_answer_state::IsSet, St::CreatedAt: selected_answer_state::IsSet, St::QuestionRef: selected_answer_state::IsSet, + St::AnswerRef: selected_answer_state::IsSet, { /// Build the final struct. pub fn build(self) -> SelectedAnswer { diff --git a/crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs b/crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs index 9d83eadf..7b1b3847 100644 --- a/crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs +++ b/crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs @@ -142,51 +142,51 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Content; - type CreatedAt; type Post; + type CreatedAt; + type Content; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Content = Unset; - type CreatedAt = Unset; type Post = Unset; + type CreatedAt = Unset; + type Content = Unset; } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type Content = Set; + ///State transition - sets the `post` field to Set + pub struct SetPost(PhantomData St>); + impl sealed::Sealed for SetPost {} + impl State for SetPost { + type Post = Set; type CreatedAt = St::CreatedAt; - type Post = St::Post; + type Content = St::Content; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Content = St::Content; - type CreatedAt = Set; type Post = St::Post; - } - ///State transition - sets the `post` field to Set - pub struct SetPost(PhantomData St>); - impl sealed::Sealed for SetPost {} - impl State for SetPost { + type CreatedAt = Set; type Content = St::Content; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Post = St::Post; type CreatedAt = St::CreatedAt; - type Post = Set; + type Content = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `content` field - pub struct content(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `post` field pub struct post(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `content` field + pub struct content(()); } } @@ -288,9 +288,9 @@ where impl CommentBuilder where St: comment_state::State, - St::Content: comment_state::IsSet, - St::CreatedAt: comment_state::IsSet, St::Post: comment_state::IsSet, + St::CreatedAt: comment_state::IsSet, + St::Content: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/fyi_unravel/frontpage/post.rs b/crates/jacquard-api/src/fyi_unravel/frontpage/post.rs index 9e66e1a3..d7ada252 100644 --- a/crates/jacquard-api/src/fyi_unravel/frontpage/post.rs +++ b/crates/jacquard-api/src/fyi_unravel/frontpage/post.rs @@ -141,50 +141,50 @@ pub mod post_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Url; - type CreatedAt; type Title; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Url = Unset; - type CreatedAt = Unset; type Title = Unset; + type CreatedAt = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { type Url = Set; - type CreatedAt = St::CreatedAt; - type Title = St::Title; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Url = St::Url; - type CreatedAt = Set; type Title = St::Title; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { type Url = St::Url; - type CreatedAt = St::CreatedAt; type Title = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Url = St::Url; + type Title = St::Title; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `url` field pub struct url(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -274,8 +274,8 @@ impl PostBuilder where St: post_state::State, St::Url: post_state::IsSet, - St::CreatedAt: post_state::IsSet, St::Title: post_state::IsSet, + St::CreatedAt: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/games_firehose/barklesheep/place_sheeps.rs b/crates/jacquard-api/src/games_firehose/barklesheep/place_sheeps.rs index 842462fd..e97ef922 100644 --- a/crates/jacquard-api/src/games_firehose/barklesheep/place_sheeps.rs +++ b/crates/jacquard-api/src/games_firehose/barklesheep/place_sheeps.rs @@ -108,37 +108,37 @@ pub mod place_sheeps_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Sheeps; type GameId; + type Sheeps; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Sheeps = Unset; type GameId = Unset; - } - ///State transition - sets the `sheeps` field to Set - pub struct SetSheeps(PhantomData St>); - impl sealed::Sealed for SetSheeps {} - impl State for SetSheeps { - type Sheeps = Set; - type GameId = St::GameId; + type Sheeps = Unset; } ///State transition - sets the `game_id` field to Set pub struct SetGameId(PhantomData St>); impl sealed::Sealed for SetGameId {} impl State for SetGameId { - type Sheeps = St::Sheeps; type GameId = Set; + type Sheeps = St::Sheeps; + } + ///State transition - sets the `sheeps` field to Set + pub struct SetSheeps(PhantomData St>); + impl sealed::Sealed for SetSheeps {} + impl State for SetSheeps { + type GameId = St::GameId; + type Sheeps = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `sheeps` field - pub struct sheeps(()); ///Marker type for the `game_id` field pub struct game_id(()); + ///Marker type for the `sheeps` field + pub struct sheeps(()); } } @@ -208,8 +208,8 @@ where impl PlaceSheepsBuilder where St: place_sheeps_state::State, - St::Sheeps: place_sheeps_state::IsSet, St::GameId: place_sheeps_state::IsSet, + St::Sheeps: place_sheeps_state::IsSet, { /// Build the final struct. pub fn build(self) -> PlaceSheeps { @@ -242,51 +242,51 @@ pub mod sheep_placement_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Horizontal; - type Type; type Start; + type Type; + type Horizontal; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Horizontal = Unset; - type Type = Unset; type Start = Unset; + type Type = Unset; + type Horizontal = Unset; } - ///State transition - sets the `horizontal` field to Set - pub struct SetHorizontal(PhantomData St>); - impl sealed::Sealed for SetHorizontal {} - impl State for SetHorizontal { - type Horizontal = Set; + ///State transition - sets the `start` field to Set + pub struct SetStart(PhantomData St>); + impl sealed::Sealed for SetStart {} + impl State for SetStart { + type Start = Set; type Type = St::Type; - type Start = St::Start; + type Horizontal = St::Horizontal; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { - type Horizontal = St::Horizontal; - type Type = Set; type Start = St::Start; - } - ///State transition - sets the `start` field to Set - pub struct SetStart(PhantomData St>); - impl sealed::Sealed for SetStart {} - impl State for SetStart { + type Type = Set; type Horizontal = St::Horizontal; + } + ///State transition - sets the `horizontal` field to Set + pub struct SetHorizontal(PhantomData St>); + impl sealed::Sealed for SetHorizontal {} + impl State for SetHorizontal { + type Start = St::Start; type Type = St::Type; - type Start = Set; + type Horizontal = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `horizontal` field - pub struct horizontal(()); - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `start` field pub struct start(()); + ///Marker type for the `type` field + pub struct r#type(()); + ///Marker type for the `horizontal` field + pub struct horizontal(()); } } @@ -375,9 +375,9 @@ where impl SheepPlacementBuilder where St: sheep_placement_state::State, - St::Horizontal: sheep_placement_state::IsSet, - St::Type: sheep_placement_state::IsSet, St::Start: sheep_placement_state::IsSet, + St::Type: sheep_placement_state::IsSet, + St::Horizontal: sheep_placement_state::IsSet, { /// Build the final struct. pub fn build(self) -> SheepPlacement { diff --git a/crates/jacquard-api/src/games_firehose/barklesheep/reaction.rs b/crates/jacquard-api/src/games_firehose/barklesheep/reaction.rs index d3af906f..19ba1832 100644 --- a/crates/jacquard-api/src/games_firehose/barklesheep/reaction.rs +++ b/crates/jacquard-api/src/games_firehose/barklesheep/reaction.rs @@ -124,51 +124,51 @@ pub mod reaction_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Emoji; - type GameId; type CreatedAt; + type GameId; + type Emoji; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Emoji = Unset; - type GameId = Unset; type CreatedAt = Unset; + type GameId = Unset; + type Emoji = Unset; } - ///State transition - sets the `emoji` field to Set - pub struct SetEmoji(PhantomData St>); - impl sealed::Sealed for SetEmoji {} - impl State for SetEmoji { - type Emoji = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type GameId = St::GameId; - type CreatedAt = St::CreatedAt; + type Emoji = St::Emoji; } ///State transition - sets the `game_id` field to Set pub struct SetGameId(PhantomData St>); impl sealed::Sealed for SetGameId {} impl State for SetGameId { - type Emoji = St::Emoji; - type GameId = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type GameId = Set; type Emoji = St::Emoji; + } + ///State transition - sets the `emoji` field to Set + pub struct SetEmoji(PhantomData St>); + impl sealed::Sealed for SetEmoji {} + impl State for SetEmoji { + type CreatedAt = St::CreatedAt; type GameId = St::GameId; - type CreatedAt = Set; + type Emoji = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `emoji` field - pub struct emoji(()); - ///Marker type for the `game_id` field - pub struct game_id(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `game_id` field + pub struct game_id(()); + ///Marker type for the `emoji` field + pub struct emoji(()); } } @@ -257,9 +257,9 @@ where impl ReactionBuilder where St: reaction_state::State, - St::Emoji: reaction_state::IsSet, - St::GameId: reaction_state::IsSet, St::CreatedAt: reaction_state::IsSet, + St::GameId: reaction_state::IsSet, + St::Emoji: reaction_state::IsSet, { /// Build the final struct. pub fn build(self) -> Reaction { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames.rs index 81737696..ee64a73d 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames.rs @@ -3267,37 +3267,37 @@ pub mod actor_credit_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Credits; type Uri; + type Credits; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Credits = Unset; type Uri = Unset; - } - ///State transition - sets the `credits` field to Set - pub struct SetCredits(PhantomData St>); - impl sealed::Sealed for SetCredits {} - impl State for SetCredits { - type Credits = Set; - type Uri = St::Uri; + type Credits = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Credits = St::Credits; type Uri = Set; + type Credits = St::Credits; + } + ///State transition - sets the `credits` field to Set + pub struct SetCredits(PhantomData St>); + impl sealed::Sealed for SetCredits {} + impl State for SetCredits { + type Uri = St::Uri; + type Credits = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `credits` field - pub struct credits(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `credits` field + pub struct credits(()); } } @@ -3398,8 +3398,8 @@ where impl ActorCreditViewBuilder where St: actor_credit_view_state::State, - St::Credits: actor_credit_view_state::IsSet, St::Uri: actor_credit_view_state::IsSet, + St::Credits: actor_credit_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ActorCreditView { @@ -5177,37 +5177,37 @@ pub mod actor_profile_detail_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Uri; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Uri = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Uri = St::Uri; + type Did = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Did = St::Did; type Uri = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Uri = St::Uri; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -5416,8 +5416,8 @@ impl< impl ActorProfileDetailViewBuilder where St: actor_profile_detail_view_state::State, - St::Did: actor_profile_detail_view_state::IsSet, St::Uri: actor_profile_detail_view_state::IsSet, + St::Did: actor_profile_detail_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ActorProfileDetailView { @@ -5464,37 +5464,37 @@ pub mod actor_profile_summary_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Did; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Did = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Did = St::Did; + type Uri = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Uri = St::Uri; type Did = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Did = St::Did; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -5610,8 +5610,8 @@ where impl ActorProfileSummaryViewBuilder where St: actor_profile_summary_view_state::State, - St::Uri: actor_profile_summary_view_state::IsSet, St::Did: actor_profile_summary_view_state::IsSet, + St::Uri: actor_profile_summary_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ActorProfileSummaryView { @@ -5648,37 +5648,37 @@ pub mod collection_summary_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Name; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Name = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Name = St::Name; + type Uri = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Uri = St::Uri; type Name = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Name = St::Name; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -5794,8 +5794,8 @@ where impl CollectionSummaryViewBuilder where St: collection_summary_view_state::State, - St::Uri: collection_summary_view_state::IsSet, St::Name: collection_summary_view_state::IsSet, + St::Uri: collection_summary_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> CollectionSummaryView { @@ -6096,51 +6096,51 @@ pub mod game_detail_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type CreatedAt; type Uri; + type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type CreatedAt = Unset; type Uri = Unset; + type CreatedAt = Unset; + type Name = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; type CreatedAt = St::CreatedAt; - type Uri = St::Uri; + type Name = St::Name; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; - type CreatedAt = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + type CreatedAt = Set; type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Uri = St::Uri; type CreatedAt = St::CreatedAt; - type Uri = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -6714,9 +6714,9 @@ impl GameDetailViewBuilder impl GameDetailViewBuilder where St: game_detail_view_state::State, - St::Name: game_detail_view_state::IsSet, - St::CreatedAt: game_detail_view_state::IsSet, St::Uri: game_detail_view_state::IsSet, + St::CreatedAt: game_detail_view_state::IsSet, + St::Name: game_detail_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> GameDetailView { @@ -6916,37 +6916,37 @@ pub mod game_summary_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Uri; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Uri = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Uri = St::Uri; + type Name = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Name = St::Name; type Uri = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Uri = St::Uri; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -7101,8 +7101,8 @@ where impl GameSummaryViewBuilder where St: game_summary_view_state::State, - St::Name: game_summary_view_state::IsSet, St::Uri: game_summary_view_state::IsSet, + St::Name: game_summary_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> GameSummaryView { @@ -8203,37 +8203,37 @@ pub mod platform_features_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Platform; type Features; + type Platform; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Platform = Unset; type Features = Unset; - } - ///State transition - sets the `platform` field to Set - pub struct SetPlatform(PhantomData St>); - impl sealed::Sealed for SetPlatform {} - impl State for SetPlatform { - type Platform = Set; - type Features = St::Features; + type Platform = Unset; } ///State transition - sets the `features` field to Set pub struct SetFeatures(PhantomData St>); impl sealed::Sealed for SetFeatures {} impl State for SetFeatures { - type Platform = St::Platform; type Features = Set; + type Platform = St::Platform; + } + ///State transition - sets the `platform` field to Set + pub struct SetPlatform(PhantomData St>); + impl sealed::Sealed for SetPlatform {} + impl State for SetPlatform { + type Features = St::Features; + type Platform = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `platform` field - pub struct platform(()); ///Marker type for the `features` field pub struct features(()); + ///Marker type for the `platform` field + pub struct platform(()); } } @@ -8303,8 +8303,8 @@ where impl PlatformFeaturesBuilder where St: platform_features_state::State, - St::Platform: platform_features_state::IsSet, St::Features: platform_features_state::IsSet, + St::Platform: platform_features_state::IsSet, { /// Build the final struct. pub fn build(self) -> PlatformFeatures { @@ -8540,51 +8540,51 @@ pub mod profile_summary_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ProfileType; type Uri; type Did; + type ProfileType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ProfileType = Unset; type Uri = Unset; type Did = Unset; - } - ///State transition - sets the `profile_type` field to Set - pub struct SetProfileType(PhantomData St>); - impl sealed::Sealed for SetProfileType {} - impl State for SetProfileType { - type ProfileType = Set; - type Uri = St::Uri; - type Did = St::Did; + type ProfileType = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type ProfileType = St::ProfileType; type Uri = Set; type Did = St::Did; + type ProfileType = St::ProfileType; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type ProfileType = St::ProfileType; type Uri = St::Uri; type Did = Set; + type ProfileType = St::ProfileType; + } + ///State transition - sets the `profile_type` field to Set + pub struct SetProfileType(PhantomData St>); + impl sealed::Sealed for SetProfileType {} + impl State for SetProfileType { + type Uri = St::Uri; + type Did = St::Did; + type ProfileType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `profile_type` field - pub struct profile_type(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `profile_type` field + pub struct profile_type(()); } } @@ -8705,9 +8705,9 @@ where impl ProfileSummaryViewBuilder where St: profile_summary_view_state::State, - St::ProfileType: profile_summary_view_state::IsSet, St::Uri: profile_summary_view_state::IsSet, St::Did: profile_summary_view_state::IsSet, + St::ProfileType: profile_summary_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProfileSummaryView { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/credit.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/credit.rs index 73f1c35c..a9881537 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/credit.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/credit.rs @@ -131,37 +131,37 @@ pub mod credit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Game; type Credits; + type Game; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Game = Unset; type Credits = Unset; - } - ///State transition - sets the `game` field to Set - pub struct SetGame(PhantomData St>); - impl sealed::Sealed for SetGame {} - impl State for SetGame { - type Game = Set; - type Credits = St::Credits; + type Game = Unset; } ///State transition - sets the `credits` field to Set pub struct SetCredits(PhantomData St>); impl sealed::Sealed for SetCredits {} impl State for SetCredits { - type Game = St::Game; type Credits = Set; + type Game = St::Game; + } + ///State transition - sets the `game` field to Set + pub struct SetGame(PhantomData St>); + impl sealed::Sealed for SetGame {} + impl State for SetGame { + type Credits = St::Credits; + type Game = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `game` field - pub struct game(()); ///Marker type for the `credits` field pub struct credits(()); + ///Marker type for the `game` field + pub struct game(()); } } @@ -262,8 +262,8 @@ where impl CreditBuilder where St: credit_state::State, - St::Game: credit_state::IsSet, St::Credits: credit_state::IsSet, + St::Game: credit_state::IsSet, { /// Build the final struct. pub fn build(self) -> Credit { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/game.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/game.rs index 89f664c1..bcad9925 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/game.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/game.rs @@ -395,51 +395,51 @@ pub mod game_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Game; type Platform; + type Game; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Game = Unset; type Platform = Unset; + type Game = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `platform` field to Set + pub struct SetPlatform(PhantomData St>); + impl sealed::Sealed for SetPlatform {} + impl State for SetPlatform { + type Platform = Set; type Game = St::Game; - type Platform = St::Platform; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `game` field to Set pub struct SetGame(PhantomData St>); impl sealed::Sealed for SetGame {} impl State for SetGame { - type CreatedAt = St::CreatedAt; - type Game = Set; type Platform = St::Platform; - } - ///State transition - sets the `platform` field to Set - pub struct SetPlatform(PhantomData St>); - impl sealed::Sealed for SetPlatform {} - impl State for SetPlatform { + type Game = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Platform = St::Platform; type Game = St::Game; - type Platform = Set; + type CreatedAt = 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 `game` field - pub struct game(()); ///Marker type for the `platform` field pub struct platform(()); + ///Marker type for the `game` field + pub struct game(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -552,9 +552,9 @@ impl GameBuilder { impl GameBuilder where St: game_state::State, - St::CreatedAt: game_state::IsSet, - St::Game: game_state::IsSet, St::Platform: game_state::IsSet, + St::Game: game_state::IsSet, + St::CreatedAt: game_state::IsSet, { /// Build the final struct. pub fn build(self) -> Game { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/profile.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/profile.rs index 2c3219c2..b37127e5 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/profile.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/actor/profile.rs @@ -200,37 +200,37 @@ pub mod profile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type DisplayName; type CreatedAt; + type DisplayName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type DisplayName = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `display_name` field to Set - pub struct SetDisplayName(PhantomData St>); - impl sealed::Sealed for SetDisplayName {} - impl State for SetDisplayName { - type DisplayName = Set; - type CreatedAt = St::CreatedAt; + type DisplayName = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type DisplayName = St::DisplayName; type CreatedAt = Set; + type DisplayName = St::DisplayName; + } + ///State transition - sets the `display_name` field to Set + pub struct SetDisplayName(PhantomData St>); + impl sealed::Sealed for SetDisplayName {} + impl State for SetDisplayName { + type CreatedAt = St::CreatedAt; + type DisplayName = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `display_name` field - pub struct display_name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `display_name` field + pub struct display_name(()); } } @@ -376,8 +376,8 @@ impl ProfileBuilder { impl ProfileBuilder where St: profile_state::State, - St::DisplayName: profile_state::IsSet, St::CreatedAt: profile_state::IsSet, + St::DisplayName: profile_state::IsSet, { /// Build the final struct. pub fn build(self) -> Profile { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/claim.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/claim.rs index 26aa2a10..287d0523 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/claim.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/claim.rs @@ -223,37 +223,37 @@ pub mod claim_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type CreatedAt; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type CreatedAt = St::CreatedAt; + type Type = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Type = St::Type; type CreatedAt = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type CreatedAt = St::CreatedAt; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -382,8 +382,8 @@ where impl ClaimBuilder where St: claim_state::State, - St::Type: claim_state::IsSet, St::CreatedAt: claim_state::IsSet, + St::Type: claim_state::IsSet, { /// Build the final struct. pub fn build(self) -> Claim { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/claim_review.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/claim_review.rs index a6e6b6c0..a4edbb9b 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/claim_review.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/claim_review.rs @@ -209,67 +209,67 @@ pub mod claim_review_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Status; type ReviewedBy; type Claim; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Status = Unset; type ReviewedBy = Unset; type Claim = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Status = St::Status; - type ReviewedBy = St::ReviewedBy; - type Claim = St::Claim; + type CreatedAt = Unset; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type CreatedAt = St::CreatedAt; type Status = Set; type ReviewedBy = St::ReviewedBy; type Claim = St::Claim; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `reviewed_by` field to Set pub struct SetReviewedBy(PhantomData St>); impl sealed::Sealed for SetReviewedBy {} impl State for SetReviewedBy { - type CreatedAt = St::CreatedAt; type Status = St::Status; type ReviewedBy = Set; type Claim = St::Claim; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `claim` field to Set pub struct SetClaim(PhantomData St>); impl sealed::Sealed for SetClaim {} impl State for SetClaim { - type CreatedAt = St::CreatedAt; type Status = St::Status; type ReviewedBy = St::ReviewedBy; type Claim = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Status = St::Status; + type ReviewedBy = St::ReviewedBy; + type Claim = St::Claim; + type CreatedAt = 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 `status` field pub struct status(()); ///Marker type for the `reviewed_by` field pub struct reviewed_by(()); ///Marker type for the `claim` field pub struct claim(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -410,10 +410,10 @@ where impl ClaimReviewBuilder where St: claim_review_state::State, - St::CreatedAt: claim_review_state::IsSet, St::Status: claim_review_state::IsSet, St::ReviewedBy: claim_review_state::IsSet, St::Claim: claim_review_state::IsSet, + St::CreatedAt: claim_review_state::IsSet, { /// Build the final struct. pub fn build(self) -> ClaimReview { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/collection.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/collection.rs index 1307a839..85957a5a 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/collection.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/collection.rs @@ -208,37 +208,37 @@ pub mod collection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = 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 `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -395,8 +395,8 @@ impl CollectionBuilder { impl CollectionBuilder where St: collection_state::State, - St::CreatedAt: collection_state::IsSet, St::Name: collection_state::IsSet, + St::CreatedAt: collection_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collection { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/engine.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/engine.rs index 4d11a673..daaaf825 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/engine.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/engine.rs @@ -124,37 +124,37 @@ pub mod engine_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = 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 `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -297,8 +297,8 @@ impl EngineBuilder { impl EngineBuilder where St: engine_state::State, - St::CreatedAt: engine_state::IsSet, St::Name: engine_state::IsSet, + St::CreatedAt: engine_state::IsSet, { /// Build the final struct. pub fn build(self) -> Engine { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/feed/generator.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/feed/generator.rs index de801421..955c093c 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/feed/generator.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/feed/generator.rs @@ -206,51 +206,51 @@ pub mod generator_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type DisplayName; type CreatedAt; type Did; + type DisplayName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type DisplayName = Unset; type CreatedAt = Unset; type Did = Unset; - } - ///State transition - sets the `display_name` field to Set - pub struct SetDisplayName(PhantomData St>); - impl sealed::Sealed for SetDisplayName {} - impl State for SetDisplayName { - type DisplayName = Set; - type CreatedAt = St::CreatedAt; - type Did = St::Did; + type DisplayName = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type DisplayName = St::DisplayName; type CreatedAt = Set; type Did = St::Did; + type DisplayName = St::DisplayName; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type DisplayName = St::DisplayName; type CreatedAt = St::CreatedAt; type Did = Set; + type DisplayName = St::DisplayName; + } + ///State transition - sets the `display_name` field to Set + pub struct SetDisplayName(PhantomData St>); + impl sealed::Sealed for SetDisplayName {} + impl State for SetDisplayName { + type CreatedAt = St::CreatedAt; + type Did = St::Did; + type DisplayName = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `display_name` field - pub struct display_name(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `display_name` field + pub struct display_name(()); } } @@ -385,9 +385,9 @@ where impl GeneratorBuilder where St: generator_state::State, - St::DisplayName: generator_state::IsSet, St::CreatedAt: generator_state::IsSet, St::Did: generator_state::IsSet, + St::DisplayName: generator_state::IsSet, { /// Build the final struct. pub fn build(self) -> Generator { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/get_claim.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/get_claim.rs index 9eca26a2..df4a7c69 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/get_claim.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/get_claim.rs @@ -301,85 +301,85 @@ pub mod claim_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Cid; type ClaimantDid; - type Type; + type Cid; + type Uri; type CreatedAt; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; - type Cid = Unset; type ClaimantDid = Unset; - type Type = Unset; + type Cid = Unset; + type Uri = Unset; type CreatedAt = Unset; + type Type = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; + ///State transition - sets the `claimant_did` field to Set + pub struct SetClaimantDid(PhantomData St>); + impl sealed::Sealed for SetClaimantDid {} + impl State for SetClaimantDid { + type ClaimantDid = Set; type Cid = St::Cid; - type ClaimantDid = St::ClaimantDid; - type Type = St::Type; + type Uri = St::Uri; type CreatedAt = St::CreatedAt; + type Type = St::Type; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = St::Uri; - type Cid = Set; type ClaimantDid = St::ClaimantDid; - type Type = St::Type; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `claimant_did` field to Set - pub struct SetClaimantDid(PhantomData St>); - impl sealed::Sealed for SetClaimantDid {} - impl State for SetClaimantDid { + type Cid = Set; type Uri = St::Uri; - type Cid = St::Cid; - type ClaimantDid = Set; - type Type = St::Type; type CreatedAt = St::CreatedAt; + type Type = St::Type; } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Uri = St::Uri; - type Cid = St::Cid; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type ClaimantDid = St::ClaimantDid; - type Type = Set; + type Cid = St::Cid; + type Uri = Set; type CreatedAt = St::CreatedAt; + type Type = St::Type; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Uri = St::Uri; - type Cid = St::Cid; type ClaimantDid = St::ClaimantDid; - type Type = St::Type; + type Cid = St::Cid; + type Uri = St::Uri; type CreatedAt = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type ClaimantDid = St::ClaimantDid; + type Cid = St::Cid; + type Uri = St::Uri; + type CreatedAt = St::CreatedAt; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `claimant_did` field pub struct claimant_did(()); - ///Marker type for the `type` field - pub struct r#type(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -582,11 +582,11 @@ where impl ClaimViewBuilder where St: claim_view_state::State, - St::Uri: claim_view_state::IsSet, - St::Cid: claim_view_state::IsSet, St::ClaimantDid: claim_view_state::IsSet, - St::Type: claim_view_state::IsSet, + St::Cid: claim_view_state::IsSet, + St::Uri: claim_view_state::IsSet, St::CreatedAt: claim_view_state::IsSet, + St::Type: claim_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ClaimView { @@ -903,67 +903,67 @@ pub mod review_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Status; type ReviewedBy; - type Uri; type CreatedAt; + type Status; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Status = Unset; type ReviewedBy = Unset; - type Uri = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { - type Status = Set; - type ReviewedBy = St::ReviewedBy; - type Uri = St::Uri; - type CreatedAt = St::CreatedAt; + type Status = Unset; + type Uri = Unset; } ///State transition - sets the `reviewed_by` field to Set pub struct SetReviewedBy(PhantomData St>); impl sealed::Sealed for SetReviewedBy {} impl State for SetReviewedBy { - type Status = St::Status; type ReviewedBy = Set; - type Uri = St::Uri; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Status = St::Status; - type ReviewedBy = St::ReviewedBy; - type Uri = Set; - type CreatedAt = St::CreatedAt; + type Uri = St::Uri; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type ReviewedBy = St::ReviewedBy; + type CreatedAt = Set; type Status = St::Status; + type Uri = St::Uri; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { type ReviewedBy = St::ReviewedBy; + type CreatedAt = St::CreatedAt; + type Status = Set; type Uri = St::Uri; - type CreatedAt = Set; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type ReviewedBy = St::ReviewedBy; + type CreatedAt = St::CreatedAt; + type Status = St::Status; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `status` field - pub struct status(()); ///Marker type for the `reviewed_by` field pub struct reviewed_by(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `status` field + pub struct status(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -1104,10 +1104,10 @@ where impl ReviewViewBuilder where St: review_view_state::State, - St::Status: review_view_state::IsSet, St::ReviewedBy: review_view_state::IsSet, - St::Uri: review_view_state::IsSet, St::CreatedAt: review_view_state::IsSet, + St::Status: review_view_state::IsSet, + St::Uri: review_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReviewView { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/get_reviews.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/get_reviews.rs index 0b3bda34..bfca8b00 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/get_reviews.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/get_reviews.rs @@ -261,67 +261,67 @@ pub mod popfeed_review_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Rating; type Uri; type Did; + type CreatedAt; + type Rating; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Rating = Unset; type Uri = Unset; type Did = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Rating = St::Rating; - type Uri = St::Uri; - type Did = St::Did; - } - ///State transition - sets the `rating` field to Set - pub struct SetRating(PhantomData St>); - impl sealed::Sealed for SetRating {} - impl State for SetRating { - type CreatedAt = St::CreatedAt; - type Rating = Set; - type Uri = St::Uri; - type Did = St::Did; + type CreatedAt = Unset; + type Rating = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type CreatedAt = St::CreatedAt; - type Rating = St::Rating; type Uri = Set; type Did = St::Did; + type CreatedAt = St::CreatedAt; + type Rating = St::Rating; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { + type Uri = St::Uri; + type Did = Set; type CreatedAt = St::CreatedAt; type Rating = St::Rating; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type Uri = St::Uri; - type Did = Set; + type Did = St::Did; + type CreatedAt = Set; + type Rating = St::Rating; + } + ///State transition - sets the `rating` field to Set + pub struct SetRating(PhantomData St>); + impl sealed::Sealed for SetRating {} + impl State for SetRating { + type Uri = St::Uri; + type Did = St::Did; + type CreatedAt = St::CreatedAt; + type Rating = 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 `rating` field - pub struct rating(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `rating` field + pub struct rating(()); } } @@ -504,10 +504,10 @@ where impl PopfeedReviewBuilder where St: popfeed_review_state::State, - St::CreatedAt: popfeed_review_state::IsSet, - St::Rating: popfeed_review_state::IsSet, St::Uri: popfeed_review_state::IsSet, St::Did: popfeed_review_state::IsSet, + St::CreatedAt: popfeed_review_state::IsSet, + St::Rating: popfeed_review_state::IsSet, { /// Build the final struct. pub fn build(self) -> PopfeedReview { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/migrate_claim.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/migrate_claim.rs index f5cfa4af..81d5eb59 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/migrate_claim.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/migrate_claim.rs @@ -329,37 +329,37 @@ pub mod migration_result_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type GameUri; type Status; + type GameUri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type GameUri = Unset; type Status = Unset; - } - ///State transition - sets the `game_uri` field to Set - pub struct SetGameUri(PhantomData St>); - impl sealed::Sealed for SetGameUri {} - impl State for SetGameUri { - type GameUri = Set; - type Status = St::Status; + type GameUri = Unset; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type GameUri = St::GameUri; type Status = Set; + type GameUri = St::GameUri; + } + ///State transition - sets the `game_uri` field to Set + pub struct SetGameUri(PhantomData St>); + impl sealed::Sealed for SetGameUri {} + impl State for SetGameUri { + type Status = St::Status; + type GameUri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `game_uri` field - pub struct game_uri(()); ///Marker type for the `status` field pub struct status(()); + ///Marker type for the `game_uri` field + pub struct game_uri(()); } } @@ -460,8 +460,8 @@ where impl MigrationResultBuilder where St: migration_result_state::State, - St::GameUri: migration_result_state::IsSet, St::Status: migration_result_state::IsSet, + St::GameUri: migration_result_state::IsSet, { /// Build the final struct. pub fn build(self) -> MigrationResult { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/org/credit.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/org/credit.rs index 74493605..d359014e 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/org/credit.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/org/credit.rs @@ -131,49 +131,49 @@ pub mod credit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Game; type Roles; + type Game; type Org; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Game = Unset; type Roles = Unset; + type Game = Unset; type Org = Unset; } - ///State transition - sets the `game` field to Set - pub struct SetGame(PhantomData St>); - impl sealed::Sealed for SetGame {} - impl State for SetGame { - type Game = Set; - type Roles = St::Roles; - type Org = St::Org; - } ///State transition - sets the `roles` field to Set pub struct SetRoles(PhantomData St>); impl sealed::Sealed for SetRoles {} impl State for SetRoles { - type Game = St::Game; type Roles = Set; + type Game = St::Game; + type Org = St::Org; + } + ///State transition - sets the `game` field to Set + pub struct SetGame(PhantomData St>); + impl sealed::Sealed for SetGame {} + impl State for SetGame { + type Roles = St::Roles; + type Game = Set; type Org = St::Org; } ///State transition - sets the `org` field to Set pub struct SetOrg(PhantomData St>); impl sealed::Sealed for SetOrg {} impl State for SetOrg { - type Game = St::Game; type Roles = St::Roles; + type Game = St::Game; type Org = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `game` field - pub struct game(()); ///Marker type for the `roles` field pub struct roles(()); + ///Marker type for the `game` field + pub struct game(()); ///Marker type for the `org` field pub struct org(()); } @@ -296,8 +296,8 @@ where impl CreditBuilder where St: credit_state::State, - St::Game: credit_state::IsSet, St::Roles: credit_state::IsSet, + St::Game: credit_state::IsSet, St::Org: credit_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/platform_family.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/platform_family.rs index 3dfdf99b..ce691973 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/platform_family.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/platform_family.rs @@ -114,37 +114,37 @@ pub mod platform_family_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -227,8 +227,8 @@ where impl PlatformFamilyBuilder where St: platform_family_state::State, - St::Name: platform_family_state::IsSet, St::CreatedAt: platform_family_state::IsSet, + St::Name: platform_family_state::IsSet, { /// Build the final struct. pub fn build(self) -> PlatformFamily { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/redirect.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/redirect.rs index 81fb5aab..c8ec9bac 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/redirect.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/redirect.rs @@ -114,67 +114,67 @@ pub mod redirect_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Collection; - type SourceUri; type TargetUri; - type CreatedAt; + type SourceUri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Collection = Unset; - type SourceUri = Unset; type TargetUri = Unset; - type CreatedAt = Unset; + type SourceUri = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Collection = St::Collection; + type TargetUri = St::TargetUri; + type SourceUri = St::SourceUri; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Collection = Set; - type SourceUri = St::SourceUri; - type TargetUri = St::TargetUri; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `source_uri` field to Set - pub struct SetSourceUri(PhantomData St>); - impl sealed::Sealed for SetSourceUri {} - impl State for SetSourceUri { - type Collection = St::Collection; - type SourceUri = Set; + type Collection = Set; type TargetUri = St::TargetUri; - type CreatedAt = St::CreatedAt; + type SourceUri = St::SourceUri; } ///State transition - sets the `target_uri` field to Set pub struct SetTargetUri(PhantomData St>); impl sealed::Sealed for SetTargetUri {} impl State for SetTargetUri { + type CreatedAt = St::CreatedAt; type Collection = St::Collection; - type SourceUri = St::SourceUri; type TargetUri = Set; - type CreatedAt = St::CreatedAt; + type SourceUri = St::SourceUri; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `source_uri` field to Set + pub struct SetSourceUri(PhantomData St>); + impl sealed::Sealed for SetSourceUri {} + impl State for SetSourceUri { + type CreatedAt = St::CreatedAt; type Collection = St::Collection; - type SourceUri = St::SourceUri; type TargetUri = St::TargetUri; - type CreatedAt = Set; + type SourceUri = 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 `collection` field pub struct collection(()); - ///Marker type for the `source_uri` field - pub struct source_uri(()); ///Marker type for the `target_uri` field pub struct target_uri(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `source_uri` field + pub struct source_uri(()); } } @@ -282,10 +282,10 @@ where impl RedirectBuilder where St: redirect_state::State, + St::CreatedAt: redirect_state::IsSet, St::Collection: redirect_state::IsSet, - St::SourceUri: redirect_state::IsSet, St::TargetUri: redirect_state::IsSet, - St::CreatedAt: redirect_state::IsSet, + St::SourceUri: redirect_state::IsSet, { /// Build the final struct. pub fn build(self) -> Redirect { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/review_claim.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/review_claim.rs index 63bf913a..4f1912e2 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/review_claim.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/review_claim.rs @@ -156,37 +156,37 @@ pub mod review_claim_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Claim; type Status; + type Claim; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Claim = Unset; type Status = Unset; - } - ///State transition - sets the `claim` field to Set - pub struct SetClaim(PhantomData St>); - impl sealed::Sealed for SetClaim {} - impl State for SetClaim { - type Claim = Set; - type Status = St::Status; + type Claim = Unset; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type Claim = St::Claim; type Status = Set; + type Claim = St::Claim; + } + ///State transition - sets the `claim` field to Set + pub struct SetClaim(PhantomData St>); + impl sealed::Sealed for SetClaim {} + impl State for SetClaim { + type Status = St::Status; + type Claim = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `claim` field - pub struct claim(()); ///Marker type for the `status` field pub struct status(()); + ///Marker type for the `claim` field + pub struct claim(()); } } @@ -287,8 +287,8 @@ where impl ReviewClaimBuilder where St: review_claim_state::State, - St::Claim: review_claim_state::IsSet, St::Status: review_claim_state::IsSet, + St::Claim: review_claim_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReviewClaim { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/richtext/facet.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/richtext/facet.rs index 131c13e6..5778637a 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/richtext/facet.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/richtext/facet.rs @@ -1293,37 +1293,37 @@ pub mod facet_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Features; type Index; + type Features; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Features = Unset; type Index = Unset; - } - ///State transition - sets the `features` field to Set - pub struct SetFeatures(PhantomData St>); - impl sealed::Sealed for SetFeatures {} - impl State for SetFeatures { - type Features = Set; - type Index = St::Index; + type Features = Unset; } ///State transition - sets the `index` field to Set pub struct SetIndex(PhantomData St>); impl sealed::Sealed for SetIndex {} impl State for SetIndex { - type Features = St::Features; type Index = Set; + type Features = St::Features; + } + ///State transition - sets the `features` field to Set + pub struct SetFeatures(PhantomData St>); + impl sealed::Sealed for SetFeatures {} + impl State for SetFeatures { + type Index = St::Index; + type Features = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `features` field - pub struct features(()); ///Marker type for the `index` field pub struct index(()); + ///Marker type for the `features` field + pub struct features(()); } } @@ -1393,8 +1393,8 @@ where impl FacetBuilder where St: facet_state::State, - St::Features: facet_state::IsSet, St::Index: facet_state::IsSet, + St::Features: facet_state::IsSet, { /// Build the final struct. pub fn build(self) -> Facet { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/search_slugs.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/search_slugs.rs index 789236f7..3e4538db 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/search_slugs.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/search_slugs.rs @@ -211,37 +211,37 @@ pub mod slug_result_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Ref; type Slug; + type Ref; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Ref = Unset; type Slug = Unset; - } - ///State transition - sets the `ref` field to Set - pub struct SetRef(PhantomData St>); - impl sealed::Sealed for SetRef {} - impl State for SetRef { - type Ref = Set; - type Slug = St::Slug; + type Ref = Unset; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData St>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { - type Ref = St::Ref; type Slug = Set; + type Ref = St::Ref; + } + ///State transition - sets the `ref` field to Set + pub struct SetRef(PhantomData St>); + impl sealed::Sealed for SetRef {} + impl State for SetRef { + type Slug = St::Slug; + type Ref = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `ref` field - pub struct r#ref(()); ///Marker type for the `slug` field pub struct slug(()); + ///Marker type for the `ref` field + pub struct r#ref(()); } } @@ -311,8 +311,8 @@ where impl SlugResultBuilder where St: slug_result_state::State, - St::Ref: slug_result_state::IsSet, St::Slug: slug_result_state::IsSet, + St::Ref: slug_result_state::IsSet, { /// Build the final struct. pub fn build(self) -> SlugResult { diff --git a/crates/jacquard-api/src/games_gamesgamesgamesgames/slug.rs b/crates/jacquard-api/src/games_gamesgamesgamesgames/slug.rs index 00bc7bcb..560a3ebb 100644 --- a/crates/jacquard-api/src/games_gamesgamesgamesgames/slug.rs +++ b/crates/jacquard-api/src/games_gamesgamesgamesgames/slug.rs @@ -136,37 +136,37 @@ pub mod slug_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Slug; type Ref; + type Slug; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Slug = Unset; type Ref = Unset; - } - ///State transition - sets the `slug` field to Set - pub struct SetSlug(PhantomData St>); - impl sealed::Sealed for SetSlug {} - impl State for SetSlug { - type Slug = Set; - type Ref = St::Ref; + type Slug = Unset; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type Slug = St::Slug; type Ref = Set; + type Slug = St::Slug; + } + ///State transition - sets the `slug` field to Set + pub struct SetSlug(PhantomData St>); + impl sealed::Sealed for SetSlug {} + impl State for SetSlug { + type Ref = St::Ref; + type Slug = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `slug` field - pub struct slug(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `slug` field + pub struct slug(()); } } @@ -236,8 +236,8 @@ where impl SlugBuilder where St: slug_state::State, - St::Slug: slug_state::IsSet, St::Ref: slug_state::IsSet, + St::Slug: slug_state::IsSet, { /// Build the final struct. pub fn build(self) -> Slug { diff --git a/crates/jacquard-api/src/garden_goals/category.rs b/crates/jacquard-api/src/garden_goals/category.rs index 7525335d..6d6bcc47 100644 --- a/crates/jacquard-api/src/garden_goals/category.rs +++ b/crates/jacquard-api/src/garden_goals/category.rs @@ -139,50 +139,50 @@ pub mod category_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CategoryId; - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CategoryId = Unset; - type CreatedAt = Unset; type Name = Unset; + type CreatedAt = Unset; } ///State transition - sets the `category_id` field to Set pub struct SetCategoryId(PhantomData St>); impl sealed::Sealed for SetCategoryId {} impl State for SetCategoryId { type CategoryId = Set; - type CreatedAt = St::CreatedAt; - type Name = St::Name; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CategoryId = St::CategoryId; - type CreatedAt = Set; type Name = St::Name; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { type CategoryId = St::CategoryId; - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CategoryId = St::CategoryId; + type Name = St::Name; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `category_id` field pub struct category_id(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -272,8 +272,8 @@ impl CategoryBuilder where St: category_state::State, St::CategoryId: category_state::IsSet, - St::CreatedAt: category_state::IsSet, St::Name: category_state::IsSet, + St::CreatedAt: category_state::IsSet, { /// Build the final struct. pub fn build(self) -> Category { diff --git a/crates/jacquard-api/src/garden_goals/completion.rs b/crates/jacquard-api/src/garden_goals/completion.rs index 4ba22ba4..a06c6722 100644 --- a/crates/jacquard-api/src/garden_goals/completion.rs +++ b/crates/jacquard-api/src/garden_goals/completion.rs @@ -251,85 +251,85 @@ pub mod completion_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type GoalId; - type CompletedAt; type Day; - type Month; + type GoalId; type Year; + type Month; + type CompletedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type GoalId = Unset; - type CompletedAt = Unset; type Day = Unset; - type Month = Unset; + type GoalId = Unset; type Year = Unset; + type Month = Unset; + type CompletedAt = Unset; + } + ///State transition - sets the `day` field to Set + pub struct SetDay(PhantomData St>); + impl sealed::Sealed for SetDay {} + impl State for SetDay { + type Day = Set; + type GoalId = St::GoalId; + type Year = St::Year; + type Month = St::Month; + type CompletedAt = St::CompletedAt; } ///State transition - sets the `goal_id` field to Set pub struct SetGoalId(PhantomData St>); impl sealed::Sealed for SetGoalId {} impl State for SetGoalId { - type GoalId = Set; - type CompletedAt = St::CompletedAt; type Day = St::Day; - type Month = St::Month; + type GoalId = Set; type Year = St::Year; - } - ///State transition - sets the `completed_at` field to Set - pub struct SetCompletedAt(PhantomData St>); - impl sealed::Sealed for SetCompletedAt {} - impl State for SetCompletedAt { - type GoalId = St::GoalId; - type CompletedAt = Set; - type Day = St::Day; type Month = St::Month; - type Year = St::Year; + type CompletedAt = St::CompletedAt; } - ///State transition - sets the `day` field to Set - pub struct SetDay(PhantomData St>); - impl sealed::Sealed for SetDay {} - impl State for SetDay { + ///State transition - sets the `year` field to Set + pub struct SetYear(PhantomData St>); + impl sealed::Sealed for SetYear {} + impl State for SetYear { + type Day = St::Day; type GoalId = St::GoalId; - type CompletedAt = St::CompletedAt; - type Day = Set; + type Year = Set; type Month = St::Month; - type Year = St::Year; + type CompletedAt = St::CompletedAt; } ///State transition - sets the `month` field to Set pub struct SetMonth(PhantomData St>); impl sealed::Sealed for SetMonth {} impl State for SetMonth { - type GoalId = St::GoalId; - type CompletedAt = St::CompletedAt; type Day = St::Day; - type Month = Set; - type Year = St::Year; - } - ///State transition - sets the `year` field to Set - pub struct SetYear(PhantomData St>); - impl sealed::Sealed for SetYear {} - impl State for SetYear { type GoalId = St::GoalId; + type Year = St::Year; + type Month = Set; type CompletedAt = St::CompletedAt; + } + ///State transition - sets the `completed_at` field to Set + pub struct SetCompletedAt(PhantomData St>); + impl sealed::Sealed for SetCompletedAt {} + impl State for SetCompletedAt { type Day = St::Day; + type GoalId = St::GoalId; + type Year = St::Year; type Month = St::Month; - type Year = Set; + type CompletedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `goal_id` field - pub struct goal_id(()); - ///Marker type for the `completed_at` field - pub struct completed_at(()); ///Marker type for the `day` field pub struct day(()); - ///Marker type for the `month` field - pub struct month(()); + ///Marker type for the `goal_id` field + pub struct goal_id(()); ///Marker type for the `year` field pub struct year(()); + ///Marker type for the `month` field + pub struct month(()); + ///Marker type for the `completed_at` field + pub struct completed_at(()); } } @@ -518,11 +518,11 @@ where impl CompletionBuilder where St: completion_state::State, - St::GoalId: completion_state::IsSet, - St::CompletedAt: completion_state::IsSet, St::Day: completion_state::IsSet, - St::Month: completion_state::IsSet, + St::GoalId: completion_state::IsSet, St::Year: completion_state::IsSet, + St::Month: completion_state::IsSet, + St::CompletedAt: completion_state::IsSet, { /// Build the final struct. pub fn build(self) -> Completion { diff --git a/crates/jacquard-api/src/garden_goals/completion_details.rs b/crates/jacquard-api/src/garden_goals/completion_details.rs index 3e0af12a..c753e59c 100644 --- a/crates/jacquard-api/src/garden_goals/completion_details.rs +++ b/crates/jacquard-api/src/garden_goals/completion_details.rs @@ -254,9 +254,9 @@ pub mod completion_details_state { pub trait State: sealed::Sealed { type GoalId; type Year; + type UpdatedAt; type Month; type Day; - type UpdatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -264,9 +264,9 @@ pub mod completion_details_state { impl State for Empty { type GoalId = Unset; type Year = Unset; + type UpdatedAt = Unset; type Month = Unset; type Day = Unset; - type UpdatedAt = Unset; } ///State transition - sets the `goal_id` field to Set pub struct SetGoalId(PhantomData St>); @@ -274,9 +274,9 @@ pub mod completion_details_state { impl State for SetGoalId { type GoalId = Set; type Year = St::Year; + type UpdatedAt = St::UpdatedAt; type Month = St::Month; type Day = St::Day; - type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `year` field to Set pub struct SetYear(PhantomData St>); @@ -284,9 +284,19 @@ pub mod completion_details_state { impl State for SetYear { type GoalId = St::GoalId; type Year = Set; + type UpdatedAt = St::UpdatedAt; + type Month = St::Month; + type Day = St::Day; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type GoalId = St::GoalId; + type Year = St::Year; + type UpdatedAt = Set; type Month = St::Month; type Day = St::Day; - type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `month` field to Set pub struct SetMonth(PhantomData St>); @@ -294,9 +304,9 @@ pub mod completion_details_state { impl State for SetMonth { type GoalId = St::GoalId; type Year = St::Year; + type UpdatedAt = St::UpdatedAt; type Month = Set; type Day = St::Day; - type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `day` field to Set pub struct SetDay(PhantomData St>); @@ -304,19 +314,9 @@ pub mod completion_details_state { impl State for SetDay { type GoalId = St::GoalId; type Year = St::Year; - type Month = St::Month; - type Day = Set; type UpdatedAt = St::UpdatedAt; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { - type GoalId = St::GoalId; - type Year = St::Year; type Month = St::Month; - type Day = St::Day; - type UpdatedAt = Set; + type Day = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -325,12 +325,12 @@ pub mod completion_details_state { pub struct goal_id(()); ///Marker type for the `year` field pub struct year(()); + ///Marker type for the `updated_at` field + pub struct updated_at(()); ///Marker type for the `month` field pub struct month(()); ///Marker type for the `day` field pub struct day(()); - ///Marker type for the `updated_at` field - pub struct updated_at(()); } } @@ -521,9 +521,9 @@ where St: completion_details_state::State, St::GoalId: completion_details_state::IsSet, St::Year: completion_details_state::IsSet, + St::UpdatedAt: completion_details_state::IsSet, St::Month: completion_details_state::IsSet, St::Day: completion_details_state::IsSet, - St::UpdatedAt: completion_details_state::IsSet, { /// Build the final struct. pub fn build(self) -> CompletionDetails { diff --git a/crates/jacquard-api/src/garden_goals/goal.rs b/crates/jacquard-api/src/garden_goals/goal.rs index f9180c6a..ebc3aa7f 100644 --- a/crates/jacquard-api/src/garden_goals/goal.rs +++ b/crates/jacquard-api/src/garden_goals/goal.rs @@ -320,8 +320,8 @@ pub mod goal_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type GoalId; - type Year; type Name; + type Year; type CreatedAt; } /// Empty state - all required fields are unset @@ -329,8 +329,8 @@ pub mod goal_state { impl sealed::Sealed for Empty {} impl State for Empty { type GoalId = Unset; - type Year = Unset; type Name = Unset; + type Year = Unset; type CreatedAt = Unset; } ///State transition - sets the `goal_id` field to Set @@ -338,17 +338,8 @@ pub mod goal_state { impl sealed::Sealed for SetGoalId {} impl State for SetGoalId { type GoalId = Set; - type Year = St::Year; - type Name = St::Name; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `year` field to Set - pub struct SetYear(PhantomData St>); - impl sealed::Sealed for SetYear {} - impl State for SetYear { - type GoalId = St::GoalId; - type Year = Set; type Name = St::Name; + type Year = St::Year; type CreatedAt = St::CreatedAt; } ///State transition - sets the `name` field to Set @@ -356,8 +347,17 @@ pub mod goal_state { impl sealed::Sealed for SetName {} impl State for SetName { type GoalId = St::GoalId; - type Year = St::Year; type Name = Set; + type Year = St::Year; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `year` field to Set + pub struct SetYear(PhantomData St>); + impl sealed::Sealed for SetYear {} + impl State for SetYear { + type GoalId = St::GoalId; + type Name = St::Name; + type Year = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set @@ -365,8 +365,8 @@ pub mod goal_state { impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type GoalId = St::GoalId; - type Year = St::Year; type Name = St::Name; + type Year = St::Year; type CreatedAt = Set; } /// Marker types for field names @@ -374,10 +374,10 @@ pub mod goal_state { pub mod members { ///Marker type for the `goal_id` field pub struct goal_id(()); - ///Marker type for the `year` field - pub struct year(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `year` field + pub struct year(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -663,8 +663,8 @@ impl GoalBuilder where St: goal_state::State, St::GoalId: goal_state::IsSet, - St::Year: goal_state::IsSet, St::Name: goal_state::IsSet, + St::Year: goal_state::IsSet, St::CreatedAt: goal_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/garden_lexicon/documentation.rs b/crates/jacquard-api/src/garden_lexicon/documentation.rs index 860c3f2c..61eacd25 100644 --- a/crates/jacquard-api/src/garden_lexicon/documentation.rs +++ b/crates/jacquard-api/src/garden_lexicon/documentation.rs @@ -613,37 +613,37 @@ pub mod documentation_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Lexicon; type CreatedAt; + type Lexicon; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Lexicon = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `lexicon` field to Set - pub struct SetLexicon(PhantomData St>); - impl sealed::Sealed for SetLexicon {} - impl State for SetLexicon { - type Lexicon = Set; - type CreatedAt = St::CreatedAt; + type Lexicon = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Lexicon = St::Lexicon; type CreatedAt = Set; + type Lexicon = St::Lexicon; + } + ///State transition - sets the `lexicon` field to Set + pub struct SetLexicon(PhantomData St>); + impl sealed::Sealed for SetLexicon {} + impl State for SetLexicon { + type CreatedAt = St::CreatedAt; + type Lexicon = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `lexicon` field - pub struct lexicon(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `lexicon` field + pub struct lexicon(()); } } @@ -756,8 +756,8 @@ where impl DocumentationBuilder where St: documentation_state::State, - St::Lexicon: documentation_state::IsSet, St::CreatedAt: documentation_state::IsSet, + St::Lexicon: documentation_state::IsSet, { /// Build the final struct. pub fn build(self) -> Documentation { diff --git a/crates/jacquard-api/src/garden_lexicon/example.rs b/crates/jacquard-api/src/garden_lexicon/example.rs index 2f1fdcd9..8ee10dd4 100644 --- a/crates/jacquard-api/src/garden_lexicon/example.rs +++ b/crates/jacquard-api/src/garden_lexicon/example.rs @@ -119,51 +119,51 @@ pub mod example_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Lexicon; type Value; type CreatedAt; - type Lexicon; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Lexicon = Unset; type Value = Unset; type CreatedAt = Unset; - type Lexicon = Unset; + } + ///State transition - sets the `lexicon` field to Set + pub struct SetLexicon(PhantomData St>); + impl sealed::Sealed for SetLexicon {} + impl State for SetLexicon { + type Lexicon = Set; + type Value = St::Value; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { + type Lexicon = St::Lexicon; type Value = Set; type CreatedAt = St::CreatedAt; - type Lexicon = St::Lexicon; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Value = St::Value; - type CreatedAt = Set; type Lexicon = St::Lexicon; - } - ///State transition - sets the `lexicon` field to Set - pub struct SetLexicon(PhantomData St>); - impl sealed::Sealed for SetLexicon {} - impl State for SetLexicon { type Value = St::Value; - type CreatedAt = St::CreatedAt; - type Lexicon = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `lexicon` field + pub struct lexicon(()); ///Marker type for the `value` field pub struct value(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `lexicon` field - pub struct lexicon(()); } } @@ -265,9 +265,9 @@ where impl ExampleBuilder where St: example_state::State, + St::Lexicon: example_state::IsSet, St::Value: example_state::IsSet, St::CreatedAt: example_state::IsSet, - St::Lexicon: example_state::IsSet, { /// Build the final struct. pub fn build(self) -> Example { diff --git a/crates/jacquard-api/src/garden_lexicon/exultant_zebra/app.rs b/crates/jacquard-api/src/garden_lexicon/exultant_zebra/app.rs index 972b22f0..09ba6df2 100644 --- a/crates/jacquard-api/src/garden_lexicon/exultant_zebra/app.rs +++ b/crates/jacquard-api/src/garden_lexicon/exultant_zebra/app.rs @@ -118,37 +118,37 @@ pub mod app_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Distributions; type Name; + type Distributions; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Distributions = Unset; type Name = Unset; - } - ///State transition - sets the `distributions` field to Set - pub struct SetDistributions(PhantomData St>); - impl sealed::Sealed for SetDistributions {} - impl State for SetDistributions { - type Distributions = Set; - type Name = St::Name; + type Distributions = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Distributions = St::Distributions; type Name = Set; + type Distributions = St::Distributions; + } + ///State transition - sets the `distributions` field to Set + pub struct SetDistributions(PhantomData St>); + impl sealed::Sealed for SetDistributions {} + impl State for SetDistributions { + type Name = St::Name; + type Distributions = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `distributions` field - pub struct distributions(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `distributions` field + pub struct distributions(()); } } @@ -228,8 +228,8 @@ where impl AppBuilder where St: app_state::State, - St::Distributions: app_state::IsSet, St::Name: app_state::IsSet, + St::Distributions: app_state::IsSet, { /// Build the final struct. pub fn build(self) -> App { diff --git a/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion/sign.rs b/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion/sign.rs index 9e58d65e..f801da46 100644 --- a/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion/sign.rs +++ b/crates/jacquard-api/src/garden_lexicon/ngerakines/semeion/sign.rs @@ -66,7 +66,7 @@ impl jacquard_common::xrpc::XrpcRequest for Sign { type Response = SignResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, diff --git a/crates/jacquard-api/src/haus_opn/mic/artist.rs b/crates/jacquard-api/src/haus_opn/mic/artist.rs index 6e856bc7..49dd2cb7 100644 --- a/crates/jacquard-api/src/haus_opn/mic/artist.rs +++ b/crates/jacquard-api/src/haus_opn/mic/artist.rs @@ -180,37 +180,37 @@ pub mod artist_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -339,8 +339,8 @@ where impl ArtistBuilder where St: artist_state::State, - St::Name: artist_state::IsSet, St::CreatedAt: artist_state::IsSet, + St::Name: artist_state::IsSet, { /// Build the final struct. pub fn build(self) -> Artist { diff --git a/crates/jacquard-api/src/haus_opn/mic/show.rs b/crates/jacquard-api/src/haus_opn/mic/show.rs index 21598191..3a5d55e5 100644 --- a/crates/jacquard-api/src/haus_opn/mic/show.rs +++ b/crates/jacquard-api/src/haus_opn/mic/show.rs @@ -273,67 +273,67 @@ pub mod show_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Title; + type Artist; type CreatedAt; type Schedule; - type Artist; - type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Title = Unset; + type Artist = Unset; type CreatedAt = Unset; type Schedule = Unset; - type Artist = Unset; - type Title = Unset; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Title = Set; + type Artist = St::Artist; + type CreatedAt = St::CreatedAt; + type Schedule = St::Schedule; + } + ///State transition - sets the `artist` field to Set + pub struct SetArtist(PhantomData St>); + impl sealed::Sealed for SetArtist {} + impl State for SetArtist { + type Title = St::Title; + type Artist = Set; + type CreatedAt = St::CreatedAt; + type Schedule = St::Schedule; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Title = St::Title; + type Artist = St::Artist; type CreatedAt = Set; type Schedule = St::Schedule; - type Artist = St::Artist; - type Title = St::Title; } ///State transition - sets the `schedule` field to Set pub struct SetSchedule(PhantomData St>); impl sealed::Sealed for SetSchedule {} impl State for SetSchedule { - type CreatedAt = St::CreatedAt; - type Schedule = Set; - type Artist = St::Artist; - type Title = St::Title; - } - ///State transition - sets the `artist` field to Set - pub struct SetArtist(PhantomData St>); - impl sealed::Sealed for SetArtist {} - impl State for SetArtist { - type CreatedAt = St::CreatedAt; - type Schedule = St::Schedule; - type Artist = Set; type Title = St::Title; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type CreatedAt = St::CreatedAt; - type Schedule = St::Schedule; type Artist = St::Artist; - type Title = Set; + type CreatedAt = St::CreatedAt; + type Schedule = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `title` field + pub struct title(()); + ///Marker type for the `artist` field + pub struct artist(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `schedule` field pub struct schedule(()); - ///Marker type for the `artist` field - pub struct artist(()); - ///Marker type for the `title` field - pub struct title(()); } } @@ -474,10 +474,10 @@ where impl ShowBuilder where St: show_state::State, + St::Title: show_state::IsSet, + St::Artist: show_state::IsSet, St::CreatedAt: show_state::IsSet, St::Schedule: show_state::IsSet, - St::Artist: show_state::IsSet, - St::Title: show_state::IsSet, { /// Build the final struct. pub fn build(self) -> Show { diff --git a/crates/jacquard-api/src/haus_opn/mic/show/episode.rs b/crates/jacquard-api/src/haus_opn/mic/show/episode.rs index c0626f74..1ca55543 100644 --- a/crates/jacquard-api/src/haus_opn/mic/show/episode.rs +++ b/crates/jacquard-api/src/haus_opn/mic/show/episode.rs @@ -272,51 +272,51 @@ pub mod episode_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; - type ShowUri; type CreatedAt; + type ShowUri; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; - type ShowUri = Unset; type CreatedAt = Unset; + type ShowUri = Unset; + type Title = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type ShowUri = St::ShowUri; - type CreatedAt = St::CreatedAt; + type Title = St::Title; } ///State transition - sets the `show_uri` field to Set pub struct SetShowUri(PhantomData St>); impl sealed::Sealed for SetShowUri {} impl State for SetShowUri { - type Title = St::Title; - type ShowUri = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type ShowUri = Set; type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type CreatedAt = St::CreatedAt; type ShowUri = St::ShowUri; - type CreatedAt = Set; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); - ///Marker type for the `show_uri` field - pub struct show_uri(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `show_uri` field + pub struct show_uri(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -479,9 +479,9 @@ impl EpisodeBuilder { impl EpisodeBuilder where St: episode_state::State, - St::Title: episode_state::IsSet, - St::ShowUri: episode_state::IsSet, St::CreatedAt: episode_state::IsSet, + St::ShowUri: episode_state::IsSet, + St::Title: episode_state::IsSet, { /// Build the final struct. pub fn build(self) -> Episode { diff --git a/crates/jacquard-api/src/haus_opn/mic/show/episode/favorite.rs b/crates/jacquard-api/src/haus_opn/mic/show/episode/favorite.rs index c46dbdd1..0eff9a8f 100644 --- a/crates/jacquard-api/src/haus_opn/mic/show/episode/favorite.rs +++ b/crates/jacquard-api/src/haus_opn/mic/show/episode/favorite.rs @@ -113,37 +113,37 @@ pub mod favorite_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -213,8 +213,8 @@ where impl FavoriteBuilder where St: favorite_state::State, - St::Subject: favorite_state::IsSet, St::CreatedAt: favorite_state::IsSet, + St::Subject: favorite_state::IsSet, { /// Build the final struct. pub fn build(self) -> Favorite { diff --git a/crates/jacquard-api/src/io_atcr/hold/captain.rs b/crates/jacquard-api/src/io_atcr/hold/captain.rs index dff3094e..7ed0e1a7 100644 --- a/crates/jacquard-api/src/io_atcr/hold/captain.rs +++ b/crates/jacquard-api/src/io_atcr/hold/captain.rs @@ -136,85 +136,85 @@ pub mod captain_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AllowAllCrew; + type Owner; type EnableBlueskyPosts; type DeployedAt; type Public; - type Owner; + type AllowAllCrew; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AllowAllCrew = Unset; + type Owner = Unset; type EnableBlueskyPosts = Unset; type DeployedAt = Unset; type Public = Unset; - type Owner = Unset; + type AllowAllCrew = Unset; } - ///State transition - sets the `allow_all_crew` field to Set - pub struct SetAllowAllCrew(PhantomData St>); - impl sealed::Sealed for SetAllowAllCrew {} - impl State for SetAllowAllCrew { - type AllowAllCrew = Set; + ///State transition - sets the `owner` field to Set + pub struct SetOwner(PhantomData St>); + impl sealed::Sealed for SetOwner {} + impl State for SetOwner { + type Owner = Set; type EnableBlueskyPosts = St::EnableBlueskyPosts; type DeployedAt = St::DeployedAt; type Public = St::Public; - type Owner = St::Owner; + type AllowAllCrew = St::AllowAllCrew; } ///State transition - sets the `enable_bluesky_posts` field to Set pub struct SetEnableBlueskyPosts(PhantomData St>); impl sealed::Sealed for SetEnableBlueskyPosts {} impl State for SetEnableBlueskyPosts { - type AllowAllCrew = St::AllowAllCrew; + type Owner = St::Owner; type EnableBlueskyPosts = Set; type DeployedAt = St::DeployedAt; type Public = St::Public; - type Owner = St::Owner; + type AllowAllCrew = St::AllowAllCrew; } ///State transition - sets the `deployed_at` field to Set pub struct SetDeployedAt(PhantomData St>); impl sealed::Sealed for SetDeployedAt {} impl State for SetDeployedAt { - type AllowAllCrew = St::AllowAllCrew; + type Owner = St::Owner; type EnableBlueskyPosts = St::EnableBlueskyPosts; type DeployedAt = Set; type Public = St::Public; - type Owner = St::Owner; + type AllowAllCrew = St::AllowAllCrew; } ///State transition - sets the `public` field to Set pub struct SetPublic(PhantomData St>); impl sealed::Sealed for SetPublic {} impl State for SetPublic { - type AllowAllCrew = St::AllowAllCrew; + type Owner = St::Owner; type EnableBlueskyPosts = St::EnableBlueskyPosts; type DeployedAt = St::DeployedAt; type Public = Set; - type Owner = St::Owner; - } - ///State transition - sets the `owner` field to Set - pub struct SetOwner(PhantomData St>); - impl sealed::Sealed for SetOwner {} - impl State for SetOwner { type AllowAllCrew = St::AllowAllCrew; + } + ///State transition - sets the `allow_all_crew` field to Set + pub struct SetAllowAllCrew(PhantomData St>); + impl sealed::Sealed for SetAllowAllCrew {} + impl State for SetAllowAllCrew { + type Owner = St::Owner; type EnableBlueskyPosts = St::EnableBlueskyPosts; type DeployedAt = St::DeployedAt; type Public = St::Public; - type Owner = Set; + type AllowAllCrew = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `allow_all_crew` field - pub struct allow_all_crew(()); + ///Marker type for the `owner` field + pub struct owner(()); ///Marker type for the `enable_bluesky_posts` field pub struct enable_bluesky_posts(()); ///Marker type for the `deployed_at` field pub struct deployed_at(()); ///Marker type for the `public` field pub struct public(()); - ///Marker type for the `owner` field - pub struct owner(()); + ///Marker type for the `allow_all_crew` field + pub struct allow_all_crew(()); } } @@ -375,11 +375,11 @@ impl CaptainBuilder { impl CaptainBuilder where St: captain_state::State, - St::AllowAllCrew: captain_state::IsSet, + St::Owner: captain_state::IsSet, St::EnableBlueskyPosts: captain_state::IsSet, St::DeployedAt: captain_state::IsSet, St::Public: captain_state::IsSet, - St::Owner: captain_state::IsSet, + St::AllowAllCrew: captain_state::IsSet, { /// Build the final struct. pub fn build(self) -> Captain { diff --git a/crates/jacquard-api/src/io_atcr/hold/complete_upload.rs b/crates/jacquard-api/src/io_atcr/hold/complete_upload.rs index ed41b9da..32f047d8 100644 --- a/crates/jacquard-api/src/io_atcr/hold/complete_upload.rs +++ b/crates/jacquard-api/src/io_atcr/hold/complete_upload.rs @@ -206,51 +206,51 @@ pub mod complete_upload_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Digest; type Parts; type UploadId; - type Digest; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Digest = Unset; type Parts = Unset; type UploadId = Unset; - type Digest = Unset; + } + ///State transition - sets the `digest` field to Set + pub struct SetDigest(PhantomData St>); + impl sealed::Sealed for SetDigest {} + impl State for SetDigest { + type Digest = Set; + type Parts = St::Parts; + type UploadId = St::UploadId; } ///State transition - sets the `parts` field to Set pub struct SetParts(PhantomData St>); impl sealed::Sealed for SetParts {} impl State for SetParts { + type Digest = St::Digest; type Parts = Set; type UploadId = St::UploadId; - type Digest = St::Digest; } ///State transition - sets the `upload_id` field to Set pub struct SetUploadId(PhantomData St>); impl sealed::Sealed for SetUploadId {} impl State for SetUploadId { - type Parts = St::Parts; - type UploadId = Set; type Digest = St::Digest; - } - ///State transition - sets the `digest` field to Set - pub struct SetDigest(PhantomData St>); - impl sealed::Sealed for SetDigest {} - impl State for SetDigest { type Parts = St::Parts; - type UploadId = St::UploadId; - type Digest = Set; + type UploadId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `digest` field + pub struct digest(()); ///Marker type for the `parts` field pub struct parts(()); ///Marker type for the `upload_id` field pub struct upload_id(()); - ///Marker type for the `digest` field - pub struct digest(()); } } @@ -339,9 +339,9 @@ where impl CompleteUploadBuilder where St: complete_upload_state::State, + St::Digest: complete_upload_state::IsSet, St::Parts: complete_upload_state::IsSet, St::UploadId: complete_upload_state::IsSet, - St::Digest: complete_upload_state::IsSet, { /// Build the final struct. pub fn build(self) -> CompleteUpload { @@ -376,37 +376,37 @@ pub mod part_info_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Etag; type PartNumber; + type Etag; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Etag = Unset; type PartNumber = Unset; - } - ///State transition - sets the `etag` field to Set - pub struct SetEtag(PhantomData St>); - impl sealed::Sealed for SetEtag {} - impl State for SetEtag { - type Etag = Set; - type PartNumber = St::PartNumber; + type Etag = Unset; } ///State transition - sets the `part_number` field to Set pub struct SetPartNumber(PhantomData St>); impl sealed::Sealed for SetPartNumber {} impl State for SetPartNumber { - type Etag = St::Etag; type PartNumber = Set; + type Etag = St::Etag; + } + ///State transition - sets the `etag` field to Set + pub struct SetEtag(PhantomData St>); + impl sealed::Sealed for SetEtag {} + impl State for SetEtag { + type PartNumber = St::PartNumber; + type Etag = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `etag` field - pub struct etag(()); ///Marker type for the `part_number` field pub struct part_number(()); + ///Marker type for the `etag` field + pub struct etag(()); } } @@ -476,8 +476,8 @@ where impl PartInfoBuilder where St: part_info_state::State, - St::Etag: part_info_state::IsSet, St::PartNumber: part_info_state::IsSet, + St::Etag: part_info_state::IsSet, { /// Build the final struct. pub fn build(self) -> PartInfo { diff --git a/crates/jacquard-api/src/io_atcr/hold/crew.rs b/crates/jacquard-api/src/io_atcr/hold/crew.rs index 6ffaa0a2..ff80f874 100644 --- a/crates/jacquard-api/src/io_atcr/hold/crew.rs +++ b/crates/jacquard-api/src/io_atcr/hold/crew.rs @@ -229,67 +229,67 @@ pub mod crew_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Member; - type Permissions; type Role; type AddedAt; + type Permissions; + type Member; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Member = Unset; - type Permissions = Unset; type Role = Unset; type AddedAt = Unset; - } - ///State transition - sets the `member` field to Set - pub struct SetMember(PhantomData St>); - impl sealed::Sealed for SetMember {} - impl State for SetMember { - type Member = Set; - type Permissions = St::Permissions; - type Role = St::Role; - type AddedAt = St::AddedAt; - } - ///State transition - sets the `permissions` field to Set - pub struct SetPermissions(PhantomData St>); - impl sealed::Sealed for SetPermissions {} - impl State for SetPermissions { - type Member = St::Member; - type Permissions = Set; - type Role = St::Role; - type AddedAt = St::AddedAt; + type Permissions = Unset; + type Member = Unset; } ///State transition - sets the `role` field to Set pub struct SetRole(PhantomData St>); impl sealed::Sealed for SetRole {} impl State for SetRole { - type Member = St::Member; - type Permissions = St::Permissions; type Role = Set; type AddedAt = St::AddedAt; + type Permissions = St::Permissions; + type Member = St::Member; } ///State transition - sets the `added_at` field to Set pub struct SetAddedAt(PhantomData St>); impl sealed::Sealed for SetAddedAt {} impl State for SetAddedAt { - type Member = St::Member; - type Permissions = St::Permissions; type Role = St::Role; type AddedAt = Set; + type Permissions = St::Permissions; + type Member = St::Member; + } + ///State transition - sets the `permissions` field to Set + pub struct SetPermissions(PhantomData St>); + impl sealed::Sealed for SetPermissions {} + impl State for SetPermissions { + type Role = St::Role; + type AddedAt = St::AddedAt; + type Permissions = Set; + type Member = St::Member; + } + ///State transition - sets the `member` field to Set + pub struct SetMember(PhantomData St>); + impl sealed::Sealed for SetMember {} + impl State for SetMember { + type Role = St::Role; + type AddedAt = St::AddedAt; + type Permissions = St::Permissions; + type Member = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `member` field - pub struct member(()); - ///Marker type for the `permissions` field - pub struct permissions(()); ///Marker type for the `role` field pub struct role(()); ///Marker type for the `added_at` field pub struct added_at(()); + ///Marker type for the `permissions` field + pub struct permissions(()); + ///Marker type for the `member` field + pub struct member(()); } } @@ -416,10 +416,10 @@ impl CrewBuilder { impl CrewBuilder where St: crew_state::State, - St::Member: crew_state::IsSet, - St::Permissions: crew_state::IsSet, St::Role: crew_state::IsSet, St::AddedAt: crew_state::IsSet, + St::Permissions: crew_state::IsSet, + St::Member: crew_state::IsSet, { /// Build the final struct. pub fn build(self) -> Crew { diff --git a/crates/jacquard-api/src/io_atcr/hold/layer.rs b/crates/jacquard-api/src/io_atcr/hold/layer.rs index ee37b914..9ea9b338 100644 --- a/crates/jacquard-api/src/io_atcr/hold/layer.rs +++ b/crates/jacquard-api/src/io_atcr/hold/layer.rs @@ -145,104 +145,104 @@ pub mod layer_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Size; - type CreatedAt; - type Digest; type MediaType; type Manifest; type UserDid; + type CreatedAt; + type Digest; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Size = Unset; - type CreatedAt = Unset; - type Digest = Unset; type MediaType = Unset; type Manifest = Unset; type UserDid = Unset; + type CreatedAt = Unset; + type Digest = Unset; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData St>); impl sealed::Sealed for SetSize {} impl State for SetSize { type Size = Set; - type CreatedAt = St::CreatedAt; - type Digest = St::Digest; - type MediaType = St::MediaType; - type Manifest = St::Manifest; - type UserDid = St::UserDid; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Size = St::Size; - type CreatedAt = Set; - type Digest = St::Digest; type MediaType = St::MediaType; type Manifest = St::Manifest; type UserDid = St::UserDid; - } - ///State transition - sets the `digest` field to Set - pub struct SetDigest(PhantomData St>); - impl sealed::Sealed for SetDigest {} - impl State for SetDigest { - type Size = St::Size; type CreatedAt = St::CreatedAt; - type Digest = Set; - type MediaType = St::MediaType; - type Manifest = St::Manifest; - type UserDid = St::UserDid; + type Digest = St::Digest; } ///State transition - sets the `media_type` field to Set pub struct SetMediaType(PhantomData St>); impl sealed::Sealed for SetMediaType {} impl State for SetMediaType { type Size = St::Size; - type CreatedAt = St::CreatedAt; - type Digest = St::Digest; type MediaType = Set; type Manifest = St::Manifest; type UserDid = St::UserDid; + type CreatedAt = St::CreatedAt; + type Digest = St::Digest; } ///State transition - sets the `manifest` field to Set pub struct SetManifest(PhantomData St>); impl sealed::Sealed for SetManifest {} impl State for SetManifest { type Size = St::Size; - type CreatedAt = St::CreatedAt; - type Digest = St::Digest; type MediaType = St::MediaType; type Manifest = Set; type UserDid = St::UserDid; + type CreatedAt = St::CreatedAt; + type Digest = St::Digest; } ///State transition - sets the `user_did` field to Set pub struct SetUserDid(PhantomData St>); impl sealed::Sealed for SetUserDid {} impl State for SetUserDid { type Size = St::Size; + type MediaType = St::MediaType; + type Manifest = St::Manifest; + type UserDid = Set; type CreatedAt = St::CreatedAt; type Digest = St::Digest; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Size = St::Size; type MediaType = St::MediaType; type Manifest = St::Manifest; - type UserDid = Set; + type UserDid = St::UserDid; + type CreatedAt = Set; + type Digest = St::Digest; + } + ///State transition - sets the `digest` field to Set + pub struct SetDigest(PhantomData St>); + impl sealed::Sealed for SetDigest {} + impl State for SetDigest { + type Size = St::Size; + type MediaType = St::MediaType; + type Manifest = St::Manifest; + type UserDid = St::UserDid; + type CreatedAt = St::CreatedAt; + type Digest = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `size` field pub struct size(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `digest` field - pub struct digest(()); ///Marker type for the `media_type` field pub struct media_type(()); ///Marker type for the `manifest` field pub struct manifest(()); ///Marker type for the `user_did` field pub struct user_did(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `digest` field + pub struct digest(()); } } @@ -396,11 +396,11 @@ impl LayerBuilder where St: layer_state::State, St::Size: layer_state::IsSet, - St::CreatedAt: layer_state::IsSet, - St::Digest: layer_state::IsSet, St::MediaType: layer_state::IsSet, St::Manifest: layer_state::IsSet, St::UserDid: layer_state::IsSet, + St::CreatedAt: layer_state::IsSet, + St::Digest: layer_state::IsSet, { /// Build the final struct. pub fn build(self) -> Layer { diff --git a/crates/jacquard-api/src/io_atcr/hold/notify_manifest.rs b/crates/jacquard-api/src/io_atcr/hold/notify_manifest.rs index f1321b2d..a67598d5 100644 --- a/crates/jacquard-api/src/io_atcr/hold/notify_manifest.rs +++ b/crates/jacquard-api/src/io_atcr/hold/notify_manifest.rs @@ -751,67 +751,67 @@ pub mod notify_manifest_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repository; - type UserDid; type ManifestDigest; type Manifest; + type UserDid; + type Repository; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repository = Unset; - type UserDid = Unset; type ManifestDigest = Unset; type Manifest = Unset; - } - ///State transition - sets the `repository` field to Set - pub struct SetRepository(PhantomData St>); - impl sealed::Sealed for SetRepository {} - impl State for SetRepository { - type Repository = Set; - type UserDid = St::UserDid; - type ManifestDigest = St::ManifestDigest; - type Manifest = St::Manifest; - } - ///State transition - sets the `user_did` field to Set - pub struct SetUserDid(PhantomData St>); - impl sealed::Sealed for SetUserDid {} - impl State for SetUserDid { - type Repository = St::Repository; - type UserDid = Set; - type ManifestDigest = St::ManifestDigest; - type Manifest = St::Manifest; + type UserDid = Unset; + type Repository = Unset; } ///State transition - sets the `manifest_digest` field to Set pub struct SetManifestDigest(PhantomData St>); impl sealed::Sealed for SetManifestDigest {} impl State for SetManifestDigest { - type Repository = St::Repository; - type UserDid = St::UserDid; type ManifestDigest = Set; type Manifest = St::Manifest; + type UserDid = St::UserDid; + type Repository = St::Repository; } ///State transition - sets the `manifest` field to Set pub struct SetManifest(PhantomData St>); impl sealed::Sealed for SetManifest {} impl State for SetManifest { - type Repository = St::Repository; - type UserDid = St::UserDid; type ManifestDigest = St::ManifestDigest; type Manifest = Set; + type UserDid = St::UserDid; + type Repository = St::Repository; + } + ///State transition - sets the `user_did` field to Set + pub struct SetUserDid(PhantomData St>); + impl sealed::Sealed for SetUserDid {} + impl State for SetUserDid { + type ManifestDigest = St::ManifestDigest; + type Manifest = St::Manifest; + type UserDid = Set; + type Repository = St::Repository; + } + ///State transition - sets the `repository` field to Set + pub struct SetRepository(PhantomData St>); + impl sealed::Sealed for SetRepository {} + impl State for SetRepository { + type ManifestDigest = St::ManifestDigest; + type Manifest = St::Manifest; + type UserDid = St::UserDid; + type Repository = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repository` field - pub struct repository(()); - ///Marker type for the `user_did` field - pub struct user_did(()); ///Marker type for the `manifest_digest` field pub struct manifest_digest(()); ///Marker type for the `manifest` field pub struct manifest(()); + ///Marker type for the `user_did` field + pub struct user_did(()); + ///Marker type for the `repository` field + pub struct repository(()); } } @@ -955,10 +955,10 @@ where impl NotifyManifestBuilder where St: notify_manifest_state::State, - St::Repository: notify_manifest_state::IsSet, - St::UserDid: notify_manifest_state::IsSet, St::ManifestDigest: notify_manifest_state::IsSet, St::Manifest: notify_manifest_state::IsSet, + St::UserDid: notify_manifest_state::IsSet, + St::Repository: notify_manifest_state::IsSet, { /// Build the final struct. pub fn build(self) -> NotifyManifest { diff --git a/crates/jacquard-api/src/io_atcr/hold/scan.rs b/crates/jacquard-api/src/io_atcr/hold/scan.rs index febb0d1f..590b9f7e 100644 --- a/crates/jacquard-api/src/io_atcr/hold/scan.rs +++ b/crates/jacquard-api/src/io_atcr/hold/scan.rs @@ -263,203 +263,203 @@ pub mod scan_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Medium; + type Repository; + type Critical; type Total; - type UserDid; + type ScannedAt; type Manifest; - type Low; + type Medium; + type UserDid; type ScannerVersion; - type Critical; - type ScannedAt; - type Repository; + type Low; type High; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Medium = Unset; + type Repository = Unset; + type Critical = Unset; type Total = Unset; - type UserDid = Unset; + type ScannedAt = Unset; type Manifest = Unset; - type Low = Unset; + type Medium = Unset; + type UserDid = Unset; type ScannerVersion = Unset; - type Critical = Unset; - type ScannedAt = Unset; - type Repository = Unset; + type Low = Unset; type High = Unset; } - ///State transition - sets the `medium` field to Set - pub struct SetMedium(PhantomData St>); - impl sealed::Sealed for SetMedium {} - impl State for SetMedium { - type Medium = Set; + ///State transition - sets the `repository` field to Set + pub struct SetRepository(PhantomData St>); + impl sealed::Sealed for SetRepository {} + impl State for SetRepository { + type Repository = Set; + type Critical = St::Critical; type Total = St::Total; - type UserDid = St::UserDid; + type ScannedAt = St::ScannedAt; type Manifest = St::Manifest; - type Low = St::Low; + type Medium = St::Medium; + type UserDid = St::UserDid; type ScannerVersion = St::ScannerVersion; - type Critical = St::Critical; - type ScannedAt = St::ScannedAt; + type Low = St::Low; + type High = St::High; + } + ///State transition - sets the `critical` field to Set + pub struct SetCritical(PhantomData St>); + impl sealed::Sealed for SetCritical {} + impl State for SetCritical { type Repository = St::Repository; + type Critical = Set; + type Total = St::Total; + type ScannedAt = St::ScannedAt; + type Manifest = St::Manifest; + type Medium = St::Medium; + type UserDid = St::UserDid; + type ScannerVersion = St::ScannerVersion; + type Low = St::Low; type High = St::High; } ///State transition - sets the `total` field to Set pub struct SetTotal(PhantomData St>); impl sealed::Sealed for SetTotal {} impl State for SetTotal { - type Medium = St::Medium; + type Repository = St::Repository; + type Critical = St::Critical; type Total = Set; - type UserDid = St::UserDid; + type ScannedAt = St::ScannedAt; type Manifest = St::Manifest; - type Low = St::Low; + type Medium = St::Medium; + type UserDid = St::UserDid; type ScannerVersion = St::ScannerVersion; - type Critical = St::Critical; - type ScannedAt = St::ScannedAt; - type Repository = St::Repository; + type Low = St::Low; type High = St::High; } - ///State transition - sets the `user_did` field to Set - pub struct SetUserDid(PhantomData St>); - impl sealed::Sealed for SetUserDid {} - impl State for SetUserDid { - type Medium = St::Medium; + ///State transition - sets the `scanned_at` field to Set + pub struct SetScannedAt(PhantomData St>); + impl sealed::Sealed for SetScannedAt {} + impl State for SetScannedAt { + type Repository = St::Repository; + type Critical = St::Critical; type Total = St::Total; - type UserDid = Set; + type ScannedAt = Set; type Manifest = St::Manifest; - type Low = St::Low; + type Medium = St::Medium; + type UserDid = St::UserDid; type ScannerVersion = St::ScannerVersion; - type Critical = St::Critical; - type ScannedAt = St::ScannedAt; - type Repository = St::Repository; + type Low = St::Low; type High = St::High; } ///State transition - sets the `manifest` field to Set pub struct SetManifest(PhantomData St>); impl sealed::Sealed for SetManifest {} impl State for SetManifest { - type Medium = St::Medium; + type Repository = St::Repository; + type Critical = St::Critical; type Total = St::Total; - type UserDid = St::UserDid; + type ScannedAt = St::ScannedAt; type Manifest = Set; - type Low = St::Low; + type Medium = St::Medium; + type UserDid = St::UserDid; type ScannerVersion = St::ScannerVersion; - type Critical = St::Critical; - type ScannedAt = St::ScannedAt; - type Repository = St::Repository; + type Low = St::Low; type High = St::High; } - ///State transition - sets the `low` field to Set - pub struct SetLow(PhantomData St>); - impl sealed::Sealed for SetLow {} - impl State for SetLow { - type Medium = St::Medium; + ///State transition - sets the `medium` field to Set + pub struct SetMedium(PhantomData St>); + impl sealed::Sealed for SetMedium {} + impl State for SetMedium { + type Repository = St::Repository; + type Critical = St::Critical; type Total = St::Total; - type UserDid = St::UserDid; + type ScannedAt = St::ScannedAt; type Manifest = St::Manifest; - type Low = Set; + type Medium = Set; + type UserDid = St::UserDid; type ScannerVersion = St::ScannerVersion; + type Low = St::Low; + type High = St::High; + } + ///State transition - sets the `user_did` field to Set + pub struct SetUserDid(PhantomData St>); + impl sealed::Sealed for SetUserDid {} + impl State for SetUserDid { + type Repository = St::Repository; type Critical = St::Critical; + type Total = St::Total; type ScannedAt = St::ScannedAt; - type Repository = St::Repository; + type Manifest = St::Manifest; + type Medium = St::Medium; + type UserDid = Set; + type ScannerVersion = St::ScannerVersion; + type Low = St::Low; type High = St::High; } ///State transition - sets the `scanner_version` field to Set pub struct SetScannerVersion(PhantomData St>); impl sealed::Sealed for SetScannerVersion {} impl State for SetScannerVersion { - type Medium = St::Medium; - type Total = St::Total; - type UserDid = St::UserDid; - type Manifest = St::Manifest; - type Low = St::Low; - type ScannerVersion = Set; + type Repository = St::Repository; type Critical = St::Critical; + type Total = St::Total; type ScannedAt = St::ScannedAt; - type Repository = St::Repository; - type High = St::High; - } - ///State transition - sets the `critical` field to Set - pub struct SetCritical(PhantomData St>); - impl sealed::Sealed for SetCritical {} - impl State for SetCritical { + type Manifest = St::Manifest; type Medium = St::Medium; - type Total = St::Total; type UserDid = St::UserDid; - type Manifest = St::Manifest; + type ScannerVersion = Set; type Low = St::Low; - type ScannerVersion = St::ScannerVersion; - type Critical = Set; - type ScannedAt = St::ScannedAt; - type Repository = St::Repository; type High = St::High; } - ///State transition - sets the `scanned_at` field to Set - pub struct SetScannedAt(PhantomData St>); - impl sealed::Sealed for SetScannedAt {} - impl State for SetScannedAt { - type Medium = St::Medium; + ///State transition - sets the `low` field to Set + pub struct SetLow(PhantomData St>); + impl sealed::Sealed for SetLow {} + impl State for SetLow { + type Repository = St::Repository; + type Critical = St::Critical; type Total = St::Total; - type UserDid = St::UserDid; + type ScannedAt = St::ScannedAt; type Manifest = St::Manifest; - type Low = St::Low; - type ScannerVersion = St::ScannerVersion; - type Critical = St::Critical; - type ScannedAt = Set; - type Repository = St::Repository; - type High = St::High; - } - ///State transition - sets the `repository` field to Set - pub struct SetRepository(PhantomData St>); - impl sealed::Sealed for SetRepository {} - impl State for SetRepository { type Medium = St::Medium; - type Total = St::Total; type UserDid = St::UserDid; - type Manifest = St::Manifest; - type Low = St::Low; type ScannerVersion = St::ScannerVersion; - type Critical = St::Critical; - type ScannedAt = St::ScannedAt; - type Repository = Set; + type Low = Set; type High = St::High; } ///State transition - sets the `high` field to Set pub struct SetHigh(PhantomData St>); impl sealed::Sealed for SetHigh {} impl State for SetHigh { - type Medium = St::Medium; + type Repository = St::Repository; + type Critical = St::Critical; type Total = St::Total; - type UserDid = St::UserDid; + type ScannedAt = St::ScannedAt; type Manifest = St::Manifest; - type Low = St::Low; + type Medium = St::Medium; + type UserDid = St::UserDid; type ScannerVersion = St::ScannerVersion; - type Critical = St::Critical; - type ScannedAt = St::ScannedAt; - type Repository = St::Repository; + type Low = St::Low; type High = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `medium` field - pub struct medium(()); + ///Marker type for the `repository` field + pub struct repository(()); + ///Marker type for the `critical` field + pub struct critical(()); ///Marker type for the `total` field pub struct total(()); - ///Marker type for the `user_did` field - pub struct user_did(()); + ///Marker type for the `scanned_at` field + pub struct scanned_at(()); ///Marker type for the `manifest` field pub struct manifest(()); - ///Marker type for the `low` field - pub struct low(()); + ///Marker type for the `medium` field + pub struct medium(()); + ///Marker type for the `user_did` field + pub struct user_did(()); ///Marker type for the `scanner_version` field pub struct scanner_version(()); - ///Marker type for the `critical` field - pub struct critical(()); - ///Marker type for the `scanned_at` field - pub struct scanned_at(()); - ///Marker type for the `repository` field - pub struct repository(()); + ///Marker type for the `low` field + pub struct low(()); ///Marker type for the `high` field pub struct high(()); } @@ -735,15 +735,15 @@ impl ScanBuilder { impl ScanBuilder where St: scan_state::State, - St::Medium: scan_state::IsSet, + St::Repository: scan_state::IsSet, + St::Critical: scan_state::IsSet, St::Total: scan_state::IsSet, - St::UserDid: scan_state::IsSet, + St::ScannedAt: scan_state::IsSet, St::Manifest: scan_state::IsSet, - St::Low: scan_state::IsSet, + St::Medium: scan_state::IsSet, + St::UserDid: scan_state::IsSet, St::ScannerVersion: scan_state::IsSet, - St::Critical: scan_state::IsSet, - St::ScannedAt: scan_state::IsSet, - St::Repository: scan_state::IsSet, + St::Low: scan_state::IsSet, St::High: scan_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/io_atcr/hold/set_stats.rs b/crates/jacquard-api/src/io_atcr/hold/set_stats.rs index 5c9a531b..000c5f17 100644 --- a/crates/jacquard-api/src/io_atcr/hold/set_stats.rs +++ b/crates/jacquard-api/src/io_atcr/hold/set_stats.rs @@ -139,37 +139,37 @@ pub mod set_stats_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type OwnerDid; type Repository; + type OwnerDid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type OwnerDid = Unset; type Repository = Unset; - } - ///State transition - sets the `owner_did` field to Set - pub struct SetOwnerDid(PhantomData St>); - impl sealed::Sealed for SetOwnerDid {} - impl State for SetOwnerDid { - type OwnerDid = Set; - type Repository = St::Repository; + type OwnerDid = Unset; } ///State transition - sets the `repository` field to Set pub struct SetRepository(PhantomData St>); impl sealed::Sealed for SetRepository {} impl State for SetRepository { - type OwnerDid = St::OwnerDid; type Repository = Set; + type OwnerDid = St::OwnerDid; + } + ///State transition - sets the `owner_did` field to Set + pub struct SetOwnerDid(PhantomData St>); + impl sealed::Sealed for SetOwnerDid {} + impl State for SetOwnerDid { + type Repository = St::Repository; + type OwnerDid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `owner_did` field - pub struct owner_did(()); ///Marker type for the `repository` field pub struct repository(()); + ///Marker type for the `owner_did` field + pub struct owner_did(()); } } @@ -298,8 +298,8 @@ where impl SetStatsBuilder where St: set_stats_state::State, - St::OwnerDid: set_stats_state::IsSet, St::Repository: set_stats_state::IsSet, + St::OwnerDid: set_stats_state::IsSet, { /// Build the final struct. pub fn build(self) -> SetStats { diff --git a/crates/jacquard-api/src/io_atcr/hold/stats.rs b/crates/jacquard-api/src/io_atcr/hold/stats.rs index f913fbca..78c81cb6 100644 --- a/crates/jacquard-api/src/io_atcr/hold/stats.rs +++ b/crates/jacquard-api/src/io_atcr/hold/stats.rs @@ -157,85 +157,85 @@ pub mod stats_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repository; - type OwnerDid; type UpdatedAt; - type PushCount; + type OwnerDid; type PullCount; + type Repository; + type PushCount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repository = Unset; - type OwnerDid = Unset; type UpdatedAt = Unset; - type PushCount = Unset; + type OwnerDid = Unset; type PullCount = Unset; + type Repository = Unset; + type PushCount = Unset; } - ///State transition - sets the `repository` field to Set - pub struct SetRepository(PhantomData St>); - impl sealed::Sealed for SetRepository {} - impl State for SetRepository { - type Repository = Set; + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type UpdatedAt = Set; type OwnerDid = St::OwnerDid; - type UpdatedAt = St::UpdatedAt; - type PushCount = St::PushCount; type PullCount = St::PullCount; + type Repository = St::Repository; + type PushCount = St::PushCount; } ///State transition - sets the `owner_did` field to Set pub struct SetOwnerDid(PhantomData St>); impl sealed::Sealed for SetOwnerDid {} impl State for SetOwnerDid { - type Repository = St::Repository; - type OwnerDid = Set; type UpdatedAt = St::UpdatedAt; - type PushCount = St::PushCount; + type OwnerDid = Set; type PullCount = St::PullCount; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { type Repository = St::Repository; + type PushCount = St::PushCount; + } + ///State transition - sets the `pull_count` field to Set + pub struct SetPullCount(PhantomData St>); + impl sealed::Sealed for SetPullCount {} + impl State for SetPullCount { + type UpdatedAt = St::UpdatedAt; type OwnerDid = St::OwnerDid; - type UpdatedAt = Set; + type PullCount = Set; + type Repository = St::Repository; type PushCount = St::PushCount; + } + ///State transition - sets the `repository` field to Set + pub struct SetRepository(PhantomData St>); + impl sealed::Sealed for SetRepository {} + impl State for SetRepository { + type UpdatedAt = St::UpdatedAt; + type OwnerDid = St::OwnerDid; type PullCount = St::PullCount; + type Repository = Set; + type PushCount = St::PushCount; } ///State transition - sets the `push_count` field to Set pub struct SetPushCount(PhantomData St>); impl sealed::Sealed for SetPushCount {} impl State for SetPushCount { - type Repository = St::Repository; - type OwnerDid = St::OwnerDid; type UpdatedAt = St::UpdatedAt; - type PushCount = Set; + type OwnerDid = St::OwnerDid; type PullCount = St::PullCount; - } - ///State transition - sets the `pull_count` field to Set - pub struct SetPullCount(PhantomData St>); - impl sealed::Sealed for SetPullCount {} - impl State for SetPullCount { type Repository = St::Repository; - type OwnerDid = St::OwnerDid; - type UpdatedAt = St::UpdatedAt; - type PushCount = St::PushCount; - type PullCount = Set; + type PushCount = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repository` field - pub struct repository(()); - ///Marker type for the `owner_did` field - pub struct owner_did(()); ///Marker type for the `updated_at` field pub struct updated_at(()); - ///Marker type for the `push_count` field - pub struct push_count(()); + ///Marker type for the `owner_did` field + pub struct owner_did(()); ///Marker type for the `pull_count` field pub struct pull_count(()); + ///Marker type for the `repository` field + pub struct repository(()); + ///Marker type for the `push_count` field + pub struct push_count(()); } } @@ -396,11 +396,11 @@ where impl StatsBuilder where St: stats_state::State, - St::Repository: stats_state::IsSet, - St::OwnerDid: stats_state::IsSet, St::UpdatedAt: stats_state::IsSet, - St::PushCount: stats_state::IsSet, + St::OwnerDid: stats_state::IsSet, St::PullCount: stats_state::IsSet, + St::Repository: stats_state::IsSet, + St::PushCount: stats_state::IsSet, { /// Build the final struct. pub fn build(self) -> Stats { diff --git a/crates/jacquard-api/src/io_atcr/hold/subscribe_scan_jobs.rs b/crates/jacquard-api/src/io_atcr/hold/subscribe_scan_jobs.rs index d8eba78d..093a4a1e 100644 --- a/crates/jacquard-api/src/io_atcr/hold/subscribe_scan_jobs.rs +++ b/crates/jacquard-api/src/io_atcr/hold/subscribe_scan_jobs.rs @@ -478,127 +478,127 @@ pub mod scan_job_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type UserDid; - type Type; - type Repository; - type Digest; type Seq; type HoldDid; type HoldEndpoint; + type Digest; + type Type; + type Repository; + type UserDid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type UserDid = Unset; - type Type = Unset; - type Repository = Unset; - type Digest = Unset; type Seq = Unset; type HoldDid = Unset; type HoldEndpoint = Unset; + type Digest = Unset; + type Type = Unset; + type Repository = Unset; + type UserDid = Unset; } - ///State transition - sets the `user_did` field to Set - pub struct SetUserDid(PhantomData St>); - impl sealed::Sealed for SetUserDid {} - impl State for SetUserDid { - type UserDid = Set; + ///State transition - sets the `seq` field to Set + pub struct SetSeq(PhantomData St>); + impl sealed::Sealed for SetSeq {} + impl State for SetSeq { + type Seq = Set; + type HoldDid = St::HoldDid; + type HoldEndpoint = St::HoldEndpoint; + type Digest = St::Digest; type Type = St::Type; type Repository = St::Repository; + type UserDid = St::UserDid; + } + ///State transition - sets the `hold_did` field to Set + pub struct SetHoldDid(PhantomData St>); + impl sealed::Sealed for SetHoldDid {} + impl State for SetHoldDid { + type Seq = St::Seq; + type HoldDid = Set; + type HoldEndpoint = St::HoldEndpoint; type Digest = St::Digest; + type Type = St::Type; + type Repository = St::Repository; + type UserDid = St::UserDid; + } + ///State transition - sets the `hold_endpoint` field to Set + pub struct SetHoldEndpoint(PhantomData St>); + impl sealed::Sealed for SetHoldEndpoint {} + impl State for SetHoldEndpoint { + type Seq = St::Seq; + type HoldDid = St::HoldDid; + type HoldEndpoint = Set; + type Digest = St::Digest; + type Type = St::Type; + type Repository = St::Repository; + type UserDid = St::UserDid; + } + ///State transition - sets the `digest` field to Set + pub struct SetDigest(PhantomData St>); + impl sealed::Sealed for SetDigest {} + impl State for SetDigest { type Seq = St::Seq; type HoldDid = St::HoldDid; type HoldEndpoint = St::HoldEndpoint; + type Digest = Set; + type Type = St::Type; + type Repository = St::Repository; + type UserDid = St::UserDid; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { - type UserDid = St::UserDid; - type Type = Set; - type Repository = St::Repository; - type Digest = St::Digest; type Seq = St::Seq; type HoldDid = St::HoldDid; type HoldEndpoint = St::HoldEndpoint; + type Digest = St::Digest; + type Type = Set; + type Repository = St::Repository; + type UserDid = St::UserDid; } ///State transition - sets the `repository` field to Set pub struct SetRepository(PhantomData St>); impl sealed::Sealed for SetRepository {} impl State for SetRepository { - type UserDid = St::UserDid; - type Type = St::Type; - type Repository = Set; - type Digest = St::Digest; type Seq = St::Seq; type HoldDid = St::HoldDid; type HoldEndpoint = St::HoldEndpoint; - } - ///State transition - sets the `digest` field to Set - pub struct SetDigest(PhantomData St>); - impl sealed::Sealed for SetDigest {} - impl State for SetDigest { - type UserDid = St::UserDid; + type Digest = St::Digest; type Type = St::Type; - type Repository = St::Repository; - type Digest = Set; - type Seq = St::Seq; - type HoldDid = St::HoldDid; - type HoldEndpoint = St::HoldEndpoint; - } - ///State transition - sets the `seq` field to Set - pub struct SetSeq(PhantomData St>); - impl sealed::Sealed for SetSeq {} - impl State for SetSeq { + type Repository = Set; type UserDid = St::UserDid; - type Type = St::Type; - type Repository = St::Repository; - type Digest = St::Digest; - type Seq = Set; - type HoldDid = St::HoldDid; - type HoldEndpoint = St::HoldEndpoint; } - ///State transition - sets the `hold_did` field to Set - pub struct SetHoldDid(PhantomData St>); - impl sealed::Sealed for SetHoldDid {} - impl State for SetHoldDid { - type UserDid = St::UserDid; - type Type = St::Type; - type Repository = St::Repository; - type Digest = St::Digest; + ///State transition - sets the `user_did` field to Set + pub struct SetUserDid(PhantomData St>); + impl sealed::Sealed for SetUserDid {} + impl State for SetUserDid { type Seq = St::Seq; - type HoldDid = Set; + type HoldDid = St::HoldDid; type HoldEndpoint = St::HoldEndpoint; - } - ///State transition - sets the `hold_endpoint` field to Set - pub struct SetHoldEndpoint(PhantomData St>); - impl sealed::Sealed for SetHoldEndpoint {} - impl State for SetHoldEndpoint { - type UserDid = St::UserDid; + type Digest = St::Digest; type Type = St::Type; type Repository = St::Repository; - type Digest = St::Digest; - type Seq = St::Seq; - type HoldDid = St::HoldDid; - type HoldEndpoint = Set; + type UserDid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `user_did` field - pub struct user_did(()); - ///Marker type for the `type` field - pub struct r#type(()); - ///Marker type for the `repository` field - pub struct repository(()); - ///Marker type for the `digest` field - pub struct digest(()); ///Marker type for the `seq` field pub struct seq(()); ///Marker type for the `hold_did` field pub struct hold_did(()); ///Marker type for the `hold_endpoint` field pub struct hold_endpoint(()); + ///Marker type for the `digest` field + pub struct digest(()); + ///Marker type for the `type` field + pub struct r#type(()); + ///Marker type for the `repository` field + pub struct repository(()); + ///Marker type for the `user_did` field + pub struct user_did(()); } } @@ -799,13 +799,13 @@ where impl ScanJobBuilder where St: scan_job_state::State, - St::UserDid: scan_job_state::IsSet, - St::Type: scan_job_state::IsSet, - St::Repository: scan_job_state::IsSet, - St::Digest: scan_job_state::IsSet, St::Seq: scan_job_state::IsSet, St::HoldDid: scan_job_state::IsSet, St::HoldEndpoint: scan_job_state::IsSet, + St::Digest: scan_job_state::IsSet, + St::Type: scan_job_state::IsSet, + St::Repository: scan_job_state::IsSet, + St::UserDid: scan_job_state::IsSet, { /// Build the final struct. pub fn build(self) -> ScanJob { @@ -1375,83 +1375,83 @@ pub mod vuln_summary_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Critical; type Medium; - type High; type Total; + type Critical; + type High; type Low; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Critical = Unset; type Medium = Unset; - type High = Unset; type Total = Unset; + type Critical = Unset; + type High = Unset; type Low = Unset; } - ///State transition - sets the `critical` field to Set - pub struct SetCritical(PhantomData St>); - impl sealed::Sealed for SetCritical {} - impl State for SetCritical { - type Critical = Set; - type Medium = St::Medium; - type High = St::High; - type Total = St::Total; - type Low = St::Low; - } ///State transition - sets the `medium` field to Set pub struct SetMedium(PhantomData St>); impl sealed::Sealed for SetMedium {} impl State for SetMedium { - type Critical = St::Critical; type Medium = Set; - type High = St::High; type Total = St::Total; - type Low = St::Low; - } - ///State transition - sets the `high` field to Set - pub struct SetHigh(PhantomData St>); - impl sealed::Sealed for SetHigh {} - impl State for SetHigh { type Critical = St::Critical; - type Medium = St::Medium; - type High = Set; - type Total = St::Total; + type High = St::High; type Low = St::Low; } ///State transition - sets the `total` field to Set pub struct SetTotal(PhantomData St>); impl sealed::Sealed for SetTotal {} impl State for SetTotal { + type Medium = St::Medium; + type Total = Set; type Critical = St::Critical; + type High = St::High; + type Low = St::Low; + } + ///State transition - sets the `critical` field to Set + pub struct SetCritical(PhantomData St>); + impl sealed::Sealed for SetCritical {} + impl State for SetCritical { type Medium = St::Medium; + type Total = St::Total; + type Critical = Set; type High = St::High; - type Total = Set; + type Low = St::Low; + } + ///State transition - sets the `high` field to Set + pub struct SetHigh(PhantomData St>); + impl sealed::Sealed for SetHigh {} + impl State for SetHigh { + type Medium = St::Medium; + type Total = St::Total; + type Critical = St::Critical; + type High = Set; type Low = St::Low; } ///State transition - sets the `low` field to Set pub struct SetLow(PhantomData St>); impl sealed::Sealed for SetLow {} impl State for SetLow { - type Critical = St::Critical; type Medium = St::Medium; - type High = St::High; type Total = St::Total; + type Critical = St::Critical; + type High = St::High; type Low = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `critical` field - pub struct critical(()); ///Marker type for the `medium` field pub struct medium(()); - ///Marker type for the `high` field - pub struct high(()); ///Marker type for the `total` field pub struct total(()); + ///Marker type for the `critical` field + pub struct critical(()); + ///Marker type for the `high` field + pub struct high(()); ///Marker type for the `low` field pub struct low(()); } @@ -1580,10 +1580,10 @@ where impl VulnSummaryBuilder where St: vuln_summary_state::State, - St::Critical: vuln_summary_state::IsSet, St::Medium: vuln_summary_state::IsSet, - St::High: vuln_summary_state::IsSet, St::Total: vuln_summary_state::IsSet, + St::Critical: vuln_summary_state::IsSet, + St::High: vuln_summary_state::IsSet, St::Low: vuln_summary_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/io_atcr/hold/update_crew_tier.rs b/crates/jacquard-api/src/io_atcr/hold/update_crew_tier.rs index b4a79295..b859c16e 100644 --- a/crates/jacquard-api/src/io_atcr/hold/update_crew_tier.rs +++ b/crates/jacquard-api/src/io_atcr/hold/update_crew_tier.rs @@ -129,37 +129,37 @@ pub mod update_crew_tier_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type TierRank; type UserDid; + type TierRank; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type TierRank = Unset; type UserDid = Unset; - } - ///State transition - sets the `tier_rank` field to Set - pub struct SetTierRank(PhantomData St>); - impl sealed::Sealed for SetTierRank {} - impl State for SetTierRank { - type TierRank = Set; - type UserDid = St::UserDid; + type TierRank = Unset; } ///State transition - sets the `user_did` field to Set pub struct SetUserDid(PhantomData St>); impl sealed::Sealed for SetUserDid {} impl State for SetUserDid { - type TierRank = St::TierRank; type UserDid = Set; + type TierRank = St::TierRank; + } + ///State transition - sets the `tier_rank` field to Set + pub struct SetTierRank(PhantomData St>); + impl sealed::Sealed for SetTierRank {} + impl State for SetTierRank { + type UserDid = St::UserDid; + type TierRank = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `tier_rank` field - pub struct tier_rank(()); ///Marker type for the `user_did` field pub struct user_did(()); + ///Marker type for the `tier_rank` field + pub struct tier_rank(()); } } @@ -229,8 +229,8 @@ where impl UpdateCrewTierBuilder where St: update_crew_tier_state::State, - St::TierRank: update_crew_tier_state::IsSet, St::UserDid: update_crew_tier_state::IsSet, + St::TierRank: update_crew_tier_state::IsSet, { /// Build the final struct. pub fn build(self) -> UpdateCrewTier { diff --git a/crates/jacquard-api/src/io_atcr/hold/upload_part.rs b/crates/jacquard-api/src/io_atcr/hold/upload_part.rs index 5dba4ebc..c8af4bf3 100644 --- a/crates/jacquard-api/src/io_atcr/hold/upload_part.rs +++ b/crates/jacquard-api/src/io_atcr/hold/upload_part.rs @@ -111,7 +111,7 @@ impl jacquard_common::xrpc::XrpcRequest for UploadPart { type Response = UploadPartResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, diff --git a/crates/jacquard-api/src/io_atcr/manifest.rs b/crates/jacquard-api/src/io_atcr/manifest.rs index b29ad641..0f24e46c 100644 --- a/crates/jacquard-api/src/io_atcr/manifest.rs +++ b/crates/jacquard-api/src/io_atcr/manifest.rs @@ -485,51 +485,51 @@ pub mod blob_reference_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Size; type Digest; type MediaType; - type Size; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Size = Unset; type Digest = Unset; type MediaType = Unset; - type Size = Unset; + } + ///State transition - sets the `size` field to Set + pub struct SetSize(PhantomData St>); + impl sealed::Sealed for SetSize {} + impl State for SetSize { + type Size = Set; + type Digest = St::Digest; + type MediaType = St::MediaType; } ///State transition - sets the `digest` field to Set pub struct SetDigest(PhantomData St>); impl sealed::Sealed for SetDigest {} impl State for SetDigest { + type Size = St::Size; type Digest = Set; type MediaType = St::MediaType; - type Size = St::Size; } ///State transition - sets the `media_type` field to Set pub struct SetMediaType(PhantomData St>); impl sealed::Sealed for SetMediaType {} impl State for SetMediaType { - type Digest = St::Digest; - type MediaType = Set; type Size = St::Size; - } - ///State transition - sets the `size` field to Set - pub struct SetSize(PhantomData St>); - impl sealed::Sealed for SetSize {} - impl State for SetSize { type Digest = St::Digest; - type MediaType = St::MediaType; - type Size = Set; + type MediaType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `size` field + pub struct size(()); ///Marker type for the `digest` field pub struct digest(()); ///Marker type for the `media_type` field pub struct media_type(()); - ///Marker type for the `size` field - pub struct size(()); } } @@ -650,9 +650,9 @@ impl BlobReferenceBuilder { impl BlobReferenceBuilder where St: blob_reference_state::State, + St::Size: blob_reference_state::IsSet, St::Digest: blob_reference_state::IsSet, St::MediaType: blob_reference_state::IsSet, - St::Size: blob_reference_state::IsSet, { /// Build the final struct. pub fn build(self) -> BlobReference { @@ -1073,85 +1073,85 @@ pub mod manifest_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type MediaType; - type Repository; - type Digest; type CreatedAt; + type MediaType; type SchemaVersion; + type Digest; + type Repository; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type MediaType = Unset; - type Repository = Unset; - type Digest = Unset; type CreatedAt = Unset; + type MediaType = Unset; type SchemaVersion = Unset; + type Digest = Unset; + type Repository = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type MediaType = St::MediaType; + type SchemaVersion = St::SchemaVersion; + type Digest = St::Digest; + type Repository = St::Repository; } ///State transition - sets the `media_type` field to Set pub struct SetMediaType(PhantomData St>); impl sealed::Sealed for SetMediaType {} impl State for SetMediaType { - type MediaType = Set; - type Repository = St::Repository; - type Digest = St::Digest; type CreatedAt = St::CreatedAt; + type MediaType = Set; type SchemaVersion = St::SchemaVersion; + type Digest = St::Digest; + type Repository = St::Repository; } - ///State transition - sets the `repository` field to Set - pub struct SetRepository(PhantomData St>); - impl sealed::Sealed for SetRepository {} - impl State for SetRepository { + ///State transition - sets the `schema_version` field to Set + pub struct SetSchemaVersion(PhantomData St>); + impl sealed::Sealed for SetSchemaVersion {} + impl State for SetSchemaVersion { + type CreatedAt = St::CreatedAt; type MediaType = St::MediaType; - type Repository = Set; + type SchemaVersion = Set; type Digest = St::Digest; - type CreatedAt = St::CreatedAt; - type SchemaVersion = St::SchemaVersion; + type Repository = St::Repository; } ///State transition - sets the `digest` field to Set pub struct SetDigest(PhantomData St>); impl sealed::Sealed for SetDigest {} impl State for SetDigest { - type MediaType = St::MediaType; - type Repository = St::Repository; - type Digest = Set; type CreatedAt = St::CreatedAt; - type SchemaVersion = St::SchemaVersion; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type MediaType = St::MediaType; - type Repository = St::Repository; - type Digest = St::Digest; - type CreatedAt = Set; type SchemaVersion = St::SchemaVersion; + type Digest = Set; + type Repository = St::Repository; } - ///State transition - sets the `schema_version` field to Set - pub struct SetSchemaVersion(PhantomData St>); - impl sealed::Sealed for SetSchemaVersion {} - impl State for SetSchemaVersion { + ///State transition - sets the `repository` field to Set + pub struct SetRepository(PhantomData St>); + impl sealed::Sealed for SetRepository {} + impl State for SetRepository { + type CreatedAt = St::CreatedAt; type MediaType = St::MediaType; - type Repository = St::Repository; + type SchemaVersion = St::SchemaVersion; type Digest = St::Digest; - type CreatedAt = St::CreatedAt; - type SchemaVersion = Set; + type Repository = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `media_type` field - pub struct media_type(()); - ///Marker type for the `repository` field - pub struct repository(()); - ///Marker type for the `digest` field - pub struct digest(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `media_type` field + pub struct media_type(()); ///Marker type for the `schema_version` field pub struct schema_version(()); + ///Marker type for the `digest` field + pub struct digest(()); + ///Marker type for the `repository` field + pub struct repository(()); } } @@ -1428,11 +1428,11 @@ impl ManifestBuilder { impl ManifestBuilder where St: manifest_state::State, - St::MediaType: manifest_state::IsSet, - St::Repository: manifest_state::IsSet, - St::Digest: manifest_state::IsSet, St::CreatedAt: manifest_state::IsSet, + St::MediaType: manifest_state::IsSet, St::SchemaVersion: manifest_state::IsSet, + St::Digest: manifest_state::IsSet, + St::Repository: manifest_state::IsSet, { /// Build the final struct. pub fn build(self) -> Manifest { @@ -1484,51 +1484,51 @@ pub mod manifest_reference_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Digest; type MediaType; type Size; - type Digest; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Digest = Unset; type MediaType = Unset; type Size = Unset; - type Digest = Unset; + } + ///State transition - sets the `digest` field to Set + pub struct SetDigest(PhantomData St>); + impl sealed::Sealed for SetDigest {} + impl State for SetDigest { + type Digest = Set; + type MediaType = St::MediaType; + type Size = St::Size; } ///State transition - sets the `media_type` field to Set pub struct SetMediaType(PhantomData St>); impl sealed::Sealed for SetMediaType {} impl State for SetMediaType { + type Digest = St::Digest; type MediaType = Set; type Size = St::Size; - type Digest = St::Digest; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData St>); impl sealed::Sealed for SetSize {} impl State for SetSize { - type MediaType = St::MediaType; - type Size = Set; type Digest = St::Digest; - } - ///State transition - sets the `digest` field to Set - pub struct SetDigest(PhantomData St>); - impl sealed::Sealed for SetDigest {} - impl State for SetDigest { type MediaType = St::MediaType; - type Size = St::Size; - type Digest = Set; + type Size = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `digest` field + pub struct digest(()); ///Marker type for the `media_type` field pub struct media_type(()); ///Marker type for the `size` field pub struct size(()); - ///Marker type for the `digest` field - pub struct digest(()); } } @@ -1649,9 +1649,9 @@ where impl ManifestReferenceBuilder where St: manifest_reference_state::State, + St::Digest: manifest_reference_state::IsSet, St::MediaType: manifest_reference_state::IsSet, St::Size: manifest_reference_state::IsSet, - St::Digest: manifest_reference_state::IsSet, { /// Build the final struct. pub fn build(self) -> ManifestReference { diff --git a/crates/jacquard-api/src/io_atcr/repo/page.rs b/crates/jacquard-api/src/io_atcr/repo/page.rs index e6b6010e..9f8b2990 100644 --- a/crates/jacquard-api/src/io_atcr/repo/page.rs +++ b/crates/jacquard-api/src/io_atcr/repo/page.rs @@ -185,51 +185,51 @@ pub mod page_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type UpdatedAt; type CreatedAt; type Repository; + type UpdatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type UpdatedAt = Unset; type CreatedAt = Unset; type Repository = Unset; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { - type UpdatedAt = Set; - type CreatedAt = St::CreatedAt; - type Repository = St::Repository; + type UpdatedAt = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type UpdatedAt = St::UpdatedAt; type CreatedAt = Set; type Repository = St::Repository; + type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `repository` field to Set pub struct SetRepository(PhantomData St>); impl sealed::Sealed for SetRepository {} impl State for SetRepository { - type UpdatedAt = St::UpdatedAt; type CreatedAt = St::CreatedAt; type Repository = Set; + type UpdatedAt = St::UpdatedAt; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type CreatedAt = St::CreatedAt; + type Repository = St::Repository; + type UpdatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `updated_at` field - pub struct updated_at(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `repository` field pub struct repository(()); + ///Marker type for the `updated_at` field + pub struct updated_at(()); } } @@ -350,9 +350,9 @@ where impl PageBuilder where St: page_state::State, - St::UpdatedAt: page_state::IsSet, St::CreatedAt: page_state::IsSet, St::Repository: page_state::IsSet, + St::UpdatedAt: page_state::IsSet, { /// Build the final struct. pub fn build(self) -> Page { diff --git a/crates/jacquard-api/src/io_atcr/sailor/star.rs b/crates/jacquard-api/src/io_atcr/sailor/star.rs index e7469b0f..091aa41d 100644 --- a/crates/jacquard-api/src/io_atcr/sailor/star.rs +++ b/crates/jacquard-api/src/io_atcr/sailor/star.rs @@ -114,37 +114,37 @@ pub mod star_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -214,8 +214,8 @@ where impl StarBuilder where St: star_state::State, - St::CreatedAt: star_state::IsSet, St::Subject: star_state::IsSet, + St::CreatedAt: star_state::IsSet, { /// Build the final struct. pub fn build(self) -> Star { diff --git a/crates/jacquard-api/src/io_atcr/sailor/webhook.rs b/crates/jacquard-api/src/io_atcr/sailor/webhook.rs index 96b40c83..954e9962 100644 --- a/crates/jacquard-api/src/io_atcr/sailor/webhook.rs +++ b/crates/jacquard-api/src/io_atcr/sailor/webhook.rs @@ -142,67 +142,67 @@ pub mod webhook_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type HoldDid; type Triggers; type CreatedAt; type PrivateCid; - type HoldDid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type HoldDid = Unset; type Triggers = Unset; type CreatedAt = Unset; type PrivateCid = Unset; - type HoldDid = Unset; + } + ///State transition - sets the `hold_did` field to Set + pub struct SetHoldDid(PhantomData St>); + impl sealed::Sealed for SetHoldDid {} + impl State for SetHoldDid { + type HoldDid = Set; + type Triggers = St::Triggers; + type CreatedAt = St::CreatedAt; + type PrivateCid = St::PrivateCid; } ///State transition - sets the `triggers` field to Set pub struct SetTriggers(PhantomData St>); impl sealed::Sealed for SetTriggers {} impl State for SetTriggers { + type HoldDid = St::HoldDid; type Triggers = Set; type CreatedAt = St::CreatedAt; type PrivateCid = St::PrivateCid; - type HoldDid = St::HoldDid; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type HoldDid = St::HoldDid; type Triggers = St::Triggers; type CreatedAt = Set; type PrivateCid = St::PrivateCid; - type HoldDid = St::HoldDid; } ///State transition - sets the `private_cid` field to Set pub struct SetPrivateCid(PhantomData St>); impl sealed::Sealed for SetPrivateCid {} impl State for SetPrivateCid { - type Triggers = St::Triggers; - type CreatedAt = St::CreatedAt; - type PrivateCid = Set; type HoldDid = St::HoldDid; - } - ///State transition - sets the `hold_did` field to Set - pub struct SetHoldDid(PhantomData St>); - impl sealed::Sealed for SetHoldDid {} - impl State for SetHoldDid { type Triggers = St::Triggers; type CreatedAt = St::CreatedAt; - type PrivateCid = St::PrivateCid; - type HoldDid = Set; + type PrivateCid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `hold_did` field + pub struct hold_did(()); ///Marker type for the `triggers` field pub struct triggers(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `private_cid` field pub struct private_cid(()); - ///Marker type for the `hold_did` field - pub struct hold_did(()); } } @@ -329,10 +329,10 @@ impl WebhookBuilder { impl WebhookBuilder where St: webhook_state::State, + St::HoldDid: webhook_state::IsSet, St::Triggers: webhook_state::IsSet, St::CreatedAt: webhook_state::IsSet, St::PrivateCid: webhook_state::IsSet, - St::HoldDid: webhook_state::IsSet, { /// Build the final struct. pub fn build(self) -> Webhook { diff --git a/crates/jacquard-api/src/io_kich/cookinglog.rs b/crates/jacquard-api/src/io_kich/cookinglog.rs index efa1d8f4..6a4c6035 100644 --- a/crates/jacquard-api/src/io_kich/cookinglog.rs +++ b/crates/jacquard-api/src/io_kich/cookinglog.rs @@ -130,37 +130,37 @@ pub mod cookinglog_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -256,8 +256,8 @@ where impl CookinglogBuilder where St: cookinglog_state::State, - St::Subject: cookinglog_state::IsSet, St::CreatedAt: cookinglog_state::IsSet, + St::Subject: cookinglog_state::IsSet, { /// Build the final struct. pub fn build(self) -> Cookinglog { diff --git a/crates/jacquard-api/src/io_kich/recipe/collection.rs b/crates/jacquard-api/src/io_kich/recipe/collection.rs index 96c0860e..5543ba1b 100644 --- a/crates/jacquard-api/src/io_kich/recipe/collection.rs +++ b/crates/jacquard-api/src/io_kich/recipe/collection.rs @@ -181,37 +181,37 @@ pub mod collection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -326,8 +326,8 @@ impl CollectionBuilder { impl CollectionBuilder where St: collection_state::State, - St::Name: collection_state::IsSet, St::CreatedAt: collection_state::IsSet, + St::Name: collection_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collection { diff --git a/crates/jacquard-api/src/io_kich/recipe/collectionfollow.rs b/crates/jacquard-api/src/io_kich/recipe/collectionfollow.rs index f1c52df1..f530fa8b 100644 --- a/crates/jacquard-api/src/io_kich/recipe/collectionfollow.rs +++ b/crates/jacquard-api/src/io_kich/recipe/collectionfollow.rs @@ -114,37 +114,37 @@ pub mod collectionfollow_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -214,8 +214,8 @@ where impl CollectionfollowBuilder where St: collectionfollow_state::State, - St::Subject: collectionfollow_state::IsSet, St::CreatedAt: collectionfollow_state::IsSet, + St::Subject: collectionfollow_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collectionfollow { diff --git a/crates/jacquard-api/src/io_kich/recipe/collectionitem.rs b/crates/jacquard-api/src/io_kich/recipe/collectionitem.rs index 129aaf1f..e5bf860c 100644 --- a/crates/jacquard-api/src/io_kich/recipe/collectionitem.rs +++ b/crates/jacquard-api/src/io_kich/recipe/collectionitem.rs @@ -122,51 +122,51 @@ pub mod collectionitem_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; - type CreatedAt; type Collection; + type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; - type CreatedAt = Unset; type Collection = Unset; + type CreatedAt = Unset; + type Subject = Unset; } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData St>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type Collection = Set; type CreatedAt = St::CreatedAt; - type Collection = St::Collection; + type Subject = St::Subject; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; - type CreatedAt = Set; type Collection = St::Collection; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData St>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { + type CreatedAt = Set; type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Collection = St::Collection; type CreatedAt = St::CreatedAt; - type Collection = Set; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `collection` field pub struct collection(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -287,9 +287,9 @@ where impl CollectionitemBuilder where St: collectionitem_state::State, - St::Subject: collectionitem_state::IsSet, - St::CreatedAt: collectionitem_state::IsSet, St::Collection: collectionitem_state::IsSet, + St::CreatedAt: collectionitem_state::IsSet, + St::Subject: collectionitem_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collectionitem { diff --git a/crates/jacquard-api/src/io_kich/recipe/recipe.rs b/crates/jacquard-api/src/io_kich/recipe/recipe.rs index 3b9ad7da..3307ed4a 100644 --- a/crates/jacquard-api/src/io_kich/recipe/recipe.rs +++ b/crates/jacquard-api/src/io_kich/recipe/recipe.rs @@ -667,51 +667,51 @@ pub mod recipe_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Name; type Servings; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Name = Unset; type Servings = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Name = St::Name; + type Servings = St::Servings; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { + type CreatedAt = St::CreatedAt; type Name = Set; type Servings = St::Servings; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `servings` field to Set pub struct SetServings(PhantomData St>); impl sealed::Sealed for SetServings {} impl State for SetServings { - type Name = St::Name; - type Servings = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Name = St::Name; - type Servings = St::Servings; - type CreatedAt = Set; + type Servings = 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 `name` field pub struct name(()); ///Marker type for the `servings` field pub struct servings(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -1045,9 +1045,9 @@ impl RecipeBuilder { impl RecipeBuilder where St: recipe_state::State, + St::CreatedAt: recipe_state::IsSet, St::Name: recipe_state::IsSet, St::Servings: recipe_state::IsSet, - St::CreatedAt: recipe_state::IsSet, { /// Build the final struct. pub fn build(self) -> Recipe { diff --git a/crates/jacquard-api/src/io_kich/recipe/review.rs b/crates/jacquard-api/src/io_kich/recipe/review.rs index 29fdaaec..46fba836 100644 --- a/crates/jacquard-api/src/io_kich/recipe/review.rs +++ b/crates/jacquard-api/src/io_kich/recipe/review.rs @@ -153,51 +153,51 @@ pub mod review_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; type Rating; + type CreatedAt; } /// 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 Rating = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; - type Rating = St::Rating; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; type Rating = St::Rating; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `rating` field to Set pub struct SetRating(PhantomData St>); impl sealed::Sealed for SetRating {} impl State for SetRating { - type CreatedAt = St::CreatedAt; type Subject = St::Subject; type Rating = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type Rating = St::Rating; + type CreatedAt = 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 `rating` field pub struct rating(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -318,9 +318,9 @@ impl ReviewBuilder { impl ReviewBuilder where St: review_state::State, - St::CreatedAt: review_state::IsSet, St::Subject: review_state::IsSet, St::Rating: review_state::IsSet, + St::CreatedAt: review_state::IsSet, { /// Build the final struct. pub fn build(self) -> Review { diff --git a/crates/jacquard-api/src/io_livewire/p3k/podping00.rs b/crates/jacquard-api/src/io_livewire/p3k/podping00.rs index 99241294..c81baae0 100644 --- a/crates/jacquard-api/src/io_livewire/p3k/podping00.rs +++ b/crates/jacquard-api/src/io_livewire/p3k/podping00.rs @@ -114,37 +114,37 @@ pub mod podping00_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Url; type CreatedAt; + type Url; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Url = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Url = Set; - type CreatedAt = St::CreatedAt; + type Url = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Url = St::Url; type CreatedAt = Set; + type Url = St::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type CreatedAt = St::CreatedAt; + type Url = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `url` field - pub struct url(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `url` field + pub struct url(()); } } @@ -214,8 +214,8 @@ where impl Podping00Builder where St: podping00_state::State, - St::Url: podping00_state::IsSet, St::CreatedAt: podping00_state::IsSet, + St::Url: podping00_state::IsSet, { /// Build the final struct. pub fn build(self) -> Podping00 { diff --git a/crates/jacquard-api/src/io_whiteley/ATlas/pin.rs b/crates/jacquard-api/src/io_whiteley/ATlas/pin.rs index 6c4cd3c7..c5cac4b1 100644 --- a/crates/jacquard-api/src/io_whiteley/ATlas/pin.rs +++ b/crates/jacquard-api/src/io_whiteley/ATlas/pin.rs @@ -160,85 +160,85 @@ pub mod pin_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type PlacedAt; - type Latitude; - type Longitude; - type Did; type Description; + type Did; + type Longitude; + type Latitude; + type PlacedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type PlacedAt = Unset; - type Latitude = Unset; - type Longitude = Unset; - type Did = Unset; type Description = Unset; + type Did = Unset; + type Longitude = Unset; + type Latitude = Unset; + type PlacedAt = Unset; } - ///State transition - sets the `placed_at` field to Set - pub struct SetPlacedAt(PhantomData St>); - impl sealed::Sealed for SetPlacedAt {} - impl State for SetPlacedAt { - type PlacedAt = Set; - type Latitude = St::Latitude; - type Longitude = St::Longitude; + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type Description = Set; type Did = St::Did; - type Description = St::Description; - } - ///State transition - sets the `latitude` field to Set - pub struct SetLatitude(PhantomData St>); - impl sealed::Sealed for SetLatitude {} - impl State for SetLatitude { - type PlacedAt = St::PlacedAt; - type Latitude = Set; type Longitude = St::Longitude; - type Did = St::Did; - type Description = St::Description; - } - ///State transition - sets the `longitude` field to Set - pub struct SetLongitude(PhantomData St>); - impl sealed::Sealed for SetLongitude {} - impl State for SetLongitude { - type PlacedAt = St::PlacedAt; type Latitude = St::Latitude; - type Longitude = Set; - type Did = St::Did; - type Description = St::Description; + type PlacedAt = St::PlacedAt; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type PlacedAt = St::PlacedAt; - type Latitude = St::Latitude; - type Longitude = St::Longitude; - type Did = Set; type Description = St::Description; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { + type Did = Set; + type Longitude = St::Longitude; + type Latitude = St::Latitude; type PlacedAt = St::PlacedAt; + } + ///State transition - sets the `longitude` field to Set + pub struct SetLongitude(PhantomData St>); + impl sealed::Sealed for SetLongitude {} + impl State for SetLongitude { + type Description = St::Description; + type Did = St::Did; + type Longitude = Set; type Latitude = St::Latitude; + type PlacedAt = St::PlacedAt; + } + ///State transition - sets the `latitude` field to Set + pub struct SetLatitude(PhantomData St>); + impl sealed::Sealed for SetLatitude {} + impl State for SetLatitude { + type Description = St::Description; + type Did = St::Did; type Longitude = St::Longitude; + type Latitude = Set; + type PlacedAt = St::PlacedAt; + } + ///State transition - sets the `placed_at` field to Set + pub struct SetPlacedAt(PhantomData St>); + impl sealed::Sealed for SetPlacedAt {} + impl State for SetPlacedAt { + type Description = St::Description; type Did = St::Did; - type Description = Set; + type Longitude = St::Longitude; + type Latitude = St::Latitude; + type PlacedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `placed_at` field - pub struct placed_at(()); - ///Marker type for the `latitude` field - pub struct latitude(()); - ///Marker type for the `longitude` field - pub struct longitude(()); - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `description` field pub struct description(()); + ///Marker type for the `did` field + pub struct did(()); + ///Marker type for the `longitude` field + pub struct longitude(()); + ///Marker type for the `latitude` field + pub struct latitude(()); + ///Marker type for the `placed_at` field + pub struct placed_at(()); } } @@ -385,11 +385,11 @@ impl PinBuilder { impl PinBuilder where St: pin_state::State, - St::PlacedAt: pin_state::IsSet, - St::Latitude: pin_state::IsSet, - St::Longitude: pin_state::IsSet, - St::Did: pin_state::IsSet, St::Description: pin_state::IsSet, + St::Did: pin_state::IsSet, + St::Longitude: pin_state::IsSet, + St::Latitude: pin_state::IsSet, + St::PlacedAt: pin_state::IsSet, { /// Build the final struct. pub fn build(self) -> Pin { diff --git a/crates/jacquard-api/src/io_whiteley/luke/ATlas/pin.rs b/crates/jacquard-api/src/io_whiteley/luke/ATlas/pin.rs index 335cca2d..ac704285 100644 --- a/crates/jacquard-api/src/io_whiteley/luke/ATlas/pin.rs +++ b/crates/jacquard-api/src/io_whiteley/luke/ATlas/pin.rs @@ -160,9 +160,9 @@ pub mod pin_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Longitude; type Description; + type Did; type Latitude; type PlacedAt; } @@ -170,29 +170,19 @@ pub mod pin_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Longitude = Unset; type Description = Unset; + type Did = Unset; type Latitude = Unset; type PlacedAt = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Longitude = St::Longitude; - type Description = St::Description; - type Latitude = St::Latitude; - type PlacedAt = St::PlacedAt; - } ///State transition - sets the `longitude` field to Set pub struct SetLongitude(PhantomData St>); impl sealed::Sealed for SetLongitude {} impl State for SetLongitude { - type Did = St::Did; type Longitude = Set; type Description = St::Description; + type Did = St::Did; type Latitude = St::Latitude; type PlacedAt = St::PlacedAt; } @@ -200,9 +190,19 @@ pub mod pin_state { pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Did = St::Did; type Longitude = St::Longitude; type Description = Set; + type Did = St::Did; + type Latitude = St::Latitude; + type PlacedAt = St::PlacedAt; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Longitude = St::Longitude; + type Description = St::Description; + type Did = Set; type Latitude = St::Latitude; type PlacedAt = St::PlacedAt; } @@ -210,9 +210,9 @@ pub mod pin_state { pub struct SetLatitude(PhantomData St>); impl sealed::Sealed for SetLatitude {} impl State for SetLatitude { - type Did = St::Did; type Longitude = St::Longitude; type Description = St::Description; + type Did = St::Did; type Latitude = Set; type PlacedAt = St::PlacedAt; } @@ -220,21 +220,21 @@ pub mod pin_state { pub struct SetPlacedAt(PhantomData St>); impl sealed::Sealed for SetPlacedAt {} impl State for SetPlacedAt { - type Did = St::Did; type Longitude = St::Longitude; type Description = St::Description; + type Did = St::Did; type Latitude = St::Latitude; type PlacedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `longitude` field pub struct longitude(()); ///Marker type for the `description` field pub struct description(()); + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `latitude` field pub struct latitude(()); ///Marker type for the `placed_at` field @@ -385,9 +385,9 @@ impl PinBuilder { impl PinBuilder where St: pin_state::State, - St::Did: pin_state::IsSet, St::Longitude: pin_state::IsSet, St::Description: pin_state::IsSet, + St::Did: pin_state::IsSet, St::Latitude: pin_state::IsSet, St::PlacedAt: pin_state::IsSet, { diff --git a/crates/jacquard-api/src/io_whiteside/linked_account.rs b/crates/jacquard-api/src/io_whiteside/linked_account.rs index a60c334c..6cb22dcc 100644 --- a/crates/jacquard-api/src/io_whiteside/linked_account.rs +++ b/crates/jacquard-api/src/io_whiteside/linked_account.rs @@ -120,50 +120,50 @@ pub mod linked_account_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Link; - type Name; type Icon; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Link = Unset; - type Name = Unset; type Icon = Unset; + type Name = Unset; } ///State transition - sets the `link` field to Set pub struct SetLink(PhantomData St>); impl sealed::Sealed for SetLink {} impl State for SetLink { type Link = Set; - type Name = St::Name; - type Icon = St::Icon; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Link = St::Link; - type Name = Set; type Icon = St::Icon; + type Name = St::Name; } ///State transition - sets the `icon` field to Set pub struct SetIcon(PhantomData St>); impl sealed::Sealed for SetIcon {} impl State for SetIcon { type Link = St::Link; - type Name = St::Name; type Icon = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Link = St::Link; + type Icon = St::Icon; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `link` field pub struct link(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `icon` field pub struct icon(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -266,8 +266,8 @@ impl LinkedAccountBuilder where St: linked_account_state::State, St::Link: linked_account_state::IsSet, - St::Name: linked_account_state::IsSet, St::Icon: linked_account_state::IsSet, + St::Name: linked_account_state::IsSet, { /// Build the final struct. pub fn build(self) -> LinkedAccount { diff --git a/crates/jacquard-api/src/io_whiteside/profile.rs b/crates/jacquard-api/src/io_whiteside/profile.rs index 8b6096e4..ffee6050 100644 --- a/crates/jacquard-api/src/io_whiteside/profile.rs +++ b/crates/jacquard-api/src/io_whiteside/profile.rs @@ -139,50 +139,50 @@ pub mod profile_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Heading; - type UpdatedAt; type Content; + type UpdatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Heading = Unset; - type UpdatedAt = Unset; type Content = Unset; + type UpdatedAt = Unset; } ///State transition - sets the `heading` field to Set pub struct SetHeading(PhantomData St>); impl sealed::Sealed for SetHeading {} impl State for SetHeading { type Heading = Set; - type UpdatedAt = St::UpdatedAt; - type Content = St::Content; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { - type Heading = St::Heading; - type UpdatedAt = Set; type Content = St::Content; + type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { type Heading = St::Heading; - type UpdatedAt = St::UpdatedAt; type Content = Set; + type UpdatedAt = St::UpdatedAt; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type Heading = St::Heading; + type Content = St::Content; + type UpdatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `heading` field pub struct heading(()); - ///Marker type for the `updated_at` field - pub struct updated_at(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `updated_at` field + pub struct updated_at(()); } } @@ -272,8 +272,8 @@ impl ProfileBuilder where St: profile_state::State, St::Heading: profile_state::IsSet, - St::UpdatedAt: profile_state::IsSet, St::Content: profile_state::IsSet, + St::UpdatedAt: profile_state::IsSet, { /// Build the final struct. pub fn build(self) -> Profile { diff --git a/crates/jacquard-api/src/link_bridgebeats/lookup.rs b/crates/jacquard-api/src/link_bridgebeats/lookup.rs index b4bcdd80..9f2e8634 100644 --- a/crates/jacquard-api/src/link_bridgebeats/lookup.rs +++ b/crates/jacquard-api/src/link_bridgebeats/lookup.rs @@ -562,85 +562,85 @@ pub mod provider_result_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Artist; - type Url; - type Title; type Provider; type MarketRegion; + type Url; + type Artist; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Artist = Unset; - type Url = Unset; - type Title = Unset; type Provider = Unset; type MarketRegion = Unset; + type Url = Unset; + type Artist = Unset; + type Title = Unset; } - ///State transition - sets the `artist` field to Set - pub struct SetArtist(PhantomData St>); - impl sealed::Sealed for SetArtist {} - impl State for SetArtist { - type Artist = Set; + ///State transition - sets the `provider` field to Set + pub struct SetProvider(PhantomData St>); + impl sealed::Sealed for SetProvider {} + impl State for SetProvider { + type Provider = Set; + type MarketRegion = St::MarketRegion; type Url = St::Url; + type Artist = St::Artist; type Title = St::Title; + } + ///State transition - sets the `market_region` field to Set + pub struct SetMarketRegion(PhantomData St>); + impl sealed::Sealed for SetMarketRegion {} + impl State for SetMarketRegion { type Provider = St::Provider; - type MarketRegion = St::MarketRegion; + type MarketRegion = Set; + type Url = St::Url; + type Artist = St::Artist; + type Title = St::Title; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Artist = St::Artist; + type Provider = St::Provider; + type MarketRegion = St::MarketRegion; type Url = Set; + type Artist = St::Artist; type Title = St::Title; + } + ///State transition - sets the `artist` field to Set + pub struct SetArtist(PhantomData St>); + impl sealed::Sealed for SetArtist {} + impl State for SetArtist { type Provider = St::Provider; type MarketRegion = St::MarketRegion; + type Url = St::Url; + type Artist = Set; + type Title = St::Title; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Artist = St::Artist; - type Url = St::Url; - type Title = Set; type Provider = St::Provider; type MarketRegion = St::MarketRegion; - } - ///State transition - sets the `provider` field to Set - pub struct SetProvider(PhantomData St>); - impl sealed::Sealed for SetProvider {} - impl State for SetProvider { - type Artist = St::Artist; type Url = St::Url; - type Title = St::Title; - type Provider = Set; - type MarketRegion = St::MarketRegion; - } - ///State transition - sets the `market_region` field to Set - pub struct SetMarketRegion(PhantomData St>); - impl sealed::Sealed for SetMarketRegion {} - impl State for SetMarketRegion { type Artist = St::Artist; - type Url = St::Url; - type Title = St::Title; - type Provider = St::Provider; - type MarketRegion = Set; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `artist` field - pub struct artist(()); - ///Marker type for the `url` field - pub struct url(()); - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `provider` field pub struct provider(()); ///Marker type for the `market_region` field pub struct market_region(()); + ///Marker type for the `url` field + pub struct url(()); + ///Marker type for the `artist` field + pub struct artist(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -815,11 +815,11 @@ where impl ProviderResultBuilder where St: provider_result_state::State, - St::Artist: provider_result_state::IsSet, - St::Url: provider_result_state::IsSet, - St::Title: provider_result_state::IsSet, St::Provider: provider_result_state::IsSet, St::MarketRegion: provider_result_state::IsSet, + St::Url: provider_result_state::IsSet, + St::Artist: provider_result_state::IsSet, + St::Title: provider_result_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProviderResult { diff --git a/crates/jacquard-api/src/me_linkna/lastfm.rs b/crates/jacquard-api/src/me_linkna/lastfm.rs index 8fdf9360..29b246cd 100644 --- a/crates/jacquard-api/src/me_linkna/lastfm.rs +++ b/crates/jacquard-api/src/me_linkna/lastfm.rs @@ -137,49 +137,49 @@ pub mod lastfm_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ArtistNames; type TrackName; + type ArtistNames; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ArtistNames = Unset; type TrackName = Unset; + type ArtistNames = Unset; type CreatedAt = Unset; } - ///State transition - sets the `artist_names` field to Set - pub struct SetArtistNames(PhantomData St>); - impl sealed::Sealed for SetArtistNames {} - impl State for SetArtistNames { - type ArtistNames = Set; - type TrackName = St::TrackName; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `track_name` field to Set pub struct SetTrackName(PhantomData St>); impl sealed::Sealed for SetTrackName {} impl State for SetTrackName { - type ArtistNames = St::ArtistNames; type TrackName = Set; + type ArtistNames = St::ArtistNames; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `artist_names` field to Set + pub struct SetArtistNames(PhantomData St>); + impl sealed::Sealed for SetArtistNames {} + impl State for SetArtistNames { + type TrackName = St::TrackName; + type ArtistNames = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type ArtistNames = St::ArtistNames; type TrackName = St::TrackName; + type ArtistNames = St::ArtistNames; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `artist_names` field - pub struct artist_names(()); ///Marker type for the `track_name` field pub struct track_name(()); + ///Marker type for the `artist_names` field + pub struct artist_names(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -372,8 +372,8 @@ where impl LastfmBuilder where St: lastfm_state::State, - St::ArtistNames: lastfm_state::IsSet, St::TrackName: lastfm_state::IsSet, + St::ArtistNames: lastfm_state::IsSet, St::CreatedAt: lastfm_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/me_linkna/linkinbio.rs b/crates/jacquard-api/src/me_linkna/linkinbio.rs index dfd53bb7..1aeb9f86 100644 --- a/crates/jacquard-api/src/me_linkna/linkinbio.rs +++ b/crates/jacquard-api/src/me_linkna/linkinbio.rs @@ -2795,50 +2795,50 @@ pub mod github_contribution_day_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Level; - type Date; type Count; + type Date; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Level = Unset; - type Date = Unset; type Count = Unset; + type Date = Unset; } ///State transition - sets the `level` field to Set pub struct SetLevel(PhantomData St>); impl sealed::Sealed for SetLevel {} impl State for SetLevel { type Level = Set; - type Date = St::Date; - type Count = St::Count; - } - ///State transition - sets the `date` field to Set - pub struct SetDate(PhantomData St>); - impl sealed::Sealed for SetDate {} - impl State for SetDate { - type Level = St::Level; - type Date = Set; type Count = St::Count; + type Date = St::Date; } ///State transition - sets the `count` field to Set pub struct SetCount(PhantomData St>); impl sealed::Sealed for SetCount {} impl State for SetCount { type Level = St::Level; - type Date = St::Date; type Count = Set; + type Date = St::Date; + } + ///State transition - sets the `date` field to Set + pub struct SetDate(PhantomData St>); + impl sealed::Sealed for SetDate {} + impl State for SetDate { + type Level = St::Level; + type Count = St::Count; + type Date = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `level` field pub struct level(()); - ///Marker type for the `date` field - pub struct date(()); ///Marker type for the `count` field pub struct count(()); + ///Marker type for the `date` field + pub struct date(()); } } @@ -2934,8 +2934,8 @@ impl GithubContributionDayBuilder where St: github_contribution_day_state::State, St::Level: github_contribution_day_state::IsSet, - St::Date: github_contribution_day_state::IsSet, St::Count: github_contribution_day_state::IsSet, + St::Date: github_contribution_day_state::IsSet, { /// Build the final struct. pub fn build(self) -> GithubContributionDay { @@ -3155,50 +3155,50 @@ pub mod social_icon_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Id; - type Url; type Platform; + type Url; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Id = Unset; - type Url = Unset; type Platform = Unset; + type Url = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { type Id = Set; - type Url = St::Url; - type Platform = St::Platform; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Id = St::Id; - type Url = Set; type Platform = St::Platform; + type Url = St::Url; } ///State transition - sets the `platform` field to Set pub struct SetPlatform(PhantomData St>); impl sealed::Sealed for SetPlatform {} impl State for SetPlatform { type Id = St::Id; - type Url = St::Url; type Platform = Set; + type Url = St::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type Id = St::Id; + type Platform = St::Platform; + type Url = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `url` field - pub struct url(()); ///Marker type for the `platform` field pub struct platform(()); + ///Marker type for the `url` field + pub struct url(()); } } @@ -3288,8 +3288,8 @@ impl SocialIconBuilder where St: social_icon_state::State, St::Id: social_icon_state::IsSet, - St::Url: social_icon_state::IsSet, St::Platform: social_icon_state::IsSet, + St::Url: social_icon_state::IsSet, { /// Build the final struct. pub fn build(self) -> SocialIcon { @@ -3324,67 +3324,67 @@ pub mod widget_github_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Contributions; type Id; - type GithubUsername; type Type; + type Contributions; + type GithubUsername; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Contributions = Unset; type Id = Unset; - type GithubUsername = Unset; type Type = Unset; - } - ///State transition - sets the `contributions` field to Set - pub struct SetContributions(PhantomData St>); - impl sealed::Sealed for SetContributions {} - impl State for SetContributions { - type Contributions = Set; - type Id = St::Id; - type GithubUsername = St::GithubUsername; - type Type = St::Type; + type Contributions = Unset; + type GithubUsername = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type Contributions = St::Contributions; type Id = Set; - type GithubUsername = St::GithubUsername; type Type = St::Type; - } - ///State transition - sets the `github_username` field to Set - pub struct SetGithubUsername(PhantomData St>); - impl sealed::Sealed for SetGithubUsername {} - impl State for SetGithubUsername { type Contributions = St::Contributions; - type Id = St::Id; - type GithubUsername = Set; - type Type = St::Type; + type GithubUsername = St::GithubUsername; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { + type Id = St::Id; + type Type = Set; type Contributions = St::Contributions; + type GithubUsername = St::GithubUsername; + } + ///State transition - sets the `contributions` field to Set + pub struct SetContributions(PhantomData St>); + impl sealed::Sealed for SetContributions {} + impl State for SetContributions { type Id = St::Id; + type Type = St::Type; + type Contributions = Set; type GithubUsername = St::GithubUsername; - type Type = Set; + } + ///State transition - sets the `github_username` field to Set + pub struct SetGithubUsername(PhantomData St>); + impl sealed::Sealed for SetGithubUsername {} + impl State for SetGithubUsername { + type Id = St::Id; + type Type = St::Type; + type Contributions = St::Contributions; + type GithubUsername = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `contributions` field - pub struct contributions(()); ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `github_username` field - pub struct github_username(()); ///Marker type for the `type` field pub struct r#type(()); + ///Marker type for the `contributions` field + pub struct contributions(()); + ///Marker type for the `github_username` field + pub struct github_username(()); } } @@ -3553,10 +3553,10 @@ where impl WidgetGithubBuilder where St: widget_github_state::State, - St::Contributions: widget_github_state::IsSet, St::Id: widget_github_state::IsSet, - St::GithubUsername: widget_github_state::IsSet, St::Type: widget_github_state::IsSet, + St::Contributions: widget_github_state::IsSet, + St::GithubUsername: widget_github_state::IsSet, { /// Build the final struct. pub fn build(self) -> WidgetGithub { @@ -3601,85 +3601,85 @@ pub mod widget_goodreads_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Shelf; - type Id; type GoodreadsUserId; - type Type; + type Id; + type Shelf; type Books; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Shelf = Unset; - type Id = Unset; type GoodreadsUserId = Unset; - type Type = Unset; + type Id = Unset; + type Shelf = Unset; type Books = Unset; + type Type = Unset; } - ///State transition - sets the `shelf` field to Set - pub struct SetShelf(PhantomData St>); - impl sealed::Sealed for SetShelf {} - impl State for SetShelf { - type Shelf = Set; + ///State transition - sets the `goodreads_user_id` field to Set + pub struct SetGoodreadsUserId(PhantomData St>); + impl sealed::Sealed for SetGoodreadsUserId {} + impl State for SetGoodreadsUserId { + type GoodreadsUserId = Set; type Id = St::Id; - type GoodreadsUserId = St::GoodreadsUserId; - type Type = St::Type; + type Shelf = St::Shelf; type Books = St::Books; + type Type = St::Type; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type Shelf = St::Shelf; - type Id = Set; type GoodreadsUserId = St::GoodreadsUserId; - type Type = St::Type; - type Books = St::Books; - } - ///State transition - sets the `goodreads_user_id` field to Set - pub struct SetGoodreadsUserId(PhantomData St>); - impl sealed::Sealed for SetGoodreadsUserId {} - impl State for SetGoodreadsUserId { + type Id = Set; type Shelf = St::Shelf; - type Id = St::Id; - type GoodreadsUserId = Set; - type Type = St::Type; type Books = St::Books; + type Type = St::Type; } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Shelf = St::Shelf; - type Id = St::Id; + ///State transition - sets the `shelf` field to Set + pub struct SetShelf(PhantomData St>); + impl sealed::Sealed for SetShelf {} + impl State for SetShelf { type GoodreadsUserId = St::GoodreadsUserId; - type Type = Set; + type Id = St::Id; + type Shelf = Set; type Books = St::Books; + type Type = St::Type; } ///State transition - sets the `books` field to Set pub struct SetBooks(PhantomData St>); impl sealed::Sealed for SetBooks {} impl State for SetBooks { - type Shelf = St::Shelf; - type Id = St::Id; type GoodreadsUserId = St::GoodreadsUserId; - type Type = St::Type; + type Id = St::Id; + type Shelf = St::Shelf; type Books = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type GoodreadsUserId = St::GoodreadsUserId; + type Id = St::Id; + type Shelf = St::Shelf; + type Books = St::Books; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `shelf` field - pub struct shelf(()); - ///Marker type for the `id` field - pub struct id(()); ///Marker type for the `goodreads_user_id` field pub struct goodreads_user_id(()); - ///Marker type for the `type` field - pub struct r#type(()); + ///Marker type for the `id` field + pub struct id(()); + ///Marker type for the `shelf` field + pub struct shelf(()); ///Marker type for the `books` field pub struct books(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -3874,11 +3874,11 @@ where impl WidgetGoodreadsBuilder where St: widget_goodreads_state::State, - St::Shelf: widget_goodreads_state::IsSet, - St::Id: widget_goodreads_state::IsSet, St::GoodreadsUserId: widget_goodreads_state::IsSet, - St::Type: widget_goodreads_state::IsSet, + St::Id: widget_goodreads_state::IsSet, + St::Shelf: widget_goodreads_state::IsSet, St::Books: widget_goodreads_state::IsSet, + St::Type: widget_goodreads_state::IsSet, { /// Build the final struct. pub fn build(self) -> WidgetGoodreads { diff --git a/crates/jacquard-api/src/media_ionosphere.rs b/crates/jacquard-api/src/media_ionosphere.rs index 5b1a8200..a35acccf 100644 --- a/crates/jacquard-api/src/media_ionosphere.rs +++ b/crates/jacquard-api/src/media_ionosphere.rs @@ -1304,37 +1304,37 @@ pub mod track_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Artists; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Artists = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Artists = St::Artists; + type Title = Unset; } ///State transition - sets the `artists` field to Set pub struct SetArtists(PhantomData St>); impl sealed::Sealed for SetArtists {} impl State for SetArtists { - type Title = St::Title; type Artists = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Artists = St::Artists; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `artists` field pub struct artists(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -1417,8 +1417,8 @@ where impl TrackBuilder where St: track_state::State, - St::Title: track_state::IsSet, St::Artists: track_state::IsSet, + St::Title: track_state::IsSet, { /// Build the final struct. pub fn build(self) -> Track { diff --git a/crates/jacquard-api/src/media_ionosphere/group.rs b/crates/jacquard-api/src/media_ionosphere/group.rs index 14e6c8c6..9cb64361 100644 --- a/crates/jacquard-api/src/media_ionosphere/group.rs +++ b/crates/jacquard-api/src/media_ionosphere/group.rs @@ -302,50 +302,50 @@ pub mod group_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Ionosphere; - type Language; type Name; + type Language; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Ionosphere = Unset; - type Language = Unset; type Name = Unset; + type Language = Unset; } ///State transition - sets the `ionosphere` field to Set pub struct SetIonosphere(PhantomData St>); impl sealed::Sealed for SetIonosphere {} impl State for SetIonosphere { type Ionosphere = Set; - type Language = St::Language; - type Name = St::Name; - } - ///State transition - sets the `language` field to Set - pub struct SetLanguage(PhantomData St>); - impl sealed::Sealed for SetLanguage {} - impl State for SetLanguage { - type Ionosphere = St::Ionosphere; - type Language = Set; type Name = St::Name; + type Language = St::Language; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { type Ionosphere = St::Ionosphere; - type Language = St::Language; type Name = Set; + type Language = St::Language; + } + ///State transition - sets the `language` field to Set + pub struct SetLanguage(PhantomData St>); + impl sealed::Sealed for SetLanguage {} + impl State for SetLanguage { + type Ionosphere = St::Ionosphere; + type Name = St::Name; + type Language = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `ionosphere` field pub struct ionosphere(()); - ///Marker type for the `language` field - pub struct language(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `language` field + pub struct language(()); } } @@ -523,8 +523,8 @@ impl GroupBuilder where St: group_state::State, St::Ionosphere: group_state::IsSet, - St::Language: group_state::IsSet, St::Name: group_state::IsSet, + St::Language: group_state::IsSet, { /// Build the final struct. pub fn build(self) -> Group { diff --git a/crates/jacquard-api/src/media_ionosphere/programme.rs b/crates/jacquard-api/src/media_ionosphere/programme.rs index 766a3d5f..6179630d 100644 --- a/crates/jacquard-api/src/media_ionosphere/programme.rs +++ b/crates/jacquard-api/src/media_ionosphere/programme.rs @@ -208,49 +208,49 @@ pub mod programme_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Language; type Name; + type Language; type Ionosphere; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Language = Unset; type Name = Unset; + type Language = Unset; type Ionosphere = Unset; } - ///State transition - sets the `language` field to Set - pub struct SetLanguage(PhantomData St>); - impl sealed::Sealed for SetLanguage {} - impl State for SetLanguage { - type Language = Set; - type Name = St::Name; - type Ionosphere = St::Ionosphere; - } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Language = St::Language; type Name = Set; + type Language = St::Language; + type Ionosphere = St::Ionosphere; + } + ///State transition - sets the `language` field to Set + pub struct SetLanguage(PhantomData St>); + impl sealed::Sealed for SetLanguage {} + impl State for SetLanguage { + type Name = St::Name; + type Language = Set; type Ionosphere = St::Ionosphere; } ///State transition - sets the `ionosphere` field to Set pub struct SetIonosphere(PhantomData St>); impl sealed::Sealed for SetIonosphere {} impl State for SetIonosphere { - type Language = St::Language; type Name = St::Name; + type Language = St::Language; type Ionosphere = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `language` field - pub struct language(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `language` field + pub struct language(()); ///Marker type for the `ionosphere` field pub struct ionosphere(()); } @@ -463,8 +463,8 @@ impl ProgrammeBuilder { impl ProgrammeBuilder where St: programme_state::State, - St::Language: programme_state::IsSet, St::Name: programme_state::IsSet, + St::Language: programme_state::IsSet, St::Ionosphere: programme_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/media_ionosphere/service.rs b/crates/jacquard-api/src/media_ionosphere/service.rs index 157ef5f9..26c12027 100644 --- a/crates/jacquard-api/src/media_ionosphere/service.rs +++ b/crates/jacquard-api/src/media_ionosphere/service.rs @@ -195,50 +195,50 @@ pub mod service_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Language; - type Ionosphere; type Name; + type Ionosphere; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Language = Unset; - type Ionosphere = Unset; type Name = Unset; + type Ionosphere = Unset; } ///State transition - sets the `language` field to Set pub struct SetLanguage(PhantomData St>); impl sealed::Sealed for SetLanguage {} impl State for SetLanguage { type Language = Set; - type Ionosphere = St::Ionosphere; - type Name = St::Name; - } - ///State transition - sets the `ionosphere` field to Set - pub struct SetIonosphere(PhantomData St>); - impl sealed::Sealed for SetIonosphere {} - impl State for SetIonosphere { - type Language = St::Language; - type Ionosphere = Set; type Name = St::Name; + type Ionosphere = St::Ionosphere; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { type Language = St::Language; - type Ionosphere = St::Ionosphere; type Name = Set; + type Ionosphere = St::Ionosphere; + } + ///State transition - sets the `ionosphere` field to Set + pub struct SetIonosphere(PhantomData St>); + impl sealed::Sealed for SetIonosphere {} + impl State for SetIonosphere { + type Language = St::Language; + type Name = St::Name; + type Ionosphere = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `language` field pub struct language(()); - ///Marker type for the `ionosphere` field - pub struct ionosphere(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `ionosphere` field + pub struct ionosphere(()); } } @@ -430,8 +430,8 @@ impl ServiceBuilder where St: service_state::State, St::Language: service_state::IsSet, - St::Ionosphere: service_state::IsSet, St::Name: service_state::IsSet, + St::Ionosphere: service_state::IsSet, { /// Build the final struct. pub fn build(self) -> Service { diff --git a/crates/jacquard-api/src/net_aftertheinter/coolthingtwo.rs b/crates/jacquard-api/src/net_aftertheinter/coolthingtwo.rs index 8084676c..f577a626 100644 --- a/crates/jacquard-api/src/net_aftertheinter/coolthingtwo.rs +++ b/crates/jacquard-api/src/net_aftertheinter/coolthingtwo.rs @@ -146,37 +146,37 @@ pub mod coolthingtwo_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Status; type CreatedAt; + type Status; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Status = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { - type Status = Set; - type CreatedAt = St::CreatedAt; + type Status = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Status = St::Status; type CreatedAt = Set; + type Status = St::Status; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type CreatedAt = St::CreatedAt; + type Status = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `status` field - pub struct status(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `status` field + pub struct status(()); } } @@ -246,8 +246,8 @@ where impl CoolthingtwoBuilder where St: coolthingtwo_state::State, - St::Status: coolthingtwo_state::IsSet, St::CreatedAt: coolthingtwo_state::IsSet, + St::Status: coolthingtwo_state::IsSet, { /// Build the final struct. pub fn build(self) -> Coolthingtwo { diff --git a/crates/jacquard-api/src/net_alternativeproto/review.rs b/crates/jacquard-api/src/net_alternativeproto/review.rs index 3ca59b30..5b97df13 100644 --- a/crates/jacquard-api/src/net_alternativeproto/review.rs +++ b/crates/jacquard-api/src/net_alternativeproto/review.rs @@ -164,8 +164,8 @@ pub mod review_state { pub trait State: sealed::Sealed { type Rating; type ProjectId; - type Text; type CreatedAt; + type Text; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -173,8 +173,8 @@ pub mod review_state { impl State for Empty { type Rating = Unset; type ProjectId = Unset; - type Text = Unset; type CreatedAt = Unset; + type Text = Unset; } ///State transition - sets the `rating` field to Set pub struct SetRating(PhantomData St>); @@ -182,8 +182,8 @@ pub mod review_state { impl State for SetRating { type Rating = Set; type ProjectId = St::ProjectId; - type Text = St::Text; type CreatedAt = St::CreatedAt; + type Text = St::Text; } ///State transition - sets the `project_id` field to Set pub struct SetProjectId(PhantomData St>); @@ -191,17 +191,8 @@ pub mod review_state { impl State for SetProjectId { type Rating = St::Rating; type ProjectId = Set; - type Text = St::Text; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Rating = St::Rating; - type ProjectId = St::ProjectId; - type Text = Set; type CreatedAt = St::CreatedAt; + type Text = St::Text; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); @@ -209,8 +200,17 @@ pub mod review_state { impl State for SetCreatedAt { type Rating = St::Rating; type ProjectId = St::ProjectId; - type Text = St::Text; type CreatedAt = Set; + type Text = St::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type Rating = St::Rating; + type ProjectId = St::ProjectId; + type CreatedAt = St::CreatedAt; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -219,10 +219,10 @@ pub mod review_state { pub struct rating(()); ///Marker type for the `project_id` field pub struct project_id(()); - ///Marker type for the `text` field - pub struct text(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -332,8 +332,8 @@ where St: review_state::State, St::Rating: review_state::IsSet, St::ProjectId: review_state::IsSet, - St::Text: review_state::IsSet, St::CreatedAt: review_state::IsSet, + St::Text: review_state::IsSet, { /// Build the final struct. pub fn build(self) -> Review { diff --git a/crates/jacquard-api/src/net_alternativeproto/submission.rs b/crates/jacquard-api/src/net_alternativeproto/submission.rs index ba413c72..95f50f1d 100644 --- a/crates/jacquard-api/src/net_alternativeproto/submission.rs +++ b/crates/jacquard-api/src/net_alternativeproto/submission.rs @@ -291,83 +291,83 @@ pub mod submission_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AuthType; - type Url; type Name; + type AuthType; type CreatedAt; + type Url; type Description; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AuthType = Unset; - type Url = Unset; type Name = Unset; + type AuthType = Unset; type CreatedAt = Unset; + type Url = Unset; type Description = Unset; } - ///State transition - sets the `auth_type` field to Set - pub struct SetAuthType(PhantomData St>); - impl sealed::Sealed for SetAuthType {} - impl State for SetAuthType { - type AuthType = Set; - type Url = St::Url; - type Name = St::Name; - type CreatedAt = St::CreatedAt; - type Description = St::Description; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type AuthType = St::AuthType; - type Url = Set; - type Name = St::Name; - type CreatedAt = St::CreatedAt; - type Description = St::Description; - } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { + type Name = Set; type AuthType = St::AuthType; + type CreatedAt = St::CreatedAt; type Url = St::Url; - type Name = Set; + type Description = St::Description; + } + ///State transition - sets the `auth_type` field to Set + pub struct SetAuthType(PhantomData St>); + impl sealed::Sealed for SetAuthType {} + impl State for SetAuthType { + type Name = St::Name; + type AuthType = Set; type CreatedAt = St::CreatedAt; + type Url = St::Url; type Description = St::Description; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Name = St::Name; type AuthType = St::AuthType; + type CreatedAt = Set; type Url = St::Url; + type Description = St::Description; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { type Name = St::Name; - type CreatedAt = Set; + type AuthType = St::AuthType; + type CreatedAt = St::CreatedAt; + type Url = Set; type Description = St::Description; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type AuthType = St::AuthType; - type Url = St::Url; type Name = St::Name; + type AuthType = St::AuthType; type CreatedAt = St::CreatedAt; + type Url = St::Url; type Description = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `auth_type` field - pub struct auth_type(()); - ///Marker type for the `url` field - pub struct url(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `auth_type` field + pub struct auth_type(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `url` field + pub struct url(()); ///Marker type for the `description` field pub struct description(()); } @@ -572,10 +572,10 @@ where impl SubmissionBuilder where St: submission_state::State, - St::AuthType: submission_state::IsSet, - St::Url: submission_state::IsSet, St::Name: submission_state::IsSet, + St::AuthType: submission_state::IsSet, St::CreatedAt: submission_state::IsSet, + St::Url: submission_state::IsSet, St::Description: submission_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/net_alternativeproto/vote.rs b/crates/jacquard-api/src/net_alternativeproto/vote.rs index 2cacf427..c5b134a0 100644 --- a/crates/jacquard-api/src/net_alternativeproto/vote.rs +++ b/crates/jacquard-api/src/net_alternativeproto/vote.rs @@ -196,51 +196,51 @@ pub mod vote_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Subject; type Direction; type CreatedAt; - type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Subject = Unset; type Direction = Unset; type CreatedAt = Unset; - type Subject = Unset; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Subject = Set; + type Direction = St::Direction; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `direction` field to Set pub struct SetDirection(PhantomData St>); impl sealed::Sealed for SetDirection {} impl State for SetDirection { + type Subject = St::Subject; type Direction = Set; type CreatedAt = St::CreatedAt; - type Subject = St::Subject; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Direction = St::Direction; - type CreatedAt = Set; type Subject = St::Subject; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { type Direction = St::Direction; - type CreatedAt = St::CreatedAt; - type Subject = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `subject` field + pub struct subject(()); ///Marker type for the `direction` field pub struct direction(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `subject` field - pub struct subject(()); } } @@ -329,9 +329,9 @@ where impl VoteBuilder where St: vote_state::State, + St::Subject: vote_state::IsSet, St::Direction: vote_state::IsSet, St::CreatedAt: vote_state::IsSet, - St::Subject: vote_state::IsSet, { /// Build the final struct. pub fn build(self) -> Vote { diff --git a/crates/jacquard-api/src/net_altq/aqfile.rs b/crates/jacquard-api/src/net_altq/aqfile.rs index 2827de20..692523c5 100644 --- a/crates/jacquard-api/src/net_altq/aqfile.rs +++ b/crates/jacquard-api/src/net_altq/aqfile.rs @@ -554,37 +554,37 @@ pub mod file_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Size; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Size = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Size = St::Size; + type Name = Unset; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData St>); impl sealed::Sealed for SetSize {} impl State for SetSize { - type Name = St::Name; type Size = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Size = St::Size; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `size` field pub struct size(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -680,8 +680,8 @@ where impl FileBuilder where St: file_state::State, - St::Name: file_state::IsSet, St::Size: file_state::IsSet, + St::Name: file_state::IsSet, { /// Build the final struct. pub fn build(self) -> File { @@ -715,49 +715,49 @@ pub mod aqfile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Blob; type CreatedAt; + type Blob; type File; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Blob = Unset; type CreatedAt = Unset; + type Blob = Unset; type File = Unset; } - ///State transition - sets the `blob` field to Set - pub struct SetBlob(PhantomData St>); - impl sealed::Sealed for SetBlob {} - impl State for SetBlob { - type Blob = Set; - type CreatedAt = St::CreatedAt; - type File = St::File; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Blob = St::Blob; type CreatedAt = Set; + type Blob = St::Blob; + type File = St::File; + } + ///State transition - sets the `blob` field to Set + pub struct SetBlob(PhantomData St>); + impl sealed::Sealed for SetBlob {} + impl State for SetBlob { + type CreatedAt = St::CreatedAt; + type Blob = Set; type File = St::File; } ///State transition - sets the `file` field to Set pub struct SetFile(PhantomData St>); impl sealed::Sealed for SetFile {} impl State for SetFile { - type Blob = St::Blob; type CreatedAt = St::CreatedAt; + type Blob = St::Blob; type File = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `blob` field - pub struct blob(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `blob` field + pub struct blob(()); ///Marker type for the `file` field pub struct file(()); } @@ -880,8 +880,8 @@ where impl AqfileBuilder where St: aqfile_state::State, - St::Blob: aqfile_state::IsSet, St::CreatedAt: aqfile_state::IsSet, + St::Blob: aqfile_state::IsSet, St::File: aqfile_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/net_anisota/beta/game/collection.rs b/crates/jacquard-api/src/net_anisota/beta/game/collection.rs index 3854e3e8..2983aced 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/collection.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/collection.rs @@ -294,8 +294,8 @@ pub mod collection_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type AcquiredAt; - type Quantity; type SpecimenId; + type Quantity; type CreatedAt; } /// Empty state - all required fields are unset @@ -303,8 +303,8 @@ pub mod collection_state { impl sealed::Sealed for Empty {} impl State for Empty { type AcquiredAt = Unset; - type Quantity = Unset; type SpecimenId = Unset; + type Quantity = Unset; type CreatedAt = Unset; } ///State transition - sets the `acquired_at` field to Set @@ -312,17 +312,8 @@ pub mod collection_state { impl sealed::Sealed for SetAcquiredAt {} impl State for SetAcquiredAt { type AcquiredAt = Set; - type Quantity = St::Quantity; - type SpecimenId = St::SpecimenId; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `quantity` field to Set - pub struct SetQuantity(PhantomData St>); - impl sealed::Sealed for SetQuantity {} - impl State for SetQuantity { - type AcquiredAt = St::AcquiredAt; - type Quantity = Set; type SpecimenId = St::SpecimenId; + type Quantity = St::Quantity; type CreatedAt = St::CreatedAt; } ///State transition - sets the `specimen_id` field to Set @@ -330,8 +321,17 @@ pub mod collection_state { impl sealed::Sealed for SetSpecimenId {} impl State for SetSpecimenId { type AcquiredAt = St::AcquiredAt; - type Quantity = St::Quantity; type SpecimenId = Set; + type Quantity = St::Quantity; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `quantity` field to Set + pub struct SetQuantity(PhantomData St>); + impl sealed::Sealed for SetQuantity {} + impl State for SetQuantity { + type AcquiredAt = St::AcquiredAt; + type SpecimenId = St::SpecimenId; + type Quantity = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set @@ -339,8 +339,8 @@ pub mod collection_state { impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type AcquiredAt = St::AcquiredAt; - type Quantity = St::Quantity; type SpecimenId = St::SpecimenId; + type Quantity = St::Quantity; type CreatedAt = Set; } /// Marker types for field names @@ -348,10 +348,10 @@ pub mod collection_state { pub mod members { ///Marker type for the `acquired_at` field pub struct acquired_at(()); - ///Marker type for the `quantity` field - pub struct quantity(()); ///Marker type for the `specimen_id` field pub struct specimen_id(()); + ///Marker type for the `quantity` field + pub struct quantity(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -679,8 +679,8 @@ impl CollectionBuilder where St: collection_state::State, St::AcquiredAt: collection_state::IsSet, - St::Quantity: collection_state::IsSet, St::SpecimenId: collection_state::IsSet, + St::Quantity: collection_state::IsSet, St::CreatedAt: collection_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/net_anisota/beta/game/inventory.rs b/crates/jacquard-api/src/net_anisota/beta/game/inventory.rs index f812da8f..66429627 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/inventory.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/inventory.rs @@ -243,67 +243,67 @@ pub mod inventory_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Quantity; - type CreatedAt; type AcquiredAt; + type Quantity; type ItemId; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Quantity = Unset; - type CreatedAt = Unset; type AcquiredAt = Unset; + type Quantity = Unset; type ItemId = Unset; - } - ///State transition - sets the `quantity` field to Set - pub struct SetQuantity(PhantomData St>); - impl sealed::Sealed for SetQuantity {} - impl State for SetQuantity { - type Quantity = Set; - type CreatedAt = St::CreatedAt; - type AcquiredAt = St::AcquiredAt; - type ItemId = St::ItemId; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Quantity = St::Quantity; - type CreatedAt = Set; - type AcquiredAt = St::AcquiredAt; - type ItemId = St::ItemId; + type CreatedAt = Unset; } ///State transition - sets the `acquired_at` field to Set pub struct SetAcquiredAt(PhantomData St>); impl sealed::Sealed for SetAcquiredAt {} impl State for SetAcquiredAt { + type AcquiredAt = Set; type Quantity = St::Quantity; + type ItemId = St::ItemId; type CreatedAt = St::CreatedAt; - type AcquiredAt = Set; + } + ///State transition - sets the `quantity` field to Set + pub struct SetQuantity(PhantomData St>); + impl sealed::Sealed for SetQuantity {} + impl State for SetQuantity { + type AcquiredAt = St::AcquiredAt; + type Quantity = Set; type ItemId = St::ItemId; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `item_id` field to Set pub struct SetItemId(PhantomData St>); impl sealed::Sealed for SetItemId {} impl State for SetItemId { + type AcquiredAt = St::AcquiredAt; type Quantity = St::Quantity; + type ItemId = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type AcquiredAt = St::AcquiredAt; - type ItemId = Set; + type Quantity = St::Quantity; + type ItemId = St::ItemId; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `quantity` field - pub struct quantity(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `acquired_at` field pub struct acquired_at(()); + ///Marker type for the `quantity` field + pub struct quantity(()); ///Marker type for the `item_id` field pub struct item_id(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -592,10 +592,10 @@ impl InventoryBuilder { impl InventoryBuilder where St: inventory_state::State, - St::Quantity: inventory_state::IsSet, - St::CreatedAt: inventory_state::IsSet, St::AcquiredAt: inventory_state::IsSet, + St::Quantity: inventory_state::IsSet, St::ItemId: inventory_state::IsSet, + St::CreatedAt: inventory_state::IsSet, { /// Build the final struct. pub fn build(self) -> Inventory { diff --git a/crates/jacquard-api/src/net_anisota/beta/game/pack.rs b/crates/jacquard-api/src/net_anisota/beta/game/pack.rs index 4b20c64d..b0cb7183 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/pack.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/pack.rs @@ -233,65 +233,65 @@ pub mod pack_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type TotalOpens; type Streak; type LastOpenTime; + type TotalOpens; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type TotalOpens = Unset; type Streak = Unset; type LastOpenTime = Unset; + type TotalOpens = Unset; type CreatedAt = Unset; } - ///State transition - sets the `total_opens` field to Set - pub struct SetTotalOpens(PhantomData St>); - impl sealed::Sealed for SetTotalOpens {} - impl State for SetTotalOpens { - type TotalOpens = Set; - type Streak = St::Streak; - type LastOpenTime = St::LastOpenTime; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `streak` field to Set pub struct SetStreak(PhantomData St>); impl sealed::Sealed for SetStreak {} impl State for SetStreak { - type TotalOpens = St::TotalOpens; type Streak = Set; type LastOpenTime = St::LastOpenTime; + type TotalOpens = St::TotalOpens; type CreatedAt = St::CreatedAt; } ///State transition - sets the `last_open_time` field to Set pub struct SetLastOpenTime(PhantomData St>); impl sealed::Sealed for SetLastOpenTime {} impl State for SetLastOpenTime { - type TotalOpens = St::TotalOpens; type Streak = St::Streak; type LastOpenTime = Set; + type TotalOpens = St::TotalOpens; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `total_opens` field to Set + pub struct SetTotalOpens(PhantomData St>); + impl sealed::Sealed for SetTotalOpens {} + impl State for SetTotalOpens { + type Streak = St::Streak; + type LastOpenTime = St::LastOpenTime; + type TotalOpens = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type TotalOpens = St::TotalOpens; type Streak = St::Streak; type LastOpenTime = St::LastOpenTime; + type TotalOpens = St::TotalOpens; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `total_opens` field - pub struct total_opens(()); ///Marker type for the `streak` field pub struct streak(()); ///Marker type for the `last_open_time` field pub struct last_open_time(()); + ///Marker type for the `total_opens` field + pub struct total_opens(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -454,9 +454,9 @@ where impl PackBuilder where St: pack_state::State, - St::TotalOpens: pack_state::IsSet, St::Streak: pack_state::IsSet, St::LastOpenTime: pack_state::IsSet, + St::TotalOpens: pack_state::IsSet, St::CreatedAt: pack_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/net_anisota/beta/game/progress.rs b/crates/jacquard-api/src/net_anisota/beta/game/progress.rs index 95dd50bc..e8883e48 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/progress.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/progress.rs @@ -338,83 +338,83 @@ pub mod progress_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type XpToNextLevel; + type ProgressPercentage; type CreatedAt; type Level; - type ProgressPercentage; - type XpToNextLevel; type TotalXp; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type XpToNextLevel = Unset; + type ProgressPercentage = Unset; type CreatedAt = Unset; type Level = Unset; - type ProgressPercentage = Unset; - type XpToNextLevel = Unset; type TotalXp = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Level = St::Level; + ///State transition - sets the `xp_to_next_level` field to Set + pub struct SetXpToNextLevel(PhantomData St>); + impl sealed::Sealed for SetXpToNextLevel {} + impl State for SetXpToNextLevel { + type XpToNextLevel = Set; type ProgressPercentage = St::ProgressPercentage; - type XpToNextLevel = St::XpToNextLevel; - type TotalXp = St::TotalXp; - } - ///State transition - sets the `level` field to Set - pub struct SetLevel(PhantomData St>); - impl sealed::Sealed for SetLevel {} - impl State for SetLevel { type CreatedAt = St::CreatedAt; - type Level = Set; - type ProgressPercentage = St::ProgressPercentage; - type XpToNextLevel = St::XpToNextLevel; + type Level = St::Level; type TotalXp = St::TotalXp; } ///State transition - sets the `progress_percentage` field to Set pub struct SetProgressPercentage(PhantomData St>); impl sealed::Sealed for SetProgressPercentage {} impl State for SetProgressPercentage { + type XpToNextLevel = St::XpToNextLevel; + type ProgressPercentage = Set; type CreatedAt = St::CreatedAt; type Level = St::Level; - type ProgressPercentage = Set; - type XpToNextLevel = St::XpToNextLevel; type TotalXp = St::TotalXp; } - ///State transition - sets the `xp_to_next_level` field to Set - pub struct SetXpToNextLevel(PhantomData St>); - impl sealed::Sealed for SetXpToNextLevel {} - impl State for SetXpToNextLevel { - type CreatedAt = St::CreatedAt; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type XpToNextLevel = St::XpToNextLevel; + type ProgressPercentage = St::ProgressPercentage; + type CreatedAt = Set; type Level = St::Level; + type TotalXp = St::TotalXp; + } + ///State transition - sets the `level` field to Set + pub struct SetLevel(PhantomData St>); + impl sealed::Sealed for SetLevel {} + impl State for SetLevel { + type XpToNextLevel = St::XpToNextLevel; type ProgressPercentage = St::ProgressPercentage; - type XpToNextLevel = Set; + type CreatedAt = St::CreatedAt; + type Level = Set; type TotalXp = St::TotalXp; } ///State transition - sets the `total_xp` field to Set pub struct SetTotalXp(PhantomData St>); impl sealed::Sealed for SetTotalXp {} impl State for SetTotalXp { + type XpToNextLevel = St::XpToNextLevel; + type ProgressPercentage = St::ProgressPercentage; type CreatedAt = St::CreatedAt; type Level = St::Level; - type ProgressPercentage = St::ProgressPercentage; - type XpToNextLevel = St::XpToNextLevel; type TotalXp = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `xp_to_next_level` field + pub struct xp_to_next_level(()); + ///Marker type for the `progress_percentage` field + pub struct progress_percentage(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `level` field pub struct level(()); - ///Marker type for the `progress_percentage` field - pub struct progress_percentage(()); - ///Marker type for the `xp_to_next_level` field - pub struct xp_to_next_level(()); ///Marker type for the `total_xp` field pub struct total_xp(()); } @@ -705,10 +705,10 @@ where impl ProgressBuilder where St: progress_state::State, + St::XpToNextLevel: progress_state::IsSet, + St::ProgressPercentage: progress_state::IsSet, St::CreatedAt: progress_state::IsSet, St::Level: progress_state::IsSet, - St::ProgressPercentage: progress_state::IsSet, - St::XpToNextLevel: progress_state::IsSet, St::TotalXp: progress_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/net_anisota/beta/game/session.rs b/crates/jacquard-api/src/net_anisota/beta/game/session.rs index 763a0f00..5fddd2c0 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/session.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/session.rs @@ -894,67 +894,67 @@ pub mod session_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Platform; - type StartedAt; type ClientVersion; + type Platform; type Status; + type StartedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Platform = Unset; - type StartedAt = Unset; type ClientVersion = Unset; + type Platform = Unset; type Status = Unset; - } - ///State transition - sets the `platform` field to Set - pub struct SetPlatform(PhantomData St>); - impl sealed::Sealed for SetPlatform {} - impl State for SetPlatform { - type Platform = Set; - type StartedAt = St::StartedAt; - type ClientVersion = St::ClientVersion; - type Status = St::Status; - } - ///State transition - sets the `started_at` field to Set - pub struct SetStartedAt(PhantomData St>); - impl sealed::Sealed for SetStartedAt {} - impl State for SetStartedAt { - type Platform = St::Platform; - type StartedAt = Set; - type ClientVersion = St::ClientVersion; - type Status = St::Status; + type StartedAt = Unset; } ///State transition - sets the `client_version` field to Set pub struct SetClientVersion(PhantomData St>); impl sealed::Sealed for SetClientVersion {} impl State for SetClientVersion { + type ClientVersion = Set; type Platform = St::Platform; + type Status = St::Status; type StartedAt = St::StartedAt; - type ClientVersion = Set; + } + ///State transition - sets the `platform` field to Set + pub struct SetPlatform(PhantomData St>); + impl sealed::Sealed for SetPlatform {} + impl State for SetPlatform { + type ClientVersion = St::ClientVersion; + type Platform = Set; type Status = St::Status; + type StartedAt = St::StartedAt; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { + type ClientVersion = St::ClientVersion; type Platform = St::Platform; + type Status = Set; type StartedAt = St::StartedAt; + } + ///State transition - sets the `started_at` field to Set + pub struct SetStartedAt(PhantomData St>); + impl sealed::Sealed for SetStartedAt {} + impl State for SetStartedAt { type ClientVersion = St::ClientVersion; - type Status = Set; + type Platform = St::Platform; + type Status = St::Status; + type StartedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `platform` field - pub struct platform(()); - ///Marker type for the `started_at` field - pub struct started_at(()); ///Marker type for the `client_version` field pub struct client_version(()); + ///Marker type for the `platform` field + pub struct platform(()); ///Marker type for the `status` field pub struct status(()); + ///Marker type for the `started_at` field + pub struct started_at(()); } } @@ -1279,10 +1279,10 @@ impl SessionBuilder { impl SessionBuilder where St: session_state::State, - St::Platform: session_state::IsSet, - St::StartedAt: session_state::IsSet, St::ClientVersion: session_state::IsSet, + St::Platform: session_state::IsSet, St::Status: session_state::IsSet, + St::StartedAt: session_state::IsSet, { /// Build the final struct. pub fn build(self) -> Session { diff --git a/crates/jacquard-api/src/net_anisota/feed/draft.rs b/crates/jacquard-api/src/net_anisota/feed/draft.rs index 44022afb..50fe4f2b 100644 --- a/crates/jacquard-api/src/net_anisota/feed/draft.rs +++ b/crates/jacquard-api/src/net_anisota/feed/draft.rs @@ -228,37 +228,37 @@ pub mod draft_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Text; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Text = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Text = St::Text; + type CreatedAt = Unset; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { - type CreatedAt = St::CreatedAt; type Text = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Text = St::Text; + type CreatedAt = 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 `text` field pub struct text(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -429,8 +429,8 @@ impl DraftBuilder { impl DraftBuilder where St: draft_state::State, - St::CreatedAt: draft_state::IsSet, St::Text: draft_state::IsSet, + St::CreatedAt: draft_state::IsSet, { /// Build the final struct. pub fn build(self) -> Draft { @@ -663,37 +663,37 @@ pub mod reply_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Parent; type Root; + type Parent; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Parent = Unset; type Root = Unset; - } - ///State transition - sets the `parent` field to Set - pub struct SetParent(PhantomData St>); - impl sealed::Sealed for SetParent {} - impl State for SetParent { - type Parent = Set; - type Root = St::Root; + type Parent = Unset; } ///State transition - sets the `root` field to Set pub struct SetRoot(PhantomData St>); impl sealed::Sealed for SetRoot {} impl State for SetRoot { - type Parent = St::Parent; type Root = Set; + type Parent = St::Parent; + } + ///State transition - sets the `parent` field to Set + pub struct SetParent(PhantomData St>); + impl sealed::Sealed for SetParent {} + impl State for SetParent { + type Root = St::Root; + 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(()); ///Marker type for the `root` field pub struct root(()); + ///Marker type for the `parent` field + pub struct parent(()); } } @@ -763,8 +763,8 @@ where impl ReplyRefBuilder where St: reply_ref_state::State, - St::Parent: reply_ref_state::IsSet, St::Root: reply_ref_state::IsSet, + St::Parent: reply_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReplyRef { diff --git a/crates/jacquard-api/src/net_anisota/feed/list.rs b/crates/jacquard-api/src/net_anisota/feed/list.rs index b190b1a8..cfaf20e9 100644 --- a/crates/jacquard-api/src/net_anisota/feed/list.rs +++ b/crates/jacquard-api/src/net_anisota/feed/list.rs @@ -195,37 +195,37 @@ pub mod list_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -340,8 +340,8 @@ impl ListBuilder { impl ListBuilder where St: list_state::State, - St::Name: list_state::IsSet, St::CreatedAt: list_state::IsSet, + St::Name: list_state::IsSet, { /// Build the final struct. pub fn build(self) -> List { diff --git a/crates/jacquard-api/src/net_anisota/feed/list_item.rs b/crates/jacquard-api/src/net_anisota/feed/list_item.rs index 2982301c..47d22fd9 100644 --- a/crates/jacquard-api/src/net_anisota/feed/list_item.rs +++ b/crates/jacquard-api/src/net_anisota/feed/list_item.rs @@ -117,50 +117,50 @@ pub mod list_item_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Subject; - type CreatedAt; type List; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Subject = Unset; - type CreatedAt = Unset; type List = Unset; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type Subject = Set; - type CreatedAt = St::CreatedAt; - type List = St::List; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Subject = St::Subject; - type CreatedAt = Set; type List = St::List; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `list` field to Set pub struct SetList(PhantomData St>); impl sealed::Sealed for SetList {} impl State for SetList { type Subject = St::Subject; - type CreatedAt = St::CreatedAt; type List = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type List = St::List; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `list` field pub struct list(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -250,8 +250,8 @@ impl ListItemBuilder where St: list_item_state::State, St::Subject: list_item_state::IsSet, - St::CreatedAt: list_item_state::IsSet, St::List: list_item_state::IsSet, + St::CreatedAt: list_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> ListItem { diff --git a/crates/jacquard-api/src/net_anisota/feed/post.rs b/crates/jacquard-api/src/net_anisota/feed/post.rs index a1380308..5f3470ec 100644 --- a/crates/jacquard-api/src/net_anisota/feed/post.rs +++ b/crates/jacquard-api/src/net_anisota/feed/post.rs @@ -632,37 +632,37 @@ pub mod reply_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Root; type Parent; + type Root; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Root = Unset; type Parent = Unset; - } - ///State transition - sets the `root` field to Set - pub struct SetRoot(PhantomData St>); - impl sealed::Sealed for SetRoot {} - impl State for SetRoot { - type Root = Set; - type Parent = St::Parent; + type Root = Unset; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData St>); impl sealed::Sealed for SetParent {} impl State for SetParent { - type Root = St::Root; type Parent = Set; + type Root = St::Root; + } + ///State transition - sets the `root` field to Set + pub struct SetRoot(PhantomData St>); + impl sealed::Sealed for SetRoot {} + impl State for SetRoot { + type Parent = St::Parent; + type Root = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `root` field - pub struct root(()); ///Marker type for the `parent` field pub struct parent(()); + ///Marker type for the `root` field + pub struct root(()); } } @@ -732,8 +732,8 @@ where impl ReplyRefBuilder where St: reply_ref_state::State, - St::Root: reply_ref_state::IsSet, St::Parent: reply_ref_state::IsSet, + St::Root: reply_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReplyRef { diff --git a/crates/jacquard-api/src/net_anisota/feed/repost.rs b/crates/jacquard-api/src/net_anisota/feed/repost.rs index a30db08e..b0f1c5a7 100644 --- a/crates/jacquard-api/src/net_anisota/feed/repost.rs +++ b/crates/jacquard-api/src/net_anisota/feed/repost.rs @@ -115,37 +115,37 @@ pub mod repost_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -215,8 +215,8 @@ where impl RepostBuilder where St: repost_state::State, - St::CreatedAt: repost_state::IsSet, St::Subject: repost_state::IsSet, + St::CreatedAt: repost_state::IsSet, { /// Build the final struct. pub fn build(self) -> Repost { diff --git a/crates/jacquard-api/src/net_anisota/graph/mute.rs b/crates/jacquard-api/src/net_anisota/graph/mute.rs index 27f4eac8..c962886d 100644 --- a/crates/jacquard-api/src/net_anisota/graph/mute.rs +++ b/crates/jacquard-api/src/net_anisota/graph/mute.rs @@ -364,37 +364,37 @@ pub mod mute_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -526,8 +526,8 @@ impl MuteBuilder { impl MuteBuilder where St: mute_state::State, - St::CreatedAt: mute_state::IsSet, St::Subject: mute_state::IsSet, + St::CreatedAt: mute_state::IsSet, { /// Build the final struct. pub fn build(self) -> Mute { diff --git a/crates/jacquard-api/src/net_anisota/harvest/minigame.rs b/crates/jacquard-api/src/net_anisota/harvest/minigame.rs index aba7cbb8..3dc4243d 100644 --- a/crates/jacquard-api/src/net_anisota/harvest/minigame.rs +++ b/crates/jacquard-api/src/net_anisota/harvest/minigame.rs @@ -360,85 +360,85 @@ pub mod minigame_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type RoundDuration; type PlayedAt; - type FinalScore; type ShapesCollected; + type RoundDuration; type GameContext; + type FinalScore; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type RoundDuration = Unset; type PlayedAt = Unset; - type FinalScore = Unset; type ShapesCollected = Unset; + type RoundDuration = Unset; type GameContext = Unset; - } - ///State transition - sets the `round_duration` field to Set - pub struct SetRoundDuration(PhantomData St>); - impl sealed::Sealed for SetRoundDuration {} - impl State for SetRoundDuration { - type RoundDuration = Set; - type PlayedAt = St::PlayedAt; - type FinalScore = St::FinalScore; - type ShapesCollected = St::ShapesCollected; - type GameContext = St::GameContext; + type FinalScore = Unset; } ///State transition - sets the `played_at` field to Set pub struct SetPlayedAt(PhantomData St>); impl sealed::Sealed for SetPlayedAt {} impl State for SetPlayedAt { - type RoundDuration = St::RoundDuration; type PlayedAt = Set; - type FinalScore = St::FinalScore; type ShapesCollected = St::ShapesCollected; - type GameContext = St::GameContext; - } - ///State transition - sets the `final_score` field to Set - pub struct SetFinalScore(PhantomData St>); - impl sealed::Sealed for SetFinalScore {} - impl State for SetFinalScore { type RoundDuration = St::RoundDuration; - type PlayedAt = St::PlayedAt; - type FinalScore = Set; - type ShapesCollected = St::ShapesCollected; type GameContext = St::GameContext; + type FinalScore = St::FinalScore; } ///State transition - sets the `shapes_collected` field to Set pub struct SetShapesCollected(PhantomData St>); impl sealed::Sealed for SetShapesCollected {} impl State for SetShapesCollected { - type RoundDuration = St::RoundDuration; type PlayedAt = St::PlayedAt; - type FinalScore = St::FinalScore; type ShapesCollected = Set; + type RoundDuration = St::RoundDuration; + type GameContext = St::GameContext; + type FinalScore = St::FinalScore; + } + ///State transition - sets the `round_duration` field to Set + pub struct SetRoundDuration(PhantomData St>); + impl sealed::Sealed for SetRoundDuration {} + impl State for SetRoundDuration { + type PlayedAt = St::PlayedAt; + type ShapesCollected = St::ShapesCollected; + type RoundDuration = Set; type GameContext = St::GameContext; + type FinalScore = St::FinalScore; } ///State transition - sets the `game_context` field to Set pub struct SetGameContext(PhantomData St>); impl sealed::Sealed for SetGameContext {} impl State for SetGameContext { - type RoundDuration = St::RoundDuration; type PlayedAt = St::PlayedAt; - type FinalScore = St::FinalScore; type ShapesCollected = St::ShapesCollected; + type RoundDuration = St::RoundDuration; type GameContext = Set; + type FinalScore = St::FinalScore; + } + ///State transition - sets the `final_score` field to Set + pub struct SetFinalScore(PhantomData St>); + impl sealed::Sealed for SetFinalScore {} + impl State for SetFinalScore { + type PlayedAt = St::PlayedAt; + type ShapesCollected = St::ShapesCollected; + type RoundDuration = St::RoundDuration; + type GameContext = St::GameContext; + type FinalScore = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `round_duration` field - pub struct round_duration(()); ///Marker type for the `played_at` field pub struct played_at(()); - ///Marker type for the `final_score` field - pub struct final_score(()); ///Marker type for the `shapes_collected` field pub struct shapes_collected(()); + ///Marker type for the `round_duration` field + pub struct round_duration(()); ///Marker type for the `game_context` field pub struct game_context(()); + ///Marker type for the `final_score` field + pub struct final_score(()); } } @@ -763,11 +763,11 @@ impl MinigameBuilder { impl MinigameBuilder where St: minigame_state::State, - St::RoundDuration: minigame_state::IsSet, St::PlayedAt: minigame_state::IsSet, - St::FinalScore: minigame_state::IsSet, St::ShapesCollected: minigame_state::IsSet, + St::RoundDuration: minigame_state::IsSet, St::GameContext: minigame_state::IsSet, + St::FinalScore: minigame_state::IsSet, { /// Build the final struct. pub fn build(self) -> Minigame { diff --git a/crates/jacquard-api/src/net_anisota/settings.rs b/crates/jacquard-api/src/net_anisota/settings.rs index 78c66f91..3740183e 100644 --- a/crates/jacquard-api/src/net_anisota/settings.rs +++ b/crates/jacquard-api/src/net_anisota/settings.rs @@ -3115,50 +3115,50 @@ pub mod settings_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type UpdatedAt; - type Version; type CreatedAt; + type Version; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type UpdatedAt = Unset; - type Version = Unset; type CreatedAt = Unset; + type Version = Unset; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData St>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { type UpdatedAt = Set; - type Version = St::Version; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `version` field to Set - pub struct SetVersion(PhantomData St>); - impl sealed::Sealed for SetVersion {} - impl State for SetVersion { - type UpdatedAt = St::UpdatedAt; - type Version = Set; type CreatedAt = St::CreatedAt; + type Version = St::Version; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type UpdatedAt = St::UpdatedAt; - type Version = St::Version; type CreatedAt = Set; + type Version = St::Version; + } + ///State transition - sets the `version` field to Set + pub struct SetVersion(PhantomData St>); + impl sealed::Sealed for SetVersion {} + impl State for SetVersion { + type UpdatedAt = St::UpdatedAt; + type CreatedAt = St::CreatedAt; + type Version = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `updated_at` field pub struct updated_at(()); - ///Marker type for the `version` field - pub struct version(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `version` field + pub struct version(()); } } @@ -3337,8 +3337,8 @@ impl SettingsBuilder where St: settings_state::State, St::UpdatedAt: settings_state::IsSet, - St::Version: settings_state::IsSet, St::CreatedAt: settings_state::IsSet, + St::Version: settings_state::IsSet, { /// Build the final struct. pub fn build(self) -> Settings { diff --git a/crates/jacquard-api/src/net_asadaame5121/at_circle/banner.rs b/crates/jacquard-api/src/net_asadaame5121/at_circle/banner.rs index 11356136..b72a9516 100644 --- a/crates/jacquard-api/src/net_asadaame5121/at_circle/banner.rs +++ b/crates/jacquard-api/src/net_asadaame5121/at_circle/banner.rs @@ -155,51 +155,51 @@ pub mod banner_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Banner; type Ring; + type Banner; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Banner = Unset; type Ring = Unset; + type Banner = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `ring` field to Set + pub struct SetRing(PhantomData St>); + impl sealed::Sealed for SetRing {} + impl State for SetRing { + type Ring = Set; type Banner = St::Banner; - type Ring = St::Ring; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `banner` field to Set pub struct SetBanner(PhantomData St>); impl sealed::Sealed for SetBanner {} impl State for SetBanner { - type CreatedAt = St::CreatedAt; - type Banner = Set; type Ring = St::Ring; - } - ///State transition - sets the `ring` field to Set - pub struct SetRing(PhantomData St>); - impl sealed::Sealed for SetRing {} - impl State for SetRing { + type Banner = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Ring = St::Ring; type Banner = St::Banner; - type Ring = Set; + type CreatedAt = 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 `banner` field - pub struct banner(()); ///Marker type for the `ring` field pub struct ring(()); + ///Marker type for the `banner` field + pub struct banner(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -288,9 +288,9 @@ where impl BannerBuilder where St: banner_state::State, - St::CreatedAt: banner_state::IsSet, - St::Banner: banner_state::IsSet, St::Ring: banner_state::IsSet, + St::Banner: banner_state::IsSet, + St::CreatedAt: banner_state::IsSet, { /// Build the final struct. pub fn build(self) -> Banner { diff --git a/crates/jacquard-api/src/net_asadaame5121/at_circle/block.rs b/crates/jacquard-api/src/net_asadaame5121/at_circle/block.rs index f15c815b..dc92dfae 100644 --- a/crates/jacquard-api/src/net_asadaame5121/at_circle/block.rs +++ b/crates/jacquard-api/src/net_asadaame5121/at_circle/block.rs @@ -151,51 +151,51 @@ pub mod block_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Subject; type Ring; + type Subject; + type CreatedAt; } /// 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 Ring = Unset; + type Subject = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `ring` field to Set + pub struct SetRing(PhantomData St>); + impl sealed::Sealed for SetRing {} + impl State for SetRing { + type Ring = Set; type Subject = St::Subject; - type Ring = St::Ring; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; - type Subject = Set; type Ring = St::Ring; - } - ///State transition - sets the `ring` field to Set - pub struct SetRing(PhantomData St>); - impl sealed::Sealed for SetRing {} - impl State for SetRing { + type Subject = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Ring = St::Ring; type Subject = St::Subject; - type Ring = Set; + type CreatedAt = 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 `ring` field pub struct ring(()); + ///Marker type for the `subject` field + pub struct subject(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -297,9 +297,9 @@ where impl BlockBuilder where St: block_state::State, - St::CreatedAt: block_state::IsSet, - St::Subject: block_state::IsSet, St::Ring: block_state::IsSet, + St::Subject: block_state::IsSet, + St::CreatedAt: block_state::IsSet, { /// Build the final struct. pub fn build(self) -> Block { diff --git a/crates/jacquard-api/src/net_asadaame5121/at_circle/member.rs b/crates/jacquard-api/src/net_asadaame5121/at_circle/member.rs index 23186fc8..7666a593 100644 --- a/crates/jacquard-api/src/net_asadaame5121/at_circle/member.rs +++ b/crates/jacquard-api/src/net_asadaame5121/at_circle/member.rs @@ -190,65 +190,65 @@ pub mod member_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Ring; type Url; type Title; - type Ring; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Ring = Unset; type Url = Unset; type Title = Unset; - type Ring = Unset; type CreatedAt = Unset; } + ///State transition - sets the `ring` field to Set + pub struct SetRing(PhantomData St>); + impl sealed::Sealed for SetRing {} + impl State for SetRing { + type Ring = Set; + type Url = St::Url; + type Title = St::Title; + type CreatedAt = St::CreatedAt; + } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { + type Ring = St::Ring; type Url = Set; type Title = St::Title; - type Ring = St::Ring; type CreatedAt = St::CreatedAt; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Url = St::Url; - type Title = Set; type Ring = St::Ring; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `ring` field to Set - pub struct SetRing(PhantomData St>); - impl sealed::Sealed for SetRing {} - impl State for SetRing { type Url = St::Url; - type Title = St::Title; - type Ring = Set; + type Title = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Ring = St::Ring; type Url = St::Url; type Title = St::Title; - type Ring = St::Ring; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `ring` field + pub struct ring(()); ///Marker type for the `url` field pub struct url(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `ring` field - pub struct ring(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -391,9 +391,9 @@ where impl MemberBuilder where St: member_state::State, + St::Ring: member_state::IsSet, St::Url: member_state::IsSet, St::Title: member_state::IsSet, - St::Ring: member_state::IsSet, St::CreatedAt: member_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/net_asadaame5121/at_circle/request.rs b/crates/jacquard-api/src/net_asadaame5121/at_circle/request.rs index 8bf25ead..31c860e3 100644 --- a/crates/jacquard-api/src/net_asadaame5121/at_circle/request.rs +++ b/crates/jacquard-api/src/net_asadaame5121/at_circle/request.rs @@ -171,8 +171,8 @@ pub mod request_state { pub trait State: sealed::Sealed { type Ring; type SiteTitle; - type CreatedAt; type SiteUrl; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -180,8 +180,8 @@ pub mod request_state { impl State for Empty { type Ring = Unset; type SiteTitle = Unset; - type CreatedAt = Unset; type SiteUrl = Unset; + type CreatedAt = Unset; } ///State transition - sets the `ring` field to Set pub struct SetRing(PhantomData St>); @@ -189,8 +189,8 @@ pub mod request_state { impl State for SetRing { type Ring = Set; type SiteTitle = St::SiteTitle; - type CreatedAt = St::CreatedAt; type SiteUrl = St::SiteUrl; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `site_title` field to Set pub struct SetSiteTitle(PhantomData St>); @@ -198,17 +198,8 @@ pub mod request_state { impl State for SetSiteTitle { type Ring = St::Ring; type SiteTitle = Set; - type CreatedAt = St::CreatedAt; - type SiteUrl = St::SiteUrl; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Ring = St::Ring; - type SiteTitle = St::SiteTitle; - type CreatedAt = Set; type SiteUrl = St::SiteUrl; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `site_url` field to Set pub struct SetSiteUrl(PhantomData St>); @@ -216,8 +207,17 @@ pub mod request_state { impl State for SetSiteUrl { type Ring = St::Ring; type SiteTitle = St::SiteTitle; - type CreatedAt = St::CreatedAt; type SiteUrl = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Ring = St::Ring; + type SiteTitle = St::SiteTitle; + type SiteUrl = St::SiteUrl; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -226,10 +226,10 @@ pub mod request_state { pub struct ring(()); ///Marker type for the `site_title` field pub struct site_title(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `site_url` field pub struct site_url(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -372,8 +372,8 @@ where St: request_state::State, St::Ring: request_state::IsSet, St::SiteTitle: request_state::IsSet, - St::CreatedAt: request_state::IsSet, St::SiteUrl: request_state::IsSet, + St::CreatedAt: request_state::IsSet, { /// Build the final struct. pub fn build(self) -> Request { diff --git a/crates/jacquard-api/src/net_jbsm/jb/reminder.rs b/crates/jacquard-api/src/net_jbsm/jb/reminder.rs index 454f3dce..07121053 100644 --- a/crates/jacquard-api/src/net_jbsm/jb/reminder.rs +++ b/crates/jacquard-api/src/net_jbsm/jb/reminder.rs @@ -140,67 +140,67 @@ pub mod reminder_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type TriggerAt; type Subject; - type Requester; type CreatedAt; + type TriggerAt; + type Requester; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type TriggerAt = Unset; type Subject = Unset; - type Requester = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `trigger_at` field to Set - pub struct SetTriggerAt(PhantomData St>); - impl sealed::Sealed for SetTriggerAt {} - impl State for SetTriggerAt { - type TriggerAt = Set; - type Subject = St::Subject; - type Requester = St::Requester; - type CreatedAt = St::CreatedAt; + type TriggerAt = Unset; + type Requester = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type TriggerAt = St::TriggerAt; type Subject = Set; - type Requester = St::Requester; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `requester` field to Set - pub struct SetRequester(PhantomData St>); - impl sealed::Sealed for SetRequester {} - impl State for SetRequester { type TriggerAt = St::TriggerAt; - type Subject = St::Subject; - type Requester = Set; - type CreatedAt = St::CreatedAt; + type Requester = St::Requester; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = Set; type TriggerAt = St::TriggerAt; + type Requester = St::Requester; + } + ///State transition - sets the `trigger_at` field to Set + pub struct SetTriggerAt(PhantomData St>); + impl sealed::Sealed for SetTriggerAt {} + impl State for SetTriggerAt { type Subject = St::Subject; + type CreatedAt = St::CreatedAt; + type TriggerAt = Set; type Requester = St::Requester; - type CreatedAt = Set; + } + ///State transition - sets the `requester` field to Set + pub struct SetRequester(PhantomData St>); + impl sealed::Sealed for SetRequester {} + impl State for SetRequester { + type Subject = St::Subject; + type CreatedAt = St::CreatedAt; + type TriggerAt = St::TriggerAt; + type Requester = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `trigger_at` field - pub struct trigger_at(()); ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `requester` field - pub struct requester(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `trigger_at` field + pub struct trigger_at(()); + ///Marker type for the `requester` field + pub struct requester(()); } } @@ -341,10 +341,10 @@ where impl ReminderBuilder where St: reminder_state::State, - St::TriggerAt: reminder_state::IsSet, St::Subject: reminder_state::IsSet, - St::Requester: reminder_state::IsSet, St::CreatedAt: reminder_state::IsSet, + St::TriggerAt: reminder_state::IsSet, + St::Requester: reminder_state::IsSet, { /// Build the final struct. pub fn build(self) -> Reminder { diff --git a/crates/jacquard-api/src/net_mmatt/vitals/car.rs b/crates/jacquard-api/src/net_mmatt/vitals/car.rs index c64e0529..76d0b399 100644 --- a/crates/jacquard-api/src/net_mmatt/vitals/car.rs +++ b/crates/jacquard-api/src/net_mmatt/vitals/car.rs @@ -128,77 +128,75 @@ pub mod car_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type CarTraveledDistance; type CarFuelRange; type CarPercentFuelRemaining; type AmountRemaining; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type CarTraveledDistance = Unset; type CarFuelRange = Unset; type CarPercentFuelRemaining = Unset; type AmountRemaining = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type CarTraveledDistance = St::CarTraveledDistance; - type CarFuelRange = St::CarFuelRange; - type CarPercentFuelRemaining = St::CarPercentFuelRemaining; - type AmountRemaining = St::AmountRemaining; + type CreatedAt = Unset; } ///State transition - sets the `car_traveled_distance` field to Set pub struct SetCarTraveledDistance(PhantomData St>); impl sealed::Sealed for SetCarTraveledDistance {} impl State for SetCarTraveledDistance { - type CreatedAt = St::CreatedAt; type CarTraveledDistance = Set; type CarFuelRange = St::CarFuelRange; type CarPercentFuelRemaining = St::CarPercentFuelRemaining; type AmountRemaining = St::AmountRemaining; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `car_fuel_range` field to Set pub struct SetCarFuelRange(PhantomData St>); impl sealed::Sealed for SetCarFuelRange {} impl State for SetCarFuelRange { - type CreatedAt = St::CreatedAt; type CarTraveledDistance = St::CarTraveledDistance; type CarFuelRange = Set; type CarPercentFuelRemaining = St::CarPercentFuelRemaining; type AmountRemaining = St::AmountRemaining; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `car_percent_fuel_remaining` field to Set pub struct SetCarPercentFuelRemaining(PhantomData St>); impl sealed::Sealed for SetCarPercentFuelRemaining {} impl State for SetCarPercentFuelRemaining { - type CreatedAt = St::CreatedAt; type CarTraveledDistance = St::CarTraveledDistance; type CarFuelRange = St::CarFuelRange; type CarPercentFuelRemaining = Set; type AmountRemaining = St::AmountRemaining; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `amount_remaining` field to Set pub struct SetAmountRemaining(PhantomData St>); impl sealed::Sealed for SetAmountRemaining {} impl State for SetAmountRemaining { - type CreatedAt = St::CreatedAt; type CarTraveledDistance = St::CarTraveledDistance; type CarFuelRange = St::CarFuelRange; type CarPercentFuelRemaining = St::CarPercentFuelRemaining; type AmountRemaining = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CarTraveledDistance = St::CarTraveledDistance; + type CarFuelRange = St::CarFuelRange; + type CarPercentFuelRemaining = St::CarPercentFuelRemaining; + type AmountRemaining = St::AmountRemaining; + type CreatedAt = 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 `car_traveled_distance` field pub struct car_traveled_distance(()); ///Marker type for the `car_fuel_range` field @@ -207,6 +205,8 @@ pub mod car_state { pub struct car_percent_fuel_remaining(()); ///Marker type for the `amount_remaining` field pub struct amount_remaining(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -381,11 +381,11 @@ where impl CarBuilder where St: car_state::State, - St::CreatedAt: car_state::IsSet, St::CarTraveledDistance: car_state::IsSet, St::CarFuelRange: car_state::IsSet, St::CarPercentFuelRemaining: car_state::IsSet, St::AmountRemaining: car_state::IsSet, + St::CreatedAt: car_state::IsSet, { /// Build the final struct. pub fn build(self) -> Car { diff --git a/crates/jacquard-api/src/network_cosmik/collection_link.rs b/crates/jacquard-api/src/network_cosmik/collection_link.rs index 5b8da641..0815372a 100644 --- a/crates/jacquard-api/src/network_cosmik/collection_link.rs +++ b/crates/jacquard-api/src/network_cosmik/collection_link.rs @@ -129,67 +129,67 @@ pub mod collection_link_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Collection; - type AddedBy; type Card; type AddedAt; + type Collection; + type AddedBy; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Collection = Unset; - type AddedBy = Unset; type Card = Unset; type AddedAt = Unset; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData St>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Collection = Set; - type AddedBy = St::AddedBy; - type Card = St::Card; - type AddedAt = St::AddedAt; - } - ///State transition - sets the `added_by` field to Set - pub struct SetAddedBy(PhantomData St>); - impl sealed::Sealed for SetAddedBy {} - impl State for SetAddedBy { - type Collection = St::Collection; - type AddedBy = Set; - type Card = St::Card; - type AddedAt = St::AddedAt; + type Collection = Unset; + type AddedBy = Unset; } ///State transition - sets the `card` field to Set pub struct SetCard(PhantomData St>); impl sealed::Sealed for SetCard {} impl State for SetCard { - type Collection = St::Collection; - type AddedBy = St::AddedBy; type Card = Set; type AddedAt = St::AddedAt; + type Collection = St::Collection; + type AddedBy = St::AddedBy; } ///State transition - sets the `added_at` field to Set pub struct SetAddedAt(PhantomData St>); impl sealed::Sealed for SetAddedAt {} impl State for SetAddedAt { + type Card = St::Card; + type AddedAt = Set; type Collection = St::Collection; type AddedBy = St::AddedBy; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData St>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { type Card = St::Card; - type AddedAt = Set; + type AddedAt = St::AddedAt; + type Collection = Set; + type AddedBy = St::AddedBy; + } + ///State transition - sets the `added_by` field to Set + pub struct SetAddedBy(PhantomData St>); + impl sealed::Sealed for SetAddedBy {} + impl State for SetAddedBy { + type Card = St::Card; + type AddedAt = St::AddedAt; + type Collection = St::Collection; + type AddedBy = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `collection` field - pub struct collection(()); - ///Marker type for the `added_by` field - pub struct added_by(()); ///Marker type for the `card` field pub struct card(()); ///Marker type for the `added_at` field pub struct added_at(()); + ///Marker type for the `collection` field + pub struct collection(()); + ///Marker type for the `added_by` field + pub struct added_by(()); } } @@ -344,10 +344,10 @@ impl CollectionLinkBuilder { impl CollectionLinkBuilder where St: collection_link_state::State, - St::Collection: collection_link_state::IsSet, - St::AddedBy: collection_link_state::IsSet, St::Card: collection_link_state::IsSet, St::AddedAt: collection_link_state::IsSet, + St::Collection: collection_link_state::IsSet, + St::AddedBy: collection_link_state::IsSet, { /// Build the final struct. pub fn build(self) -> CollectionLink { diff --git a/crates/jacquard-api/src/network_cosmik/collection_link_removal.rs b/crates/jacquard-api/src/network_cosmik/collection_link_removal.rs index ab6ef157..7f6805a1 100644 --- a/crates/jacquard-api/src/network_cosmik/collection_link_removal.rs +++ b/crates/jacquard-api/src/network_cosmik/collection_link_removal.rs @@ -118,51 +118,51 @@ pub mod collection_link_removal_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type RemovedAt; - type Collection; type RemovedLink; + type Collection; + type RemovedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type RemovedAt = Unset; - type Collection = Unset; type RemovedLink = Unset; + type Collection = Unset; + type RemovedAt = Unset; } - ///State transition - sets the `removed_at` field to Set - pub struct SetRemovedAt(PhantomData St>); - impl sealed::Sealed for SetRemovedAt {} - impl State for SetRemovedAt { - type RemovedAt = Set; + ///State transition - sets the `removed_link` field to Set + pub struct SetRemovedLink(PhantomData St>); + impl sealed::Sealed for SetRemovedLink {} + impl State for SetRemovedLink { + type RemovedLink = Set; type Collection = St::Collection; - type RemovedLink = St::RemovedLink; + type RemovedAt = St::RemovedAt; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type RemovedAt = St::RemovedAt; - type Collection = Set; type RemovedLink = St::RemovedLink; - } - ///State transition - sets the `removed_link` field to Set - pub struct SetRemovedLink(PhantomData St>); - impl sealed::Sealed for SetRemovedLink {} - impl State for SetRemovedLink { + type Collection = Set; type RemovedAt = St::RemovedAt; + } + ///State transition - sets the `removed_at` field to Set + pub struct SetRemovedAt(PhantomData St>); + impl sealed::Sealed for SetRemovedAt {} + impl State for SetRemovedAt { + type RemovedLink = St::RemovedLink; type Collection = St::Collection; - type RemovedLink = Set; + type RemovedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `removed_at` field - pub struct removed_at(()); - ///Marker type for the `collection` field - pub struct collection(()); ///Marker type for the `removed_link` field pub struct removed_link(()); + ///Marker type for the `collection` field + pub struct collection(()); + ///Marker type for the `removed_at` field + pub struct removed_at(()); } } @@ -266,9 +266,9 @@ where impl CollectionLinkRemovalBuilder where St: collection_link_removal_state::State, - St::RemovedAt: collection_link_removal_state::IsSet, - St::Collection: collection_link_removal_state::IsSet, St::RemovedLink: collection_link_removal_state::IsSet, + St::Collection: collection_link_removal_state::IsSet, + St::RemovedAt: collection_link_removal_state::IsSet, { /// Build the final struct. pub fn build(self) -> CollectionLinkRemoval { diff --git a/crates/jacquard-api/src/network_cosmik/connection.rs b/crates/jacquard-api/src/network_cosmik/connection.rs index e5ca03ff..938d4878 100644 --- a/crates/jacquard-api/src/network_cosmik/connection.rs +++ b/crates/jacquard-api/src/network_cosmik/connection.rs @@ -136,37 +136,37 @@ pub mod connection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Source; type Target; + type Source; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Source = Unset; type Target = Unset; - } - ///State transition - sets the `source` field to Set - pub struct SetSource(PhantomData St>); - impl sealed::Sealed for SetSource {} - impl State for SetSource { - type Source = Set; - type Target = St::Target; + type Source = Unset; } ///State transition - sets the `target` field to Set pub struct SetTarget(PhantomData St>); impl sealed::Sealed for SetTarget {} impl State for SetTarget { - type Source = St::Source; type Target = Set; + type Source = St::Source; + } + ///State transition - sets the `source` field to Set + pub struct SetSource(PhantomData St>); + impl sealed::Sealed for SetSource {} + impl State for SetSource { + type Target = St::Target; + type Source = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `source` field - pub struct source(()); ///Marker type for the `target` field pub struct target(()); + ///Marker type for the `source` field + pub struct source(()); } } @@ -295,8 +295,8 @@ impl ConnectionBuilder { impl ConnectionBuilder where St: connection_state::State, - St::Source: connection_state::IsSet, St::Target: connection_state::IsSet, + St::Source: connection_state::IsSet, { /// Build the final struct. pub fn build(self) -> Connection { diff --git a/crates/jacquard-api/src/network_slices/actor.rs b/crates/jacquard-api/src/network_slices/actor.rs index 3e584b0a..837292dc 100644 --- a/crates/jacquard-api/src/network_slices/actor.rs +++ b/crates/jacquard-api/src/network_slices/actor.rs @@ -113,37 +113,37 @@ pub mod profile_view_basic_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Handle; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Handle = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = St::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = St::Did; type Handle = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = St::Handle; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -252,8 +252,8 @@ where impl ProfileViewBasicBuilder where St: profile_view_basic_state::State, - St::Did: profile_view_basic_state::IsSet, St::Handle: profile_view_basic_state::IsSet, + St::Did: profile_view_basic_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProfileViewBasic { diff --git a/crates/jacquard-api/src/network_slices/lexicon.rs b/crates/jacquard-api/src/network_slices/lexicon.rs index 9d14ab56..e7fb03a1 100644 --- a/crates/jacquard-api/src/network_slices/lexicon.rs +++ b/crates/jacquard-api/src/network_slices/lexicon.rs @@ -152,65 +152,65 @@ pub mod lexicon_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Nsid; type Definitions; type CreatedAt; - type Nsid; type Slice; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Nsid = Unset; type Definitions = Unset; type CreatedAt = Unset; - type Nsid = Unset; type Slice = Unset; } + ///State transition - sets the `nsid` field to Set + pub struct SetNsid(PhantomData St>); + impl sealed::Sealed for SetNsid {} + impl State for SetNsid { + type Nsid = Set; + type Definitions = St::Definitions; + type CreatedAt = St::CreatedAt; + type Slice = St::Slice; + } ///State transition - sets the `definitions` field to Set pub struct SetDefinitions(PhantomData St>); impl sealed::Sealed for SetDefinitions {} impl State for SetDefinitions { + type Nsid = St::Nsid; type Definitions = Set; type CreatedAt = St::CreatedAt; - type Nsid = St::Nsid; type Slice = St::Slice; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Definitions = St::Definitions; - type CreatedAt = Set; type Nsid = St::Nsid; - type Slice = St::Slice; - } - ///State transition - sets the `nsid` field to Set - pub struct SetNsid(PhantomData St>); - impl sealed::Sealed for SetNsid {} - impl State for SetNsid { type Definitions = St::Definitions; - type CreatedAt = St::CreatedAt; - type Nsid = Set; + type CreatedAt = Set; type Slice = St::Slice; } ///State transition - sets the `slice` field to Set pub struct SetSlice(PhantomData St>); impl sealed::Sealed for SetSlice {} impl State for SetSlice { + type Nsid = St::Nsid; type Definitions = St::Definitions; type CreatedAt = St::CreatedAt; - type Nsid = St::Nsid; type Slice = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `nsid` field + pub struct nsid(()); ///Marker type for the `definitions` field pub struct definitions(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `nsid` field - pub struct nsid(()); ///Marker type for the `slice` field pub struct slice(()); } @@ -367,9 +367,9 @@ impl LexiconBuilder { impl LexiconBuilder where St: lexicon_state::State, + St::Nsid: lexicon_state::IsSet, St::Definitions: lexicon_state::IsSet, St::CreatedAt: lexicon_state::IsSet, - St::Nsid: lexicon_state::IsSet, St::Slice: lexicon_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/network_slices/slice.rs b/crates/jacquard-api/src/network_slices/slice.rs index 16ae480f..debe131c 100644 --- a/crates/jacquard-api/src/network_slices/slice.rs +++ b/crates/jacquard-api/src/network_slices/slice.rs @@ -476,105 +476,105 @@ pub mod slice_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; - type Domain; type Name; + type Uri; + type Domain; + type Cid; type Creator; type CreatedAt; - type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; - type Domain = Unset; type Name = Unset; + type Uri = Unset; + type Domain = Unset; + type Cid = Unset; type Creator = Unset; type CreatedAt = Unset; - type Uri = Unset; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Name = Set; + type Uri = St::Uri; type Domain = St::Domain; + type Cid = St::Cid; + type Creator = St::Creator; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type Name = St::Name; + type Uri = Set; + type Domain = St::Domain; + type Cid = St::Cid; type Creator = St::Creator; type CreatedAt = St::CreatedAt; - type Uri = St::Uri; } ///State transition - sets the `domain` field to Set pub struct SetDomain(PhantomData St>); impl sealed::Sealed for SetDomain {} impl State for SetDomain { - type Cid = St::Cid; - type Domain = Set; type Name = St::Name; + type Uri = St::Uri; + type Domain = Set; + type Cid = St::Cid; type Creator = St::Creator; type CreatedAt = St::CreatedAt; - type Uri = St::Uri; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Cid = St::Cid; + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Name = St::Name; + type Uri = St::Uri; type Domain = St::Domain; - type Name = Set; + type Cid = Set; type Creator = St::Creator; type CreatedAt = St::CreatedAt; - type Uri = St::Uri; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData St>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Cid = St::Cid; - type Domain = St::Domain; type Name = St::Name; + type Uri = St::Uri; + type Domain = St::Domain; + type Cid = St::Cid; type Creator = Set; type CreatedAt = St::CreatedAt; - type Uri = St::Uri; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Cid = St::Cid; - type Domain = St::Domain; type Name = St::Name; - type Creator = St::Creator; - type CreatedAt = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Cid = St::Cid; type Domain = St::Domain; - type Name = St::Name; + type Cid = St::Cid; type Creator = St::Creator; - type CreatedAt = St::CreatedAt; - type Uri = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); - ///Marker type for the `domain` field - pub struct domain(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `domain` field + pub struct domain(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `creator` field pub struct creator(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `uri` field - pub struct uri(()); } } @@ -830,12 +830,12 @@ impl SliceViewBuilder { impl SliceViewBuilder where St: slice_view_state::State, - St::Cid: slice_view_state::IsSet, - St::Domain: slice_view_state::IsSet, St::Name: slice_view_state::IsSet, + St::Uri: slice_view_state::IsSet, + St::Domain: slice_view_state::IsSet, + St::Cid: slice_view_state::IsSet, St::Creator: slice_view_state::IsSet, St::CreatedAt: slice_view_state::IsSet, - St::Uri: slice_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> SliceView { @@ -1049,37 +1049,37 @@ pub mod sparkline_point_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Count; type Timestamp; + type Count; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Count = Unset; type Timestamp = Unset; - } - ///State transition - sets the `count` field to Set - pub struct SetCount(PhantomData St>); - impl sealed::Sealed for SetCount {} - impl State for SetCount { - type Count = Set; - type Timestamp = St::Timestamp; + type Count = Unset; } ///State transition - sets the `timestamp` field to Set pub struct SetTimestamp(PhantomData St>); impl sealed::Sealed for SetTimestamp {} impl State for SetTimestamp { - type Count = St::Count; type Timestamp = Set; + type Count = St::Count; + } + ///State transition - sets the `count` field to Set + pub struct SetCount(PhantomData St>); + impl sealed::Sealed for SetCount {} + impl State for SetCount { + type Timestamp = St::Timestamp; + type Count = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `count` field - pub struct count(()); ///Marker type for the `timestamp` field pub struct timestamp(()); + ///Marker type for the `count` field + pub struct count(()); } } @@ -1149,8 +1149,8 @@ where impl SparklinePointBuilder where St: sparkline_point_state::State, - St::Count: sparkline_point_state::IsSet, St::Timestamp: sparkline_point_state::IsSet, + St::Count: sparkline_point_state::IsSet, { /// Build the final struct. pub fn build(self) -> SparklinePoint { diff --git a/crates/jacquard-api/src/network_slices/slice/create_o_auth_client.rs b/crates/jacquard-api/src/network_slices/slice/create_o_auth_client.rs index 8cd13fc2..1b8322be 100644 --- a/crates/jacquard-api/src/network_slices/slice/create_o_auth_client.rs +++ b/crates/jacquard-api/src/network_slices/slice/create_o_auth_client.rs @@ -100,51 +100,51 @@ pub mod create_o_auth_client_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ClientName; type SliceUri; type RedirectUris; + type ClientName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ClientName = Unset; type SliceUri = Unset; type RedirectUris = Unset; - } - ///State transition - sets the `client_name` field to Set - pub struct SetClientName(PhantomData St>); - impl sealed::Sealed for SetClientName {} - impl State for SetClientName { - type ClientName = Set; - type SliceUri = St::SliceUri; - type RedirectUris = St::RedirectUris; + type ClientName = Unset; } ///State transition - sets the `slice_uri` field to Set pub struct SetSliceUri(PhantomData St>); impl sealed::Sealed for SetSliceUri {} impl State for SetSliceUri { - type ClientName = St::ClientName; type SliceUri = Set; type RedirectUris = St::RedirectUris; + type ClientName = St::ClientName; } ///State transition - sets the `redirect_uris` field to Set pub struct SetRedirectUris(PhantomData St>); impl sealed::Sealed for SetRedirectUris {} impl State for SetRedirectUris { - type ClientName = St::ClientName; type SliceUri = St::SliceUri; type RedirectUris = Set; + type ClientName = St::ClientName; + } + ///State transition - sets the `client_name` field to Set + pub struct SetClientName(PhantomData St>); + impl sealed::Sealed for SetClientName {} + impl State for SetClientName { + type SliceUri = St::SliceUri; + type RedirectUris = St::RedirectUris; + type ClientName = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `client_name` field - pub struct client_name(()); ///Marker type for the `slice_uri` field pub struct slice_uri(()); ///Marker type for the `redirect_uris` field pub struct redirect_uris(()); + ///Marker type for the `client_name` field + pub struct client_name(()); } } @@ -335,9 +335,9 @@ impl CreateOAuthClientBuilder< impl CreateOAuthClientBuilder where St: create_o_auth_client_state::State, - St::ClientName: create_o_auth_client_state::IsSet, St::SliceUri: create_o_auth_client_state::IsSet, St::RedirectUris: create_o_auth_client_state::IsSet, + St::ClientName: create_o_auth_client_state::IsSet, { /// Build the final struct. pub fn build(self) -> CreateOAuthClient { diff --git a/crates/jacquard-api/src/network_slices/slice/get_job_logs.rs b/crates/jacquard-api/src/network_slices/slice/get_job_logs.rs index 884ac12c..cd79a84a 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_job_logs.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_job_logs.rs @@ -124,75 +124,77 @@ pub mod log_entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Id; type LogType; type CreatedAt; type Level; type Message; - type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Id = Unset; type LogType = Unset; type CreatedAt = Unset; type Level = Unset; type Message = Unset; - type Id = Unset; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Id = Set; + type LogType = St::LogType; + type CreatedAt = St::CreatedAt; + type Level = St::Level; + type Message = St::Message; } ///State transition - sets the `log_type` field to Set pub struct SetLogType(PhantomData St>); impl sealed::Sealed for SetLogType {} impl State for SetLogType { + type Id = St::Id; type LogType = Set; type CreatedAt = St::CreatedAt; type Level = St::Level; type Message = St::Message; - type Id = St::Id; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Id = St::Id; type LogType = St::LogType; type CreatedAt = Set; type Level = St::Level; type Message = St::Message; - type Id = St::Id; } ///State transition - sets the `level` field to Set pub struct SetLevel(PhantomData St>); impl sealed::Sealed for SetLevel {} impl State for SetLevel { + type Id = St::Id; type LogType = St::LogType; type CreatedAt = St::CreatedAt; type Level = Set; type Message = St::Message; - type Id = St::Id; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData St>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type LogType = St::LogType; - type CreatedAt = St::CreatedAt; - type Level = St::Level; - type Message = Set; type Id = St::Id; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { type LogType = St::LogType; type CreatedAt = St::CreatedAt; type Level = St::Level; - type Message = St::Message; - type Id = Set; + type Message = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `log_type` field pub struct log_type(()); ///Marker type for the `created_at` field @@ -201,8 +203,6 @@ pub mod log_entry_state { pub struct level(()); ///Marker type for the `message` field pub struct message(()); - ///Marker type for the `id` field - pub struct id(()); } } @@ -391,11 +391,11 @@ impl LogEntryBuilder { impl LogEntryBuilder where St: log_entry_state::State, + St::Id: log_entry_state::IsSet, St::LogType: log_entry_state::IsSet, St::CreatedAt: log_entry_state::IsSet, St::Level: log_entry_state::IsSet, St::Message: log_entry_state::IsSet, - St::Id: log_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> LogEntry { diff --git a/crates/jacquard-api/src/network_slices/slice/get_job_status.rs b/crates/jacquard-api/src/network_slices/slice/get_job_status.rs index 4c375bef..48f9d575 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_job_status.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_job_status.rs @@ -154,8 +154,8 @@ pub mod job_status_state { pub trait State: sealed::Sealed { type Status; type RetryCount; - type JobId; type CreatedAt; + type JobId; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -163,8 +163,8 @@ pub mod job_status_state { impl State for Empty { type Status = Unset; type RetryCount = Unset; - type JobId = Unset; type CreatedAt = Unset; + type JobId = Unset; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); @@ -172,8 +172,8 @@ pub mod job_status_state { impl State for SetStatus { type Status = Set; type RetryCount = St::RetryCount; - type JobId = St::JobId; type CreatedAt = St::CreatedAt; + type JobId = St::JobId; } ///State transition - sets the `retry_count` field to Set pub struct SetRetryCount(PhantomData St>); @@ -181,17 +181,8 @@ pub mod job_status_state { impl State for SetRetryCount { type Status = St::Status; type RetryCount = Set; - type JobId = St::JobId; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `job_id` field to Set - pub struct SetJobId(PhantomData St>); - impl sealed::Sealed for SetJobId {} - impl State for SetJobId { - type Status = St::Status; - type RetryCount = St::RetryCount; - type JobId = Set; type CreatedAt = St::CreatedAt; + type JobId = St::JobId; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); @@ -199,8 +190,17 @@ pub mod job_status_state { impl State for SetCreatedAt { type Status = St::Status; type RetryCount = St::RetryCount; - type JobId = St::JobId; type CreatedAt = Set; + type JobId = St::JobId; + } + ///State transition - sets the `job_id` field to Set + pub struct SetJobId(PhantomData St>); + impl sealed::Sealed for SetJobId {} + impl State for SetJobId { + type Status = St::Status; + type RetryCount = St::RetryCount; + type CreatedAt = St::CreatedAt; + type JobId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -209,10 +209,10 @@ pub mod job_status_state { pub struct status(()); ///Marker type for the `retry_count` field pub struct retry_count(()); - ///Marker type for the `job_id` field - pub struct job_id(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `job_id` field + pub struct job_id(()); } } @@ -389,8 +389,8 @@ where St: job_status_state::State, St::Status: job_status_state::IsSet, St::RetryCount: job_status_state::IsSet, - St::JobId: job_status_state::IsSet, St::CreatedAt: job_status_state::IsSet, + St::JobId: job_status_state::IsSet, { /// Build the final struct. pub fn build(self) -> JobStatus { @@ -716,83 +716,83 @@ pub mod sync_job_result_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CollectionsSynced; - type TotalRecords; - type Success; type Message; + type Success; + type TotalRecords; + type CollectionsSynced; type ReposProcessed; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CollectionsSynced = Unset; - type TotalRecords = Unset; - type Success = Unset; type Message = Unset; + type Success = Unset; + type TotalRecords = Unset; + type CollectionsSynced = Unset; type ReposProcessed = Unset; } - ///State transition - sets the `collections_synced` field to Set - pub struct SetCollectionsSynced(PhantomData St>); - impl sealed::Sealed for SetCollectionsSynced {} - impl State for SetCollectionsSynced { - type CollectionsSynced = Set; - type TotalRecords = St::TotalRecords; + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData St>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; type Success = St::Success; - type Message = St::Message; - type ReposProcessed = St::ReposProcessed; - } - ///State transition - sets the `total_records` field to Set - pub struct SetTotalRecords(PhantomData St>); - impl sealed::Sealed for SetTotalRecords {} - impl State for SetTotalRecords { + type TotalRecords = St::TotalRecords; type CollectionsSynced = St::CollectionsSynced; - type TotalRecords = Set; - type Success = St::Success; - type Message = St::Message; type ReposProcessed = St::ReposProcessed; } ///State transition - sets the `success` field to Set pub struct SetSuccess(PhantomData St>); impl sealed::Sealed for SetSuccess {} impl State for SetSuccess { - type CollectionsSynced = St::CollectionsSynced; - type TotalRecords = St::TotalRecords; - type Success = Set; type Message = St::Message; + type Success = Set; + type TotalRecords = St::TotalRecords; + type CollectionsSynced = St::CollectionsSynced; type ReposProcessed = St::ReposProcessed; } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData St>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { + ///State transition - sets the `total_records` field to Set + pub struct SetTotalRecords(PhantomData St>); + impl sealed::Sealed for SetTotalRecords {} + impl State for SetTotalRecords { + type Message = St::Message; + type Success = St::Success; + type TotalRecords = Set; type CollectionsSynced = St::CollectionsSynced; - type TotalRecords = St::TotalRecords; + type ReposProcessed = St::ReposProcessed; + } + ///State transition - sets the `collections_synced` field to Set + pub struct SetCollectionsSynced(PhantomData St>); + impl sealed::Sealed for SetCollectionsSynced {} + impl State for SetCollectionsSynced { + type Message = St::Message; type Success = St::Success; - type Message = Set; + type TotalRecords = St::TotalRecords; + type CollectionsSynced = Set; type ReposProcessed = St::ReposProcessed; } ///State transition - sets the `repos_processed` field to Set pub struct SetReposProcessed(PhantomData St>); impl sealed::Sealed for SetReposProcessed {} impl State for SetReposProcessed { - type CollectionsSynced = St::CollectionsSynced; - type TotalRecords = St::TotalRecords; - type Success = St::Success; type Message = St::Message; + type Success = St::Success; + type TotalRecords = St::TotalRecords; + type CollectionsSynced = St::CollectionsSynced; type ReposProcessed = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `collections_synced` field - pub struct collections_synced(()); - ///Marker type for the `total_records` field - pub struct total_records(()); - ///Marker type for the `success` field - pub struct success(()); ///Marker type for the `message` field pub struct message(()); + ///Marker type for the `success` field + pub struct success(()); + ///Marker type for the `total_records` field + pub struct total_records(()); + ///Marker type for the `collections_synced` field + pub struct collections_synced(()); ///Marker type for the `repos_processed` field pub struct repos_processed(()); } @@ -921,10 +921,10 @@ where impl SyncJobResultBuilder where St: sync_job_result_state::State, - St::CollectionsSynced: sync_job_result_state::IsSet, - St::TotalRecords: sync_job_result_state::IsSet, - St::Success: sync_job_result_state::IsSet, St::Message: sync_job_result_state::IsSet, + St::Success: sync_job_result_state::IsSet, + St::TotalRecords: sync_job_result_state::IsSet, + St::CollectionsSynced: sync_job_result_state::IsSet, St::ReposProcessed: sync_job_result_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/network_slices/slice/get_o_auth_clients.rs b/crates/jacquard-api/src/network_slices/slice/get_o_auth_clients.rs index db7026f5..a3a2750d 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_o_auth_clients.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_o_auth_clients.rs @@ -219,127 +219,127 @@ pub mod oauth_client_details_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedByDid; type ClientName; + type CreatedByDid; + type ResponseTypes; + type GrantTypes; type ClientId; type RedirectUris; - type GrantTypes; type CreatedAt; - type ResponseTypes; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedByDid = Unset; type ClientName = Unset; + type CreatedByDid = Unset; + type ResponseTypes = Unset; + type GrantTypes = Unset; type ClientId = Unset; type RedirectUris = Unset; - type GrantTypes = Unset; type CreatedAt = Unset; - type ResponseTypes = Unset; + } + ///State transition - sets the `client_name` field to Set + pub struct SetClientName(PhantomData St>); + impl sealed::Sealed for SetClientName {} + impl State for SetClientName { + type ClientName = Set; + type CreatedByDid = St::CreatedByDid; + type ResponseTypes = St::ResponseTypes; + type GrantTypes = St::GrantTypes; + type ClientId = St::ClientId; + type RedirectUris = St::RedirectUris; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_by_did` field to Set pub struct SetCreatedByDid(PhantomData St>); impl sealed::Sealed for SetCreatedByDid {} impl State for SetCreatedByDid { - type CreatedByDid = Set; type ClientName = St::ClientName; + type CreatedByDid = Set; + type ResponseTypes = St::ResponseTypes; + type GrantTypes = St::GrantTypes; type ClientId = St::ClientId; type RedirectUris = St::RedirectUris; - type GrantTypes = St::GrantTypes; type CreatedAt = St::CreatedAt; - type ResponseTypes = St::ResponseTypes; } - ///State transition - sets the `client_name` field to Set - pub struct SetClientName(PhantomData St>); - impl sealed::Sealed for SetClientName {} - impl State for SetClientName { + ///State transition - sets the `response_types` field to Set + pub struct SetResponseTypes(PhantomData St>); + impl sealed::Sealed for SetResponseTypes {} + impl State for SetResponseTypes { + type ClientName = St::ClientName; type CreatedByDid = St::CreatedByDid; - type ClientName = Set; + type ResponseTypes = Set; + type GrantTypes = St::GrantTypes; type ClientId = St::ClientId; type RedirectUris = St::RedirectUris; - type GrantTypes = St::GrantTypes; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `grant_types` field to Set + pub struct SetGrantTypes(PhantomData St>); + impl sealed::Sealed for SetGrantTypes {} + impl State for SetGrantTypes { + type ClientName = St::ClientName; + type CreatedByDid = St::CreatedByDid; type ResponseTypes = St::ResponseTypes; + type GrantTypes = Set; + type ClientId = St::ClientId; + type RedirectUris = St::RedirectUris; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `client_id` field to Set pub struct SetClientId(PhantomData St>); impl sealed::Sealed for SetClientId {} impl State for SetClientId { - type CreatedByDid = St::CreatedByDid; type ClientName = St::ClientName; + type CreatedByDid = St::CreatedByDid; + type ResponseTypes = St::ResponseTypes; + type GrantTypes = St::GrantTypes; type ClientId = Set; type RedirectUris = St::RedirectUris; - type GrantTypes = St::GrantTypes; type CreatedAt = St::CreatedAt; - type ResponseTypes = St::ResponseTypes; } ///State transition - sets the `redirect_uris` field to Set pub struct SetRedirectUris(PhantomData St>); impl sealed::Sealed for SetRedirectUris {} impl State for SetRedirectUris { - type CreatedByDid = St::CreatedByDid; type ClientName = St::ClientName; - type ClientId = St::ClientId; - type RedirectUris = Set; - type GrantTypes = St::GrantTypes; - type CreatedAt = St::CreatedAt; - type ResponseTypes = St::ResponseTypes; - } - ///State transition - sets the `grant_types` field to Set - pub struct SetGrantTypes(PhantomData St>); - impl sealed::Sealed for SetGrantTypes {} - impl State for SetGrantTypes { type CreatedByDid = St::CreatedByDid; - type ClientName = St::ClientName; + type ResponseTypes = St::ResponseTypes; + type GrantTypes = St::GrantTypes; type ClientId = St::ClientId; - type RedirectUris = St::RedirectUris; - type GrantTypes = Set; + type RedirectUris = Set; type CreatedAt = St::CreatedAt; - type ResponseTypes = St::ResponseTypes; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type CreatedByDid = St::CreatedByDid; type ClientName = St::ClientName; - type ClientId = St::ClientId; - type RedirectUris = St::RedirectUris; - type GrantTypes = St::GrantTypes; - type CreatedAt = Set; - type ResponseTypes = St::ResponseTypes; - } - ///State transition - sets the `response_types` field to Set - pub struct SetResponseTypes(PhantomData St>); - impl sealed::Sealed for SetResponseTypes {} - impl State for SetResponseTypes { type CreatedByDid = St::CreatedByDid; - type ClientName = St::ClientName; + type ResponseTypes = St::ResponseTypes; + type GrantTypes = St::GrantTypes; type ClientId = St::ClientId; type RedirectUris = St::RedirectUris; - type GrantTypes = St::GrantTypes; - type CreatedAt = St::CreatedAt; - type ResponseTypes = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `created_by_did` field - pub struct created_by_did(()); ///Marker type for the `client_name` field pub struct client_name(()); + ///Marker type for the `created_by_did` field + pub struct created_by_did(()); + ///Marker type for the `response_types` field + pub struct response_types(()); + ///Marker type for the `grant_types` field + pub struct grant_types(()); ///Marker type for the `client_id` field pub struct client_id(()); ///Marker type for the `redirect_uris` field pub struct redirect_uris(()); - ///Marker type for the `grant_types` field - pub struct grant_types(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `response_types` field - pub struct response_types(()); } } @@ -610,13 +610,13 @@ impl OauthClientDetailsBuilder impl OauthClientDetailsBuilder where St: oauth_client_details_state::State, - St::CreatedByDid: oauth_client_details_state::IsSet, 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::GrantTypes: oauth_client_details_state::IsSet, St::CreatedAt: oauth_client_details_state::IsSet, - St::ResponseTypes: oauth_client_details_state::IsSet, { /// Build the final struct. pub fn build(self) -> OauthClientDetails { diff --git a/crates/jacquard-api/src/network_slices/slice/get_slice_records.rs b/crates/jacquard-api/src/network_slices/slice/get_slice_records.rs index c722e89d..b80d9ac3 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_slice_records.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_slice_records.rs @@ -133,105 +133,105 @@ pub mod indexed_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; type Value; + type IndexedAt; type Cid; type Did; type Collection; - type Uri; - type IndexedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; type Value = Unset; + type IndexedAt = Unset; type Cid = Unset; type Did = Unset; type Collection = Unset; - type Uri = Unset; - type IndexedAt = Unset; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; + type Value = St::Value; + type IndexedAt = St::IndexedAt; + type Cid = St::Cid; + type Did = St::Did; + type Collection = St::Collection; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { + type Uri = St::Uri; type Value = Set; + type IndexedAt = St::IndexedAt; type Cid = St::Cid; type Did = St::Did; type Collection = St::Collection; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { type Uri = St::Uri; - type IndexedAt = St::IndexedAt; + type Value = St::Value; + type IndexedAt = Set; + type Cid = St::Cid; + type Did = St::Did; + type Collection = St::Collection; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Uri = St::Uri; type Value = St::Value; + type IndexedAt = St::IndexedAt; type Cid = Set; type Did = St::Did; type Collection = St::Collection; - type Uri = St::Uri; - type IndexedAt = St::IndexedAt; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { + type Uri = St::Uri; type Value = St::Value; + type IndexedAt = St::IndexedAt; type Cid = St::Cid; type Did = Set; type Collection = St::Collection; - type Uri = St::Uri; - type IndexedAt = St::IndexedAt; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Value = St::Value; - type Cid = St::Cid; - type Did = St::Did; - type Collection = Set; type Uri = St::Uri; - type IndexedAt = St::IndexedAt; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Value = St::Value; - type Cid = St::Cid; - type Did = St::Did; - type Collection = St::Collection; - type Uri = Set; type IndexedAt = St::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type Value = St::Value; type Cid = St::Cid; type Did = St::Did; - type Collection = St::Collection; - type Uri = St::Uri; - type IndexedAt = Set; + type Collection = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `cid` field pub struct cid(()); ///Marker type for the `did` field pub struct did(()); ///Marker type for the `collection` field pub struct collection(()); - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); } } @@ -384,12 +384,12 @@ where impl IndexedRecordBuilder where St: indexed_record_state::State, + St::Uri: indexed_record_state::IsSet, St::Value: indexed_record_state::IsSet, + St::IndexedAt: indexed_record_state::IsSet, St::Cid: indexed_record_state::IsSet, St::Did: indexed_record_state::IsSet, St::Collection: indexed_record_state::IsSet, - St::Uri: indexed_record_state::IsSet, - St::IndexedAt: indexed_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> IndexedRecord { diff --git a/crates/jacquard-api/src/network_slices/slice/get_sparklines.rs b/crates/jacquard-api/src/network_slices/slice/get_sparklines.rs index 194d5652..fc105b6c 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_sparklines.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_sparklines.rs @@ -256,37 +256,37 @@ pub mod sparkline_entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Points; type SliceUri; + type Points; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Points = Unset; type SliceUri = Unset; - } - ///State transition - sets the `points` field to Set - pub struct SetPoints(PhantomData St>); - impl sealed::Sealed for SetPoints {} - impl State for SetPoints { - type Points = Set; - type SliceUri = St::SliceUri; + type Points = Unset; } ///State transition - sets the `slice_uri` field to Set pub struct SetSliceUri(PhantomData St>); impl sealed::Sealed for SetSliceUri {} impl State for SetSliceUri { - type Points = St::Points; type SliceUri = Set; + type Points = St::Points; + } + ///State transition - sets the `points` field to Set + pub struct SetPoints(PhantomData St>); + impl sealed::Sealed for SetPoints {} + impl State for SetPoints { + type SliceUri = St::SliceUri; + type Points = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `points` field - pub struct points(()); ///Marker type for the `slice_uri` field pub struct slice_uri(()); + ///Marker type for the `points` field + pub struct points(()); } } @@ -356,8 +356,8 @@ where impl SparklineEntryBuilder where St: sparkline_entry_state::State, - St::Points: sparkline_entry_state::IsSet, St::SliceUri: sparkline_entry_state::IsSet, + St::Points: sparkline_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> SparklineEntry { diff --git a/crates/jacquard-api/src/network_slices/slice/get_sync_summary.rs b/crates/jacquard-api/src/network_slices/slice/get_sync_summary.rs index 0ea858d1..24004c38 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_sync_summary.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_sync_summary.rs @@ -114,51 +114,51 @@ pub mod collection_summary_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type EstimatedRepos; type IsExternal; type Collection; - type EstimatedRepos; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type EstimatedRepos = Unset; type IsExternal = Unset; type Collection = Unset; - type EstimatedRepos = Unset; + } + ///State transition - sets the `estimated_repos` field to Set + pub struct SetEstimatedRepos(PhantomData St>); + impl sealed::Sealed for SetEstimatedRepos {} + impl State for SetEstimatedRepos { + type EstimatedRepos = Set; + type IsExternal = St::IsExternal; + type Collection = St::Collection; } ///State transition - sets the `is_external` field to Set pub struct SetIsExternal(PhantomData St>); impl sealed::Sealed for SetIsExternal {} impl State for SetIsExternal { + type EstimatedRepos = St::EstimatedRepos; type IsExternal = Set; type Collection = St::Collection; - type EstimatedRepos = St::EstimatedRepos; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type IsExternal = St::IsExternal; - type Collection = Set; type EstimatedRepos = St::EstimatedRepos; - } - ///State transition - sets the `estimated_repos` field to Set - pub struct SetEstimatedRepos(PhantomData St>); - impl sealed::Sealed for SetEstimatedRepos {} - impl State for SetEstimatedRepos { type IsExternal = St::IsExternal; - type Collection = St::Collection; - type EstimatedRepos = Set; + type Collection = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `estimated_repos` field + pub struct estimated_repos(()); ///Marker type for the `is_external` field pub struct is_external(()); ///Marker type for the `collection` field pub struct collection(()); - ///Marker type for the `estimated_repos` field - pub struct estimated_repos(()); } } @@ -247,9 +247,9 @@ where impl CollectionSummaryBuilder where St: collection_summary_state::State, + St::EstimatedRepos: collection_summary_state::IsSet, St::IsExternal: collection_summary_state::IsSet, St::Collection: collection_summary_state::IsSet, - St::EstimatedRepos: collection_summary_state::IsSet, { /// Build the final struct. pub fn build(self) -> CollectionSummary { diff --git a/crates/jacquard-api/src/network_slices/slice/stats.rs b/crates/jacquard-api/src/network_slices/slice/stats.rs index 0d16b26a..765b748a 100644 --- a/crates/jacquard-api/src/network_slices/slice/stats.rs +++ b/crates/jacquard-api/src/network_slices/slice/stats.rs @@ -114,50 +114,50 @@ pub mod collection_stats_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Collection; - type RecordCount; type UniqueActors; + type RecordCount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Collection = Unset; - type RecordCount = Unset; type UniqueActors = Unset; + type RecordCount = Unset; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { type Collection = Set; - type RecordCount = St::RecordCount; - type UniqueActors = St::UniqueActors; - } - ///State transition - sets the `record_count` field to Set - pub struct SetRecordCount(PhantomData St>); - impl sealed::Sealed for SetRecordCount {} - impl State for SetRecordCount { - type Collection = St::Collection; - type RecordCount = Set; type UniqueActors = St::UniqueActors; + type RecordCount = St::RecordCount; } ///State transition - sets the `unique_actors` field to Set pub struct SetUniqueActors(PhantomData St>); impl sealed::Sealed for SetUniqueActors {} impl State for SetUniqueActors { type Collection = St::Collection; - type RecordCount = St::RecordCount; type UniqueActors = Set; + type RecordCount = St::RecordCount; + } + ///State transition - sets the `record_count` field to Set + pub struct SetRecordCount(PhantomData St>); + impl sealed::Sealed for SetRecordCount {} + impl State for SetRecordCount { + type Collection = St::Collection; + type UniqueActors = St::UniqueActors; + type RecordCount = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `collection` field pub struct collection(()); - ///Marker type for the `record_count` field - pub struct record_count(()); ///Marker type for the `unique_actors` field pub struct unique_actors(()); + ///Marker type for the `record_count` field + pub struct record_count(()); } } @@ -247,8 +247,8 @@ impl CollectionStatsBuilder where St: collection_stats_state::State, St::Collection: collection_stats_state::IsSet, - St::RecordCount: collection_stats_state::IsSet, St::UniqueActors: collection_stats_state::IsSet, + St::RecordCount: collection_stats_state::IsSet, { /// Build the final struct. pub fn build(self) -> CollectionStats { diff --git a/crates/jacquard-api/src/network_slices/tools.rs b/crates/jacquard-api/src/network_slices/tools.rs index f9faa41d..5584d9e0 100644 --- a/crates/jacquard-api/src/network_slices/tools.rs +++ b/crates/jacquard-api/src/network_slices/tools.rs @@ -141,37 +141,37 @@ pub mod image_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Image; type Alt; + type Image; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Image = Unset; type Alt = Unset; - } - ///State transition - sets the `image` field to Set - pub struct SetImage(PhantomData St>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type Alt = St::Alt; + type Image = Unset; } ///State transition - sets the `alt` field to Set pub struct SetAlt(PhantomData St>); impl sealed::Sealed for SetAlt {} impl State for SetAlt { - type Image = St::Image; type Alt = Set; + type Image = St::Image; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData St>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type Alt = St::Alt; + type Image = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `image` field - pub struct image(()); ///Marker type for the `alt` field pub struct alt(()); + ///Marker type for the `image` field + pub struct image(()); } } @@ -241,8 +241,8 @@ where impl ImageBuilder where St: image_state::State, - St::Image: image_state::IsSet, St::Alt: image_state::IsSet, + St::Image: image_state::IsSet, { /// Build the final struct. pub fn build(self) -> Image { diff --git a/crates/jacquard-api/src/network_slices/tools/bug.rs b/crates/jacquard-api/src/network_slices/tools/bug.rs index 8cdb97f5..f404499c 100644 --- a/crates/jacquard-api/src/network_slices/tools/bug.rs +++ b/crates/jacquard-api/src/network_slices/tools/bug.rs @@ -301,105 +301,105 @@ pub mod bug_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Namespace; + type Title; type Severity; type CreatedAt; type StepsToReproduce; - type Title; type Description; - type Namespace; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Namespace = Unset; + type Title = Unset; type Severity = Unset; type CreatedAt = Unset; type StepsToReproduce = Unset; - type Title = Unset; type Description = Unset; - type Namespace = Unset; + } + ///State transition - sets the `namespace` field to Set + pub struct SetNamespace(PhantomData St>); + impl sealed::Sealed for SetNamespace {} + impl State for SetNamespace { + type Namespace = Set; + type Title = St::Title; + type Severity = St::Severity; + type CreatedAt = St::CreatedAt; + type StepsToReproduce = St::StepsToReproduce; + type Description = St::Description; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Namespace = St::Namespace; + type Title = Set; + type Severity = St::Severity; + type CreatedAt = St::CreatedAt; + type StepsToReproduce = St::StepsToReproduce; + type Description = St::Description; } ///State transition - sets the `severity` field to Set pub struct SetSeverity(PhantomData St>); impl sealed::Sealed for SetSeverity {} impl State for SetSeverity { + type Namespace = St::Namespace; + type Title = St::Title; type Severity = Set; type CreatedAt = St::CreatedAt; type StepsToReproduce = St::StepsToReproduce; - type Title = St::Title; type Description = St::Description; - type Namespace = St::Namespace; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Namespace = St::Namespace; + type Title = St::Title; type Severity = St::Severity; type CreatedAt = Set; type StepsToReproduce = St::StepsToReproduce; - type Title = St::Title; type Description = St::Description; - type Namespace = St::Namespace; } ///State transition - sets the `steps_to_reproduce` field to Set pub struct SetStepsToReproduce(PhantomData St>); impl sealed::Sealed for SetStepsToReproduce {} impl State for SetStepsToReproduce { - type Severity = St::Severity; - type CreatedAt = St::CreatedAt; - type StepsToReproduce = Set; - type Title = St::Title; - type Description = St::Description; type Namespace = St::Namespace; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { + type Title = St::Title; type Severity = St::Severity; type CreatedAt = St::CreatedAt; - type StepsToReproduce = St::StepsToReproduce; - type Title = Set; + type StepsToReproduce = Set; type Description = St::Description; - type Namespace = St::Namespace; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Severity = St::Severity; - type CreatedAt = St::CreatedAt; - type StepsToReproduce = St::StepsToReproduce; - type Title = St::Title; - type Description = Set; type Namespace = St::Namespace; - } - ///State transition - sets the `namespace` field to Set - pub struct SetNamespace(PhantomData St>); - impl sealed::Sealed for SetNamespace {} - impl State for SetNamespace { + type Title = St::Title; type Severity = St::Severity; type CreatedAt = St::CreatedAt; type StepsToReproduce = St::StepsToReproduce; - type Title = St::Title; - type Description = St::Description; - type Namespace = Set; + type Description = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `namespace` field + pub struct namespace(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `severity` field pub struct severity(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `steps_to_reproduce` field pub struct steps_to_reproduce(()); - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `description` field pub struct description(()); - ///Marker type for the `namespace` field - pub struct namespace(()); } } @@ -617,12 +617,12 @@ where impl BugBuilder where St: bug_state::State, + St::Namespace: bug_state::IsSet, + St::Title: bug_state::IsSet, St::Severity: bug_state::IsSet, St::CreatedAt: bug_state::IsSet, St::StepsToReproduce: bug_state::IsSet, - St::Title: bug_state::IsSet, St::Description: bug_state::IsSet, - St::Namespace: bug_state::IsSet, { /// Build the final struct. pub fn build(self) -> Bug { diff --git a/crates/jacquard-api/src/network_slices/tools/bug/issue.rs b/crates/jacquard-api/src/network_slices/tools/bug/issue.rs index 42e1ef4f..41877c5e 100644 --- a/crates/jacquard-api/src/network_slices/tools/bug/issue.rs +++ b/crates/jacquard-api/src/network_slices/tools/bug/issue.rs @@ -114,51 +114,51 @@ pub mod issue_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Bug; type Issue; type CreatedAt; - type Bug; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Bug = Unset; type Issue = Unset; type CreatedAt = Unset; - type Bug = Unset; + } + ///State transition - sets the `bug` field to Set + pub struct SetBug(PhantomData St>); + impl sealed::Sealed for SetBug {} + impl State for SetBug { + type Bug = Set; + type Issue = St::Issue; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `issue` field to Set pub struct SetIssue(PhantomData St>); impl sealed::Sealed for SetIssue {} impl State for SetIssue { + type Bug = St::Bug; type Issue = Set; type CreatedAt = St::CreatedAt; - type Bug = St::Bug; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Issue = St::Issue; - type CreatedAt = Set; type Bug = St::Bug; - } - ///State transition - sets the `bug` field to Set - pub struct SetBug(PhantomData St>); - impl sealed::Sealed for SetBug {} - impl State for SetBug { type Issue = St::Issue; - type CreatedAt = St::CreatedAt; - type Bug = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `bug` field + pub struct bug(()); ///Marker type for the `issue` field pub struct issue(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `bug` field - pub struct bug(()); } } @@ -247,9 +247,9 @@ where impl IssueBuilder where St: issue_state::State, + St::Bug: issue_state::IsSet, St::Issue: issue_state::IsSet, St::CreatedAt: issue_state::IsSet, - St::Bug: issue_state::IsSet, { /// Build the final struct. pub fn build(self) -> Issue { diff --git a/crates/jacquard-api/src/network_slices/tools/bug/response.rs b/crates/jacquard-api/src/network_slices/tools/bug/response.rs index 595d98e7..d5345c83 100644 --- a/crates/jacquard-api/src/network_slices/tools/bug/response.rs +++ b/crates/jacquard-api/src/network_slices/tools/bug/response.rs @@ -232,51 +232,51 @@ pub mod response_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Bug; type Status; + type Bug; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Bug = Unset; type Status = Unset; + type Bug = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type Status = Set; type Bug = St::Bug; - type Status = St::Status; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `bug` field to Set pub struct SetBug(PhantomData St>); impl sealed::Sealed for SetBug {} impl State for SetBug { - type CreatedAt = St::CreatedAt; - type Bug = Set; type Status = St::Status; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { + type Bug = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Status = St::Status; type Bug = St::Bug; - type Status = Set; + type CreatedAt = 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 `bug` field - pub struct bug(()); ///Marker type for the `status` field pub struct status(()); + ///Marker type for the `bug` field + pub struct bug(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -397,9 +397,9 @@ where impl ResponseBuilder where St: response_state::State, - St::CreatedAt: response_state::IsSet, - St::Bug: response_state::IsSet, St::Status: response_state::IsSet, + St::Bug: response_state::IsSet, + St::CreatedAt: response_state::IsSet, { /// Build the final struct. pub fn build(self) -> Response { diff --git a/crates/jacquard-api/src/network_slices/tools/document.rs b/crates/jacquard-api/src/network_slices/tools/document.rs index ac3ff9c3..b66a002e 100644 --- a/crates/jacquard-api/src/network_slices/tools/document.rs +++ b/crates/jacquard-api/src/network_slices/tools/document.rs @@ -1037,67 +1037,67 @@ pub mod document_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Blocks; - type CreatedAt; type Slug; + type Title; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Blocks = Unset; - type CreatedAt = Unset; type Slug = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Blocks = St::Blocks; - type CreatedAt = St::CreatedAt; - type Slug = St::Slug; + type Title = Unset; + type CreatedAt = Unset; } ///State transition - sets the `blocks` field to Set pub struct SetBlocks(PhantomData St>); impl sealed::Sealed for SetBlocks {} impl State for SetBlocks { - type Title = St::Title; type Blocks = Set; - type CreatedAt = St::CreatedAt; type Slug = St::Slug; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Title = St::Title; - type Blocks = St::Blocks; - type CreatedAt = Set; - type Slug = St::Slug; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData St>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { + type Blocks = St::Blocks; + type Slug = Set; type Title = St::Title; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { type Blocks = St::Blocks; + type Slug = St::Slug; + type Title = Set; type CreatedAt = St::CreatedAt; - type Slug = Set; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Blocks = St::Blocks; + type Slug = St::Slug; + type Title = St::Title; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `blocks` field pub struct blocks(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `slug` field pub struct slug(()); + ///Marker type for the `title` field + pub struct title(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -1224,10 +1224,10 @@ impl DocumentBuilder { impl DocumentBuilder where St: document_state::State, - St::Title: document_state::IsSet, St::Blocks: document_state::IsSet, - St::CreatedAt: document_state::IsSet, St::Slug: document_state::IsSet, + St::Title: document_state::IsSet, + St::CreatedAt: document_state::IsSet, { /// Build the final struct. pub fn build(self) -> Document { diff --git a/crates/jacquard-api/src/network_slices/tools/richtext/facet.rs b/crates/jacquard-api/src/network_slices/tools/richtext/facet.rs index 7c9adc4a..5aa0f53e 100644 --- a/crates/jacquard-api/src/network_slices/tools/richtext/facet.rs +++ b/crates/jacquard-api/src/network_slices/tools/richtext/facet.rs @@ -664,37 +664,37 @@ pub mod facet_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Features; type Index; + type Features; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Features = Unset; type Index = Unset; - } - ///State transition - sets the `features` field to Set - pub struct SetFeatures(PhantomData St>); - impl sealed::Sealed for SetFeatures {} - impl State for SetFeatures { - type Features = Set; - type Index = St::Index; + type Features = Unset; } ///State transition - sets the `index` field to Set pub struct SetIndex(PhantomData St>); impl sealed::Sealed for SetIndex {} impl State for SetIndex { - type Features = St::Features; type Index = Set; + type Features = St::Features; + } + ///State transition - sets the `features` field to Set + pub struct SetFeatures(PhantomData St>); + impl sealed::Sealed for SetFeatures {} + impl State for SetFeatures { + type Index = St::Index; + type Features = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `features` field - pub struct features(()); ///Marker type for the `index` field pub struct index(()); + ///Marker type for the `features` field + pub struct features(()); } } @@ -764,8 +764,8 @@ where impl FacetBuilder where St: facet_state::State, - St::Features: facet_state::IsSet, St::Index: facet_state::IsSet, + St::Features: facet_state::IsSet, { /// Build the final struct. pub fn build(self) -> Facet { diff --git a/crates/jacquard-api/src/network_slices/waitlist.rs b/crates/jacquard-api/src/network_slices/waitlist.rs index 96283538..5acd9c79 100644 --- a/crates/jacquard-api/src/network_slices/waitlist.rs +++ b/crates/jacquard-api/src/network_slices/waitlist.rs @@ -110,50 +110,50 @@ pub mod invite_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Slice; - type CreatedAt; type Did; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Slice = Unset; - type CreatedAt = Unset; type Did = Unset; + type CreatedAt = Unset; } ///State transition - sets the `slice` field to Set pub struct SetSlice(PhantomData St>); impl sealed::Sealed for SetSlice {} impl State for SetSlice { type Slice = Set; - type CreatedAt = St::CreatedAt; - type Did = St::Did; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Slice = St::Slice; - type CreatedAt = Set; type Did = St::Did; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { type Slice = St::Slice; - type CreatedAt = St::CreatedAt; type Did = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Slice = St::Slice; + type Did = St::Did; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `slice` field pub struct slice(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -289,8 +289,8 @@ impl InviteViewBuilder where St: invite_view_state::State, St::Slice: invite_view_state::IsSet, - St::CreatedAt: invite_view_state::IsSet, St::Did: invite_view_state::IsSet, + St::CreatedAt: invite_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> InviteView { diff --git a/crates/jacquard-api/src/network_slices/waitlist/invite.rs b/crates/jacquard-api/src/network_slices/waitlist/invite.rs index c89a2267..6d6abdee 100644 --- a/crates/jacquard-api/src/network_slices/waitlist/invite.rs +++ b/crates/jacquard-api/src/network_slices/waitlist/invite.rs @@ -119,49 +119,49 @@ pub mod invite_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type CreatedAt; + type Did; type Slice; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type CreatedAt = Unset; + type Did = Unset; type Slice = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type CreatedAt = St::CreatedAt; - type Slice = St::Slice; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Did = St::Did; type CreatedAt = Set; + type Did = St::Did; + type Slice = St::Slice; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type CreatedAt = St::CreatedAt; + type Did = Set; type Slice = St::Slice; } ///State transition - sets the `slice` field to Set pub struct SetSlice(PhantomData St>); impl sealed::Sealed for SetSlice {} impl State for SetSlice { - type Did = St::Did; type CreatedAt = St::CreatedAt; + type Did = St::Did; type Slice = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `slice` field pub struct slice(()); } @@ -265,8 +265,8 @@ where impl InviteBuilder where St: invite_state::State, - St::Did: invite_state::IsSet, St::CreatedAt: invite_state::IsSet, + St::Did: invite_state::IsSet, St::Slice: invite_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/network_slices/waitlist/request.rs b/crates/jacquard-api/src/network_slices/waitlist/request.rs index 3c06e994..7a93753f 100644 --- a/crates/jacquard-api/src/network_slices/waitlist/request.rs +++ b/crates/jacquard-api/src/network_slices/waitlist/request.rs @@ -114,37 +114,37 @@ pub mod request_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Slice; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Slice = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Slice = St::Slice; + type CreatedAt = Unset; } ///State transition - sets the `slice` field to Set pub struct SetSlice(PhantomData St>); impl sealed::Sealed for SetSlice {} impl State for SetSlice { - type CreatedAt = St::CreatedAt; type Slice = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Slice = St::Slice; + type CreatedAt = 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 `slice` field pub struct slice(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -214,8 +214,8 @@ where impl RequestBuilder where St: request_state::State, - St::CreatedAt: request_state::IsSet, St::Slice: request_state::IsSet, + St::CreatedAt: request_state::IsSet, { /// Build the final struct. pub fn build(self) -> Request { diff --git a/crates/jacquard-api/src/ooo_bsky/authfetch/fetch_records.rs b/crates/jacquard-api/src/ooo_bsky/authfetch/fetch_records.rs index 7d911bac..a8da8616 100644 --- a/crates/jacquard-api/src/ooo_bsky/authfetch/fetch_records.rs +++ b/crates/jacquard-api/src/ooo_bsky/authfetch/fetch_records.rs @@ -196,51 +196,51 @@ pub mod fetch_records_result_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; type Strategy; type Record; - type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; type Strategy = Unset; type Record = Unset; - type Uri = Unset; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; + type Strategy = St::Strategy; + type Record = St::Record; } ///State transition - sets the `strategy` field to Set pub struct SetStrategy(PhantomData St>); impl sealed::Sealed for SetStrategy {} impl State for SetStrategy { + type Uri = St::Uri; type Strategy = Set; type Record = St::Record; - type Uri = St::Uri; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Strategy = St::Strategy; - type Record = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Strategy = St::Strategy; - type Record = St::Record; - type Uri = Set; + type Record = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `strategy` field pub struct strategy(()); ///Marker type for the `record` field pub struct record(()); - ///Marker type for the `uri` field - pub struct uri(()); } } @@ -329,9 +329,9 @@ where impl FetchRecordsResultBuilder where St: fetch_records_result_state::State, + St::Uri: fetch_records_result_state::IsSet, St::Strategy: fetch_records_result_state::IsSet, St::Record: fetch_records_result_state::IsSet, - St::Uri: fetch_records_result_state::IsSet, { /// Build the final struct. pub fn build(self) -> FetchRecordsResult { diff --git a/crates/jacquard-api/src/ooo_bsky/authfetch/import_repo.rs b/crates/jacquard-api/src/ooo_bsky/authfetch/import_repo.rs index 321ddb63..2098c5b3 100644 --- a/crates/jacquard-api/src/ooo_bsky/authfetch/import_repo.rs +++ b/crates/jacquard-api/src/ooo_bsky/authfetch/import_repo.rs @@ -40,7 +40,7 @@ impl jacquard_common::xrpc::XrpcRequest for ImportRepo { type Response = ImportRepoResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, diff --git a/crates/jacquard-api/src/ooo_bsky/authfetch/list_records.rs b/crates/jacquard-api/src/ooo_bsky/authfetch/list_records.rs index fcdb8b4a..31d82650 100644 --- a/crates/jacquard-api/src/ooo_bsky/authfetch/list_records.rs +++ b/crates/jacquard-api/src/ooo_bsky/authfetch/list_records.rs @@ -251,51 +251,51 @@ pub mod record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Strategy; - type Uri; type Value; + type Uri; + type Strategy; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Strategy = Unset; - type Uri = Unset; type Value = Unset; + type Uri = Unset; + type Strategy = Unset; } - ///State transition - sets the `strategy` field to Set - pub struct SetStrategy(PhantomData St>); - impl sealed::Sealed for SetStrategy {} - impl State for SetStrategy { - type Strategy = Set; + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type Value = Set; type Uri = St::Uri; - type Value = St::Value; + type Strategy = St::Strategy; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Strategy = St::Strategy; - type Uri = Set; type Value = St::Value; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { + type Uri = Set; type Strategy = St::Strategy; + } + ///State transition - sets the `strategy` field to Set + pub struct SetStrategy(PhantomData St>); + impl sealed::Sealed for SetStrategy {} + impl State for SetStrategy { + type Value = St::Value; type Uri = St::Uri; - type Value = Set; + type Strategy = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `strategy` field - pub struct strategy(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `strategy` field + pub struct strategy(()); } } @@ -384,9 +384,9 @@ where impl RecordBuilder where St: record_state::State, - St::Strategy: record_state::IsSet, - St::Uri: record_state::IsSet, St::Value: record_state::IsSet, + St::Uri: record_state::IsSet, + St::Strategy: record_state::IsSet, { /// Build the final struct. pub fn build(self) -> Record { diff --git a/crates/jacquard-api/src/ooo_bsky/authfetch/put_record.rs b/crates/jacquard-api/src/ooo_bsky/authfetch/put_record.rs index 10eb096e..7c973cc3 100644 --- a/crates/jacquard-api/src/ooo_bsky/authfetch/put_record.rs +++ b/crates/jacquard-api/src/ooo_bsky/authfetch/put_record.rs @@ -81,67 +81,67 @@ pub mod put_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Collection; + type Record; type Rkey; + type Collection; type Strategy; - type Record; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Collection = Unset; + type Record = Unset; type Rkey = Unset; + type Collection = Unset; type Strategy = Unset; - type Record = Unset; } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData St>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Collection = Set; + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Record = Set; type Rkey = St::Rkey; + type Collection = St::Collection; type Strategy = St::Strategy; - type Record = St::Record; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Collection = St::Collection; + type Record = St::Record; type Rkey = Set; + type Collection = St::Collection; type Strategy = St::Strategy; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData St>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { type Record = St::Record; + type Rkey = St::Rkey; + type Collection = Set; + type Strategy = St::Strategy; } ///State transition - sets the `strategy` field to Set pub struct SetStrategy(PhantomData St>); impl sealed::Sealed for SetStrategy {} impl State for SetStrategy { - type Collection = St::Collection; - type Rkey = St::Rkey; - type Strategy = Set; type Record = St::Record; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Collection = St::Collection; type Rkey = St::Rkey; - type Strategy = St::Strategy; - type Record = Set; + type Collection = St::Collection; + type Strategy = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `collection` field - pub struct collection(()); + ///Marker type for the `record` field + pub struct record(()); ///Marker type for the `rkey` field pub struct rkey(()); + ///Marker type for the `collection` field + pub struct collection(()); ///Marker type for the `strategy` field pub struct strategy(()); - ///Marker type for the `record` field - pub struct record(()); } } @@ -254,10 +254,10 @@ where impl PutRecordBuilder where St: put_record_state::State, - St::Collection: put_record_state::IsSet, + St::Record: put_record_state::IsSet, St::Rkey: put_record_state::IsSet, + St::Collection: put_record_state::IsSet, St::Strategy: put_record_state::IsSet, - St::Record: put_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> PutRecord { diff --git a/crates/jacquard-api/src/org_atpodcasting/episode.rs b/crates/jacquard-api/src/org_atpodcasting/episode.rs index b184c451..e28c0f41 100644 --- a/crates/jacquard-api/src/org_atpodcasting/episode.rs +++ b/crates/jacquard-api/src/org_atpodcasting/episode.rs @@ -447,37 +447,37 @@ pub mod chapters_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type MimeType; type Url; + type MimeType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type MimeType = Unset; type Url = Unset; - } - ///State transition - sets the `mime_type` field to Set - pub struct SetMimeType(PhantomData St>); - impl sealed::Sealed for SetMimeType {} - impl State for SetMimeType { - type MimeType = Set; - type Url = St::Url; + type MimeType = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type MimeType = St::MimeType; type Url = Set; + type MimeType = St::MimeType; + } + ///State transition - sets the `mime_type` field to Set + pub struct SetMimeType(PhantomData St>); + impl sealed::Sealed for SetMimeType {} + impl State for SetMimeType { + type Url = St::Url; + type MimeType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `mime_type` field - pub struct mime_type(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `mime_type` field + pub struct mime_type(()); } } @@ -547,8 +547,8 @@ where impl ChaptersRefBuilder where St: chapters_ref_state::State, - St::MimeType: chapters_ref_state::IsSet, St::Url: chapters_ref_state::IsSet, + St::MimeType: chapters_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> ChaptersRef { @@ -920,127 +920,127 @@ pub mod episode_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Podcast; type Media; - type Duration; - type FeedItemGuid; - type CreatedAt; + type Podcast; type Title; type PublishedAt; + type FeedItemGuid; + type Duration; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Podcast = Unset; type Media = Unset; - type Duration = Unset; - type FeedItemGuid = Unset; - type CreatedAt = Unset; + type Podcast = Unset; type Title = Unset; type PublishedAt = Unset; + type FeedItemGuid = Unset; + type Duration = Unset; + type CreatedAt = Unset; + } + ///State transition - sets the `media` field to Set + pub struct SetMedia(PhantomData St>); + impl sealed::Sealed for SetMedia {} + impl State for SetMedia { + type Media = Set; + type Podcast = St::Podcast; + type Title = St::Title; + type PublishedAt = St::PublishedAt; + type FeedItemGuid = St::FeedItemGuid; + type Duration = St::Duration; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `podcast` field to Set pub struct SetPodcast(PhantomData St>); impl sealed::Sealed for SetPodcast {} impl State for SetPodcast { - type Podcast = Set; type Media = St::Media; - type Duration = St::Duration; - type FeedItemGuid = St::FeedItemGuid; - type CreatedAt = St::CreatedAt; + type Podcast = Set; type Title = St::Title; type PublishedAt = St::PublishedAt; + type FeedItemGuid = St::FeedItemGuid; + type Duration = St::Duration; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `media` field to Set - pub struct SetMedia(PhantomData St>); - impl sealed::Sealed for SetMedia {} - impl State for SetMedia { + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Media = St::Media; type Podcast = St::Podcast; - type Media = Set; - type Duration = St::Duration; + type Title = Set; + type PublishedAt = St::PublishedAt; type FeedItemGuid = St::FeedItemGuid; + type Duration = St::Duration; type CreatedAt = St::CreatedAt; - type Title = St::Title; - type PublishedAt = St::PublishedAt; } - ///State transition - sets the `duration` field to Set - pub struct SetDuration(PhantomData St>); - impl sealed::Sealed for SetDuration {} - impl State for SetDuration { - type Podcast = St::Podcast; + ///State transition - sets the `published_at` field to Set + pub struct SetPublishedAt(PhantomData St>); + impl sealed::Sealed for SetPublishedAt {} + impl State for SetPublishedAt { type Media = St::Media; - type Duration = Set; + type Podcast = St::Podcast; + type Title = St::Title; + type PublishedAt = Set; type FeedItemGuid = St::FeedItemGuid; + type Duration = St::Duration; type CreatedAt = St::CreatedAt; - type Title = St::Title; - type PublishedAt = St::PublishedAt; } ///State transition - sets the `feed_item_guid` field to Set pub struct SetFeedItemGuid(PhantomData St>); impl sealed::Sealed for SetFeedItemGuid {} impl State for SetFeedItemGuid { - type Podcast = St::Podcast; type Media = St::Media; - type Duration = St::Duration; + type Podcast = St::Podcast; + type Title = St::Title; + type PublishedAt = St::PublishedAt; type FeedItemGuid = Set; + type Duration = St::Duration; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `duration` field to Set + pub struct SetDuration(PhantomData St>); + impl sealed::Sealed for SetDuration {} + impl State for SetDuration { + type Media = St::Media; + type Podcast = St::Podcast; type Title = St::Title; type PublishedAt = St::PublishedAt; + type FeedItemGuid = St::FeedItemGuid; + type Duration = Set; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Podcast = St::Podcast; type Media = St::Media; - type Duration = St::Duration; - type FeedItemGuid = St::FeedItemGuid; - type CreatedAt = Set; + type Podcast = St::Podcast; type Title = St::Title; type PublishedAt = St::PublishedAt; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Podcast = St::Podcast; - type Media = St::Media; - type Duration = St::Duration; type FeedItemGuid = St::FeedItemGuid; - type CreatedAt = St::CreatedAt; - type Title = Set; - type PublishedAt = St::PublishedAt; - } - ///State transition - sets the `published_at` field to Set - pub struct SetPublishedAt(PhantomData St>); - impl sealed::Sealed for SetPublishedAt {} - impl State for SetPublishedAt { - type Podcast = St::Podcast; - type Media = St::Media; type Duration = St::Duration; - type FeedItemGuid = St::FeedItemGuid; - type CreatedAt = St::CreatedAt; - type Title = St::Title; - type PublishedAt = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `podcast` field - pub struct podcast(()); ///Marker type for the `media` field pub struct media(()); - ///Marker type for the `duration` field - pub struct duration(()); - ///Marker type for the `feed_item_guid` field - pub struct feed_item_guid(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `podcast` field + pub struct podcast(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `published_at` field pub struct published_at(()); + ///Marker type for the `feed_item_guid` field + pub struct feed_item_guid(()); + ///Marker type for the `duration` field + pub struct duration(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -1389,13 +1389,13 @@ impl EpisodeBuilder { impl EpisodeBuilder where St: episode_state::State, - St::Podcast: episode_state::IsSet, St::Media: episode_state::IsSet, - St::Duration: episode_state::IsSet, - St::FeedItemGuid: episode_state::IsSet, - St::CreatedAt: episode_state::IsSet, + St::Podcast: episode_state::IsSet, St::Title: episode_state::IsSet, St::PublishedAt: episode_state::IsSet, + St::FeedItemGuid: episode_state::IsSet, + St::Duration: episode_state::IsSet, + St::CreatedAt: episode_state::IsSet, { /// Build the final struct. pub fn build(self) -> Episode { @@ -1455,37 +1455,37 @@ pub mod media_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type MimeType; type Url; + type MimeType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type MimeType = Unset; type Url = Unset; - } - ///State transition - sets the `mime_type` field to Set - pub struct SetMimeType(PhantomData St>); - impl sealed::Sealed for SetMimeType {} - impl State for SetMimeType { - type MimeType = Set; - type Url = St::Url; + type MimeType = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type MimeType = St::MimeType; type Url = Set; + type MimeType = St::MimeType; + } + ///State transition - sets the `mime_type` field to Set + pub struct SetMimeType(PhantomData St>); + impl sealed::Sealed for SetMimeType {} + impl State for SetMimeType { + type Url = St::Url; + type MimeType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `mime_type` field - pub struct mime_type(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `mime_type` field + pub struct mime_type(()); } } @@ -1555,8 +1555,8 @@ where impl MediaRefBuilder where St: media_ref_state::State, - St::MimeType: media_ref_state::IsSet, St::Url: media_ref_state::IsSet, + St::MimeType: media_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> MediaRef { @@ -1586,37 +1586,37 @@ pub mod transcript_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Url; type MimeType; + type Url; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Url = Unset; type MimeType = Unset; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Url = Set; - type MimeType = St::MimeType; + type Url = Unset; } ///State transition - sets the `mime_type` field to Set pub struct SetMimeType(PhantomData St>); impl sealed::Sealed for SetMimeType {} impl State for SetMimeType { - type Url = St::Url; type MimeType = Set; + type Url = St::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type MimeType = St::MimeType; + type Url = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `url` field - pub struct url(()); ///Marker type for the `mime_type` field pub struct mime_type(()); + ///Marker type for the `url` field + pub struct url(()); } } @@ -1699,8 +1699,8 @@ where impl TranscriptRefBuilder where St: transcript_ref_state::State, - St::Url: transcript_ref_state::IsSet, St::MimeType: transcript_ref_state::IsSet, + St::Url: transcript_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> TranscriptRef { diff --git a/crates/jacquard-api/src/org_atpodcasting/follow.rs b/crates/jacquard-api/src/org_atpodcasting/follow.rs index 6e82c00d..bb29f97d 100644 --- a/crates/jacquard-api/src/org_atpodcasting/follow.rs +++ b/crates/jacquard-api/src/org_atpodcasting/follow.rs @@ -115,37 +115,37 @@ pub mod follow_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -215,8 +215,8 @@ where impl FollowBuilder where St: follow_state::State, - St::CreatedAt: follow_state::IsSet, St::Subject: follow_state::IsSet, + St::CreatedAt: follow_state::IsSet, { /// Build the final struct. pub fn build(self) -> Follow { diff --git a/crates/jacquard-api/src/org_atpodcasting/podcast.rs b/crates/jacquard-api/src/org_atpodcasting/podcast.rs index 3fbb75c3..ee1fdce0 100644 --- a/crates/jacquard-api/src/org_atpodcasting/podcast.rs +++ b/crates/jacquard-api/src/org_atpodcasting/podcast.rs @@ -223,151 +223,151 @@ pub mod podcast_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; + type Guid; + type Artwork; type Title; type FeedUrl; - type Categories; - type Artwork; - type Language; type Description; - type Guid; - type CreatedAt; + type Language; + type Categories; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; + type Guid = Unset; + type Artwork = Unset; type Title = Unset; type FeedUrl = Unset; - type Categories = Unset; - type Artwork = Unset; - type Language = Unset; type Description = Unset; - type Guid = Unset; - type CreatedAt = Unset; + type Language = Unset; + type Categories = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type FeedUrl = St::FeedUrl; - type Categories = St::Categories; - type Artwork = St::Artwork; - type Language = St::Language; - type Description = St::Description; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Guid = St::Guid; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `feed_url` field to Set - pub struct SetFeedUrl(PhantomData St>); - impl sealed::Sealed for SetFeedUrl {} - impl State for SetFeedUrl { - type Title = St::Title; - type FeedUrl = Set; - type Categories = St::Categories; type Artwork = St::Artwork; - type Language = St::Language; + type Title = St::Title; + type FeedUrl = St::FeedUrl; type Description = St::Description; - type Guid = St::Guid; - type CreatedAt = St::CreatedAt; + type Language = St::Language; + type Categories = St::Categories; } - ///State transition - sets the `categories` field to Set - pub struct SetCategories(PhantomData St>); - impl sealed::Sealed for SetCategories {} - impl State for SetCategories { + ///State transition - sets the `guid` field to Set + pub struct SetGuid(PhantomData St>); + impl sealed::Sealed for SetGuid {} + impl State for SetGuid { + type CreatedAt = St::CreatedAt; + type Guid = Set; + type Artwork = St::Artwork; type Title = St::Title; type FeedUrl = St::FeedUrl; - type Categories = Set; - type Artwork = St::Artwork; - type Language = St::Language; type Description = St::Description; - type Guid = St::Guid; - type CreatedAt = St::CreatedAt; + type Language = St::Language; + type Categories = St::Categories; } ///State transition - sets the `artwork` field to Set pub struct SetArtwork(PhantomData St>); impl sealed::Sealed for SetArtwork {} impl State for SetArtwork { + type CreatedAt = St::CreatedAt; + type Guid = St::Guid; + type Artwork = Set; type Title = St::Title; type FeedUrl = St::FeedUrl; - type Categories = St::Categories; - type Artwork = Set; - type Language = St::Language; type Description = St::Description; - type Guid = St::Guid; - type CreatedAt = St::CreatedAt; + type Language = St::Language; + type Categories = St::Categories; } - ///State transition - sets the `language` field to Set - pub struct SetLanguage(PhantomData St>); - impl sealed::Sealed for SetLanguage {} - impl State for SetLanguage { - type Title = St::Title; + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type CreatedAt = St::CreatedAt; + type Guid = St::Guid; + type Artwork = St::Artwork; + type Title = Set; type FeedUrl = St::FeedUrl; + type Description = St::Description; + type Language = St::Language; type Categories = St::Categories; + } + ///State transition - sets the `feed_url` field to Set + pub struct SetFeedUrl(PhantomData St>); + impl sealed::Sealed for SetFeedUrl {} + impl State for SetFeedUrl { + type CreatedAt = St::CreatedAt; + type Guid = St::Guid; type Artwork = St::Artwork; - type Language = Set; + type Title = St::Title; + type FeedUrl = Set; type Description = St::Description; - type Guid = St::Guid; - type CreatedAt = St::CreatedAt; + type Language = St::Language; + type Categories = St::Categories; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { + type CreatedAt = St::CreatedAt; + type Guid = St::Guid; + type Artwork = St::Artwork; type Title = St::Title; type FeedUrl = St::FeedUrl; - type Categories = St::Categories; - type Artwork = St::Artwork; - type Language = St::Language; type Description = Set; - type Guid = St::Guid; - type CreatedAt = St::CreatedAt; + type Language = St::Language; + type Categories = St::Categories; } - ///State transition - sets the `guid` field to Set - pub struct SetGuid(PhantomData St>); - impl sealed::Sealed for SetGuid {} - impl State for SetGuid { + ///State transition - sets the `language` field to Set + pub struct SetLanguage(PhantomData St>); + impl sealed::Sealed for SetLanguage {} + impl State for SetLanguage { + type CreatedAt = St::CreatedAt; + type Guid = St::Guid; + type Artwork = St::Artwork; type Title = St::Title; type FeedUrl = St::FeedUrl; - type Categories = St::Categories; - type Artwork = St::Artwork; - type Language = St::Language; type Description = St::Description; - type Guid = Set; - type CreatedAt = St::CreatedAt; + type Language = Set; + type Categories = St::Categories; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `categories` field to Set + pub struct SetCategories(PhantomData St>); + impl sealed::Sealed for SetCategories {} + impl State for SetCategories { + type CreatedAt = St::CreatedAt; + type Guid = St::Guid; + type Artwork = St::Artwork; type Title = St::Title; type FeedUrl = St::FeedUrl; - type Categories = St::Categories; - type Artwork = St::Artwork; - type Language = St::Language; type Description = St::Description; - type Guid = St::Guid; - type CreatedAt = Set; + type Language = St::Language; + type Categories = 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 `guid` field + pub struct guid(()); + ///Marker type for the `artwork` field + pub struct artwork(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `feed_url` field pub struct feed_url(()); - ///Marker type for the `categories` field - pub struct categories(()); - ///Marker type for the `artwork` field - pub struct artwork(()); - ///Marker type for the `language` field - pub struct language(()); ///Marker type for the `description` field pub struct description(()); - ///Marker type for the `guid` field - pub struct guid(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `language` field + pub struct language(()); + ///Marker type for the `categories` field + pub struct categories(()); } } @@ -602,14 +602,14 @@ where impl PodcastBuilder where St: podcast_state::State, + St::CreatedAt: podcast_state::IsSet, + St::Guid: podcast_state::IsSet, + St::Artwork: podcast_state::IsSet, St::Title: podcast_state::IsSet, St::FeedUrl: podcast_state::IsSet, - St::Categories: podcast_state::IsSet, - St::Artwork: podcast_state::IsSet, - St::Language: podcast_state::IsSet, St::Description: podcast_state::IsSet, - St::Guid: podcast_state::IsSet, - St::CreatedAt: podcast_state::IsSet, + St::Language: podcast_state::IsSet, + St::Categories: podcast_state::IsSet, { /// Build the final struct. pub fn build(self) -> Podcast { diff --git a/crates/jacquard-api/src/org_atsui/clip.rs b/crates/jacquard-api/src/org_atsui/clip.rs index d3b94569..12dfa265 100644 --- a/crates/jacquard-api/src/org_atsui/clip.rs +++ b/crates/jacquard-api/src/org_atsui/clip.rs @@ -133,37 +133,37 @@ pub mod aspect_ratio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Height; type Width; + type Height; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Height = Unset; type Width = Unset; - } - ///State transition - sets the `height` field to Set - pub struct SetHeight(PhantomData St>); - impl sealed::Sealed for SetHeight {} - impl State for SetHeight { - type Height = Set; - type Width = St::Width; + type Height = Unset; } ///State transition - sets the `width` field to Set pub struct SetWidth(PhantomData St>); impl sealed::Sealed for SetWidth {} impl State for SetWidth { - type Height = St::Height; type Width = Set; + type Height = St::Height; + } + ///State transition - sets the `height` field to Set + pub struct SetHeight(PhantomData St>); + impl sealed::Sealed for SetHeight {} + impl State for SetHeight { + type Width = St::Width; + type Height = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `height` field - pub struct height(()); ///Marker type for the `width` field pub struct width(()); + ///Marker type for the `height` field + pub struct height(()); } } @@ -233,8 +233,8 @@ where impl AspectRatioBuilder where St: aspect_ratio_state::State, - St::Height: aspect_ratio_state::IsSet, St::Width: aspect_ratio_state::IsSet, + St::Height: aspect_ratio_state::IsSet, { /// Build the final struct. pub fn build(self) -> AspectRatio { diff --git a/crates/jacquard-api/src/org_devcon/event/test.rs b/crates/jacquard-api/src/org_devcon/event/test.rs index 73c96bc7..4cd0035e 100644 --- a/crates/jacquard-api/src/org_devcon/event/test.rs +++ b/crates/jacquard-api/src/org_devcon/event/test.rs @@ -126,49 +126,49 @@ pub mod test_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Start; + type Title; type End; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Start = Unset; + type Title = Unset; type End = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Start = St::Start; - type End = St::End; - } ///State transition - sets the `start` field to Set pub struct SetStart(PhantomData St>); impl sealed::Sealed for SetStart {} impl State for SetStart { - type Title = St::Title; type Start = Set; + type Title = St::Title; + type End = St::End; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Start = St::Start; + type Title = Set; type End = St::End; } ///State transition - sets the `end` field to Set pub struct SetEnd(PhantomData St>); impl sealed::Sealed for SetEnd {} impl State for SetEnd { - type Title = St::Title; type Start = St::Start; + type Title = St::Title; type End = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `start` field pub struct start(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `end` field pub struct end(()); } @@ -319,8 +319,8 @@ impl TestBuilder { impl TestBuilder where St: test_state::State, - St::Title: test_state::IsSet, St::Start: test_state::IsSet, + St::Title: test_state::IsSet, St::End: test_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/org_farmapps/temp/agroconnect/cl022.rs b/crates/jacquard-api/src/org_farmapps/temp/agroconnect/cl022.rs index 50b97899..d0e11ae9 100644 --- a/crates/jacquard-api/src/org_farmapps/temp/agroconnect/cl022.rs +++ b/crates/jacquard-api/src/org_farmapps/temp/agroconnect/cl022.rs @@ -178,37 +178,37 @@ pub mod cl022_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Description; type Id; + type Description; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Description = Unset; type Id = Unset; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { - type Description = Set; - type Id = St::Id; + type Description = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type Description = St::Description; type Id = Set; + type Description = St::Description; + } + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type Id = St::Id; + type Description = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `description` field - pub struct description(()); ///Marker type for the `id` field pub struct id(()); + ///Marker type for the `description` field + pub struct description(()); } } @@ -407,8 +407,8 @@ impl Cl022Builder { impl Cl022Builder where St: cl022_state::State, - St::Description: cl022_state::IsSet, St::Id: cl022_state::IsSet, + St::Description: cl022_state::IsSet, { /// Build the final struct. pub fn build(self) -> Cl022 { diff --git a/crates/jacquard-api/src/org_farmapps/temp/ecrop.rs b/crates/jacquard-api/src/org_farmapps/temp/ecrop.rs index 2510b486..a5c62782 100644 --- a/crates/jacquard-api/src/org_farmapps/temp/ecrop.rs +++ b/crates/jacquard-api/src/org_farmapps/temp/ecrop.rs @@ -61,37 +61,37 @@ pub mod code_type_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Code; type ListId; + type Code; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Code = Unset; type ListId = Unset; - } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData St>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type Code = Set; - type ListId = St::ListId; + type Code = Unset; } ///State transition - sets the `list_id` field to Set pub struct SetListId(PhantomData St>); impl sealed::Sealed for SetListId {} impl State for SetListId { - type Code = St::Code; type ListId = Set; + type Code = St::Code; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData St>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type ListId = St::ListId; + type Code = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `code` field - pub struct code(()); ///Marker type for the `list_id` field pub struct list_id(()); + ///Marker type for the `code` field + pub struct code(()); } } @@ -161,8 +161,8 @@ where impl CodeTypeBuilder where St: code_type_state::State, - St::Code: code_type_state::IsSet, St::ListId: code_type_state::IsSet, + St::Code: code_type_state::IsSet, { /// Build the final struct. pub fn build(self) -> CodeType { diff --git a/crates/jacquard-api/src/org_hyperboards/board.rs b/crates/jacquard-api/src/org_hyperboards/board.rs index 3480ca03..140b9ac5 100644 --- a/crates/jacquard-api/src/org_hyperboards/board.rs +++ b/crates/jacquard-api/src/org_hyperboards/board.rs @@ -1204,37 +1204,37 @@ pub mod board_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -1341,8 +1341,8 @@ where impl BoardBuilder where St: board_state::State, - St::CreatedAt: board_state::IsSet, St::Subject: board_state::IsSet, + St::CreatedAt: board_state::IsSet, { /// Build the final struct. pub fn build(self) -> Board { diff --git a/crates/jacquard-api/src/org_hypercerts/claim/activity.rs b/crates/jacquard-api/src/org_hypercerts/claim/activity.rs index c5b2b88b..e448fef2 100644 --- a/crates/jacquard-api/src/org_hypercerts/claim/activity.rs +++ b/crates/jacquard-api/src/org_hypercerts/claim/activity.rs @@ -909,51 +909,51 @@ pub mod activity_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ShortDescription; - type Title; type CreatedAt; + type Title; + type ShortDescription; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ShortDescription = Unset; - type Title = Unset; type CreatedAt = Unset; + type Title = Unset; + type ShortDescription = Unset; } - ///State transition - sets the `short_description` field to Set - pub struct SetShortDescription(PhantomData St>); - impl sealed::Sealed for SetShortDescription {} - impl State for SetShortDescription { - type ShortDescription = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Title = St::Title; - type CreatedAt = St::CreatedAt; + type ShortDescription = St::ShortDescription; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type ShortDescription = St::ShortDescription; - type Title = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Title = Set; type ShortDescription = St::ShortDescription; + } + ///State transition - sets the `short_description` field to Set + pub struct SetShortDescription(PhantomData St>); + impl sealed::Sealed for SetShortDescription {} + impl State for SetShortDescription { + type CreatedAt = St::CreatedAt; type Title = St::Title; - type CreatedAt = Set; + type ShortDescription = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `short_description` field - pub struct short_description(()); - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `title` field + pub struct title(()); + ///Marker type for the `short_description` field + pub struct short_description(()); } } @@ -1197,9 +1197,9 @@ impl ActivityBuilder { impl ActivityBuilder where St: activity_state::State, - St::ShortDescription: activity_state::IsSet, - St::Title: activity_state::IsSet, St::CreatedAt: activity_state::IsSet, + St::Title: activity_state::IsSet, + St::ShortDescription: activity_state::IsSet, { /// Build the final struct. pub fn build(self) -> Activity { diff --git a/crates/jacquard-api/src/org_hypercerts/claim/rights.rs b/crates/jacquard-api/src/org_hypercerts/claim/rights.rs index 0a04c066..168a9798 100644 --- a/crates/jacquard-api/src/org_hypercerts/claim/rights.rs +++ b/crates/jacquard-api/src/org_hypercerts/claim/rights.rs @@ -180,67 +180,67 @@ pub mod rights_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type RightsName; + type RightsType; type RightsDescription; type CreatedAt; - type RightsType; - type RightsName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type RightsName = Unset; + type RightsType = Unset; type RightsDescription = Unset; type CreatedAt = Unset; - type RightsType = Unset; - type RightsName = Unset; + } + ///State transition - sets the `rights_name` field to Set + pub struct SetRightsName(PhantomData St>); + impl sealed::Sealed for SetRightsName {} + impl State for SetRightsName { + type RightsName = Set; + type RightsType = St::RightsType; + type RightsDescription = St::RightsDescription; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `rights_type` field to Set + pub struct SetRightsType(PhantomData St>); + impl sealed::Sealed for SetRightsType {} + impl State for SetRightsType { + type RightsName = St::RightsName; + type RightsType = Set; + type RightsDescription = St::RightsDescription; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `rights_description` field to Set pub struct SetRightsDescription(PhantomData St>); impl sealed::Sealed for SetRightsDescription {} impl State for SetRightsDescription { + type RightsName = St::RightsName; + type RightsType = St::RightsType; type RightsDescription = Set; type CreatedAt = St::CreatedAt; - type RightsType = St::RightsType; - type RightsName = St::RightsName; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type RightsDescription = St::RightsDescription; - type CreatedAt = Set; - type RightsType = St::RightsType; - type RightsName = St::RightsName; - } - ///State transition - sets the `rights_type` field to Set - pub struct SetRightsType(PhantomData St>); - impl sealed::Sealed for SetRightsType {} - impl State for SetRightsType { - type RightsDescription = St::RightsDescription; - type CreatedAt = St::CreatedAt; - type RightsType = Set; type RightsName = St::RightsName; - } - ///State transition - sets the `rights_name` field to Set - pub struct SetRightsName(PhantomData St>); - impl sealed::Sealed for SetRightsName {} - impl State for SetRightsName { - type RightsDescription = St::RightsDescription; - type CreatedAt = St::CreatedAt; type RightsType = St::RightsType; - type RightsName = Set; + type RightsDescription = St::RightsDescription; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `rights_name` field + pub struct rights_name(()); + ///Marker type for the `rights_type` field + pub struct rights_type(()); ///Marker type for the `rights_description` field pub struct rights_description(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `rights_type` field - pub struct rights_type(()); - ///Marker type for the `rights_name` field - pub struct rights_name(()); } } @@ -367,10 +367,10 @@ where impl RightsBuilder where St: rights_state::State, + St::RightsName: rights_state::IsSet, + St::RightsType: rights_state::IsSet, St::RightsDescription: rights_state::IsSet, St::CreatedAt: rights_state::IsSet, - St::RightsType: rights_state::IsSet, - St::RightsName: rights_state::IsSet, { /// Build the final struct. pub fn build(self) -> Rights { diff --git a/crates/jacquard-api/src/org_hypercerts/collection.rs b/crates/jacquard-api/src/org_hypercerts/collection.rs index 92242bda..5c6c1fbe 100644 --- a/crates/jacquard-api/src/org_hypercerts/collection.rs +++ b/crates/jacquard-api/src/org_hypercerts/collection.rs @@ -564,37 +564,37 @@ pub mod collection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Title; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Title = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Title = St::Title; + type CreatedAt = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type CreatedAt = St::CreatedAt; type Title = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Title = St::Title; + type CreatedAt = 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 `title` field pub struct title(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -765,8 +765,8 @@ impl CollectionBuilder { impl CollectionBuilder where St: collection_state::State, - St::CreatedAt: collection_state::IsSet, St::Title: collection_state::IsSet, + St::CreatedAt: collection_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collection { diff --git a/crates/jacquard-api/src/org_hypercerts/context/acknowledgement.rs b/crates/jacquard-api/src/org_hypercerts/context/acknowledgement.rs index b257f3a4..cc73a9ee 100644 --- a/crates/jacquard-api/src/org_hypercerts/context/acknowledgement.rs +++ b/crates/jacquard-api/src/org_hypercerts/context/acknowledgement.rs @@ -157,51 +157,51 @@ pub mod acknowledgement_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Acknowledged; - type CreatedAt; type Subject; + type CreatedAt; + type Acknowledged; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Acknowledged = Unset; - type CreatedAt = Unset; type Subject = Unset; + type CreatedAt = Unset; + type Acknowledged = Unset; } - ///State transition - sets the `acknowledged` field to Set - pub struct SetAcknowledged(PhantomData St>); - impl sealed::Sealed for SetAcknowledged {} - impl State for SetAcknowledged { - type Acknowledged = Set; + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Subject = Set; type CreatedAt = St::CreatedAt; - type Subject = St::Subject; + type Acknowledged = St::Acknowledged; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Acknowledged = St::Acknowledged; - type CreatedAt = Set; type Subject = St::Subject; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { + type CreatedAt = Set; type Acknowledged = St::Acknowledged; + } + ///State transition - sets the `acknowledged` field to Set + pub struct SetAcknowledged(PhantomData St>); + impl sealed::Sealed for SetAcknowledged {} + impl State for SetAcknowledged { + type Subject = St::Subject; type CreatedAt = St::CreatedAt; - type Subject = Set; + type Acknowledged = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `acknowledged` field - pub struct acknowledged(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `acknowledged` field + pub struct acknowledged(()); } } @@ -325,9 +325,9 @@ where impl AcknowledgementBuilder where St: acknowledgement_state::State, - St::Acknowledged: acknowledgement_state::IsSet, - St::CreatedAt: acknowledgement_state::IsSet, St::Subject: acknowledgement_state::IsSet, + St::CreatedAt: acknowledgement_state::IsSet, + St::Acknowledged: acknowledgement_state::IsSet, { /// Build the final struct. pub fn build(self) -> Acknowledgement { diff --git a/crates/jacquard-api/src/org_hypercerts/context/evaluation.rs b/crates/jacquard-api/src/org_hypercerts/context/evaluation.rs index 32b7d391..5574429a 100644 --- a/crates/jacquard-api/src/org_hypercerts/context/evaluation.rs +++ b/crates/jacquard-api/src/org_hypercerts/context/evaluation.rs @@ -668,51 +668,51 @@ pub mod score_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Max; type Value; type Min; + type Max; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Max = Unset; type Value = Unset; type Min = Unset; - } - ///State transition - sets the `max` field to Set - pub struct SetMax(PhantomData St>); - impl sealed::Sealed for SetMax {} - impl State for SetMax { - type Max = Set; - type Value = St::Value; - type Min = St::Min; + type Max = Unset; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Max = St::Max; type Value = Set; type Min = St::Min; + type Max = St::Max; } ///State transition - sets the `min` field to Set pub struct SetMin(PhantomData St>); impl sealed::Sealed for SetMin {} impl State for SetMin { - type Max = St::Max; type Value = St::Value; type Min = Set; + type Max = St::Max; + } + ///State transition - sets the `max` field to Set + pub struct SetMax(PhantomData St>); + impl sealed::Sealed for SetMax {} + impl State for SetMax { + type Value = St::Value; + type Min = St::Min; + type Max = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `max` field - pub struct max(()); ///Marker type for the `value` field pub struct value(()); ///Marker type for the `min` field pub struct min(()); + ///Marker type for the `max` field + pub struct max(()); } } @@ -801,9 +801,9 @@ where impl ScoreBuilder where St: score_state::State, - St::Max: score_state::IsSet, St::Value: score_state::IsSet, St::Min: score_state::IsSet, + St::Max: score_state::IsSet, { /// Build the final struct. pub fn build(self) -> Score { diff --git a/crates/jacquard-api/src/org_hypercerts/context/measurement.rs b/crates/jacquard-api/src/org_hypercerts/context/measurement.rs index 44cd23ef..1675e0cd 100644 --- a/crates/jacquard-api/src/org_hypercerts/context/measurement.rs +++ b/crates/jacquard-api/src/org_hypercerts/context/measurement.rs @@ -257,8 +257,8 @@ pub mod measurement_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Unit; - type CreatedAt; type Metric; + type CreatedAt; type Value; } /// Empty state - all required fields are unset @@ -266,8 +266,8 @@ pub mod measurement_state { impl sealed::Sealed for Empty {} impl State for Empty { type Unit = Unset; - type CreatedAt = Unset; type Metric = Unset; + type CreatedAt = Unset; type Value = Unset; } ///State transition - sets the `unit` field to Set @@ -275,17 +275,8 @@ pub mod measurement_state { impl sealed::Sealed for SetUnit {} impl State for SetUnit { type Unit = Set; - type CreatedAt = St::CreatedAt; - type Metric = St::Metric; - type Value = St::Value; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Unit = St::Unit; - type CreatedAt = Set; type Metric = St::Metric; + type CreatedAt = St::CreatedAt; type Value = St::Value; } ///State transition - sets the `metric` field to Set @@ -293,8 +284,17 @@ pub mod measurement_state { impl sealed::Sealed for SetMetric {} impl State for SetMetric { type Unit = St::Unit; - type CreatedAt = St::CreatedAt; type Metric = Set; + type CreatedAt = St::CreatedAt; + type Value = St::Value; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Unit = St::Unit; + type Metric = St::Metric; + type CreatedAt = Set; type Value = St::Value; } ///State transition - sets the `value` field to Set @@ -302,8 +302,8 @@ pub mod measurement_state { impl sealed::Sealed for SetValue {} impl State for SetValue { type Unit = St::Unit; - type CreatedAt = St::CreatedAt; type Metric = St::Metric; + type CreatedAt = St::CreatedAt; type Value = Set; } /// Marker types for field names @@ -311,10 +311,10 @@ pub mod measurement_state { pub mod members { ///Marker type for the `unit` field pub struct unit(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `metric` field pub struct metric(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `value` field pub struct value(()); } @@ -585,8 +585,8 @@ impl MeasurementBuilder where St: measurement_state::State, St::Unit: measurement_state::IsSet, - St::CreatedAt: measurement_state::IsSet, St::Metric: measurement_state::IsSet, + St::CreatedAt: measurement_state::IsSet, St::Value: measurement_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/org_hypercerts/funding/receipt.rs b/crates/jacquard-api/src/org_hypercerts/funding/receipt.rs index 262d098b..5f9ed48b 100644 --- a/crates/jacquard-api/src/org_hypercerts/funding/receipt.rs +++ b/crates/jacquard-api/src/org_hypercerts/funding/receipt.rs @@ -212,85 +212,85 @@ pub mod receipt_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type To; - type Amount; type From; type Currency; + type To; type CreatedAt; + type Amount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type To = Unset; - type Amount = Unset; type From = Unset; type Currency = Unset; + type To = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `to` field to Set - pub struct SetTo(PhantomData St>); - impl sealed::Sealed for SetTo {} - impl State for SetTo { - type To = Set; - type Amount = St::Amount; - type From = St::From; - type Currency = St::Currency; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `amount` field to Set - pub struct SetAmount(PhantomData St>); - impl sealed::Sealed for SetAmount {} - impl State for SetAmount { - type To = St::To; - type Amount = Set; - type From = St::From; - type Currency = St::Currency; - type CreatedAt = St::CreatedAt; + type Amount = Unset; } ///State transition - sets the `from` field to Set pub struct SetFrom(PhantomData St>); impl sealed::Sealed for SetFrom {} impl State for SetFrom { - type To = St::To; - type Amount = St::Amount; type From = Set; type Currency = St::Currency; + type To = St::To; type CreatedAt = St::CreatedAt; + type Amount = St::Amount; } ///State transition - sets the `currency` field to Set pub struct SetCurrency(PhantomData St>); impl sealed::Sealed for SetCurrency {} impl State for SetCurrency { + type From = St::From; + type Currency = Set; type To = St::To; + type CreatedAt = St::CreatedAt; type Amount = St::Amount; + } + ///State transition - sets the `to` field to Set + pub struct SetTo(PhantomData St>); + impl sealed::Sealed for SetTo {} + impl State for SetTo { type From = St::From; - type Currency = Set; + type Currency = St::Currency; + type To = Set; type CreatedAt = St::CreatedAt; + type Amount = St::Amount; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type From = St::From; + type Currency = St::Currency; type To = St::To; + type CreatedAt = Set; type Amount = St::Amount; + } + ///State transition - sets the `amount` field to Set + pub struct SetAmount(PhantomData St>); + impl sealed::Sealed for SetAmount {} + impl State for SetAmount { type From = St::From; type Currency = St::Currency; - type CreatedAt = Set; + type To = St::To; + type CreatedAt = St::CreatedAt; + type Amount = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `to` field - pub struct to(()); - ///Marker type for the `amount` field - pub struct amount(()); ///Marker type for the `from` field pub struct from(()); ///Marker type for the `currency` field pub struct currency(()); + ///Marker type for the `to` field + pub struct to(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `amount` field + pub struct amount(()); } } @@ -507,11 +507,11 @@ impl ReceiptBuilder { impl ReceiptBuilder where St: receipt_state::State, - St::To: receipt_state::IsSet, - St::Amount: receipt_state::IsSet, St::From: receipt_state::IsSet, St::Currency: receipt_state::IsSet, + St::To: receipt_state::IsSet, St::CreatedAt: receipt_state::IsSet, + St::Amount: receipt_state::IsSet, { /// Build the final struct. pub fn build(self) -> Receipt { diff --git a/crates/jacquard-api/src/org_hypercerts/helper/work_scope_tag.rs b/crates/jacquard-api/src/org_hypercerts/helper/work_scope_tag.rs index d66b6362..bee2fad4 100644 --- a/crates/jacquard-api/src/org_hypercerts/helper/work_scope_tag.rs +++ b/crates/jacquard-api/src/org_hypercerts/helper/work_scope_tag.rs @@ -210,50 +210,50 @@ pub mod work_scope_tag_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Key; - type CreatedAt; type Label; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Key = Unset; - type CreatedAt = Unset; type Label = Unset; + type CreatedAt = Unset; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { type Key = Set; - type CreatedAt = St::CreatedAt; - type Label = St::Label; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Key = St::Key; - type CreatedAt = Set; type Label = St::Label; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `label` field to Set pub struct SetLabel(PhantomData St>); impl sealed::Sealed for SetLabel {} impl State for SetLabel { type Key = St::Key; - type CreatedAt = St::CreatedAt; type Label = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Key = St::Key; + type Label = St::Label; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `key` field pub struct key(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `label` field pub struct label(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -423,8 +423,8 @@ impl WorkScopeTagBuilder where St: work_scope_tag_state::State, St::Key: work_scope_tag_state::IsSet, - St::CreatedAt: work_scope_tag_state::IsSet, St::Label: work_scope_tag_state::IsSet, + St::CreatedAt: work_scope_tag_state::IsSet, { /// Build the final struct. pub fn build(self) -> WorkScopeTag { diff --git a/crates/jacquard-api/src/org_hypercerts/workscope/cel.rs b/crates/jacquard-api/src/org_hypercerts/workscope/cel.rs index 8babb0e2..4b52fb48 100644 --- a/crates/jacquard-api/src/org_hypercerts/workscope/cel.rs +++ b/crates/jacquard-api/src/org_hypercerts/workscope/cel.rs @@ -190,8 +190,8 @@ pub mod cel_state { pub trait State: sealed::Sealed { type Version; type Expression; - type CreatedAt; type UsedTags; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -199,8 +199,8 @@ pub mod cel_state { impl State for Empty { type Version = Unset; type Expression = Unset; - type CreatedAt = Unset; type UsedTags = Unset; + type CreatedAt = Unset; } ///State transition - sets the `version` field to Set pub struct SetVersion(PhantomData St>); @@ -208,8 +208,8 @@ pub mod cel_state { impl State for SetVersion { type Version = Set; type Expression = St::Expression; - type CreatedAt = St::CreatedAt; type UsedTags = St::UsedTags; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `expression` field to Set pub struct SetExpression(PhantomData St>); @@ -217,17 +217,8 @@ pub mod cel_state { impl State for SetExpression { type Version = St::Version; type Expression = Set; - type CreatedAt = St::CreatedAt; - type UsedTags = St::UsedTags; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Version = St::Version; - type Expression = St::Expression; - type CreatedAt = Set; type UsedTags = St::UsedTags; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `used_tags` field to Set pub struct SetUsedTags(PhantomData St>); @@ -235,8 +226,17 @@ pub mod cel_state { impl State for SetUsedTags { type Version = St::Version; type Expression = St::Expression; - type CreatedAt = St::CreatedAt; type UsedTags = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Version = St::Version; + type Expression = St::Expression; + type UsedTags = St::UsedTags; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -245,10 +245,10 @@ pub mod cel_state { pub struct version(()); ///Marker type for the `expression` field pub struct expression(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `used_tags` field pub struct used_tags(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -363,8 +363,8 @@ where St: cel_state::State, St::Version: cel_state::IsSet, St::Expression: cel_state::IsSet, - St::CreatedAt: cel_state::IsSet, St::UsedTags: cel_state::IsSet, + St::CreatedAt: cel_state::IsSet, { /// Build the final struct. pub fn build(self) -> Cel { diff --git a/crates/jacquard-api/src/org_hypercerts/workscope/tag.rs b/crates/jacquard-api/src/org_hypercerts/workscope/tag.rs index 43c2bd7f..4a07106d 100644 --- a/crates/jacquard-api/src/org_hypercerts/workscope/tag.rs +++ b/crates/jacquard-api/src/org_hypercerts/workscope/tag.rs @@ -408,49 +408,49 @@ pub mod tag_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Key; type Name; + type Key; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Key = Unset; type Name = Unset; + type Key = Unset; type CreatedAt = Unset; } - ///State transition - sets the `key` field to Set - pub struct SetKey(PhantomData St>); - impl sealed::Sealed for SetKey {} - impl State for SetKey { - type Key = Set; - type Name = St::Name; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Key = St::Key; type Name = Set; + type Key = St::Key; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `key` field to Set + pub struct SetKey(PhantomData St>); + impl sealed::Sealed for SetKey {} + impl State for SetKey { + type Name = St::Name; + type Key = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Key = St::Key; type Name = St::Name; + type Key = St::Key; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `key` field - pub struct key(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `key` field + pub struct key(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -657,8 +657,8 @@ impl TagBuilder { impl TagBuilder where St: tag_state::State, - St::Key: tag_state::IsSet, St::Name: tag_state::IsSet, + St::Key: tag_state::IsSet, St::CreatedAt: tag_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/org_impactindexer/link/attestation.rs b/crates/jacquard-api/src/org_impactindexer/link/attestation.rs index ceb963d6..e5750309 100644 --- a/crates/jacquard-api/src/org_impactindexer/link/attestation.rs +++ b/crates/jacquard-api/src/org_impactindexer/link/attestation.rs @@ -566,105 +566,105 @@ pub mod attestation_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Address; + type CreatedAt; type Message; - type ChainId; type SignatureType; + type ChainId; type Signature; - type CreatedAt; - type Address; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Address = Unset; + type CreatedAt = Unset; type Message = Unset; - type ChainId = Unset; type SignatureType = Unset; + type ChainId = Unset; type Signature = Unset; - type CreatedAt = Unset; - type Address = Unset; } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData St>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { - type Message = Set; - type ChainId = St::ChainId; + ///State transition - sets the `address` field to Set + pub struct SetAddress(PhantomData St>); + impl sealed::Sealed for SetAddress {} + impl State for SetAddress { + type Address = Set; + type CreatedAt = St::CreatedAt; + type Message = St::Message; type SignatureType = St::SignatureType; + type ChainId = St::ChainId; type Signature = St::Signature; - type CreatedAt = St::CreatedAt; - type Address = St::Address; } - ///State transition - sets the `chain_id` field to Set - pub struct SetChainId(PhantomData St>); - impl sealed::Sealed for SetChainId {} - impl State for SetChainId { + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Address = St::Address; + type CreatedAt = Set; type Message = St::Message; - type ChainId = Set; type SignatureType = St::SignatureType; + type ChainId = St::ChainId; type Signature = St::Signature; - type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData St>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { type Address = St::Address; + type CreatedAt = St::CreatedAt; + type Message = Set; + type SignatureType = St::SignatureType; + type ChainId = St::ChainId; + type Signature = St::Signature; } ///State transition - sets the `signature_type` field to Set pub struct SetSignatureType(PhantomData St>); impl sealed::Sealed for SetSignatureType {} impl State for SetSignatureType { + type Address = St::Address; + type CreatedAt = St::CreatedAt; type Message = St::Message; - type ChainId = St::ChainId; type SignatureType = Set; + type ChainId = St::ChainId; type Signature = St::Signature; - type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `chain_id` field to Set + pub struct SetChainId(PhantomData St>); + impl sealed::Sealed for SetChainId {} + impl State for SetChainId { type Address = St::Address; + type CreatedAt = St::CreatedAt; + type Message = St::Message; + type SignatureType = St::SignatureType; + type ChainId = Set; + type Signature = St::Signature; } ///State transition - sets the `signature` field to Set pub struct SetSignature(PhantomData St>); impl sealed::Sealed for SetSignature {} impl State for SetSignature { - type Message = St::Message; - type ChainId = St::ChainId; - type SignatureType = St::SignatureType; - type Signature = Set; - type CreatedAt = St::CreatedAt; type Address = St::Address; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type CreatedAt = St::CreatedAt; type Message = St::Message; - type ChainId = St::ChainId; type SignatureType = St::SignatureType; - type Signature = St::Signature; - type CreatedAt = Set; - type Address = St::Address; - } - ///State transition - sets the `address` field to Set - pub struct SetAddress(PhantomData St>); - impl sealed::Sealed for SetAddress {} - impl State for SetAddress { - type Message = St::Message; type ChainId = St::ChainId; - type SignatureType = St::SignatureType; - type Signature = St::Signature; - type CreatedAt = St::CreatedAt; - type Address = Set; + type Signature = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `address` field + pub struct address(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `message` field pub struct message(()); - ///Marker type for the `chain_id` field - pub struct chain_id(()); ///Marker type for the `signature_type` field pub struct signature_type(()); + ///Marker type for the `chain_id` field + pub struct chain_id(()); ///Marker type for the `signature` field pub struct signature(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `address` field - pub struct address(()); } } @@ -817,12 +817,12 @@ where impl AttestationBuilder where St: attestation_state::State, + St::Address: attestation_state::IsSet, + St::CreatedAt: attestation_state::IsSet, St::Message: attestation_state::IsSet, - St::ChainId: attestation_state::IsSet, St::SignatureType: attestation_state::IsSet, + St::ChainId: attestation_state::IsSet, St::Signature: attestation_state::IsSet, - St::CreatedAt: attestation_state::IsSet, - St::Address: attestation_state::IsSet, { /// Build the final struct. pub fn build(self) -> Attestation { diff --git a/crates/jacquard-api/src/org_impactindexer/review.rs b/crates/jacquard-api/src/org_impactindexer/review.rs index f71504f3..c9e5fdff 100644 --- a/crates/jacquard-api/src/org_impactindexer/review.rs +++ b/crates/jacquard-api/src/org_impactindexer/review.rs @@ -171,37 +171,37 @@ pub mod subject_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type Uri; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type Uri = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type Uri = St::Uri; + type Type = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Type = St::Type; type Uri = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Uri = St::Uri; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -284,8 +284,8 @@ where impl SubjectRefBuilder where St: subject_ref_state::State, - St::Type: subject_ref_state::IsSet, St::Uri: subject_ref_state::IsSet, + St::Type: subject_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> SubjectRef { diff --git a/crates/jacquard-api/src/org_impactindexer/review/like.rs b/crates/jacquard-api/src/org_impactindexer/review/like.rs index abfee9bc..2ba68f37 100644 --- a/crates/jacquard-api/src/org_impactindexer/review/like.rs +++ b/crates/jacquard-api/src/org_impactindexer/review/like.rs @@ -115,37 +115,37 @@ pub mod like_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -215,8 +215,8 @@ where impl LikeBuilder where St: like_state::State, - St::CreatedAt: like_state::IsSet, St::Subject: like_state::IsSet, + St::CreatedAt: like_state::IsSet, { /// Build the final struct. pub fn build(self) -> Like { diff --git a/crates/jacquard-api/src/org_okazu_diary/feed/like.rs b/crates/jacquard-api/src/org_okazu_diary/feed/like.rs index 379dbece..897f40f0 100644 --- a/crates/jacquard-api/src/org_okazu_diary/feed/like.rs +++ b/crates/jacquard-api/src/org_okazu_diary/feed/like.rs @@ -115,37 +115,37 @@ pub mod like_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -228,8 +228,8 @@ impl LikeBuilder { impl LikeBuilder where St: like_state::State, - St::Subject: like_state::IsSet, St::CreatedAt: like_state::IsSet, + St::Subject: like_state::IsSet, { /// Build the final struct. pub fn build(self) -> Like { diff --git a/crates/jacquard-api/src/org_okazu_diary/material/collection_item.rs b/crates/jacquard-api/src/org_okazu_diary/material/collection_item.rs index c25d86a5..fbec8a3b 100644 --- a/crates/jacquard-api/src/org_okazu_diary/material/collection_item.rs +++ b/crates/jacquard-api/src/org_okazu_diary/material/collection_item.rs @@ -166,51 +166,51 @@ pub mod collection_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subjects; type Collection; type CreatedAt; + type Subjects; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subjects = Unset; type Collection = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subjects` field to Set - pub struct SetSubjects(PhantomData St>); - impl sealed::Sealed for SetSubjects {} - impl State for SetSubjects { - type Subjects = Set; - type Collection = St::Collection; - type CreatedAt = St::CreatedAt; + type Subjects = Unset; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData St>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Subjects = St::Subjects; type Collection = Set; type CreatedAt = St::CreatedAt; + type Subjects = St::Subjects; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subjects = St::Subjects; type Collection = St::Collection; type CreatedAt = Set; + type Subjects = St::Subjects; + } + ///State transition - sets the `subjects` field to Set + pub struct SetSubjects(PhantomData St>); + impl sealed::Sealed for SetSubjects {} + impl State for SetSubjects { + type Collection = St::Collection; + type CreatedAt = St::CreatedAt; + type Subjects = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subjects` field - pub struct subjects(()); ///Marker type for the `collection` field pub struct collection(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subjects` field + pub struct subjects(()); } } @@ -331,9 +331,9 @@ impl CollectionItemBuilder { impl CollectionItemBuilder where St: collection_item_state::State, - St::Subjects: collection_item_state::IsSet, St::Collection: collection_item_state::IsSet, St::CreatedAt: collection_item_state::IsSet, + St::Subjects: collection_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> CollectionItem { diff --git a/crates/jacquard-api/src/org_passingreads.rs b/crates/jacquard-api/src/org_passingreads.rs index 5063a15e..c3cf70c4 100644 --- a/crates/jacquard-api/src/org_passingreads.rs +++ b/crates/jacquard-api/src/org_passingreads.rs @@ -566,37 +566,37 @@ pub mod location_entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type H3; type BookCount; + type H3; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type H3 = Unset; type BookCount = Unset; - } - ///State transition - sets the `h3` field to Set - pub struct SetH3(PhantomData St>); - impl sealed::Sealed for SetH3 {} - impl State for SetH3 { - type H3 = Set; - type BookCount = St::BookCount; + type H3 = Unset; } ///State transition - sets the `book_count` field to Set pub struct SetBookCount(PhantomData St>); impl sealed::Sealed for SetBookCount {} impl State for SetBookCount { - type H3 = St::H3; type BookCount = Set; + type H3 = St::H3; + } + ///State transition - sets the `h3` field to Set + pub struct SetH3(PhantomData St>); + impl sealed::Sealed for SetH3 {} + impl State for SetH3 { + type BookCount = St::BookCount; + type H3 = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `h3` field - pub struct h3(()); ///Marker type for the `book_count` field pub struct book_count(()); + ///Marker type for the `h3` field + pub struct h3(()); } } @@ -666,8 +666,8 @@ where impl LocationEntryBuilder where St: location_entry_state::State, - St::H3: location_entry_state::IsSet, St::BookCount: location_entry_state::IsSet, + St::H3: location_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> LocationEntry { diff --git a/crates/jacquard-api/src/org_passingreads/book.rs b/crates/jacquard-api/src/org_passingreads/book.rs index 035d321f..1926e1d6 100644 --- a/crates/jacquard-api/src/org_passingreads/book.rs +++ b/crates/jacquard-api/src/org_passingreads/book.rs @@ -353,84 +353,84 @@ pub mod confirmed_event_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Event; + type Location; type OccurredAt; type Uri; type Actor; - type Location; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Event = Unset; + type Location = Unset; type OccurredAt = Unset; type Uri = Unset; type Actor = Unset; - type Location = Unset; } ///State transition - sets the `event` field to Set pub struct SetEvent(PhantomData St>); impl sealed::Sealed for SetEvent {} impl State for SetEvent { type Event = Set; + type Location = St::Location; + type OccurredAt = St::OccurredAt; + type Uri = St::Uri; + type Actor = St::Actor; + } + ///State transition - sets the `location` field to Set + pub struct SetLocation(PhantomData St>); + impl sealed::Sealed for SetLocation {} + impl State for SetLocation { + type Event = St::Event; + type Location = Set; type OccurredAt = St::OccurredAt; type Uri = St::Uri; type Actor = St::Actor; - type Location = St::Location; } ///State transition - sets the `occurred_at` field to Set pub struct SetOccurredAt(PhantomData St>); impl sealed::Sealed for SetOccurredAt {} impl State for SetOccurredAt { type Event = St::Event; + type Location = St::Location; type OccurredAt = Set; type Uri = St::Uri; type Actor = St::Actor; - type Location = St::Location; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Event = St::Event; + type Location = St::Location; type OccurredAt = St::OccurredAt; type Uri = Set; type Actor = St::Actor; - type Location = St::Location; } ///State transition - sets the `actor` field to Set pub struct SetActor(PhantomData St>); impl sealed::Sealed for SetActor {} impl State for SetActor { type Event = St::Event; - type OccurredAt = St::OccurredAt; - type Uri = St::Uri; - type Actor = Set; type Location = St::Location; - } - ///State transition - sets the `location` field to Set - pub struct SetLocation(PhantomData St>); - impl sealed::Sealed for SetLocation {} - impl State for SetLocation { - type Event = St::Event; type OccurredAt = St::OccurredAt; type Uri = St::Uri; - type Actor = St::Actor; - type Location = Set; + type Actor = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `event` field pub struct event(()); + ///Marker type for the `location` field + pub struct location(()); ///Marker type for the `occurred_at` field pub struct occurred_at(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `actor` field pub struct actor(()); - ///Marker type for the `location` field - pub struct location(()); } } @@ -564,10 +564,10 @@ impl ConfirmedEventBuilder where St: confirmed_event_state::State, St::Event: confirmed_event_state::IsSet, + St::Location: confirmed_event_state::IsSet, St::OccurredAt: confirmed_event_state::IsSet, St::Uri: confirmed_event_state::IsSet, St::Actor: confirmed_event_state::IsSet, - St::Location: confirmed_event_state::IsSet, { /// Build the final struct. pub fn build(self) -> ConfirmedEvent { @@ -897,9 +897,9 @@ pub mod registration_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type OccurredAt; - type Authors; type BookId; + type Authors; + type OccurredAt; type Title; type RegisteredBy; } @@ -907,19 +907,19 @@ pub mod registration_view_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type OccurredAt = Unset; - type Authors = Unset; type BookId = Unset; + type Authors = Unset; + type OccurredAt = Unset; type Title = Unset; type RegisteredBy = Unset; } - ///State transition - sets the `occurred_at` field to Set - pub struct SetOccurredAt(PhantomData St>); - impl sealed::Sealed for SetOccurredAt {} - impl State for SetOccurredAt { - type OccurredAt = Set; + ///State transition - sets the `book_id` field to Set + pub struct SetBookId(PhantomData St>); + impl sealed::Sealed for SetBookId {} + impl State for SetBookId { + type BookId = Set; type Authors = St::Authors; - type BookId = St::BookId; + type OccurredAt = St::OccurredAt; type Title = St::Title; type RegisteredBy = St::RegisteredBy; } @@ -927,19 +927,19 @@ pub mod registration_view_state { pub struct SetAuthors(PhantomData St>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { - type OccurredAt = St::OccurredAt; - type Authors = Set; type BookId = St::BookId; + type Authors = Set; + type OccurredAt = St::OccurredAt; type Title = St::Title; type RegisteredBy = St::RegisteredBy; } - ///State transition - sets the `book_id` field to Set - pub struct SetBookId(PhantomData St>); - impl sealed::Sealed for SetBookId {} - impl State for SetBookId { - type OccurredAt = St::OccurredAt; + ///State transition - sets the `occurred_at` field to Set + pub struct SetOccurredAt(PhantomData St>); + impl sealed::Sealed for SetOccurredAt {} + impl State for SetOccurredAt { + type BookId = St::BookId; type Authors = St::Authors; - type BookId = Set; + type OccurredAt = Set; type Title = St::Title; type RegisteredBy = St::RegisteredBy; } @@ -947,9 +947,9 @@ pub mod registration_view_state { pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type OccurredAt = St::OccurredAt; - type Authors = St::Authors; type BookId = St::BookId; + type Authors = St::Authors; + type OccurredAt = St::OccurredAt; type Title = Set; type RegisteredBy = St::RegisteredBy; } @@ -957,21 +957,21 @@ pub mod registration_view_state { pub struct SetRegisteredBy(PhantomData St>); impl sealed::Sealed for SetRegisteredBy {} impl State for SetRegisteredBy { - type OccurredAt = St::OccurredAt; - type Authors = St::Authors; type BookId = St::BookId; + type Authors = St::Authors; + type OccurredAt = St::OccurredAt; type Title = St::Title; type RegisteredBy = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `occurred_at` field - pub struct occurred_at(()); - ///Marker type for the `authors` field - pub struct authors(()); ///Marker type for the `book_id` field pub struct book_id(()); + ///Marker type for the `authors` field + pub struct authors(()); + ///Marker type for the `occurred_at` field + pub struct occurred_at(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `registered_by` field @@ -1122,9 +1122,9 @@ where impl RegistrationViewBuilder where St: registration_view_state::State, - St::OccurredAt: registration_view_state::IsSet, - St::Authors: registration_view_state::IsSet, St::BookId: registration_view_state::IsSet, + St::Authors: registration_view_state::IsSet, + St::OccurredAt: registration_view_state::IsSet, St::Title: registration_view_state::IsSet, St::RegisteredBy: registration_view_state::IsSet, { @@ -1167,9 +1167,9 @@ pub mod stateful_book_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Cid; type Registration; type Uri; - type Cid; type State; type CurrentHolder; } @@ -1177,19 +1177,29 @@ pub mod stateful_book_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Cid = Unset; type Registration = Unset; type Uri = Unset; - type Cid = Unset; type State = Unset; type CurrentHolder = Unset; } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Cid = Set; + type Registration = St::Registration; + type Uri = St::Uri; + type State = St::State; + type CurrentHolder = St::CurrentHolder; + } ///State transition - sets the `registration` field to Set pub struct SetRegistration(PhantomData St>); impl sealed::Sealed for SetRegistration {} impl State for SetRegistration { + type Cid = St::Cid; type Registration = Set; type Uri = St::Uri; - type Cid = St::Cid; type State = St::State; type CurrentHolder = St::CurrentHolder; } @@ -1197,19 +1207,9 @@ pub mod stateful_book_state { pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Registration = St::Registration; - type Uri = Set; type Cid = St::Cid; - type State = St::State; - type CurrentHolder = St::CurrentHolder; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { type Registration = St::Registration; - type Uri = St::Uri; - type Cid = Set; + type Uri = Set; type State = St::State; type CurrentHolder = St::CurrentHolder; } @@ -1217,9 +1217,9 @@ pub mod stateful_book_state { pub struct SetState(PhantomData St>); impl sealed::Sealed for SetState {} impl State for SetState { + type Cid = St::Cid; type Registration = St::Registration; type Uri = St::Uri; - type Cid = St::Cid; type State = Set; type CurrentHolder = St::CurrentHolder; } @@ -1227,21 +1227,21 @@ pub mod stateful_book_state { pub struct SetCurrentHolder(PhantomData St>); impl sealed::Sealed for SetCurrentHolder {} impl State for SetCurrentHolder { + type Cid = St::Cid; type Registration = St::Registration; type Uri = St::Uri; - type Cid = St::Cid; type State = St::State; type CurrentHolder = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `registration` field pub struct registration(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `state` field pub struct state(()); ///Marker type for the `current_holder` field @@ -1437,9 +1437,9 @@ where impl StatefulBookBuilder where St: stateful_book_state::State, + St::Cid: stateful_book_state::IsSet, St::Registration: stateful_book_state::IsSet, St::Uri: stateful_book_state::IsSet, - St::Cid: stateful_book_state::IsSet, St::State: stateful_book_state::IsSet, St::CurrentHolder: stateful_book_state::IsSet, { diff --git a/crates/jacquard-api/src/org_passingreads/book/event.rs b/crates/jacquard-api/src/org_passingreads/book/event.rs index 40b34863..d5313970 100644 --- a/crates/jacquard-api/src/org_passingreads/book/event.rs +++ b/crates/jacquard-api/src/org_passingreads/book/event.rs @@ -262,105 +262,105 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type BookSig; + type BookPub; type Book; + type Location; type OccurredAt; type Did; - type Location; - type BookPub; + type BookSig; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type BookSig = Unset; + type BookPub = Unset; type Book = Unset; + type Location = Unset; type OccurredAt = Unset; type Did = Unset; - type Location = Unset; - type BookPub = Unset; + type BookSig = Unset; } - ///State transition - sets the `book_sig` field to Set - pub struct SetBookSig(PhantomData St>); - impl sealed::Sealed for SetBookSig {} - impl State for SetBookSig { - type BookSig = Set; + ///State transition - sets the `book_pub` field to Set + pub struct SetBookPub(PhantomData St>); + impl sealed::Sealed for SetBookPub {} + impl State for SetBookPub { + type BookPub = Set; type Book = St::Book; + type Location = St::Location; type OccurredAt = St::OccurredAt; type Did = St::Did; - type Location = St::Location; - type BookPub = St::BookPub; + type BookSig = St::BookSig; } ///State transition - sets the `book` field to Set pub struct SetBook(PhantomData St>); impl sealed::Sealed for SetBook {} impl State for SetBook { - type BookSig = St::BookSig; + type BookPub = St::BookPub; type Book = Set; + type Location = St::Location; type OccurredAt = St::OccurredAt; type Did = St::Did; - type Location = St::Location; + type BookSig = St::BookSig; + } + ///State transition - sets the `location` field to Set + pub struct SetLocation(PhantomData St>); + impl sealed::Sealed for SetLocation {} + impl State for SetLocation { type BookPub = St::BookPub; + type Book = St::Book; + type Location = Set; + type OccurredAt = St::OccurredAt; + type Did = St::Did; + type BookSig = St::BookSig; } ///State transition - sets the `occurred_at` field to Set pub struct SetOccurredAt(PhantomData St>); impl sealed::Sealed for SetOccurredAt {} impl State for SetOccurredAt { - type BookSig = St::BookSig; + type BookPub = St::BookPub; type Book = St::Book; + type Location = St::Location; type OccurredAt = Set; type Did = St::Did; - type Location = St::Location; - type BookPub = St::BookPub; + type BookSig = St::BookSig; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type BookSig = St::BookSig; + type BookPub = St::BookPub; type Book = St::Book; + type Location = St::Location; type OccurredAt = St::OccurredAt; type Did = Set; - type Location = St::Location; - type BookPub = St::BookPub; - } - ///State transition - sets the `location` field to Set - pub struct SetLocation(PhantomData St>); - impl sealed::Sealed for SetLocation {} - impl State for SetLocation { type BookSig = St::BookSig; - type Book = St::Book; - type OccurredAt = St::OccurredAt; - type Did = St::Did; - type Location = Set; - type BookPub = St::BookPub; } - ///State transition - sets the `book_pub` field to Set - pub struct SetBookPub(PhantomData St>); - impl sealed::Sealed for SetBookPub {} - impl State for SetBookPub { - type BookSig = St::BookSig; + ///State transition - sets the `book_sig` field to Set + pub struct SetBookSig(PhantomData St>); + impl sealed::Sealed for SetBookSig {} + impl State for SetBookSig { + type BookPub = St::BookPub; type Book = St::Book; + type Location = St::Location; type OccurredAt = St::OccurredAt; type Did = St::Did; - type Location = St::Location; - type BookPub = Set; + type BookSig = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `book_sig` field - pub struct book_sig(()); + ///Marker type for the `book_pub` field + pub struct book_pub(()); ///Marker type for the `book` field pub struct book(()); + ///Marker type for the `location` field + pub struct location(()); ///Marker type for the `occurred_at` field pub struct occurred_at(()); ///Marker type for the `did` field pub struct did(()); - ///Marker type for the `location` field - pub struct location(()); - ///Marker type for the `book_pub` field - pub struct book_pub(()); + ///Marker type for the `book_sig` field + pub struct book_sig(()); } } @@ -527,12 +527,12 @@ where impl EventBuilder where St: event_state::State, - St::BookSig: event_state::IsSet, + St::BookPub: event_state::IsSet, St::Book: event_state::IsSet, + St::Location: event_state::IsSet, St::OccurredAt: event_state::IsSet, St::Did: event_state::IsSet, - St::Location: event_state::IsSet, - St::BookPub: event_state::IsSet, + St::BookSig: event_state::IsSet, { /// Build the final struct. pub fn build(self) -> Event { diff --git a/crates/jacquard-api/src/org_passingreads/book/registration.rs b/crates/jacquard-api/src/org_passingreads/book/registration.rs index 3903402e..6cdb0202 100644 --- a/crates/jacquard-api/src/org_passingreads/book/registration.rs +++ b/crates/jacquard-api/src/org_passingreads/book/registration.rs @@ -198,151 +198,151 @@ pub mod registration_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; - type Authors; - type OccurredAt; type BookId; + type BookSig; + type OccurredAt; type Title; - type PublicationId; + type Authors; type BookPub; - type BookSig; + type PublicationId; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; - type Authors = Unset; - type OccurredAt = Unset; type BookId = Unset; + type BookSig = Unset; + type OccurredAt = Unset; type Title = Unset; - type PublicationId = Unset; + type Authors = Unset; type BookPub = Unset; - type BookSig = Unset; + type PublicationId = Unset; + type Did = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Authors = St::Authors; + ///State transition - sets the `book_id` field to Set + pub struct SetBookId(PhantomData St>); + impl sealed::Sealed for SetBookId {} + impl State for SetBookId { + type BookId = Set; + type BookSig = St::BookSig; type OccurredAt = St::OccurredAt; - type BookId = St::BookId; type Title = St::Title; - type PublicationId = St::PublicationId; + type Authors = St::Authors; type BookPub = St::BookPub; - type BookSig = St::BookSig; - } - ///State transition - sets the `authors` field to Set - pub struct SetAuthors(PhantomData St>); - impl sealed::Sealed for SetAuthors {} - impl State for SetAuthors { + type PublicationId = St::PublicationId; type Did = St::Did; - type Authors = Set; - type OccurredAt = St::OccurredAt; + } + ///State transition - sets the `book_sig` field to Set + pub struct SetBookSig(PhantomData St>); + impl sealed::Sealed for SetBookSig {} + impl State for SetBookSig { type BookId = St::BookId; + type BookSig = Set; + type OccurredAt = St::OccurredAt; type Title = St::Title; - type PublicationId = St::PublicationId; + type Authors = St::Authors; type BookPub = St::BookPub; - type BookSig = St::BookSig; + type PublicationId = St::PublicationId; + type Did = St::Did; } ///State transition - sets the `occurred_at` field to Set pub struct SetOccurredAt(PhantomData St>); impl sealed::Sealed for SetOccurredAt {} impl State for SetOccurredAt { - type Did = St::Did; - type Authors = St::Authors; - type OccurredAt = Set; type BookId = St::BookId; - type Title = St::Title; - type PublicationId = St::PublicationId; - type BookPub = St::BookPub; type BookSig = St::BookSig; - } - ///State transition - sets the `book_id` field to Set - pub struct SetBookId(PhantomData St>); - impl sealed::Sealed for SetBookId {} - impl State for SetBookId { - type Did = St::Did; - type Authors = St::Authors; - type OccurredAt = St::OccurredAt; - type BookId = Set; + type OccurredAt = Set; type Title = St::Title; - type PublicationId = St::PublicationId; + type Authors = St::Authors; type BookPub = St::BookPub; - type BookSig = St::BookSig; + type PublicationId = St::PublicationId; + type Did = St::Did; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Did = St::Did; - type Authors = St::Authors; - type OccurredAt = St::OccurredAt; type BookId = St::BookId; + type BookSig = St::BookSig; + type OccurredAt = St::OccurredAt; type Title = Set; - type PublicationId = St::PublicationId; + type Authors = St::Authors; type BookPub = St::BookPub; - type BookSig = St::BookSig; - } - ///State transition - sets the `publication_id` field to Set - pub struct SetPublicationId(PhantomData St>); - impl sealed::Sealed for SetPublicationId {} - impl State for SetPublicationId { + type PublicationId = St::PublicationId; type Did = St::Did; - type Authors = St::Authors; - type OccurredAt = St::OccurredAt; + } + ///State transition - sets the `authors` field to Set + pub struct SetAuthors(PhantomData St>); + impl sealed::Sealed for SetAuthors {} + impl State for SetAuthors { type BookId = St::BookId; + type BookSig = St::BookSig; + type OccurredAt = St::OccurredAt; type Title = St::Title; - type PublicationId = Set; + type Authors = Set; type BookPub = St::BookPub; - type BookSig = St::BookSig; + type PublicationId = St::PublicationId; + type Did = St::Did; } ///State transition - sets the `book_pub` field to Set pub struct SetBookPub(PhantomData St>); impl sealed::Sealed for SetBookPub {} impl State for SetBookPub { - type Did = St::Did; - type Authors = St::Authors; - type OccurredAt = St::OccurredAt; type BookId = St::BookId; + type BookSig = St::BookSig; + type OccurredAt = St::OccurredAt; type Title = St::Title; - type PublicationId = St::PublicationId; + type Authors = St::Authors; type BookPub = Set; - type BookSig = St::BookSig; - } - ///State transition - sets the `book_sig` field to Set - pub struct SetBookSig(PhantomData St>); - impl sealed::Sealed for SetBookSig {} - impl State for SetBookSig { + type PublicationId = St::PublicationId; type Did = St::Did; - type Authors = St::Authors; + } + ///State transition - sets the `publication_id` field to Set + pub struct SetPublicationId(PhantomData St>); + impl sealed::Sealed for SetPublicationId {} + impl State for SetPublicationId { + type BookId = St::BookId; + type BookSig = St::BookSig; type OccurredAt = St::OccurredAt; + type Title = St::Title; + type Authors = St::Authors; + type BookPub = St::BookPub; + type PublicationId = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { type BookId = St::BookId; + type BookSig = St::BookSig; + type OccurredAt = St::OccurredAt; type Title = St::Title; - type PublicationId = St::PublicationId; + type Authors = St::Authors; type BookPub = St::BookPub; - type BookSig = Set; + type PublicationId = St::PublicationId; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); - ///Marker type for the `authors` field - pub struct authors(()); - ///Marker type for the `occurred_at` field - pub struct occurred_at(()); ///Marker type for the `book_id` field pub struct book_id(()); + ///Marker type for the `book_sig` field + pub struct book_sig(()); + ///Marker type for the `occurred_at` field + pub struct occurred_at(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `publication_id` field - pub struct publication_id(()); + ///Marker type for the `authors` field + pub struct authors(()); ///Marker type for the `book_pub` field pub struct book_pub(()); - ///Marker type for the `book_sig` field - pub struct book_sig(()); + ///Marker type for the `publication_id` field + pub struct publication_id(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -563,14 +563,14 @@ where impl RegistrationBuilder where St: registration_state::State, - St::Did: registration_state::IsSet, - St::Authors: registration_state::IsSet, - St::OccurredAt: registration_state::IsSet, St::BookId: registration_state::IsSet, + St::BookSig: registration_state::IsSet, + St::OccurredAt: registration_state::IsSet, St::Title: registration_state::IsSet, - St::PublicationId: registration_state::IsSet, + St::Authors: registration_state::IsSet, St::BookPub: registration_state::IsSet, - St::BookSig: registration_state::IsSet, + St::PublicationId: registration_state::IsSet, + St::Did: registration_state::IsSet, { /// Build the final struct. pub fn build(self) -> Registration { diff --git a/crates/jacquard-api/src/org_simocracy/event.rs b/crates/jacquard-api/src/org_simocracy/event.rs index fb2c2355..6bf1c851 100644 --- a/crates/jacquard-api/src/org_simocracy/event.rs +++ b/crates/jacquard-api/src/org_simocracy/event.rs @@ -189,65 +189,65 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type ActorDid; type CreatedAt; type Type; - type ActorDid; type SimNames; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type ActorDid = Unset; type CreatedAt = Unset; type Type = Unset; - type ActorDid = Unset; type SimNames = Unset; } + ///State transition - sets the `actor_did` field to Set + pub struct SetActorDid(PhantomData St>); + impl sealed::Sealed for SetActorDid {} + impl State for SetActorDid { + type ActorDid = Set; + type CreatedAt = St::CreatedAt; + type Type = St::Type; + type SimNames = St::SimNames; + } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type ActorDid = St::ActorDid; type CreatedAt = Set; type Type = St::Type; - type ActorDid = St::ActorDid; type SimNames = St::SimNames; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { - type CreatedAt = St::CreatedAt; - type Type = Set; type ActorDid = St::ActorDid; - type SimNames = St::SimNames; - } - ///State transition - sets the `actor_did` field to Set - pub struct SetActorDid(PhantomData St>); - impl sealed::Sealed for SetActorDid {} - impl State for SetActorDid { type CreatedAt = St::CreatedAt; - type Type = St::Type; - type ActorDid = Set; + type Type = Set; type SimNames = St::SimNames; } ///State transition - sets the `sim_names` field to Set pub struct SetSimNames(PhantomData St>); impl sealed::Sealed for SetSimNames {} impl State for SetSimNames { + type ActorDid = St::ActorDid; type CreatedAt = St::CreatedAt; type Type = St::Type; - type ActorDid = St::ActorDid; type SimNames = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `actor_did` field + pub struct actor_did(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `type` field pub struct r#type(()); - ///Marker type for the `actor_did` field - pub struct actor_did(()); ///Marker type for the `sim_names` field pub struct sim_names(()); } @@ -432,9 +432,9 @@ impl EventBuilder { impl EventBuilder where St: event_state::State, + St::ActorDid: event_state::IsSet, St::CreatedAt: event_state::IsSet, St::Type: event_state::IsSet, - St::ActorDid: event_state::IsSet, St::SimNames: event_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/org_simocracy/interview.rs b/crates/jacquard-api/src/org_simocracy/interview.rs index 747223c9..3878962a 100644 --- a/crates/jacquard-api/src/org_simocracy/interview.rs +++ b/crates/jacquard-api/src/org_simocracy/interview.rs @@ -223,66 +223,66 @@ pub mod interview_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Sim; - type OpenAnswers; type YesNoAnswers; type CreatedAt; + type OpenAnswers; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Sim = Unset; - type OpenAnswers = Unset; type YesNoAnswers = Unset; type CreatedAt = Unset; + type OpenAnswers = Unset; } ///State transition - sets the `sim` field to Set pub struct SetSim(PhantomData St>); impl sealed::Sealed for SetSim {} impl State for SetSim { type Sim = Set; - type OpenAnswers = St::OpenAnswers; - type YesNoAnswers = St::YesNoAnswers; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `open_answers` field to Set - pub struct SetOpenAnswers(PhantomData St>); - impl sealed::Sealed for SetOpenAnswers {} - impl State for SetOpenAnswers { - type Sim = St::Sim; - type OpenAnswers = Set; type YesNoAnswers = St::YesNoAnswers; type CreatedAt = St::CreatedAt; + type OpenAnswers = St::OpenAnswers; } ///State transition - sets the `yes_no_answers` field to Set pub struct SetYesNoAnswers(PhantomData St>); impl sealed::Sealed for SetYesNoAnswers {} impl State for SetYesNoAnswers { type Sim = St::Sim; - type OpenAnswers = St::OpenAnswers; type YesNoAnswers = Set; type CreatedAt = St::CreatedAt; + type OpenAnswers = St::OpenAnswers; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Sim = St::Sim; - type OpenAnswers = St::OpenAnswers; type YesNoAnswers = St::YesNoAnswers; type CreatedAt = Set; + type OpenAnswers = St::OpenAnswers; + } + ///State transition - sets the `open_answers` field to Set + pub struct SetOpenAnswers(PhantomData St>); + impl sealed::Sealed for SetOpenAnswers {} + impl State for SetOpenAnswers { + type Sim = St::Sim; + type YesNoAnswers = St::YesNoAnswers; + type CreatedAt = St::CreatedAt; + type OpenAnswers = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `sim` field pub struct sim(()); - ///Marker type for the `open_answers` field - pub struct open_answers(()); ///Marker type for the `yes_no_answers` field pub struct yes_no_answers(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `open_answers` field + pub struct open_answers(()); } } @@ -396,9 +396,9 @@ impl InterviewBuilder where St: interview_state::State, St::Sim: interview_state::IsSet, - St::OpenAnswers: interview_state::IsSet, St::YesNoAnswers: interview_state::IsSet, St::CreatedAt: interview_state::IsSet, + St::OpenAnswers: interview_state::IsSet, { /// Build the final struct. pub fn build(self) -> Interview { diff --git a/crates/jacquard-api/src/org_simocracy/senate/activity.rs b/crates/jacquard-api/src/org_simocracy/senate/activity.rs index ff2cd289..7ff71ce9 100644 --- a/crates/jacquard-api/src/org_simocracy/senate/activity.rs +++ b/crates/jacquard-api/src/org_simocracy/senate/activity.rs @@ -334,51 +334,51 @@ pub mod activity_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type ActivityType; type CommitteeSims; type CreatedAt; - type ActivityType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type ActivityType = Unset; type CommitteeSims = Unset; type CreatedAt = Unset; - type ActivityType = Unset; + } + ///State transition - sets the `activity_type` field to Set + pub struct SetActivityType(PhantomData St>); + impl sealed::Sealed for SetActivityType {} + impl State for SetActivityType { + type ActivityType = Set; + type CommitteeSims = St::CommitteeSims; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `committee_sims` field to Set pub struct SetCommitteeSims(PhantomData St>); impl sealed::Sealed for SetCommitteeSims {} impl State for SetCommitteeSims { + type ActivityType = St::ActivityType; type CommitteeSims = Set; type CreatedAt = St::CreatedAt; - type ActivityType = St::ActivityType; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type CommitteeSims = St::CommitteeSims; - type CreatedAt = Set; type ActivityType = St::ActivityType; - } - ///State transition - sets the `activity_type` field to Set - pub struct SetActivityType(PhantomData St>); - impl sealed::Sealed for SetActivityType {} - impl State for SetActivityType { type CommitteeSims = St::CommitteeSims; - type CreatedAt = St::CreatedAt; - type ActivityType = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `activity_type` field + pub struct activity_type(()); ///Marker type for the `committee_sims` field pub struct committee_sims(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `activity_type` field - pub struct activity_type(()); } } @@ -527,9 +527,9 @@ impl ActivityBuilder { impl ActivityBuilder where St: activity_state::State, + St::ActivityType: activity_state::IsSet, St::CommitteeSims: activity_state::IsSet, St::CreatedAt: activity_state::IsSet, - St::ActivityType: activity_state::IsSet, { /// Build the final struct. pub fn build(self) -> Activity { diff --git a/crates/jacquard-api/src/org_simocracy/sim.rs b/crates/jacquard-api/src/org_simocracy/sim.rs index 99faabc6..d4320537 100644 --- a/crates/jacquard-api/src/org_simocracy/sim.rs +++ b/crates/jacquard-api/src/org_simocracy/sim.rs @@ -161,51 +161,51 @@ pub mod sim_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Settings; type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Settings = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Settings = St::Settings; - type CreatedAt = St::CreatedAt; + type Name = Unset; } ///State transition - sets the `settings` field to Set pub struct SetSettings(PhantomData St>); impl sealed::Sealed for SetSettings {} impl State for SetSettings { - type Name = St::Name; type Settings = Set; type CreatedAt = St::CreatedAt; + type Name = St::Name; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type Settings = St::Settings; type CreatedAt = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Settings = St::Settings; + type CreatedAt = St::CreatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `settings` field pub struct settings(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -309,9 +309,9 @@ where impl SimBuilder where St: sim_state::State, - St::Name: sim_state::IsSet, St::Settings: sim_state::IsSet, St::CreatedAt: sim_state::IsSet, + St::Name: sim_state::IsSet, { /// Build the final struct. pub fn build(self) -> Sim { diff --git a/crates/jacquard-api/src/org_simocracy/skill.rs b/crates/jacquard-api/src/org_simocracy/skill.rs index 4b6d2fe2..01d7801b 100644 --- a/crates/jacquard-api/src/org_simocracy/skill.rs +++ b/crates/jacquard-api/src/org_simocracy/skill.rs @@ -198,51 +198,51 @@ pub mod skill_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; type Sim; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; type Sim = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; - type Sim = St::Sim; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; type Sim = St::Sim; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `sim` field to Set pub struct SetSim(PhantomData St>); impl sealed::Sealed for SetSim {} impl State for SetSim { - type CreatedAt = St::CreatedAt; type Name = St::Name; type Sim = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type Sim = St::Sim; + type CreatedAt = 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 `name` field pub struct name(()); ///Marker type for the `sim` field pub struct sim(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -411,9 +411,9 @@ impl SkillBuilder { impl SkillBuilder where St: skill_state::State, - St::CreatedAt: skill_state::IsSet, St::Name: skill_state::IsSet, St::Sim: skill_state::IsSet, + St::CreatedAt: skill_state::IsSet, { /// Build the final struct. pub fn build(self) -> Skill { diff --git a/crates/jacquard-api/src/org_simocracy/style.rs b/crates/jacquard-api/src/org_simocracy/style.rs index 772455b0..8eebb708 100644 --- a/crates/jacquard-api/src/org_simocracy/style.rs +++ b/crates/jacquard-api/src/org_simocracy/style.rs @@ -142,51 +142,51 @@ pub mod style_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Description; type Sim; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Description = Unset; type Sim = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Description = St::Description; + type Sim = St::Sim; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { + type CreatedAt = St::CreatedAt; type Description = Set; type Sim = St::Sim; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `sim` field to Set pub struct SetSim(PhantomData St>); impl sealed::Sealed for SetSim {} impl State for SetSim { - type Description = St::Description; - type Sim = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Description = St::Description; - type Sim = St::Sim; - type CreatedAt = Set; + type Sim = 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 `description` field pub struct description(()); ///Marker type for the `sim` field pub struct sim(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -291,9 +291,9 @@ where impl StyleBuilder where St: style_state::State, + St::CreatedAt: style_state::IsSet, St::Description: style_state::IsSet, St::Sim: style_state::IsSet, - St::CreatedAt: style_state::IsSet, { /// Build the final struct. pub fn build(self) -> Style { diff --git a/crates/jacquard-api/src/org_stormlightlabs/malfestio/deck.rs b/crates/jacquard-api/src/org_stormlightlabs/malfestio/deck.rs index e05bea06..07eb5cd9 100644 --- a/crates/jacquard-api/src/org_stormlightlabs/malfestio/deck.rs +++ b/crates/jacquard-api/src/org_stormlightlabs/malfestio/deck.rs @@ -280,37 +280,37 @@ pub mod deck_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Title; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Title = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Title = St::Title; + type CreatedAt = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type CreatedAt = St::CreatedAt; type Title = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Title = St::Title; + type CreatedAt = 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 `title` field pub struct title(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -495,8 +495,8 @@ impl DeckBuilder { impl DeckBuilder where St: deck_state::State, - St::CreatedAt: deck_state::IsSet, St::Title: deck_state::IsSet, + St::CreatedAt: deck_state::IsSet, { /// Build the final struct. pub fn build(self) -> Deck { diff --git a/crates/jacquard-api/src/org_stormlightlabs/malfestio/thread/comment.rs b/crates/jacquard-api/src/org_stormlightlabs/malfestio/thread/comment.rs index dfead849..6932aa20 100644 --- a/crates/jacquard-api/src/org_stormlightlabs/malfestio/thread/comment.rs +++ b/crates/jacquard-api/src/org_stormlightlabs/malfestio/thread/comment.rs @@ -129,49 +129,49 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Body; + type CreatedAt; type SubjectRef; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Body = Unset; + type CreatedAt = Unset; type SubjectRef = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Body = St::Body; - type SubjectRef = St::SubjectRef; - } ///State transition - sets the `body` field to Set pub struct SetBody(PhantomData St>); impl sealed::Sealed for SetBody {} impl State for SetBody { - type CreatedAt = St::CreatedAt; type Body = Set; + type CreatedAt = St::CreatedAt; + type SubjectRef = St::SubjectRef; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Body = St::Body; + type CreatedAt = Set; type SubjectRef = St::SubjectRef; } ///State transition - sets the `subject_ref` field to Set pub struct SetSubjectRef(PhantomData St>); impl sealed::Sealed for SetSubjectRef {} impl State for SetSubjectRef { - type CreatedAt = St::CreatedAt; type Body = St::Body; + type CreatedAt = St::CreatedAt; type SubjectRef = 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 `body` field pub struct body(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `subject_ref` field pub struct subject_ref(()); } @@ -275,8 +275,8 @@ where impl CommentBuilder where St: comment_state::State, - St::CreatedAt: comment_state::IsSet, St::Body: comment_state::IsSet, + St::CreatedAt: comment_state::IsSet, St::SubjectRef: comment_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/pink_vase/pod/comment.rs b/crates/jacquard-api/src/pink_vase/pod/comment.rs index caa93d31..cd3e3ccc 100644 --- a/crates/jacquard-api/src/pink_vase/pod/comment.rs +++ b/crates/jacquard-api/src/pink_vase/pod/comment.rs @@ -129,51 +129,51 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Episode; type CreatedAt; type Text; - type Episode; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Episode = Unset; type CreatedAt = Unset; type Text = Unset; - type Episode = Unset; + } + ///State transition - sets the `episode` field to Set + pub struct SetEpisode(PhantomData St>); + impl sealed::Sealed for SetEpisode {} + impl State for SetEpisode { + type Episode = Set; + type CreatedAt = St::CreatedAt; + type Text = St::Text; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Episode = St::Episode; type CreatedAt = Set; type Text = St::Text; - type Episode = St::Episode; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { - type CreatedAt = St::CreatedAt; - type Text = Set; type Episode = St::Episode; - } - ///State transition - sets the `episode` field to Set - pub struct SetEpisode(PhantomData St>); - impl sealed::Sealed for SetEpisode {} - impl State for SetEpisode { type CreatedAt = St::CreatedAt; - type Text = St::Text; - type Episode = Set; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `episode` field + pub struct episode(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `text` field pub struct text(()); - ///Marker type for the `episode` field - pub struct episode(()); } } @@ -275,9 +275,9 @@ where impl CommentBuilder where St: comment_state::State, + St::Episode: comment_state::IsSet, St::CreatedAt: comment_state::IsSet, St::Text: comment_state::IsSet, - St::Episode: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/pink_vase/pod/episode.rs b/crates/jacquard-api/src/pink_vase/pod/episode.rs index 82e54f31..c239aa85 100644 --- a/crates/jacquard-api/src/pink_vase/pod/episode.rs +++ b/crates/jacquard-api/src/pink_vase/pod/episode.rs @@ -280,65 +280,65 @@ pub mod episode_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Title; type CreatedAt; type Show; - type Title; type AudioUrl; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Title = Unset; type CreatedAt = Unset; type Show = Unset; - type Title = Unset; type AudioUrl = Unset; } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Title = Set; + type CreatedAt = St::CreatedAt; + type Show = St::Show; + type AudioUrl = St::AudioUrl; + } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Title = St::Title; type CreatedAt = Set; type Show = St::Show; - type Title = St::Title; type AudioUrl = St::AudioUrl; } ///State transition - sets the `show` field to Set pub struct SetShow(PhantomData St>); impl sealed::Sealed for SetShow {} impl State for SetShow { - type CreatedAt = St::CreatedAt; - type Show = Set; type Title = St::Title; - type AudioUrl = St::AudioUrl; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { type CreatedAt = St::CreatedAt; - type Show = St::Show; - type Title = Set; + type Show = Set; type AudioUrl = St::AudioUrl; } ///State transition - sets the `audio_url` field to Set pub struct SetAudioUrl(PhantomData St>); impl sealed::Sealed for SetAudioUrl {} impl State for SetAudioUrl { + type Title = St::Title; type CreatedAt = St::CreatedAt; type Show = St::Show; - type Title = St::Title; type AudioUrl = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `show` field pub struct show(()); - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `audio_url` field pub struct audio_url(()); } @@ -554,9 +554,9 @@ where impl EpisodeBuilder where St: episode_state::State, + St::Title: episode_state::IsSet, St::CreatedAt: episode_state::IsSet, St::Show: episode_state::IsSet, - St::Title: episode_state::IsSet, St::AudioUrl: episode_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/pink_vase/pod/playlist.rs b/crates/jacquard-api/src/pink_vase/pod/playlist.rs index 873ee54d..9956371e 100644 --- a/crates/jacquard-api/src/pink_vase/pod/playlist.rs +++ b/crates/jacquard-api/src/pink_vase/pod/playlist.rs @@ -232,51 +232,51 @@ pub mod playlist_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; type Items; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; type Items = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; - type Items = St::Items; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; type Items = St::Items; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `items` field to Set pub struct SetItems(PhantomData St>); impl sealed::Sealed for SetItems {} impl State for SetItems { - type CreatedAt = St::CreatedAt; type Name = St::Name; type Items = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type Items = St::Items; + type CreatedAt = 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 `name` field pub struct name(()); ///Marker type for the `items` field pub struct items(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -400,9 +400,9 @@ impl PlaylistBuilder { impl PlaylistBuilder where St: playlist_state::State, - St::CreatedAt: playlist_state::IsSet, St::Name: playlist_state::IsSet, St::Items: playlist_state::IsSet, + St::CreatedAt: playlist_state::IsSet, { /// Build the final struct. pub fn build(self) -> Playlist { diff --git a/crates/jacquard-api/src/place_atwork/endorsement.rs b/crates/jacquard-api/src/place_atwork/endorsement.rs index f925e9e7..4686ed87 100644 --- a/crates/jacquard-api/src/place_atwork/endorsement.rs +++ b/crates/jacquard-api/src/place_atwork/endorsement.rs @@ -148,8 +148,8 @@ pub mod endorsement_state { pub trait State: sealed::Sealed { type Text; type CreatedAt; - type Receiver; type Giver; + type Receiver; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -157,8 +157,8 @@ pub mod endorsement_state { impl State for Empty { type Text = Unset; type CreatedAt = Unset; - type Receiver = Unset; type Giver = Unset; + type Receiver = Unset; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); @@ -166,8 +166,8 @@ pub mod endorsement_state { impl State for SetText { type Text = Set; type CreatedAt = St::CreatedAt; - type Receiver = St::Receiver; type Giver = St::Giver; + type Receiver = St::Receiver; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); @@ -175,17 +175,8 @@ pub mod endorsement_state { impl State for SetCreatedAt { type Text = St::Text; type CreatedAt = Set; - type Receiver = St::Receiver; - type Giver = St::Giver; - } - ///State transition - sets the `receiver` field to Set - pub struct SetReceiver(PhantomData St>); - impl sealed::Sealed for SetReceiver {} - impl State for SetReceiver { - type Text = St::Text; - type CreatedAt = St::CreatedAt; - type Receiver = Set; type Giver = St::Giver; + type Receiver = St::Receiver; } ///State transition - sets the `giver` field to Set pub struct SetGiver(PhantomData St>); @@ -193,8 +184,17 @@ pub mod endorsement_state { impl State for SetGiver { type Text = St::Text; type CreatedAt = St::CreatedAt; - type Receiver = St::Receiver; type Giver = Set; + type Receiver = St::Receiver; + } + ///State transition - sets the `receiver` field to Set + pub struct SetReceiver(PhantomData St>); + impl sealed::Sealed for SetReceiver {} + impl State for SetReceiver { + type Text = St::Text; + type CreatedAt = St::CreatedAt; + type Giver = St::Giver; + type Receiver = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -203,10 +203,10 @@ pub mod endorsement_state { pub struct text(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `receiver` field - pub struct receiver(()); ///Marker type for the `giver` field pub struct giver(()); + ///Marker type for the `receiver` field + pub struct receiver(()); } } @@ -335,8 +335,8 @@ where St: endorsement_state::State, St::Text: endorsement_state::IsSet, St::CreatedAt: endorsement_state::IsSet, - St::Receiver: endorsement_state::IsSet, St::Giver: endorsement_state::IsSet, + St::Receiver: endorsement_state::IsSet, { /// Build the final struct. pub fn build(self) -> Endorsement { diff --git a/crates/jacquard-api/src/place_atwork/get_listings.rs b/crates/jacquard-api/src/place_atwork/get_listings.rs index dc8086e5..31bbee62 100644 --- a/crates/jacquard-api/src/place_atwork/get_listings.rs +++ b/crates/jacquard-api/src/place_atwork/get_listings.rs @@ -110,37 +110,37 @@ pub mod listing_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Uri; + type Cid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Uri = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Uri = St::Uri; + type Cid = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Cid = St::Cid; type Uri = Set; + type Cid = St::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -223,8 +223,8 @@ impl ListingRecordBuilder { impl ListingRecordBuilder where St: listing_record_state::State, - St::Cid: listing_record_state::IsSet, St::Uri: listing_record_state::IsSet, + St::Cid: listing_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> ListingRecord { diff --git a/crates/jacquard-api/src/place_atwork/listing.rs b/crates/jacquard-api/src/place_atwork/listing.rs index c652ce25..c862e266 100644 --- a/crates/jacquard-api/src/place_atwork/listing.rs +++ b/crates/jacquard-api/src/place_atwork/listing.rs @@ -208,67 +208,67 @@ pub mod listing_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type NotBefore; type Title; - type NotAfter; type Description; + type NotAfter; + type NotBefore; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type NotBefore = Unset; type Title = Unset; - type NotAfter = Unset; type Description = Unset; - } - ///State transition - sets the `not_before` field to Set - pub struct SetNotBefore(PhantomData St>); - impl sealed::Sealed for SetNotBefore {} - impl State for SetNotBefore { - type NotBefore = Set; - type Title = St::Title; - type NotAfter = St::NotAfter; - type Description = St::Description; + type NotAfter = Unset; + type NotBefore = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type NotBefore = St::NotBefore; type Title = Set; - type NotAfter = St::NotAfter; type Description = St::Description; + type NotAfter = St::NotAfter; + type NotBefore = St::NotBefore; + } + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type Title = St::Title; + type Description = Set; + type NotAfter = St::NotAfter; + type NotBefore = St::NotBefore; } ///State transition - sets the `not_after` field to Set pub struct SetNotAfter(PhantomData St>); impl sealed::Sealed for SetNotAfter {} impl State for SetNotAfter { - type NotBefore = St::NotBefore; type Title = St::Title; - type NotAfter = Set; type Description = St::Description; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { + type NotAfter = Set; type NotBefore = St::NotBefore; + } + ///State transition - sets the `not_before` field to Set + pub struct SetNotBefore(PhantomData St>); + impl sealed::Sealed for SetNotBefore {} + impl State for SetNotBefore { type Title = St::Title; + type Description = St::Description; type NotAfter = St::NotAfter; - type Description = Set; + type NotBefore = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `not_before` field - pub struct not_before(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `not_after` field - pub struct not_after(()); ///Marker type for the `description` field pub struct description(()); + ///Marker type for the `not_after` field + pub struct not_after(()); + ///Marker type for the `not_before` field + pub struct not_before(()); } } @@ -437,10 +437,10 @@ where impl ListingBuilder where St: listing_state::State, - St::NotBefore: listing_state::IsSet, St::Title: listing_state::IsSet, - St::NotAfter: listing_state::IsSet, St::Description: listing_state::IsSet, + St::NotAfter: listing_state::IsSet, + St::NotBefore: listing_state::IsSet, { /// Build the final struct. pub fn build(self) -> Listing { diff --git a/crates/jacquard-api/src/place_atwork/search_listings.rs b/crates/jacquard-api/src/place_atwork/search_listings.rs index 328ea22c..c68213b0 100644 --- a/crates/jacquard-api/src/place_atwork/search_listings.rs +++ b/crates/jacquard-api/src/place_atwork/search_listings.rs @@ -150,37 +150,37 @@ pub mod listing_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Uri; + type Cid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Uri = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Uri = St::Uri; + type Cid = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Cid = St::Cid; type Uri = Set; + type Cid = St::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -263,8 +263,8 @@ impl ListingRecordBuilder { impl ListingRecordBuilder where St: listing_record_state::State, - St::Cid: listing_record_state::IsSet, St::Uri: listing_record_state::IsSet, + St::Cid: listing_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> ListingRecord { diff --git a/crates/jacquard-api/src/place_stream.rs b/crates/jacquard-api/src/place_stream.rs index 9e9f2b74..d6b3e90e 100644 --- a/crates/jacquard-api/src/place_stream.rs +++ b/crates/jacquard-api/src/place_stream.rs @@ -131,85 +131,85 @@ pub mod block_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; + type Record; type IndexedAt; type Cid; type Blocker; - type Record; - type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; + type Record = Unset; type IndexedAt = Unset; type Cid = Unset; type Blocker = Unset; - type Record = Unset; - type Uri = Unset; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; + type Record = St::Record; + type IndexedAt = St::IndexedAt; + type Cid = St::Cid; + type Blocker = St::Blocker; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Uri = St::Uri; + type Record = Set; + type IndexedAt = St::IndexedAt; + type Cid = St::Cid; + type Blocker = St::Blocker; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { + type Uri = St::Uri; + type Record = St::Record; type IndexedAt = Set; type Cid = St::Cid; type Blocker = St::Blocker; - type Record = St::Record; - type Uri = St::Uri; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Uri = St::Uri; + type Record = St::Record; type IndexedAt = St::IndexedAt; type Cid = Set; type Blocker = St::Blocker; - type Record = St::Record; - type Uri = St::Uri; } ///State transition - sets the `blocker` field to Set pub struct SetBlocker(PhantomData St>); impl sealed::Sealed for SetBlocker {} impl State for SetBlocker { - type IndexedAt = St::IndexedAt; - type Cid = St::Cid; - type Blocker = Set; - type Record = St::Record; - type Uri = St::Uri; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type IndexedAt = St::IndexedAt; - type Cid = St::Cid; - type Blocker = St::Blocker; - type Record = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + type Record = St::Record; type IndexedAt = St::IndexedAt; type Cid = St::Cid; - type Blocker = St::Blocker; - type Record = St::Record; - type Uri = Set; + type Blocker = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `record` field + pub struct record(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); ///Marker type for the `cid` field pub struct cid(()); ///Marker type for the `blocker` field pub struct blocker(()); - ///Marker type for the `record` field - pub struct record(()); - ///Marker type for the `uri` field - pub struct uri(()); } } @@ -342,11 +342,11 @@ where impl BlockViewBuilder where St: block_view_state::State, + St::Uri: block_view_state::IsSet, + St::Record: block_view_state::IsSet, St::IndexedAt: block_view_state::IsSet, St::Cid: block_view_state::IsSet, St::Blocker: block_view_state::IsSet, - St::Record: block_view_state::IsSet, - St::Uri: block_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> BlockView { diff --git a/crates/jacquard-api/src/place_stream/badge.rs b/crates/jacquard-api/src/place_stream/badge.rs index 71cf596a..18962099 100644 --- a/crates/jacquard-api/src/place_stream/badge.rs +++ b/crates/jacquard-api/src/place_stream/badge.rs @@ -177,51 +177,51 @@ pub mod badge_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type BadgeType; - type Issuer; type Recipient; + type Issuer; + type BadgeType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type BadgeType = Unset; - type Issuer = Unset; type Recipient = Unset; + type Issuer = Unset; + type BadgeType = Unset; } - ///State transition - sets the `badge_type` field to Set - pub struct SetBadgeType(PhantomData St>); - impl sealed::Sealed for SetBadgeType {} - impl State for SetBadgeType { - type BadgeType = Set; + ///State transition - sets the `recipient` field to Set + pub struct SetRecipient(PhantomData St>); + impl sealed::Sealed for SetRecipient {} + impl State for SetRecipient { + type Recipient = Set; type Issuer = St::Issuer; - type Recipient = St::Recipient; + type BadgeType = St::BadgeType; } ///State transition - sets the `issuer` field to Set pub struct SetIssuer(PhantomData St>); impl sealed::Sealed for SetIssuer {} impl State for SetIssuer { - type BadgeType = St::BadgeType; - type Issuer = Set; type Recipient = St::Recipient; - } - ///State transition - sets the `recipient` field to Set - pub struct SetRecipient(PhantomData St>); - impl sealed::Sealed for SetRecipient {} - impl State for SetRecipient { + type Issuer = Set; type BadgeType = St::BadgeType; + } + ///State transition - sets the `badge_type` field to Set + pub struct SetBadgeType(PhantomData St>); + impl sealed::Sealed for SetBadgeType {} + impl State for SetBadgeType { + type Recipient = St::Recipient; type Issuer = St::Issuer; - type Recipient = Set; + type BadgeType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `badge_type` field - pub struct badge_type(()); - ///Marker type for the `issuer` field - pub struct issuer(()); ///Marker type for the `recipient` field pub struct recipient(()); + ///Marker type for the `issuer` field + pub struct issuer(()); + ///Marker type for the `badge_type` field + pub struct badge_type(()); } } @@ -323,9 +323,9 @@ impl BadgeViewBuilder { impl BadgeViewBuilder where St: badge_view_state::State, - St::BadgeType: badge_view_state::IsSet, - St::Issuer: badge_view_state::IsSet, St::Recipient: badge_view_state::IsSet, + St::Issuer: badge_view_state::IsSet, + St::BadgeType: badge_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> BadgeView { diff --git a/crates/jacquard-api/src/place_stream/broadcast.rs b/crates/jacquard-api/src/place_stream/broadcast.rs index 6f5167f6..ae4bc0bf 100644 --- a/crates/jacquard-api/src/place_stream/broadcast.rs +++ b/crates/jacquard-api/src/place_stream/broadcast.rs @@ -68,66 +68,66 @@ pub mod broadcast_origin_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Uri; + type Record; type Cid; type Author; - type Record; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Uri = Unset; + type Record = Unset; type Cid = Unset; type Author = Unset; - type Record = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Uri = Set; + type Record = St::Record; + type Cid = St::Cid; + type Author = St::Author; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Uri = St::Uri; + type Record = Set; type Cid = St::Cid; type Author = St::Author; - type Record = St::Record; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { type Uri = St::Uri; + type Record = St::Record; type Cid = Set; type Author = St::Author; - type Record = St::Record; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { type Uri = St::Uri; - type Cid = St::Cid; - type Author = Set; type Record = St::Record; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Uri = St::Uri; type Cid = St::Cid; - type Author = St::Author; - type Record = Set; + type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `record` field + pub struct record(()); ///Marker type for the `cid` field pub struct cid(()); ///Marker type for the `author` field pub struct author(()); - ///Marker type for the `record` field - pub struct record(()); } } @@ -244,9 +244,9 @@ impl BroadcastOriginViewBuilder where St: broadcast_origin_view_state::State, St::Uri: broadcast_origin_view_state::IsSet, + St::Record: broadcast_origin_view_state::IsSet, St::Cid: broadcast_origin_view_state::IsSet, St::Author: broadcast_origin_view_state::IsSet, - St::Record: broadcast_origin_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> BroadcastOriginView { diff --git a/crates/jacquard-api/src/place_stream/broadcast/origin.rs b/crates/jacquard-api/src/place_stream/broadcast/origin.rs index cee7d8ed..150d7d97 100644 --- a/crates/jacquard-api/src/place_stream/broadcast/origin.rs +++ b/crates/jacquard-api/src/place_stream/broadcast/origin.rs @@ -135,49 +135,49 @@ pub mod origin_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Server; type Streamer; + type Server; type UpdatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Server = Unset; type Streamer = Unset; + type Server = Unset; type UpdatedAt = Unset; } - ///State transition - sets the `server` field to Set - pub struct SetServer(PhantomData St>); - impl sealed::Sealed for SetServer {} - impl State for SetServer { - type Server = Set; - type Streamer = St::Streamer; - type UpdatedAt = St::UpdatedAt; - } ///State transition - sets the `streamer` field to Set pub struct SetStreamer(PhantomData St>); impl sealed::Sealed for SetStreamer {} impl State for SetStreamer { - type Server = St::Server; type Streamer = Set; + type Server = St::Server; + type UpdatedAt = St::UpdatedAt; + } + ///State transition - sets the `server` field to Set + pub struct SetServer(PhantomData St>); + impl sealed::Sealed for SetServer {} + impl State for SetServer { + type Streamer = St::Streamer; + type Server = Set; type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData St>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { - type Server = St::Server; type Streamer = St::Streamer; + type Server = St::Server; type UpdatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `server` field - pub struct server(()); ///Marker type for the `streamer` field pub struct streamer(()); + ///Marker type for the `server` field + pub struct server(()); ///Marker type for the `updated_at` field pub struct updated_at(()); } @@ -314,8 +314,8 @@ impl OriginBuilder { impl OriginBuilder where St: origin_state::State, - St::Server: origin_state::IsSet, St::Streamer: origin_state::IsSet, + St::Server: origin_state::IsSet, St::UpdatedAt: origin_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/place_stream/broadcast/syndication.rs b/crates/jacquard-api/src/place_stream/broadcast/syndication.rs index fd79a54b..db5c43aa 100644 --- a/crates/jacquard-api/src/place_stream/broadcast/syndication.rs +++ b/crates/jacquard-api/src/place_stream/broadcast/syndication.rs @@ -116,51 +116,51 @@ pub mod syndication_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Streamer; type Broadcaster; + type Streamer; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Streamer = Unset; type Broadcaster = Unset; + type Streamer = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `broadcaster` field to Set + pub struct SetBroadcaster(PhantomData St>); + impl sealed::Sealed for SetBroadcaster {} + impl State for SetBroadcaster { + type Broadcaster = Set; type Streamer = St::Streamer; - type Broadcaster = St::Broadcaster; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `streamer` field to Set pub struct SetStreamer(PhantomData St>); impl sealed::Sealed for SetStreamer {} impl State for SetStreamer { - type CreatedAt = St::CreatedAt; - type Streamer = Set; type Broadcaster = St::Broadcaster; - } - ///State transition - sets the `broadcaster` field to Set - pub struct SetBroadcaster(PhantomData St>); - impl sealed::Sealed for SetBroadcaster {} - impl State for SetBroadcaster { + type Streamer = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Broadcaster = St::Broadcaster; type Streamer = St::Streamer; - type Broadcaster = Set; + type CreatedAt = 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 `streamer` field - pub struct streamer(()); ///Marker type for the `broadcaster` field pub struct broadcaster(()); + ///Marker type for the `streamer` field + pub struct streamer(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -249,9 +249,9 @@ where impl SyndicationBuilder where St: syndication_state::State, - St::CreatedAt: syndication_state::IsSet, - St::Streamer: syndication_state::IsSet, St::Broadcaster: syndication_state::IsSet, + St::Streamer: syndication_state::IsSet, + St::CreatedAt: syndication_state::IsSet, { /// Build the final struct. pub fn build(self) -> Syndication { diff --git a/crates/jacquard-api/src/place_stream/chat.rs b/crates/jacquard-api/src/place_stream/chat.rs index 1e067f00..62a30b6e 100644 --- a/crates/jacquard-api/src/place_stream/chat.rs +++ b/crates/jacquard-api/src/place_stream/chat.rs @@ -86,85 +86,85 @@ pub mod message_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; type Author; - type Cid; type IndexedAt; + type Cid; type Record; - type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; type Author = Unset; - type Cid = Unset; type IndexedAt = Unset; + type Cid = Unset; type Record = Unset; - type Uri = Unset; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; + type Author = St::Author; + type IndexedAt = St::IndexedAt; + type Cid = St::Cid; + type Record = St::Record; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Author = Set; - type Cid = St::Cid; - type IndexedAt = St::IndexedAt; - type Record = St::Record; type Uri = St::Uri; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Author = St::Author; - type Cid = Set; + type Author = Set; type IndexedAt = St::IndexedAt; + type Cid = St::Cid; type Record = St::Record; - type Uri = St::Uri; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { + type Uri = St::Uri; type Author = St::Author; - type Cid = St::Cid; type IndexedAt = Set; + type Cid = St::Cid; type Record = St::Record; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { type Uri = St::Uri; + type Author = St::Author; + type IndexedAt = St::IndexedAt; + type Cid = Set; + type Record = St::Record; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Author = St::Author; - type Cid = St::Cid; - type IndexedAt = St::IndexedAt; - type Record = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Author = St::Author; - type Cid = St::Cid; type IndexedAt = St::IndexedAt; - type Record = St::Record; - type Uri = Set; + type Cid = St::Cid; + type Record = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `author` field pub struct author(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `record` field pub struct record(()); - ///Marker type for the `uri` field - pub struct uri(()); } } @@ -339,11 +339,11 @@ where impl MessageViewBuilder where St: message_view_state::State, + St::Uri: message_view_state::IsSet, St::Author: message_view_state::IsSet, - St::Cid: message_view_state::IsSet, St::IndexedAt: message_view_state::IsSet, + St::Cid: message_view_state::IsSet, St::Record: message_view_state::IsSet, - St::Uri: message_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> MessageView { diff --git a/crates/jacquard-api/src/place_stream/chat/message.rs b/crates/jacquard-api/src/place_stream/chat/message.rs index 742dab5e..0e838f6b 100644 --- a/crates/jacquard-api/src/place_stream/chat/message.rs +++ b/crates/jacquard-api/src/place_stream/chat/message.rs @@ -173,51 +173,51 @@ pub mod message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; - type Streamer; type CreatedAt; + type Streamer; + type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Text = Unset; - type Streamer = Unset; type CreatedAt = Unset; + type Streamer = Unset; + type Text = Unset; } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Streamer = St::Streamer; - type CreatedAt = St::CreatedAt; + type Text = St::Text; } ///State transition - sets the `streamer` field to Set pub struct SetStreamer(PhantomData St>); impl sealed::Sealed for SetStreamer {} impl State for SetStreamer { - type Text = St::Text; - type Streamer = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Streamer = Set; type Text = St::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = St::CreatedAt; type Streamer = St::Streamer; - type CreatedAt = Set; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `text` field - pub struct text(()); - ///Marker type for the `streamer` field - pub struct streamer(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `streamer` field + pub struct streamer(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -338,9 +338,9 @@ where impl MessageBuilder where St: message_state::State, - St::Text: message_state::IsSet, - St::Streamer: message_state::IsSet, St::CreatedAt: message_state::IsSet, + St::Streamer: message_state::IsSet, + St::Text: message_state::IsSet, { /// Build the final struct. pub fn build(self) -> Message { diff --git a/crates/jacquard-api/src/place_stream/chat/profile.rs b/crates/jacquard-api/src/place_stream/chat/profile.rs index bc25ba44..c9b7f920 100644 --- a/crates/jacquard-api/src/place_stream/chat/profile.rs +++ b/crates/jacquard-api/src/place_stream/chat/profile.rs @@ -200,51 +200,51 @@ pub mod color_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Green; type Blue; type Red; + type Green; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Green = Unset; type Blue = Unset; type Red = Unset; - } - ///State transition - sets the `green` field to Set - pub struct SetGreen(PhantomData St>); - impl sealed::Sealed for SetGreen {} - impl State for SetGreen { - type Green = Set; - type Blue = St::Blue; - type Red = St::Red; + type Green = Unset; } ///State transition - sets the `blue` field to Set pub struct SetBlue(PhantomData St>); impl sealed::Sealed for SetBlue {} impl State for SetBlue { - type Green = St::Green; type Blue = Set; type Red = St::Red; + type Green = St::Green; } ///State transition - sets the `red` field to Set pub struct SetRed(PhantomData St>); impl sealed::Sealed for SetRed {} impl State for SetRed { - type Green = St::Green; type Blue = St::Blue; type Red = Set; + type Green = St::Green; + } + ///State transition - sets the `green` field to Set + pub struct SetGreen(PhantomData St>); + impl sealed::Sealed for SetGreen {} + impl State for SetGreen { + type Blue = St::Blue; + type Red = St::Red; + type Green = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `green` field - pub struct green(()); ///Marker type for the `blue` field pub struct blue(()); ///Marker type for the `red` field pub struct red(()); + ///Marker type for the `green` field + pub struct green(()); } } @@ -333,9 +333,9 @@ where impl ColorBuilder where St: color_state::State, - St::Green: color_state::IsSet, St::Blue: color_state::IsSet, St::Red: color_state::IsSet, + St::Green: color_state::IsSet, { /// Build the final struct. pub fn build(self) -> Color { diff --git a/crates/jacquard-api/src/place_stream/graph/get_following_user.rs b/crates/jacquard-api/src/place_stream/graph/get_following_user.rs index 4d5cc7d9..07c8b643 100644 --- a/crates/jacquard-api/src/place_stream/graph/get_following_user.rs +++ b/crates/jacquard-api/src/place_stream/graph/get_following_user.rs @@ -69,37 +69,37 @@ pub mod get_following_user_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type UserDid; type SubjectDid; + type UserDid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type UserDid = Unset; type SubjectDid = Unset; - } - ///State transition - sets the `user_did` field to Set - pub struct SetUserDid(PhantomData St>); - impl sealed::Sealed for SetUserDid {} - impl State for SetUserDid { - type UserDid = Set; - type SubjectDid = St::SubjectDid; + type UserDid = Unset; } ///State transition - sets the `subject_did` field to Set pub struct SetSubjectDid(PhantomData St>); impl sealed::Sealed for SetSubjectDid {} impl State for SetSubjectDid { - type UserDid = St::UserDid; type SubjectDid = Set; + type UserDid = St::UserDid; + } + ///State transition - sets the `user_did` field to Set + pub struct SetUserDid(PhantomData St>); + impl sealed::Sealed for SetUserDid {} + impl State for SetUserDid { + type SubjectDid = St::SubjectDid; + type UserDid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `user_did` field - pub struct user_did(()); ///Marker type for the `subject_did` field pub struct subject_did(()); + ///Marker type for the `user_did` field + pub struct user_did(()); } } @@ -169,8 +169,8 @@ where impl GetFollowingUserBuilder where St: get_following_user_state::State, - St::UserDid: get_following_user_state::IsSet, St::SubjectDid: get_following_user_state::IsSet, + St::UserDid: get_following_user_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetFollowingUser { diff --git a/crates/jacquard-api/src/place_stream/ingest.rs b/crates/jacquard-api/src/place_stream/ingest.rs index a2b98143..c94a1880 100644 --- a/crates/jacquard-api/src/place_stream/ingest.rs +++ b/crates/jacquard-api/src/place_stream/ingest.rs @@ -65,37 +65,37 @@ pub mod ingest_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type Url; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type Url = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type Url = St::Url; + type Type = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Type = St::Type; type Url = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Url = St::Url; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -165,8 +165,8 @@ where impl IngestBuilder where St: ingest_state::State, - St::Type: ingest_state::IsSet, St::Url: ingest_state::IsSet, + St::Type: ingest_state::IsSet, { /// Build the final struct. pub fn build(self) -> Ingest { diff --git a/crates/jacquard-api/src/place_stream/key.rs b/crates/jacquard-api/src/place_stream/key.rs index 99182b9a..6b213698 100644 --- a/crates/jacquard-api/src/place_stream/key.rs +++ b/crates/jacquard-api/src/place_stream/key.rs @@ -139,37 +139,37 @@ pub mod key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type SigningKey; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type SigningKey = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type SigningKey = St::SigningKey; + type CreatedAt = Unset; } ///State transition - sets the `signing_key` field to Set pub struct SetSigningKey(PhantomData St>); impl sealed::Sealed for SetSigningKey {} impl State for SetSigningKey { - type CreatedAt = St::CreatedAt; type SigningKey = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type SigningKey = St::SigningKey; + type CreatedAt = 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 `signing_key` field pub struct signing_key(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -252,8 +252,8 @@ where impl KeyBuilder where St: key_state::State, - St::CreatedAt: key_state::IsSet, St::SigningKey: key_state::IsSet, + St::CreatedAt: key_state::IsSet, { /// Build the final struct. pub fn build(self) -> Key { diff --git a/crates/jacquard-api/src/place_stream/live/start_livestream.rs b/crates/jacquard-api/src/place_stream/live/start_livestream.rs index 255071d5..beeea8d9 100644 --- a/crates/jacquard-api/src/place_stream/live/start_livestream.rs +++ b/crates/jacquard-api/src/place_stream/live/start_livestream.rs @@ -81,37 +81,37 @@ pub mod start_livestream_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Streamer; type Livestream; + type Streamer; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Streamer = Unset; type Livestream = Unset; - } - ///State transition - sets the `streamer` field to Set - pub struct SetStreamer(PhantomData St>); - impl sealed::Sealed for SetStreamer {} - impl State for SetStreamer { - type Streamer = Set; - type Livestream = St::Livestream; + type Streamer = Unset; } ///State transition - sets the `livestream` field to Set pub struct SetLivestream(PhantomData St>); impl sealed::Sealed for SetLivestream {} impl State for SetLivestream { - type Streamer = St::Streamer; type Livestream = Set; + type Streamer = St::Streamer; + } + ///State transition - sets the `streamer` field to Set + pub struct SetStreamer(PhantomData St>); + impl sealed::Sealed for SetStreamer {} + impl State for SetStreamer { + type Livestream = St::Livestream; + type Streamer = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `streamer` field - pub struct streamer(()); ///Marker type for the `livestream` field pub struct livestream(()); + ///Marker type for the `streamer` field + pub struct streamer(()); } } @@ -194,8 +194,8 @@ where impl StartLivestreamBuilder where St: start_livestream_state::State, - St::Streamer: start_livestream_state::IsSet, St::Livestream: start_livestream_state::IsSet, + St::Streamer: start_livestream_state::IsSet, { /// Build the final struct. pub fn build(self) -> StartLivestream { diff --git a/crates/jacquard-api/src/place_stream/live/teleport.rs b/crates/jacquard-api/src/place_stream/live/teleport.rs index 996b8c88..c3c211d6 100644 --- a/crates/jacquard-api/src/place_stream/live/teleport.rs +++ b/crates/jacquard-api/src/place_stream/live/teleport.rs @@ -135,37 +135,37 @@ pub mod teleport_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type StartsAt; type Streamer; + type StartsAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type StartsAt = Unset; type Streamer = Unset; - } - ///State transition - sets the `starts_at` field to Set - pub struct SetStartsAt(PhantomData St>); - impl sealed::Sealed for SetStartsAt {} - impl State for SetStartsAt { - type StartsAt = Set; - type Streamer = St::Streamer; + type StartsAt = Unset; } ///State transition - sets the `streamer` field to Set pub struct SetStreamer(PhantomData St>); impl sealed::Sealed for SetStreamer {} impl State for SetStreamer { - type StartsAt = St::StartsAt; type Streamer = Set; + type StartsAt = St::StartsAt; + } + ///State transition - sets the `starts_at` field to Set + pub struct SetStartsAt(PhantomData St>); + impl sealed::Sealed for SetStartsAt {} + impl State for SetStartsAt { + type Streamer = St::Streamer; + type StartsAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `starts_at` field - pub struct starts_at(()); ///Marker type for the `streamer` field pub struct streamer(()); + ///Marker type for the `starts_at` field + pub struct starts_at(()); } } @@ -248,8 +248,8 @@ where impl TeleportBuilder where St: teleport_state::State, - St::StartsAt: teleport_state::IsSet, St::Streamer: teleport_state::IsSet, + St::StartsAt: teleport_state::IsSet, { /// Build the final struct. pub fn build(self) -> Teleport { diff --git a/crates/jacquard-api/src/place_stream/livestream.rs b/crates/jacquard-api/src/place_stream/livestream.rs index 5cd7f5ce..3174b71d 100644 --- a/crates/jacquard-api/src/place_stream/livestream.rs +++ b/crates/jacquard-api/src/place_stream/livestream.rs @@ -399,83 +399,83 @@ pub mod livestream_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Record; + type Uri; type Cid; type IndexedAt; - type Uri; - type Record; type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Record = Unset; + type Uri = Unset; type Cid = Unset; type IndexedAt = Unset; - type Uri = Unset; - type Record = Unset; type Author = Unset; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type IndexedAt = St::IndexedAt; + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Record = Set; type Uri = St::Uri; - type Record = St::Record; - type Author = St::Author; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { type Cid = St::Cid; - type IndexedAt = Set; - type Uri = St::Uri; - type Record = St::Record; + type IndexedAt = St::IndexedAt; type Author = St::Author; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { + type Record = St::Record; + type Uri = Set; type Cid = St::Cid; type IndexedAt = St::IndexedAt; - type Uri = Set; - type Record = St::Record; type Author = St::Author; } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Cid = St::Cid; + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Record = St::Record; + type Uri = St::Uri; + type Cid = Set; type IndexedAt = St::IndexedAt; + type Author = St::Author; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Record = St::Record; type Uri = St::Uri; - type Record = Set; + type Cid = St::Cid; + type IndexedAt = Set; type Author = St::Author; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { + type Record = St::Record; + type Uri = St::Uri; type Cid = St::Cid; type IndexedAt = St::IndexedAt; - type Uri = St::Uri; - type Record = St::Record; type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `record` field + pub struct record(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `record` field - pub struct record(()); ///Marker type for the `author` field pub struct author(()); } @@ -630,10 +630,10 @@ impl LivestreamViewBuilder { impl LivestreamViewBuilder where St: livestream_view_state::State, + St::Record: livestream_view_state::IsSet, + St::Uri: livestream_view_state::IsSet, St::Cid: livestream_view_state::IsSet, St::IndexedAt: livestream_view_state::IsSet, - St::Uri: livestream_view_state::IsSet, - St::Record: livestream_view_state::IsSet, St::Author: livestream_view_state::IsSet, { /// Build the final struct. @@ -1436,67 +1436,67 @@ pub mod teleport_arrival_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type StartsAt; - type TeleportUri; type Source; + type TeleportUri; type ViewerCount; + type StartsAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type StartsAt = Unset; - type TeleportUri = Unset; type Source = Unset; + type TeleportUri = Unset; type ViewerCount = Unset; + type StartsAt = Unset; } - ///State transition - sets the `starts_at` field to Set - pub struct SetStartsAt(PhantomData St>); - impl sealed::Sealed for SetStartsAt {} - impl State for SetStartsAt { - type StartsAt = Set; + ///State transition - sets the `source` field to Set + pub struct SetSource(PhantomData St>); + impl sealed::Sealed for SetSource {} + impl State for SetSource { + type Source = Set; type TeleportUri = St::TeleportUri; - type Source = St::Source; type ViewerCount = St::ViewerCount; + type StartsAt = St::StartsAt; } ///State transition - sets the `teleport_uri` field to Set pub struct SetTeleportUri(PhantomData St>); impl sealed::Sealed for SetTeleportUri {} impl State for SetTeleportUri { - type StartsAt = St::StartsAt; - type TeleportUri = Set; type Source = St::Source; + type TeleportUri = Set; type ViewerCount = St::ViewerCount; - } - ///State transition - sets the `source` field to Set - pub struct SetSource(PhantomData St>); - impl sealed::Sealed for SetSource {} - impl State for SetSource { type StartsAt = St::StartsAt; - type TeleportUri = St::TeleportUri; - type Source = Set; - type ViewerCount = St::ViewerCount; } ///State transition - sets the `viewer_count` field to Set pub struct SetViewerCount(PhantomData St>); impl sealed::Sealed for SetViewerCount {} impl State for SetViewerCount { - type StartsAt = St::StartsAt; - type TeleportUri = St::TeleportUri; type Source = St::Source; + type TeleportUri = St::TeleportUri; type ViewerCount = Set; + type StartsAt = St::StartsAt; + } + ///State transition - sets the `starts_at` field to Set + pub struct SetStartsAt(PhantomData St>); + impl sealed::Sealed for SetStartsAt {} + impl State for SetStartsAt { + type Source = St::Source; + type TeleportUri = St::TeleportUri; + type ViewerCount = St::ViewerCount; + type StartsAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `starts_at` field - pub struct starts_at(()); - ///Marker type for the `teleport_uri` field - pub struct teleport_uri(()); ///Marker type for the `source` field pub struct source(()); + ///Marker type for the `teleport_uri` field + pub struct teleport_uri(()); ///Marker type for the `viewer_count` field pub struct viewer_count(()); + ///Marker type for the `starts_at` field + pub struct starts_at(()); } } @@ -1623,10 +1623,10 @@ where impl TeleportArrivalBuilder where St: teleport_arrival_state::State, - St::StartsAt: teleport_arrival_state::IsSet, - St::TeleportUri: teleport_arrival_state::IsSet, St::Source: teleport_arrival_state::IsSet, + St::TeleportUri: teleport_arrival_state::IsSet, St::ViewerCount: teleport_arrival_state::IsSet, + St::StartsAt: teleport_arrival_state::IsSet, { /// Build the final struct. pub fn build(self) -> TeleportArrival { @@ -1665,37 +1665,37 @@ pub mod teleport_canceled_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type TeleportUri; type Reason; + type TeleportUri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type TeleportUri = Unset; type Reason = Unset; - } - ///State transition - sets the `teleport_uri` field to Set - pub struct SetTeleportUri(PhantomData St>); - impl sealed::Sealed for SetTeleportUri {} - impl State for SetTeleportUri { - type TeleportUri = Set; - type Reason = St::Reason; + type TeleportUri = Unset; } ///State transition - sets the `reason` field to Set pub struct SetReason(PhantomData St>); impl sealed::Sealed for SetReason {} impl State for SetReason { - type TeleportUri = St::TeleportUri; type Reason = Set; + type TeleportUri = St::TeleportUri; + } + ///State transition - sets the `teleport_uri` field to Set + pub struct SetTeleportUri(PhantomData St>); + impl sealed::Sealed for SetTeleportUri {} + impl State for SetTeleportUri { + type Reason = St::Reason; + type TeleportUri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `teleport_uri` field - pub struct teleport_uri(()); ///Marker type for the `reason` field pub struct reason(()); + ///Marker type for the `teleport_uri` field + pub struct teleport_uri(()); } } @@ -1765,8 +1765,8 @@ where impl TeleportCanceledBuilder where St: teleport_canceled_state::State, - St::TeleportUri: teleport_canceled_state::IsSet, St::Reason: teleport_canceled_state::IsSet, + St::TeleportUri: teleport_canceled_state::IsSet, { /// Build the final struct. pub fn build(self) -> TeleportCanceled { diff --git a/crates/jacquard-api/src/place_stream/moderation.rs b/crates/jacquard-api/src/place_stream/moderation.rs index 16b9c79b..b3fdd7c4 100644 --- a/crates/jacquard-api/src/place_stream/moderation.rs +++ b/crates/jacquard-api/src/place_stream/moderation.rs @@ -74,67 +74,67 @@ pub mod permission_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Author; type Cid; + type Uri; type Record; + type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; - type Author = Unset; type Cid = Unset; + type Uri = Unset; type Record = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Author = St::Author; - type Cid = St::Cid; - type Record = St::Record; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Uri = St::Uri; - type Author = Set; - type Cid = St::Cid; - type Record = St::Record; + type Author = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Cid = Set; type Uri = St::Uri; + type Record = St::Record; type Author = St::Author; - type Cid = Set; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = St::Cid; + type Uri = Set; type Record = St::Record; + type Author = St::Author; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { + type Cid = St::Cid; type Uri = St::Uri; + type Record = Set; type Author = St::Author; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { type Cid = St::Cid; - type Record = Set; + type Uri = St::Uri; + type Record = St::Record; + type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `author` field - pub struct author(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `author` field + pub struct author(()); } } @@ -247,10 +247,10 @@ where impl PermissionViewBuilder where St: permission_view_state::State, - St::Uri: permission_view_state::IsSet, - St::Author: permission_view_state::IsSet, St::Cid: permission_view_state::IsSet, + St::Uri: permission_view_state::IsSet, St::Record: permission_view_state::IsSet, + St::Author: permission_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> PermissionView { diff --git a/crates/jacquard-api/src/place_stream/moderation/delete_gate.rs b/crates/jacquard-api/src/place_stream/moderation/delete_gate.rs index 2f236588..5dc23609 100644 --- a/crates/jacquard-api/src/place_stream/moderation/delete_gate.rs +++ b/crates/jacquard-api/src/place_stream/moderation/delete_gate.rs @@ -137,37 +137,37 @@ pub mod delete_gate_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Streamer; type GateUri; + type Streamer; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Streamer = Unset; type GateUri = Unset; - } - ///State transition - sets the `streamer` field to Set - pub struct SetStreamer(PhantomData St>); - impl sealed::Sealed for SetStreamer {} - impl State for SetStreamer { - type Streamer = Set; - type GateUri = St::GateUri; + type Streamer = Unset; } ///State transition - sets the `gate_uri` field to Set pub struct SetGateUri(PhantomData St>); impl sealed::Sealed for SetGateUri {} impl State for SetGateUri { - type Streamer = St::Streamer; type GateUri = Set; + type Streamer = St::Streamer; + } + ///State transition - sets the `streamer` field to Set + pub struct SetStreamer(PhantomData St>); + impl sealed::Sealed for SetStreamer {} + impl State for SetStreamer { + type GateUri = St::GateUri; + type Streamer = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `streamer` field - pub struct streamer(()); ///Marker type for the `gate_uri` field pub struct gate_uri(()); + ///Marker type for the `streamer` field + pub struct streamer(()); } } @@ -237,8 +237,8 @@ where impl DeleteGateBuilder where St: delete_gate_state::State, - St::Streamer: delete_gate_state::IsSet, St::GateUri: delete_gate_state::IsSet, + St::Streamer: delete_gate_state::IsSet, { /// Build the final struct. pub fn build(self) -> DeleteGate { diff --git a/crates/jacquard-api/src/place_stream/moderation/permission.rs b/crates/jacquard-api/src/place_stream/moderation/permission.rs index 25c1dde7..04cee61a 100644 --- a/crates/jacquard-api/src/place_stream/moderation/permission.rs +++ b/crates/jacquard-api/src/place_stream/moderation/permission.rs @@ -119,51 +119,51 @@ pub mod permission_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Permissions; - type Moderator; type CreatedAt; + type Moderator; + type Permissions; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Permissions = Unset; - type Moderator = Unset; type CreatedAt = Unset; + type Moderator = Unset; + type Permissions = Unset; } - ///State transition - sets the `permissions` field to Set - pub struct SetPermissions(PhantomData St>); - impl sealed::Sealed for SetPermissions {} - impl State for SetPermissions { - type Permissions = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Moderator = St::Moderator; - type CreatedAt = St::CreatedAt; + type Permissions = St::Permissions; } ///State transition - sets the `moderator` field to Set pub struct SetModerator(PhantomData St>); impl sealed::Sealed for SetModerator {} impl State for SetModerator { - type Permissions = St::Permissions; - type Moderator = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Moderator = Set; type Permissions = St::Permissions; + } + ///State transition - sets the `permissions` field to Set + pub struct SetPermissions(PhantomData St>); + impl sealed::Sealed for SetPermissions {} + impl State for SetPermissions { + type CreatedAt = St::CreatedAt; type Moderator = St::Moderator; - type CreatedAt = Set; + type Permissions = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `permissions` field - pub struct permissions(()); - ///Marker type for the `moderator` field - pub struct moderator(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `moderator` field + pub struct moderator(()); + ///Marker type for the `permissions` field + pub struct permissions(()); } } @@ -265,9 +265,9 @@ where impl PermissionBuilder where St: permission_state::State, - St::Permissions: permission_state::IsSet, - St::Moderator: permission_state::IsSet, St::CreatedAt: permission_state::IsSet, + St::Moderator: permission_state::IsSet, + St::Permissions: permission_state::IsSet, { /// Build the final struct. pub fn build(self) -> Permission { diff --git a/crates/jacquard-api/src/place_stream/moderation/update_livestream.rs b/crates/jacquard-api/src/place_stream/moderation/update_livestream.rs index 8921a812..8e116707 100644 --- a/crates/jacquard-api/src/place_stream/moderation/update_livestream.rs +++ b/crates/jacquard-api/src/place_stream/moderation/update_livestream.rs @@ -154,37 +154,37 @@ pub mod update_livestream_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Streamer; type LivestreamUri; + type Streamer; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Streamer = Unset; type LivestreamUri = Unset; - } - ///State transition - sets the `streamer` field to Set - pub struct SetStreamer(PhantomData St>); - impl sealed::Sealed for SetStreamer {} - impl State for SetStreamer { - type Streamer = Set; - type LivestreamUri = St::LivestreamUri; + type Streamer = Unset; } ///State transition - sets the `livestream_uri` field to Set pub struct SetLivestreamUri(PhantomData St>); impl sealed::Sealed for SetLivestreamUri {} impl State for SetLivestreamUri { - type Streamer = St::Streamer; type LivestreamUri = Set; + type Streamer = St::Streamer; + } + ///State transition - sets the `streamer` field to Set + pub struct SetStreamer(PhantomData St>); + impl sealed::Sealed for SetStreamer {} + impl State for SetStreamer { + type LivestreamUri = St::LivestreamUri; + type Streamer = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `streamer` field - pub struct streamer(()); ///Marker type for the `livestream_uri` field pub struct livestream_uri(()); + ///Marker type for the `streamer` field + pub struct streamer(()); } } @@ -267,8 +267,8 @@ impl UpdateLivestreamBuilder UpdateLivestreamBuilder where St: update_livestream_state::State, - St::Streamer: update_livestream_state::IsSet, St::LivestreamUri: update_livestream_state::IsSet, + St::Streamer: update_livestream_state::IsSet, { /// Build the final struct. pub fn build(self) -> UpdateLivestream { diff --git a/crates/jacquard-api/src/place_stream/multistream.rs b/crates/jacquard-api/src/place_stream/multistream.rs index 3a25d541..e087ffd4 100644 --- a/crates/jacquard-api/src/place_stream/multistream.rs +++ b/crates/jacquard-api/src/place_stream/multistream.rs @@ -96,51 +96,51 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Message; - type Status; type CreatedAt; + type Status; + type Message; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Message = Unset; - type Status = Unset; type CreatedAt = Unset; + type Status = Unset; + type Message = Unset; } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData St>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { - type Message = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Status = St::Status; - type CreatedAt = St::CreatedAt; + type Message = St::Message; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type Message = St::Message; - type Status = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Status = Set; type Message = St::Message; + } + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData St>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type CreatedAt = St::CreatedAt; type Status = St::Status; - type CreatedAt = Set; + type Message = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `message` field - pub struct message(()); - ///Marker type for the `status` field - pub struct status(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `status` field + pub struct status(()); + ///Marker type for the `message` field + pub struct message(()); } } @@ -229,9 +229,9 @@ where impl EventBuilder where St: event_state::State, - St::Message: event_state::IsSet, - St::Status: event_state::IsSet, St::CreatedAt: event_state::IsSet, + St::Status: event_state::IsSet, + St::Message: event_state::IsSet, { /// Build the final struct. pub fn build(self) -> Event { @@ -358,51 +358,51 @@ pub mod target_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Record; type Cid; + type Record; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; - type Record = Unset; type Cid = Unset; + type Record = Unset; + type Uri = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Cid = Set; type Record = St::Record; - type Cid = St::Cid; + type Uri = St::Uri; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Uri = St::Uri; - type Record = Set; type Cid = St::Cid; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { + type Record = Set; type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = St::Cid; type Record = St::Record; - type Cid = Set; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `record` field - pub struct record(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `record` field + pub struct record(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -512,9 +512,9 @@ where impl TargetViewBuilder where St: target_view_state::State, - St::Uri: target_view_state::IsSet, - St::Record: target_view_state::IsSet, St::Cid: target_view_state::IsSet, + St::Record: target_view_state::IsSet, + St::Uri: target_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> TargetView { diff --git a/crates/jacquard-api/src/place_stream/multistream/list_targets.rs b/crates/jacquard-api/src/place_stream/multistream/list_targets.rs index 45d3d539..68165a6b 100644 --- a/crates/jacquard-api/src/place_stream/multistream/list_targets.rs +++ b/crates/jacquard-api/src/place_stream/multistream/list_targets.rs @@ -195,49 +195,49 @@ pub mod record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Uri; + type Cid; type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Uri = Unset; + type Cid = Unset; type Value = Unset; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Uri = St::Uri; - type Value = St::Value; - } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Cid = St::Cid; type Uri = Set; + type Cid = St::Cid; + type Value = St::Value; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type Cid = Set; type Value = St::Value; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Cid = St::Cid; type Uri = St::Uri; + type Cid = St::Cid; type Value = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `value` field pub struct value(()); } @@ -328,8 +328,8 @@ where impl RecordBuilder where St: record_state::State, - St::Cid: record_state::IsSet, St::Uri: record_state::IsSet, + St::Cid: record_state::IsSet, St::Value: record_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/place_stream/multistream/target.rs b/crates/jacquard-api/src/place_stream/multistream/target.rs index 6e933b28..bbdc7dde 100644 --- a/crates/jacquard-api/src/place_stream/multistream/target.rs +++ b/crates/jacquard-api/src/place_stream/multistream/target.rs @@ -129,51 +129,51 @@ pub mod target_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Url; type Active; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Url = Unset; type Active = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Url = St::Url; + type Active = St::Active; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { + type CreatedAt = St::CreatedAt; type Url = Set; type Active = St::Active; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `active` field to Set pub struct SetActive(PhantomData St>); impl sealed::Sealed for SetActive {} impl State for SetActive { - type Url = St::Url; - type Active = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Url = St::Url; - type Active = St::Active; - type CreatedAt = Set; + type Active = 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 `url` field pub struct url(()); ///Marker type for the `active` field pub struct active(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -275,9 +275,9 @@ where impl TargetBuilder where St: target_state::State, + St::CreatedAt: target_state::IsSet, St::Url: target_state::IsSet, St::Active: target_state::IsSet, - St::CreatedAt: target_state::IsSet, { /// Build the final struct. pub fn build(self) -> Target { diff --git a/crates/jacquard-api/src/place_stream/playback/whep.rs b/crates/jacquard-api/src/place_stream/playback/whep.rs index 2eb7031f..99193826 100644 --- a/crates/jacquard-api/src/place_stream/playback/whep.rs +++ b/crates/jacquard-api/src/place_stream/playback/whep.rs @@ -117,7 +117,7 @@ impl jacquard_common::xrpc::XrpcRequest for Whep { type Response = WhepResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, @@ -157,37 +157,37 @@ pub mod whep_params_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Streamer; type Rendition; + type Streamer; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Streamer = Unset; type Rendition = Unset; - } - ///State transition - sets the `streamer` field to Set - pub struct SetStreamer(PhantomData St>); - impl sealed::Sealed for SetStreamer {} - impl State for SetStreamer { - type Streamer = Set; - type Rendition = St::Rendition; + type Streamer = Unset; } ///State transition - sets the `rendition` field to Set pub struct SetRendition(PhantomData St>); impl sealed::Sealed for SetRendition {} impl State for SetRendition { - type Streamer = St::Streamer; type Rendition = Set; + type Streamer = St::Streamer; + } + ///State transition - sets the `streamer` field to Set + pub struct SetStreamer(PhantomData St>); + impl sealed::Sealed for SetStreamer {} + impl State for SetStreamer { + type Rendition = St::Rendition; + type Streamer = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `streamer` field - pub struct streamer(()); ///Marker type for the `rendition` field pub struct rendition(()); + ///Marker type for the `streamer` field + pub struct streamer(()); } } @@ -257,8 +257,8 @@ where impl WhepParamsBuilder where St: whep_params_state::State, - St::Streamer: whep_params_state::IsSet, St::Rendition: whep_params_state::IsSet, + St::Streamer: whep_params_state::IsSet, { /// Build the final struct. pub fn build(self) -> WhepParams { diff --git a/crates/jacquard-api/src/place_stream/richtext/facet.rs b/crates/jacquard-api/src/place_stream/richtext/facet.rs index a469b1e7..ad1c2cd1 100644 --- a/crates/jacquard-api/src/place_stream/richtext/facet.rs +++ b/crates/jacquard-api/src/place_stream/richtext/facet.rs @@ -73,37 +73,37 @@ pub mod facet_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Index; type Features; + type Index; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Index = Unset; type Features = Unset; - } - ///State transition - sets the `index` field to Set - pub struct SetIndex(PhantomData St>); - impl sealed::Sealed for SetIndex {} - impl State for SetIndex { - type Index = Set; - type Features = St::Features; + type Index = Unset; } ///State transition - sets the `features` field to Set pub struct SetFeatures(PhantomData St>); impl sealed::Sealed for SetFeatures {} impl State for SetFeatures { - type Index = St::Index; type Features = Set; + type Index = St::Index; + } + ///State transition - sets the `index` field to Set + pub struct SetIndex(PhantomData St>); + impl sealed::Sealed for SetIndex {} + impl State for SetIndex { + type Features = St::Features; + type Index = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `index` field - pub struct index(()); ///Marker type for the `features` field pub struct features(()); + ///Marker type for the `index` field + pub struct index(()); } } @@ -173,8 +173,8 @@ where impl FacetBuilder where St: facet_state::State, - St::Index: facet_state::IsSet, St::Features: facet_state::IsSet, + St::Index: facet_state::IsSet, { /// Build the final struct. pub fn build(self) -> Facet { diff --git a/crates/jacquard-api/src/place_stream/segment.rs b/crates/jacquard-api/src/place_stream/segment.rs index 63cab9df..068a5a71 100644 --- a/crates/jacquard-api/src/place_stream/segment.rs +++ b/crates/jacquard-api/src/place_stream/segment.rs @@ -243,51 +243,51 @@ pub mod audio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Channels; type Codec; type Rate; + type Channels; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Channels = Unset; type Codec = Unset; type Rate = Unset; - } - ///State transition - sets the `channels` field to Set - pub struct SetChannels(PhantomData St>); - impl sealed::Sealed for SetChannels {} - impl State for SetChannels { - type Channels = Set; - type Codec = St::Codec; - type Rate = St::Rate; + type Channels = Unset; } ///State transition - sets the `codec` field to Set pub struct SetCodec(PhantomData St>); impl sealed::Sealed for SetCodec {} impl State for SetCodec { - type Channels = St::Channels; type Codec = Set; type Rate = St::Rate; + type Channels = St::Channels; } ///State transition - sets the `rate` field to Set pub struct SetRate(PhantomData St>); impl sealed::Sealed for SetRate {} impl State for SetRate { - type Channels = St::Channels; type Codec = St::Codec; type Rate = Set; + type Channels = St::Channels; + } + ///State transition - sets the `channels` field to Set + pub struct SetChannels(PhantomData St>); + impl sealed::Sealed for SetChannels {} + impl State for SetChannels { + type Codec = St::Codec; + type Rate = St::Rate; + type Channels = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `channels` field - pub struct channels(()); ///Marker type for the `codec` field pub struct codec(()); ///Marker type for the `rate` field pub struct rate(()); + ///Marker type for the `channels` field + pub struct channels(()); } } @@ -376,9 +376,9 @@ where impl AudioBuilder where St: audio_state::State, - St::Channels: audio_state::IsSet, St::Codec: audio_state::IsSet, St::Rate: audio_state::IsSet, + St::Channels: audio_state::IsSet, { /// Build the final struct. pub fn build(self) -> Audio { @@ -1281,49 +1281,49 @@ pub mod video_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Width; type Height; + type Width; type Codec; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Width = Unset; type Height = Unset; + type Width = Unset; type Codec = Unset; } - ///State transition - sets the `width` field to Set - pub struct SetWidth(PhantomData St>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = St::Height; - type Codec = St::Codec; - } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData St>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = St::Width; type Height = Set; + type Width = St::Width; + type Codec = St::Codec; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData St>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = St::Height; + type Width = Set; type Codec = St::Codec; } ///State transition - sets the `codec` field to Set pub struct SetCodec(PhantomData St>); impl sealed::Sealed for SetCodec {} impl State for SetCodec { - type Width = St::Width; type Height = St::Height; + type Width = St::Width; type Codec = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `width` field - pub struct width(()); ///Marker type for the `height` field pub struct height(()); + ///Marker type for the `width` field + pub struct width(()); ///Marker type for the `codec` field pub struct codec(()); } @@ -1446,8 +1446,8 @@ where impl VideoBuilder where St: video_state::State, - St::Width: video_state::IsSet, St::Height: video_state::IsSet, + St::Width: video_state::IsSet, St::Codec: video_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/place_stream/server.rs b/crates/jacquard-api/src/place_stream/server.rs index 35efa552..eb1b24df 100644 --- a/crates/jacquard-api/src/place_stream/server.rs +++ b/crates/jacquard-api/src/place_stream/server.rs @@ -428,85 +428,85 @@ pub mod webhook_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; type Active; - type Url; + type Id; type CreatedAt; type Events; + type Url; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Id = Unset; type Active = Unset; - type Url = Unset; + type Id = Unset; type CreatedAt = Unset; type Events = Unset; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type Active = St::Active; - type Url = St::Url; - type CreatedAt = St::CreatedAt; - type Events = St::Events; + type Url = Unset; } ///State transition - sets the `active` field to Set pub struct SetActive(PhantomData St>); impl sealed::Sealed for SetActive {} impl State for SetActive { - type Id = St::Id; type Active = Set; - type Url = St::Url; + type Id = St::Id; type CreatedAt = St::CreatedAt; type Events = St::Events; + type Url = St::Url; } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Id = St::Id; + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { type Active = St::Active; - type Url = Set; + type Id = Set; type CreatedAt = St::CreatedAt; type Events = St::Events; + type Url = St::Url; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Id = St::Id; type Active = St::Active; - type Url = St::Url; + type Id = St::Id; type CreatedAt = Set; type Events = St::Events; + type Url = St::Url; } ///State transition - sets the `events` field to Set pub struct SetEvents(PhantomData St>); impl sealed::Sealed for SetEvents {} impl State for SetEvents { - type Id = St::Id; type Active = St::Active; - type Url = St::Url; + type Id = St::Id; type CreatedAt = St::CreatedAt; type Events = Set; + type Url = St::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type Active = St::Active; + type Id = St::Id; + type CreatedAt = St::CreatedAt; + type Events = St::Events; + type Url = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `id` field - pub struct id(()); ///Marker type for the `active` field pub struct active(()); - ///Marker type for the `url` field - pub struct url(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `events` field pub struct events(()); + ///Marker type for the `url` field + pub struct url(()); } } @@ -783,11 +783,11 @@ where impl WebhookBuilder where St: webhook_state::State, - St::Id: webhook_state::IsSet, St::Active: webhook_state::IsSet, - St::Url: webhook_state::IsSet, + St::Id: webhook_state::IsSet, St::CreatedAt: webhook_state::IsSet, St::Events: webhook_state::IsSet, + St::Url: webhook_state::IsSet, { /// Build the final struct. pub fn build(self) -> Webhook { diff --git a/crates/jacquard-api/src/place_stream/server/create_webhook.rs b/crates/jacquard-api/src/place_stream/server/create_webhook.rs index b7bd6ffd..50cc2c33 100644 --- a/crates/jacquard-api/src/place_stream/server/create_webhook.rs +++ b/crates/jacquard-api/src/place_stream/server/create_webhook.rs @@ -166,37 +166,37 @@ pub mod create_webhook_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Url; type Events; + type Url; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Url = Unset; type Events = Unset; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Url = Set; - type Events = St::Events; + type Url = Unset; } ///State transition - sets the `events` field to Set pub struct SetEvents(PhantomData St>); impl sealed::Sealed for SetEvents {} impl State for SetEvents { - type Url = St::Url; type Events = Set; + type Url = St::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type Events = St::Events; + type Url = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `url` field - pub struct url(()); ///Marker type for the `events` field pub struct events(()); + ///Marker type for the `url` field + pub struct url(()); } } @@ -367,8 +367,8 @@ where impl CreateWebhookBuilder where St: create_webhook_state::State, - St::Url: create_webhook_state::IsSet, St::Events: create_webhook_state::IsSet, + St::Url: create_webhook_state::IsSet, { /// Build the final struct. pub fn build(self) -> CreateWebhook { diff --git a/crates/jacquard-api/src/place_wisp/fs.rs b/crates/jacquard-api/src/place_wisp/fs.rs index 7e4ff68e..c648760b 100644 --- a/crates/jacquard-api/src/place_wisp/fs.rs +++ b/crates/jacquard-api/src/place_wisp/fs.rs @@ -977,49 +977,49 @@ pub mod fs_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Site; + type CreatedAt; type Root; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Site = Unset; + type CreatedAt = Unset; type Root = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Site = St::Site; - type Root = St::Root; - } ///State transition - sets the `site` field to Set pub struct SetSite(PhantomData St>); impl sealed::Sealed for SetSite {} impl State for SetSite { - type CreatedAt = St::CreatedAt; type Site = Set; + type CreatedAt = St::CreatedAt; + type Root = St::Root; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Site = St::Site; + type CreatedAt = Set; type Root = St::Root; } ///State transition - sets the `root` field to Set pub struct SetRoot(PhantomData St>); impl sealed::Sealed for SetRoot {} impl State for SetRoot { - type CreatedAt = St::CreatedAt; type Site = St::Site; + type CreatedAt = St::CreatedAt; type Root = 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 `site` field pub struct site(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `root` field pub struct root(()); } @@ -1120,8 +1120,8 @@ where impl FsBuilder where St: fs_state::State, - St::CreatedAt: fs_state::IsSet, St::Site: fs_state::IsSet, + St::CreatedAt: fs_state::IsSet, St::Root: fs_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/pub_leaflet/comment.rs b/crates/jacquard-api/src/pub_leaflet/comment.rs index e3885702..ea8a843f 100644 --- a/crates/jacquard-api/src/pub_leaflet/comment.rs +++ b/crates/jacquard-api/src/pub_leaflet/comment.rs @@ -173,37 +173,37 @@ pub mod linear_document_quote_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Document; type Quote; + type Document; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Document = Unset; type Quote = Unset; - } - ///State transition - sets the `document` field to Set - pub struct SetDocument(PhantomData St>); - impl sealed::Sealed for SetDocument {} - impl State for SetDocument { - type Document = Set; - type Quote = St::Quote; + type Document = Unset; } ///State transition - sets the `quote` field to Set pub struct SetQuote(PhantomData St>); impl sealed::Sealed for SetQuote {} impl State for SetQuote { - type Document = St::Document; type Quote = Set; + type Document = St::Document; + } + ///State transition - sets the `document` field to Set + pub struct SetDocument(PhantomData St>); + impl sealed::Sealed for SetDocument {} + impl State for SetDocument { + type Quote = St::Quote; + type Document = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `document` field - pub struct document(()); ///Marker type for the `quote` field pub struct quote(()); + ///Marker type for the `document` field + pub struct document(()); } } @@ -276,8 +276,8 @@ where impl LinearDocumentQuoteBuilder where St: linear_document_quote_state::State, - St::Document: linear_document_quote_state::IsSet, St::Quote: linear_document_quote_state::IsSet, + St::Document: linear_document_quote_state::IsSet, { /// Build the final struct. pub fn build(self) -> LinearDocumentQuote { @@ -450,51 +450,51 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Plaintext; type Subject; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Plaintext = Unset; type Subject = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Plaintext = St::Plaintext; + type Subject = St::Subject; } ///State transition - sets the `plaintext` field to Set pub struct SetPlaintext(PhantomData St>); impl sealed::Sealed for SetPlaintext {} impl State for SetPlaintext { + type CreatedAt = St::CreatedAt; type Plaintext = Set; type Subject = St::Subject; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Plaintext = St::Plaintext; - type Subject = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Plaintext = St::Plaintext; - type Subject = St::Subject; - type CreatedAt = Set; + type Subject = 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 `plaintext` field pub struct plaintext(()); ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -649,9 +649,9 @@ where impl CommentBuilder where St: comment_state::State, + St::CreatedAt: comment_state::IsSet, St::Plaintext: comment_state::IsSet, St::Subject: comment_state::IsSet, - St::CreatedAt: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/pub_leaflet/document.rs b/crates/jacquard-api/src/pub_leaflet/document.rs index 38dcb149..b507afb4 100644 --- a/crates/jacquard-api/src/pub_leaflet/document.rs +++ b/crates/jacquard-api/src/pub_leaflet/document.rs @@ -234,51 +234,51 @@ pub mod document_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Title; type Pages; type Author; - type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Title = Unset; type Pages = Unset; type Author = Unset; - type Title = Unset; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Title = Set; + type Pages = St::Pages; + type Author = St::Author; } ///State transition - sets the `pages` field to Set pub struct SetPages(PhantomData St>); impl sealed::Sealed for SetPages {} impl State for SetPages { + type Title = St::Title; type Pages = Set; type Author = St::Author; - type Title = St::Title; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Pages = St::Pages; - type Author = Set; type Title = St::Title; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { type Pages = St::Pages; - type Author = St::Author; - type Title = Set; + type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `pages` field pub struct pages(()); ///Marker type for the `author` field pub struct author(()); - ///Marker type for the `title` field - pub struct title(()); } } @@ -483,9 +483,9 @@ where impl DocumentBuilder where St: document_state::State, + St::Title: document_state::IsSet, St::Pages: document_state::IsSet, St::Author: document_state::IsSet, - St::Title: document_state::IsSet, { /// Build the final struct. pub fn build(self) -> Document { diff --git a/crates/jacquard-api/src/pub_leaflet/pages/canvas.rs b/crates/jacquard-api/src/pub_leaflet/pages/canvas.rs index 6b95ea29..cdb5a9a7 100644 --- a/crates/jacquard-api/src/pub_leaflet/pages/canvas.rs +++ b/crates/jacquard-api/src/pub_leaflet/pages/canvas.rs @@ -222,66 +222,66 @@ pub mod block_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Width; - type Y; - type Block; type X; + type Block; + type Y; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Width = Unset; - type Y = Unset; - type Block = Unset; type X = Unset; + type Block = Unset; + type Y = Unset; } ///State transition - sets the `width` field to Set pub struct SetWidth(PhantomData St>); impl sealed::Sealed for SetWidth {} impl State for SetWidth { type Width = Set; - type Y = St::Y; - type Block = St::Block; type X = St::X; + type Block = St::Block; + type Y = St::Y; } - ///State transition - sets the `y` field to Set - pub struct SetY(PhantomData St>); - impl sealed::Sealed for SetY {} - impl State for SetY { + ///State transition - sets the `x` field to Set + pub struct SetX(PhantomData St>); + impl sealed::Sealed for SetX {} + impl State for SetX { type Width = St::Width; - type Y = Set; + type X = Set; type Block = St::Block; - type X = St::X; + type Y = St::Y; } ///State transition - sets the `block` field to Set pub struct SetBlock(PhantomData St>); impl sealed::Sealed for SetBlock {} impl State for SetBlock { type Width = St::Width; - type Y = St::Y; - type Block = Set; type X = St::X; + type Block = Set; + type Y = St::Y; } - ///State transition - sets the `x` field to Set - pub struct SetX(PhantomData St>); - impl sealed::Sealed for SetX {} - impl State for SetX { + ///State transition - sets the `y` field to Set + pub struct SetY(PhantomData St>); + impl sealed::Sealed for SetY {} + impl State for SetY { type Width = St::Width; - type Y = St::Y; + type X = St::X; type Block = St::Block; - type X = Set; + type Y = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `width` field pub struct width(()); - ///Marker type for the `y` field - pub struct y(()); - ///Marker type for the `block` field - pub struct block(()); ///Marker type for the `x` field pub struct x(()); + ///Marker type for the `block` field + pub struct block(()); + ///Marker type for the `y` field + pub struct y(()); } } @@ -417,9 +417,9 @@ impl BlockBuilder where St: block_state::State, St::Width: block_state::IsSet, - St::Y: block_state::IsSet, - St::Block: block_state::IsSet, St::X: block_state::IsSet, + St::Block: block_state::IsSet, + St::Y: block_state::IsSet, { /// Build the final struct. pub fn build(self) -> Block { @@ -750,37 +750,37 @@ pub mod position_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Offset; type Block; + type Offset; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Offset = Unset; type Block = Unset; - } - ///State transition - sets the `offset` field to Set - pub struct SetOffset(PhantomData St>); - impl sealed::Sealed for SetOffset {} - impl State for SetOffset { - type Offset = Set; - type Block = St::Block; + type Offset = Unset; } ///State transition - sets the `block` field to Set pub struct SetBlock(PhantomData St>); impl sealed::Sealed for SetBlock {} impl State for SetBlock { - type Offset = St::Offset; type Block = Set; + type Offset = St::Offset; + } + ///State transition - sets the `offset` field to Set + pub struct SetOffset(PhantomData St>); + impl sealed::Sealed for SetOffset {} + impl State for SetOffset { + type Block = St::Block; + type Offset = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `offset` field - pub struct offset(()); ///Marker type for the `block` field pub struct block(()); + ///Marker type for the `offset` field + pub struct offset(()); } } @@ -850,8 +850,8 @@ where impl PositionBuilder where St: position_state::State, - St::Offset: position_state::IsSet, St::Block: position_state::IsSet, + St::Offset: position_state::IsSet, { /// Build the final struct. pub fn build(self) -> Position { diff --git a/crates/jacquard-api/src/pub_leaflet/pages/linear_document.rs b/crates/jacquard-api/src/pub_leaflet/pages/linear_document.rs index 6dc3ba93..fcdb8833 100644 --- a/crates/jacquard-api/src/pub_leaflet/pages/linear_document.rs +++ b/crates/jacquard-api/src/pub_leaflet/pages/linear_document.rs @@ -691,37 +691,37 @@ pub mod position_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Block; type Offset; + type Block; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Block = Unset; type Offset = Unset; - } - ///State transition - sets the `block` field to Set - pub struct SetBlock(PhantomData St>); - impl sealed::Sealed for SetBlock {} - impl State for SetBlock { - type Block = Set; - type Offset = St::Offset; + type Block = Unset; } ///State transition - sets the `offset` field to Set pub struct SetOffset(PhantomData St>); impl sealed::Sealed for SetOffset {} impl State for SetOffset { - type Block = St::Block; type Offset = Set; + type Block = St::Block; + } + ///State transition - sets the `block` field to Set + pub struct SetBlock(PhantomData St>); + impl sealed::Sealed for SetBlock {} + impl State for SetBlock { + type Offset = St::Offset; + type Block = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `block` field - pub struct block(()); ///Marker type for the `offset` field pub struct offset(()); + ///Marker type for the `block` field + pub struct block(()); } } @@ -791,8 +791,8 @@ where impl PositionBuilder where St: position_state::State, - St::Block: position_state::IsSet, St::Offset: position_state::IsSet, + St::Block: position_state::IsSet, { /// Build the final struct. pub fn build(self) -> Position { @@ -822,37 +822,37 @@ pub mod quote_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type End; type Start; + type End; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type End = Unset; type Start = Unset; - } - ///State transition - sets the `end` field to Set - pub struct SetEnd(PhantomData St>); - impl sealed::Sealed for SetEnd {} - impl State for SetEnd { - type End = Set; - type Start = St::Start; + type End = Unset; } ///State transition - sets the `start` field to Set pub struct SetStart(PhantomData St>); impl sealed::Sealed for SetStart {} impl State for SetStart { - type End = St::End; type Start = Set; + type End = St::End; + } + ///State transition - sets the `end` field to Set + pub struct SetEnd(PhantomData St>); + impl sealed::Sealed for SetEnd {} + impl State for SetEnd { + type Start = St::Start; + type End = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `end` field - pub struct end(()); ///Marker type for the `start` field pub struct start(()); + ///Marker type for the `end` field + pub struct end(()); } } @@ -925,8 +925,8 @@ where impl QuoteBuilder where St: quote_state::State, - St::End: quote_state::IsSet, St::Start: quote_state::IsSet, + St::End: quote_state::IsSet, { /// Build the final struct. pub fn build(self) -> Quote { diff --git a/crates/jacquard-api/src/pub_leaflet/poll/definition.rs b/crates/jacquard-api/src/pub_leaflet/poll/definition.rs index f5b46f9b..59794f32 100644 --- a/crates/jacquard-api/src/pub_leaflet/poll/definition.rs +++ b/crates/jacquard-api/src/pub_leaflet/poll/definition.rs @@ -186,37 +186,37 @@ pub mod definition_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Options; type Name; + type Options; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Options = Unset; type Name = Unset; - } - ///State transition - sets the `options` field to Set - pub struct SetOptions(PhantomData St>); - impl sealed::Sealed for SetOptions {} - impl State for SetOptions { - type Options = Set; - type Name = St::Name; + type Options = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Options = St::Options; type Name = Set; + type Options = St::Options; + } + ///State transition - sets the `options` field to Set + pub struct SetOptions(PhantomData St>); + impl sealed::Sealed for SetOptions {} + impl State for SetOptions { + type Name = St::Name; + type Options = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `options` field - pub struct options(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `options` field + pub struct options(()); } } @@ -299,8 +299,8 @@ where impl DefinitionBuilder where St: definition_state::State, - St::Options: definition_state::IsSet, St::Name: definition_state::IsSet, + St::Options: definition_state::IsSet, { /// Build the final struct. pub fn build(self) -> Definition { diff --git a/crates/jacquard-api/src/pub_leaflet/theme/color.rs b/crates/jacquard-api/src/pub_leaflet/theme/color.rs index e37ebd57..915a9167 100644 --- a/crates/jacquard-api/src/pub_leaflet/theme/color.rs +++ b/crates/jacquard-api/src/pub_leaflet/theme/color.rs @@ -226,51 +226,51 @@ pub mod rgb_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type R; type G; type B; - type R; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type R = Unset; type G = Unset; type B = Unset; - type R = Unset; + } + ///State transition - sets the `r` field to Set + pub struct SetR(PhantomData St>); + impl sealed::Sealed for SetR {} + impl State for SetR { + type R = Set; + type G = St::G; + type B = St::B; } ///State transition - sets the `g` field to Set pub struct SetG(PhantomData St>); impl sealed::Sealed for SetG {} impl State for SetG { + type R = St::R; type G = Set; type B = St::B; - type R = St::R; } ///State transition - sets the `b` field to Set pub struct SetB(PhantomData St>); impl sealed::Sealed for SetB {} impl State for SetB { - type G = St::G; - type B = Set; type R = St::R; - } - ///State transition - sets the `r` field to Set - pub struct SetR(PhantomData St>); - impl sealed::Sealed for SetR {} - impl State for SetR { type G = St::G; - type B = St::B; - type R = Set; + type B = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `r` field + pub struct r(()); ///Marker type for the `g` field pub struct g(()); ///Marker type for the `b` field pub struct b(()); - ///Marker type for the `r` field - pub struct r(()); } } @@ -350,9 +350,9 @@ where impl RgbBuilder where St: rgb_state::State, + St::R: rgb_state::IsSet, St::G: rgb_state::IsSet, St::B: rgb_state::IsSet, - St::R: rgb_state::IsSet, { /// Build the final struct. pub fn build(self) -> Rgb { @@ -490,67 +490,67 @@ pub mod rgba_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type G; - type A; type R; type B; + type G; + type A; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type G = Unset; - type A = Unset; type R = Unset; type B = Unset; - } - ///State transition - sets the `g` field to Set - pub struct SetG(PhantomData St>); - impl sealed::Sealed for SetG {} - impl State for SetG { - type G = Set; - type A = St::A; - type R = St::R; - type B = St::B; - } - ///State transition - sets the `a` field to Set - pub struct SetA(PhantomData St>); - impl sealed::Sealed for SetA {} - impl State for SetA { - type G = St::G; - type A = Set; - type R = St::R; - type B = St::B; + type G = Unset; + type A = Unset; } ///State transition - sets the `r` field to Set pub struct SetR(PhantomData St>); impl sealed::Sealed for SetR {} impl State for SetR { - type G = St::G; - type A = St::A; type R = Set; type B = St::B; + type G = St::G; + type A = St::A; } ///State transition - sets the `b` field to Set pub struct SetB(PhantomData St>); impl sealed::Sealed for SetB {} impl State for SetB { + type R = St::R; + type B = Set; type G = St::G; type A = St::A; + } + ///State transition - sets the `g` field to Set + pub struct SetG(PhantomData St>); + impl sealed::Sealed for SetG {} + impl State for SetG { type R = St::R; - type B = Set; + type B = St::B; + type G = Set; + type A = St::A; + } + ///State transition - sets the `a` field to Set + pub struct SetA(PhantomData St>); + impl sealed::Sealed for SetA {} + impl State for SetA { + type R = St::R; + type B = St::B; + type G = St::G; + type A = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `g` field - pub struct g(()); - ///Marker type for the `a` field - pub struct a(()); ///Marker type for the `r` field pub struct r(()); ///Marker type for the `b` field pub struct b(()); + ///Marker type for the `g` field + pub struct g(()); + ///Marker type for the `a` field + pub struct a(()); } } @@ -646,10 +646,10 @@ where impl RgbaBuilder where St: rgba_state::State, - St::G: rgba_state::IsSet, - St::A: rgba_state::IsSet, St::R: rgba_state::IsSet, St::B: rgba_state::IsSet, + St::G: rgba_state::IsSet, + St::A: rgba_state::IsSet, { /// Build the final struct. pub fn build(self) -> Rgba { diff --git a/crates/jacquard-api/src/pub_quizzy/answer.rs b/crates/jacquard-api/src/pub_quizzy/answer.rs index 37c87450..4a9aef2e 100644 --- a/crates/jacquard-api/src/pub_quizzy/answer.rs +++ b/crates/jacquard-api/src/pub_quizzy/answer.rs @@ -230,67 +230,67 @@ pub mod answer_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Question; - type Certainty; type Timestamp; + type Question; type Text; + type Certainty; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Question = Unset; - type Certainty = Unset; type Timestamp = Unset; + type Question = Unset; type Text = Unset; - } - ///State transition - sets the `question` field to Set - pub struct SetQuestion(PhantomData St>); - impl sealed::Sealed for SetQuestion {} - impl State for SetQuestion { - type Question = Set; - type Certainty = St::Certainty; - type Timestamp = St::Timestamp; - type Text = St::Text; - } - ///State transition - sets the `certainty` field to Set - pub struct SetCertainty(PhantomData St>); - impl sealed::Sealed for SetCertainty {} - impl State for SetCertainty { - type Question = St::Question; - type Certainty = Set; - type Timestamp = St::Timestamp; - type Text = St::Text; + type Certainty = Unset; } ///State transition - sets the `timestamp` field to Set pub struct SetTimestamp(PhantomData St>); impl sealed::Sealed for SetTimestamp {} impl State for SetTimestamp { + type Timestamp = Set; type Question = St::Question; + type Text = St::Text; type Certainty = St::Certainty; - type Timestamp = Set; + } + ///State transition - sets the `question` field to Set + pub struct SetQuestion(PhantomData St>); + impl sealed::Sealed for SetQuestion {} + impl State for SetQuestion { + type Timestamp = St::Timestamp; + type Question = Set; type Text = St::Text; + type Certainty = St::Certainty; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { + type Timestamp = St::Timestamp; type Question = St::Question; + type Text = Set; type Certainty = St::Certainty; + } + ///State transition - sets the `certainty` field to Set + pub struct SetCertainty(PhantomData St>); + impl sealed::Sealed for SetCertainty {} + impl State for SetCertainty { type Timestamp = St::Timestamp; - type Text = Set; + type Question = St::Question; + type Text = St::Text; + type Certainty = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `question` field - pub struct question(()); - ///Marker type for the `certainty` field - pub struct certainty(()); ///Marker type for the `timestamp` field pub struct timestamp(()); + ///Marker type for the `question` field + pub struct question(()); ///Marker type for the `text` field pub struct text(()); + ///Marker type for the `certainty` field + pub struct certainty(()); } } @@ -403,10 +403,10 @@ where impl AnswerBuilder where St: answer_state::State, - St::Question: answer_state::IsSet, - St::Certainty: answer_state::IsSet, St::Timestamp: answer_state::IsSet, + St::Question: answer_state::IsSet, St::Text: answer_state::IsSet, + St::Certainty: answer_state::IsSet, { /// Build the final struct. pub fn build(self) -> Answer { diff --git a/crates/jacquard-api/src/pub_quizzy/league.rs b/crates/jacquard-api/src/pub_quizzy/league.rs index 7983eaea..257175c6 100644 --- a/crates/jacquard-api/src/pub_quizzy/league.rs +++ b/crates/jacquard-api/src/pub_quizzy/league.rs @@ -174,51 +174,51 @@ pub mod league_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Teams; type Name; type QuizMasters; + type Teams; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Teams = Unset; type Name = Unset; type QuizMasters = Unset; - } - ///State transition - sets the `teams` field to Set - pub struct SetTeams(PhantomData St>); - impl sealed::Sealed for SetTeams {} - impl State for SetTeams { - type Teams = Set; - type Name = St::Name; - type QuizMasters = St::QuizMasters; + type Teams = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Teams = St::Teams; type Name = Set; type QuizMasters = St::QuizMasters; + type Teams = St::Teams; } ///State transition - sets the `quiz_masters` field to Set pub struct SetQuizMasters(PhantomData St>); impl sealed::Sealed for SetQuizMasters {} impl State for SetQuizMasters { - type Teams = St::Teams; type Name = St::Name; type QuizMasters = Set; + type Teams = St::Teams; + } + ///State transition - sets the `teams` field to Set + pub struct SetTeams(PhantomData St>); + impl sealed::Sealed for SetTeams {} + impl State for SetTeams { + type Name = St::Name; + type QuizMasters = St::QuizMasters; + type Teams = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `teams` field - pub struct teams(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `quiz_masters` field pub struct quiz_masters(()); + ///Marker type for the `teams` field + pub struct teams(()); } } @@ -307,9 +307,9 @@ where impl LeagueBuilder where St: league_state::State, - St::Teams: league_state::IsSet, St::Name: league_state::IsSet, St::QuizMasters: league_state::IsSet, + St::Teams: league_state::IsSet, { /// Build the final struct. pub fn build(self) -> League { diff --git a/crates/jacquard-api/src/pub_quizzy/quiz.rs b/crates/jacquard-api/src/pub_quizzy/quiz.rs index 8721cca6..217fd619 100644 --- a/crates/jacquard-api/src/pub_quizzy/quiz.rs +++ b/crates/jacquard-api/src/pub_quizzy/quiz.rs @@ -344,67 +344,67 @@ pub mod quiz_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; - type Rounds; type Locales; type Timestamp; + type Title; + type Rounds; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; - type Rounds = Unset; type Locales = Unset; type Timestamp = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Rounds = St::Rounds; - type Locales = St::Locales; - type Timestamp = St::Timestamp; - } - ///State transition - sets the `rounds` field to Set - pub struct SetRounds(PhantomData St>); - impl sealed::Sealed for SetRounds {} - impl State for SetRounds { - type Title = St::Title; - type Rounds = Set; - type Locales = St::Locales; - type Timestamp = St::Timestamp; + type Title = Unset; + type Rounds = Unset; } ///State transition - sets the `locales` field to Set pub struct SetLocales(PhantomData St>); impl sealed::Sealed for SetLocales {} impl State for SetLocales { - type Title = St::Title; - type Rounds = St::Rounds; type Locales = Set; type Timestamp = St::Timestamp; + type Title = St::Title; + type Rounds = St::Rounds; } ///State transition - sets the `timestamp` field to Set pub struct SetTimestamp(PhantomData St>); impl sealed::Sealed for SetTimestamp {} impl State for SetTimestamp { + type Locales = St::Locales; + type Timestamp = Set; type Title = St::Title; type Rounds = St::Rounds; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { type Locales = St::Locales; - type Timestamp = Set; + type Timestamp = St::Timestamp; + type Title = Set; + type Rounds = St::Rounds; + } + ///State transition - sets the `rounds` field to Set + pub struct SetRounds(PhantomData St>); + impl sealed::Sealed for SetRounds {} + impl State for SetRounds { + type Locales = St::Locales; + type Timestamp = St::Timestamp; + type Title = St::Title; + type Rounds = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); - ///Marker type for the `rounds` field - pub struct rounds(()); ///Marker type for the `locales` field pub struct locales(()); ///Marker type for the `timestamp` field pub struct timestamp(()); + ///Marker type for the `title` field + pub struct title(()); + ///Marker type for the `rounds` field + pub struct rounds(()); } } @@ -573,10 +573,10 @@ where impl QuizBuilder where St: quiz_state::State, - St::Title: quiz_state::IsSet, - St::Rounds: quiz_state::IsSet, St::Locales: quiz_state::IsSet, St::Timestamp: quiz_state::IsSet, + St::Title: quiz_state::IsSet, + St::Rounds: quiz_state::IsSet, { /// Build the final struct. pub fn build(self) -> Quiz { diff --git a/crates/jacquard-api/src/pub_quizzy/quiz_begin.rs b/crates/jacquard-api/src/pub_quizzy/quiz_begin.rs index 8da9fdec..fac29e0c 100644 --- a/crates/jacquard-api/src/pub_quizzy/quiz_begin.rs +++ b/crates/jacquard-api/src/pub_quizzy/quiz_begin.rs @@ -119,67 +119,67 @@ pub mod quiz_begin_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type EndsAt; type League; - type Quiz; type StartedAt; - type EndsAt; + type Quiz; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type EndsAt = Unset; type League = Unset; - type Quiz = Unset; type StartedAt = Unset; - type EndsAt = Unset; + type Quiz = Unset; + } + ///State transition - sets the `ends_at` field to Set + pub struct SetEndsAt(PhantomData St>); + impl sealed::Sealed for SetEndsAt {} + impl State for SetEndsAt { + type EndsAt = Set; + type League = St::League; + type StartedAt = St::StartedAt; + type Quiz = St::Quiz; } ///State transition - sets the `league` field to Set pub struct SetLeague(PhantomData St>); impl sealed::Sealed for SetLeague {} impl State for SetLeague { - type League = Set; - type Quiz = St::Quiz; - type StartedAt = St::StartedAt; type EndsAt = St::EndsAt; - } - ///State transition - sets the `quiz` field to Set - pub struct SetQuiz(PhantomData St>); - impl sealed::Sealed for SetQuiz {} - impl State for SetQuiz { - type League = St::League; - type Quiz = Set; + type League = Set; type StartedAt = St::StartedAt; - type EndsAt = St::EndsAt; + type Quiz = St::Quiz; } ///State transition - sets the `started_at` field to Set pub struct SetStartedAt(PhantomData St>); impl sealed::Sealed for SetStartedAt {} impl State for SetStartedAt { + type EndsAt = St::EndsAt; type League = St::League; - type Quiz = St::Quiz; type StartedAt = Set; - type EndsAt = St::EndsAt; + type Quiz = St::Quiz; } - ///State transition - sets the `ends_at` field to Set - pub struct SetEndsAt(PhantomData St>); - impl sealed::Sealed for SetEndsAt {} - impl State for SetEndsAt { + ///State transition - sets the `quiz` field to Set + pub struct SetQuiz(PhantomData St>); + impl sealed::Sealed for SetQuiz {} + impl State for SetQuiz { + type EndsAt = St::EndsAt; type League = St::League; - type Quiz = St::Quiz; type StartedAt = St::StartedAt; - type EndsAt = Set; + type Quiz = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `ends_at` field + pub struct ends_at(()); ///Marker type for the `league` field pub struct league(()); - ///Marker type for the `quiz` field - pub struct quiz(()); ///Marker type for the `started_at` field pub struct started_at(()); - ///Marker type for the `ends_at` field - pub struct ends_at(()); + ///Marker type for the `quiz` field + pub struct quiz(()); } } @@ -292,10 +292,10 @@ where impl QuizBeginBuilder where St: quiz_begin_state::State, + St::EndsAt: quiz_begin_state::IsSet, St::League: quiz_begin_state::IsSet, - St::Quiz: quiz_begin_state::IsSet, St::StartedAt: quiz_begin_state::IsSet, - St::EndsAt: quiz_begin_state::IsSet, + St::Quiz: quiz_begin_state::IsSet, { /// Build the final struct. pub fn build(self) -> QuizBegin { diff --git a/crates/jacquard-api/src/pub_quizzy/quiz_done.rs b/crates/jacquard-api/src/pub_quizzy/quiz_done.rs index db246421..cd59f601 100644 --- a/crates/jacquard-api/src/pub_quizzy/quiz_done.rs +++ b/crates/jacquard-api/src/pub_quizzy/quiz_done.rs @@ -115,37 +115,37 @@ pub mod quiz_done_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Timestamp; type QuizBegin; + type Timestamp; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Timestamp = Unset; type QuizBegin = Unset; - } - ///State transition - sets the `timestamp` field to Set - pub struct SetTimestamp(PhantomData St>); - impl sealed::Sealed for SetTimestamp {} - impl State for SetTimestamp { - type Timestamp = Set; - type QuizBegin = St::QuizBegin; + type Timestamp = Unset; } ///State transition - sets the `quiz_begin` field to Set pub struct SetQuizBegin(PhantomData St>); impl sealed::Sealed for SetQuizBegin {} impl State for SetQuizBegin { - type Timestamp = St::Timestamp; type QuizBegin = Set; + type Timestamp = St::Timestamp; + } + ///State transition - sets the `timestamp` field to Set + pub struct SetTimestamp(PhantomData St>); + impl sealed::Sealed for SetTimestamp {} + impl State for SetTimestamp { + type QuizBegin = St::QuizBegin; + type Timestamp = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `timestamp` field - pub struct timestamp(()); ///Marker type for the `quiz_begin` field pub struct quiz_begin(()); + ///Marker type for the `timestamp` field + pub struct timestamp(()); } } @@ -215,8 +215,8 @@ where impl QuizDoneBuilder where St: quiz_done_state::State, - St::Timestamp: quiz_done_state::IsSet, St::QuizBegin: quiz_done_state::IsSet, + St::Timestamp: quiz_done_state::IsSet, { /// Build the final struct. pub fn build(self) -> QuizDone { diff --git a/crates/jacquard-api/src/science_alt/dataset/entry.rs b/crates/jacquard-api/src/science_alt/dataset/entry.rs index 301fc25b..0e7dabc3 100644 --- a/crates/jacquard-api/src/science_alt/dataset/entry.rs +++ b/crates/jacquard-api/src/science_alt/dataset/entry.rs @@ -578,66 +578,66 @@ pub mod entry_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type Storage; - type Name; type SchemaRef; + type Name; + type Storage; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type Storage = Unset; - type Name = Unset; type SchemaRef = Unset; + type Name = Unset; + type Storage = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type Storage = St::Storage; - type Name = St::Name; type SchemaRef = St::SchemaRef; + type Name = St::Name; + type Storage = St::Storage; } - ///State transition - sets the `storage` field to Set - pub struct SetStorage(PhantomData St>); - impl sealed::Sealed for SetStorage {} - impl State for SetStorage { + ///State transition - sets the `schema_ref` field to Set + pub struct SetSchemaRef(PhantomData St>); + impl sealed::Sealed for SetSchemaRef {} + impl State for SetSchemaRef { type CreatedAt = St::CreatedAt; - type Storage = Set; + type SchemaRef = Set; type Name = St::Name; - type SchemaRef = St::SchemaRef; + type Storage = St::Storage; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { type CreatedAt = St::CreatedAt; - type Storage = St::Storage; - type Name = Set; type SchemaRef = St::SchemaRef; + type Name = Set; + type Storage = St::Storage; } - ///State transition - sets the `schema_ref` field to Set - pub struct SetSchemaRef(PhantomData St>); - impl sealed::Sealed for SetSchemaRef {} - impl State for SetSchemaRef { + ///State transition - sets the `storage` field to Set + pub struct SetStorage(PhantomData St>); + impl sealed::Sealed for SetStorage {} + impl State for SetStorage { type CreatedAt = St::CreatedAt; - type Storage = St::Storage; + type SchemaRef = St::SchemaRef; type Name = St::Name; - type SchemaRef = Set; + type Storage = 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 `storage` field - pub struct storage(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `schema_ref` field pub struct schema_ref(()); + ///Marker type for the `name` field + pub struct name(()); + ///Marker type for the `storage` field + pub struct storage(()); } } @@ -849,9 +849,9 @@ impl EntryBuilder where St: entry_state::State, St::CreatedAt: entry_state::IsSet, - St::Storage: entry_state::IsSet, - St::Name: entry_state::IsSet, St::SchemaRef: entry_state::IsSet, + St::Name: entry_state::IsSet, + St::Storage: entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> Entry { diff --git a/crates/jacquard-api/src/science_alt/dataset/lens.rs b/crates/jacquard-api/src/science_alt/dataset/lens.rs index 4fde3912..e0dc1e87 100644 --- a/crates/jacquard-api/src/science_alt/dataset/lens.rs +++ b/crates/jacquard-api/src/science_alt/dataset/lens.rs @@ -565,10 +565,10 @@ pub mod lens_state { pub trait State: sealed::Sealed { type SourceSchema; type GetterCode; - type PutterCode; type CreatedAt; - type TargetSchema; + type PutterCode; type Name; + type TargetSchema; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -576,10 +576,10 @@ pub mod lens_state { impl State for Empty { type SourceSchema = Unset; type GetterCode = Unset; - type PutterCode = Unset; type CreatedAt = Unset; - type TargetSchema = Unset; + type PutterCode = Unset; type Name = Unset; + type TargetSchema = Unset; } ///State transition - sets the `source_schema` field to Set pub struct SetSourceSchema(PhantomData St>); @@ -587,10 +587,10 @@ pub mod lens_state { impl State for SetSourceSchema { type SourceSchema = Set; type GetterCode = St::GetterCode; - type PutterCode = St::PutterCode; type CreatedAt = St::CreatedAt; - type TargetSchema = St::TargetSchema; + type PutterCode = St::PutterCode; type Name = St::Name; + type TargetSchema = St::TargetSchema; } ///State transition - sets the `getter_code` field to Set pub struct SetGetterCode(PhantomData St>); @@ -598,21 +598,10 @@ pub mod lens_state { impl State for SetGetterCode { type SourceSchema = St::SourceSchema; type GetterCode = Set; - type PutterCode = St::PutterCode; type CreatedAt = St::CreatedAt; - type TargetSchema = St::TargetSchema; + type PutterCode = St::PutterCode; type Name = St::Name; - } - ///State transition - sets the `putter_code` field to Set - pub struct SetPutterCode(PhantomData St>); - impl sealed::Sealed for SetPutterCode {} - impl State for SetPutterCode { - type SourceSchema = St::SourceSchema; - type GetterCode = St::GetterCode; - type PutterCode = Set; - type CreatedAt = St::CreatedAt; type TargetSchema = St::TargetSchema; - type Name = St::Name; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); @@ -620,21 +609,21 @@ pub mod lens_state { impl State for SetCreatedAt { type SourceSchema = St::SourceSchema; type GetterCode = St::GetterCode; - type PutterCode = St::PutterCode; type CreatedAt = Set; - type TargetSchema = St::TargetSchema; + type PutterCode = St::PutterCode; type Name = St::Name; + type TargetSchema = St::TargetSchema; } - ///State transition - sets the `target_schema` field to Set - pub struct SetTargetSchema(PhantomData St>); - impl sealed::Sealed for SetTargetSchema {} - impl State for SetTargetSchema { + ///State transition - sets the `putter_code` field to Set + pub struct SetPutterCode(PhantomData St>); + impl sealed::Sealed for SetPutterCode {} + impl State for SetPutterCode { type SourceSchema = St::SourceSchema; type GetterCode = St::GetterCode; - type PutterCode = St::PutterCode; type CreatedAt = St::CreatedAt; - type TargetSchema = Set; + type PutterCode = Set; type Name = St::Name; + type TargetSchema = St::TargetSchema; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); @@ -642,10 +631,21 @@ pub mod lens_state { impl State for SetName { type SourceSchema = St::SourceSchema; type GetterCode = St::GetterCode; - type PutterCode = St::PutterCode; type CreatedAt = St::CreatedAt; - type TargetSchema = St::TargetSchema; + type PutterCode = St::PutterCode; type Name = Set; + type TargetSchema = St::TargetSchema; + } + ///State transition - sets the `target_schema` field to Set + pub struct SetTargetSchema(PhantomData St>); + impl sealed::Sealed for SetTargetSchema {} + impl State for SetTargetSchema { + type SourceSchema = St::SourceSchema; + type GetterCode = St::GetterCode; + type CreatedAt = St::CreatedAt; + type PutterCode = St::PutterCode; + type Name = St::Name; + type TargetSchema = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -654,14 +654,14 @@ pub mod lens_state { pub struct source_schema(()); ///Marker type for the `getter_code` field pub struct getter_code(()); - ///Marker type for the `putter_code` field - pub struct putter_code(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `target_schema` field - pub struct target_schema(()); + ///Marker type for the `putter_code` field + pub struct putter_code(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `target_schema` field + pub struct target_schema(()); } } @@ -886,10 +886,10 @@ where St: lens_state::State, St::SourceSchema: lens_state::IsSet, St::GetterCode: lens_state::IsSet, - St::PutterCode: lens_state::IsSet, St::CreatedAt: lens_state::IsSet, - St::TargetSchema: lens_state::IsSet, + St::PutterCode: lens_state::IsSet, St::Name: lens_state::IsSet, + St::TargetSchema: lens_state::IsSet, { /// Build the final struct. pub fn build(self) -> Lens { diff --git a/crates/jacquard-api/src/science_alt/dataset/lens_verification.rs b/crates/jacquard-api/src/science_alt/dataset/lens_verification.rs index 97a41bf4..42a86836 100644 --- a/crates/jacquard-api/src/science_alt/dataset/lens_verification.rs +++ b/crates/jacquard-api/src/science_alt/dataset/lens_verification.rs @@ -374,67 +374,67 @@ pub mod lens_verification_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; + type Lens; type LensCommit; type VerificationMethod; - type Lens; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; + type Lens = Unset; type LensCommit = Unset; type VerificationMethod = Unset; - type Lens = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Lens = St::Lens; + type LensCommit = St::LensCommit; + type VerificationMethod = St::VerificationMethod; + } + ///State transition - sets the `lens` field to Set + pub struct SetLens(PhantomData St>); + impl sealed::Sealed for SetLens {} + impl State for SetLens { + type CreatedAt = St::CreatedAt; + type Lens = Set; + type LensCommit = St::LensCommit; + type VerificationMethod = St::VerificationMethod; } ///State transition - sets the `lens_commit` field to Set pub struct SetLensCommit(PhantomData St>); impl sealed::Sealed for SetLensCommit {} impl State for SetLensCommit { + type CreatedAt = St::CreatedAt; + type Lens = St::Lens; type LensCommit = Set; type VerificationMethod = St::VerificationMethod; - type Lens = St::Lens; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `verification_method` field to Set pub struct SetVerificationMethod(PhantomData St>); impl sealed::Sealed for SetVerificationMethod {} impl State for SetVerificationMethod { - type LensCommit = St::LensCommit; - type VerificationMethod = Set; - type Lens = St::Lens; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `lens` field to Set - pub struct SetLens(PhantomData St>); - impl sealed::Sealed for SetLens {} - impl State for SetLens { - type LensCommit = St::LensCommit; - type VerificationMethod = St::VerificationMethod; - type Lens = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type LensCommit = St::LensCommit; - type VerificationMethod = St::VerificationMethod; type Lens = St::Lens; - type CreatedAt = Set; + type LensCommit = St::LensCommit; + type VerificationMethod = 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 `lens` field + pub struct lens(()); ///Marker type for the `lens_commit` field pub struct lens_commit(()); ///Marker type for the `verification_method` field pub struct verification_method(()); - ///Marker type for the `lens` field - pub struct lens(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -595,10 +595,10 @@ where impl LensVerificationBuilder where St: lens_verification_state::State, + St::CreatedAt: lens_verification_state::IsSet, + St::Lens: lens_verification_state::IsSet, St::LensCommit: lens_verification_state::IsSet, St::VerificationMethod: lens_verification_state::IsSet, - St::Lens: lens_verification_state::IsSet, - St::CreatedAt: lens_verification_state::IsSet, { /// Build the final struct. pub fn build(self) -> LensVerification { diff --git a/crates/jacquard-api/src/science_alt/dataset/resolve_label.rs b/crates/jacquard-api/src/science_alt/dataset/resolve_label.rs index 812a6430..70f54692 100644 --- a/crates/jacquard-api/src/science_alt/dataset/resolve_label.rs +++ b/crates/jacquard-api/src/science_alt/dataset/resolve_label.rs @@ -119,37 +119,37 @@ pub mod resolve_label_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Handle; type Name; + type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Handle = Unset; type Name = Unset; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData St>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Handle = Set; - type Name = St::Name; + type Handle = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Handle = St::Handle; type Name = Set; + type Handle = St::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData St>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type Name = St::Name; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `handle` field - pub struct handle(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `handle` field + pub struct handle(()); } } @@ -232,8 +232,8 @@ impl ResolveLabelBuilder { impl ResolveLabelBuilder where St: resolve_label_state::State, - St::Handle: resolve_label_state::IsSet, St::Name: resolve_label_state::IsSet, + St::Handle: resolve_label_state::IsSet, { /// Build the final struct. pub fn build(self) -> ResolveLabel { diff --git a/crates/jacquard-api/src/science_alt/dataset/storage_s3.rs b/crates/jacquard-api/src/science_alt/dataset/storage_s3.rs index da0e3f1e..df13d109 100644 --- a/crates/jacquard-api/src/science_alt/dataset/storage_s3.rs +++ b/crates/jacquard-api/src/science_alt/dataset/storage_s3.rs @@ -151,37 +151,37 @@ pub mod storage_s3_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Bucket; type Shards; + type Bucket; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Bucket = Unset; type Shards = Unset; - } - ///State transition - sets the `bucket` field to Set - pub struct SetBucket(PhantomData St>); - impl sealed::Sealed for SetBucket {} - impl State for SetBucket { - type Bucket = Set; - type Shards = St::Shards; + type Bucket = Unset; } ///State transition - sets the `shards` field to Set pub struct SetShards(PhantomData St>); impl sealed::Sealed for SetShards {} impl State for SetShards { - type Bucket = St::Bucket; type Shards = Set; + type Bucket = St::Bucket; + } + ///State transition - sets the `bucket` field to Set + pub struct SetBucket(PhantomData St>); + impl sealed::Sealed for SetBucket {} + impl State for SetBucket { + type Shards = St::Shards; + type Bucket = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `bucket` field - pub struct bucket(()); ///Marker type for the `shards` field pub struct shards(()); + ///Marker type for the `bucket` field + pub struct bucket(()); } } @@ -282,8 +282,8 @@ where impl StorageS3Builder where St: storage_s3_state::State, - St::Bucket: storage_s3_state::IsSet, St::Shards: storage_s3_state::IsSet, + St::Bucket: storage_s3_state::IsSet, { /// Build the final struct. pub fn build(self) -> StorageS3 { @@ -446,37 +446,37 @@ pub mod shard_entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Checksum; type Key; + type Checksum; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Checksum = Unset; type Key = Unset; - } - ///State transition - sets the `checksum` field to Set - pub struct SetChecksum(PhantomData St>); - impl sealed::Sealed for SetChecksum {} - impl State for SetChecksum { - type Checksum = Set; - type Key = St::Key; + type Checksum = Unset; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type Checksum = St::Checksum; type Key = Set; + type Checksum = St::Checksum; + } + ///State transition - sets the `checksum` field to Set + pub struct SetChecksum(PhantomData St>); + impl sealed::Sealed for SetChecksum {} + impl State for SetChecksum { + type Key = St::Key; + type Checksum = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `checksum` field - pub struct checksum(()); ///Marker type for the `key` field pub struct key(()); + ///Marker type for the `checksum` field + pub struct checksum(()); } } @@ -546,8 +546,8 @@ where impl ShardEntryBuilder where St: shard_entry_state::State, - St::Checksum: shard_entry_state::IsSet, St::Key: shard_entry_state::IsSet, + St::Checksum: shard_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> ShardEntry { diff --git a/crates/jacquard-api/src/scot_comhairle/testing_polis_statement_v1.rs b/crates/jacquard-api/src/scot_comhairle/testing_polis_statement_v1.rs index c1f95c4d..61a30170 100644 --- a/crates/jacquard-api/src/scot_comhairle/testing_polis_statement_v1.rs +++ b/crates/jacquard-api/src/scot_comhairle/testing_polis_statement_v1.rs @@ -157,51 +157,51 @@ pub mod testing_polis_statement_v1_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Poll; type Text; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Poll = Unset; type Text = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Poll = St::Poll; + type Text = St::Text; } ///State transition - sets the `poll` field to Set pub struct SetPoll(PhantomData St>); impl sealed::Sealed for SetPoll {} impl State for SetPoll { + type CreatedAt = St::CreatedAt; type Poll = Set; type Text = St::Text; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { - type Poll = St::Poll; - type Text = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Poll = St::Poll; - type Text = St::Text; - type CreatedAt = Set; + type Text = 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 `poll` field pub struct poll(()); ///Marker type for the `text` field pub struct text(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -311,9 +311,9 @@ where impl TestingPolisStatementV1Builder where St: testing_polis_statement_v1_state::State, + St::CreatedAt: testing_polis_statement_v1_state::IsSet, St::Poll: testing_polis_statement_v1_state::IsSet, St::Text: testing_polis_statement_v1_state::IsSet, - St::CreatedAt: testing_polis_statement_v1_state::IsSet, { /// Build the final struct. pub fn build(self) -> TestingPolisStatementV1 { @@ -454,37 +454,37 @@ pub mod poll_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Cid = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = St::Cid; + type Uri = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = St::Uri; type Cid = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = St::Cid; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -554,8 +554,8 @@ where impl PollRefBuilder where St: poll_ref_state::State, - St::Uri: poll_ref_state::IsSet, St::Cid: poll_ref_state::IsSet, + St::Uri: poll_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> PollRef { diff --git a/crates/jacquard-api/src/scot_comhairle/testing_polis_vote_v1.rs b/crates/jacquard-api/src/scot_comhairle/testing_polis_vote_v1.rs index e35db1a8..93cdce72 100644 --- a/crates/jacquard-api/src/scot_comhairle/testing_polis_vote_v1.rs +++ b/crates/jacquard-api/src/scot_comhairle/testing_polis_vote_v1.rs @@ -175,67 +175,67 @@ pub mod testing_polis_vote_v1_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Poll; + type Value; type CreatedAt; type Subject; - type Value; + type Poll; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Poll = Unset; + type Value = Unset; type CreatedAt = Unset; type Subject = Unset; - type Value = Unset; + type Poll = Unset; } - ///State transition - sets the `poll` field to Set - pub struct SetPoll(PhantomData St>); - impl sealed::Sealed for SetPoll {} - impl State for SetPoll { - type Poll = Set; + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type Value = Set; type CreatedAt = St::CreatedAt; type Subject = St::Subject; - type Value = St::Value; + type Poll = St::Poll; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Poll = St::Poll; + type Value = St::Value; type CreatedAt = Set; type Subject = St::Subject; - type Value = St::Value; + type Poll = St::Poll; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Poll = St::Poll; + type Value = St::Value; type CreatedAt = St::CreatedAt; type Subject = Set; - type Value = St::Value; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { type Poll = St::Poll; + } + ///State transition - sets the `poll` field to Set + pub struct SetPoll(PhantomData St>); + impl sealed::Sealed for SetPoll {} + impl State for SetPoll { + type Value = St::Value; type CreatedAt = St::CreatedAt; type Subject = St::Subject; - type Value = Set; + type Poll = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `poll` field - pub struct poll(()); + ///Marker type for the `value` field + pub struct value(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `value` field - pub struct value(()); + ///Marker type for the `poll` field + pub struct poll(()); } } @@ -348,10 +348,10 @@ where impl TestingPolisVoteV1Builder where St: testing_polis_vote_v1_state::State, - St::Poll: testing_polis_vote_v1_state::IsSet, + St::Value: testing_polis_vote_v1_state::IsSet, St::CreatedAt: testing_polis_vote_v1_state::IsSet, St::Subject: testing_polis_vote_v1_state::IsSet, - St::Value: testing_polis_vote_v1_state::IsSet, + St::Poll: testing_polis_vote_v1_state::IsSet, { /// Build the final struct. pub fn build(self) -> TestingPolisVoteV1 { @@ -667,37 +667,37 @@ pub mod statement_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Uri; + type Cid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Uri = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Uri = St::Uri; + type Cid = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Cid = St::Cid; type Uri = Set; + type Cid = St::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -767,8 +767,8 @@ where impl StatementRefBuilder where St: statement_ref_state::State, - St::Cid: statement_ref_state::IsSet, St::Uri: statement_ref_state::IsSet, + St::Cid: statement_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> StatementRef { diff --git a/crates/jacquard-api/src/sh_tangled/feed/reaction.rs b/crates/jacquard-api/src/sh_tangled/feed/reaction.rs index 0753afdf..d473b1ac 100644 --- a/crates/jacquard-api/src/sh_tangled/feed/reaction.rs +++ b/crates/jacquard-api/src/sh_tangled/feed/reaction.rs @@ -112,51 +112,51 @@ pub mod reaction_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Reaction; type Subject; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Reaction = Unset; type Subject = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Reaction = St::Reaction; + type Subject = St::Subject; } ///State transition - sets the `reaction` field to Set pub struct SetReaction(PhantomData St>); impl sealed::Sealed for SetReaction {} impl State for SetReaction { + type CreatedAt = St::CreatedAt; type Reaction = Set; type Subject = St::Subject; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Reaction = St::Reaction; - type Subject = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Reaction = St::Reaction; - type Subject = St::Subject; - type CreatedAt = Set; + type Subject = 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 `reaction` field pub struct reaction(()); ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -245,9 +245,9 @@ where impl ReactionBuilder where St: reaction_state::State, + St::CreatedAt: reaction_state::IsSet, St::Reaction: reaction_state::IsSet, St::Subject: reaction_state::IsSet, - St::CreatedAt: reaction_state::IsSet, { /// Build the final struct. pub fn build(self) -> Reaction { diff --git a/crates/jacquard-api/src/sh_tangled/git/ref_update.rs b/crates/jacquard-api/src/sh_tangled/git/ref_update.rs index 1b0d2fce..43d544d6 100644 --- a/crates/jacquard-api/src/sh_tangled/git/ref_update.rs +++ b/crates/jacquard-api/src/sh_tangled/git/ref_update.rs @@ -848,127 +848,127 @@ pub mod ref_update_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Ref; type RepoDid; - type NewSha; + type RepoName; type Meta; + type Ref; + type NewSha; type CommitterDid; type OldSha; - type RepoName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Ref = Unset; type RepoDid = Unset; - type NewSha = Unset; + type RepoName = Unset; type Meta = Unset; + type Ref = Unset; + type NewSha = Unset; type CommitterDid = Unset; type OldSha = Unset; - type RepoName = Unset; - } - ///State transition - sets the `ref` field to Set - pub struct SetRef(PhantomData St>); - impl sealed::Sealed for SetRef {} - impl State for SetRef { - type Ref = Set; - type RepoDid = St::RepoDid; - type NewSha = St::NewSha; - type Meta = St::Meta; - type CommitterDid = St::CommitterDid; - type OldSha = St::OldSha; - type RepoName = St::RepoName; } ///State transition - sets the `repo_did` field to Set pub struct SetRepoDid(PhantomData St>); impl sealed::Sealed for SetRepoDid {} impl State for SetRepoDid { - type Ref = St::Ref; type RepoDid = Set; - type NewSha = St::NewSha; + type RepoName = St::RepoName; type Meta = St::Meta; + type Ref = St::Ref; + type NewSha = St::NewSha; type CommitterDid = St::CommitterDid; type OldSha = St::OldSha; - type RepoName = St::RepoName; } - ///State transition - sets the `new_sha` field to Set - pub struct SetNewSha(PhantomData St>); - impl sealed::Sealed for SetNewSha {} - impl State for SetNewSha { - type Ref = St::Ref; + ///State transition - sets the `repo_name` field to Set + pub struct SetRepoName(PhantomData St>); + impl sealed::Sealed for SetRepoName {} + impl State for SetRepoName { type RepoDid = St::RepoDid; - type NewSha = Set; + type RepoName = Set; type Meta = St::Meta; + type Ref = St::Ref; + type NewSha = St::NewSha; type CommitterDid = St::CommitterDid; type OldSha = St::OldSha; - type RepoName = St::RepoName; } ///State transition - sets the `meta` field to Set pub struct SetMeta(PhantomData St>); impl sealed::Sealed for SetMeta {} impl State for SetMeta { + type RepoDid = St::RepoDid; + type RepoName = St::RepoName; + type Meta = Set; type Ref = St::Ref; + type NewSha = St::NewSha; + type CommitterDid = St::CommitterDid; + type OldSha = St::OldSha; + } + ///State transition - sets the `ref` field to Set + pub struct SetRef(PhantomData St>); + impl sealed::Sealed for SetRef {} + impl State for SetRef { type RepoDid = St::RepoDid; + type RepoName = St::RepoName; + type Meta = St::Meta; + type Ref = Set; type NewSha = St::NewSha; - type Meta = Set; type CommitterDid = St::CommitterDid; type OldSha = St::OldSha; + } + ///State transition - sets the `new_sha` field to Set + pub struct SetNewSha(PhantomData St>); + impl sealed::Sealed for SetNewSha {} + impl State for SetNewSha { + type RepoDid = St::RepoDid; type RepoName = St::RepoName; + type Meta = St::Meta; + type Ref = St::Ref; + type NewSha = Set; + type CommitterDid = St::CommitterDid; + type OldSha = St::OldSha; } ///State transition - sets the `committer_did` field to Set pub struct SetCommitterDid(PhantomData St>); impl sealed::Sealed for SetCommitterDid {} impl State for SetCommitterDid { - type Ref = St::Ref; type RepoDid = St::RepoDid; - type NewSha = St::NewSha; + type RepoName = St::RepoName; type Meta = St::Meta; + type Ref = St::Ref; + type NewSha = St::NewSha; type CommitterDid = Set; type OldSha = St::OldSha; - type RepoName = St::RepoName; } ///State transition - sets the `old_sha` field to Set pub struct SetOldSha(PhantomData St>); impl sealed::Sealed for SetOldSha {} impl State for SetOldSha { - type Ref = St::Ref; type RepoDid = St::RepoDid; - type NewSha = St::NewSha; - type Meta = St::Meta; - type CommitterDid = St::CommitterDid; - type OldSha = Set; type RepoName = St::RepoName; - } - ///State transition - sets the `repo_name` field to Set - pub struct SetRepoName(PhantomData St>); - impl sealed::Sealed for SetRepoName {} - impl State for SetRepoName { + type Meta = St::Meta; type Ref = St::Ref; - type RepoDid = St::RepoDid; type NewSha = St::NewSha; - type Meta = St::Meta; type CommitterDid = St::CommitterDid; - type OldSha = St::OldSha; - type RepoName = Set; + type OldSha = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `ref` field - pub struct r#ref(()); ///Marker type for the `repo_did` field pub struct repo_did(()); - ///Marker type for the `new_sha` field - pub struct new_sha(()); + ///Marker type for the `repo_name` field + pub struct repo_name(()); ///Marker type for the `meta` field pub struct meta(()); + ///Marker type for the `ref` field + pub struct r#ref(()); + ///Marker type for the `new_sha` field + pub struct new_sha(()); ///Marker type for the `committer_did` field pub struct committer_did(()); ///Marker type for the `old_sha` field pub struct old_sha(()); - ///Marker type for the `repo_name` field - pub struct repo_name(()); } } @@ -1141,13 +1141,13 @@ where impl RefUpdateBuilder where St: ref_update_state::State, - St::Ref: ref_update_state::IsSet, St::RepoDid: ref_update_state::IsSet, - St::NewSha: ref_update_state::IsSet, + St::RepoName: ref_update_state::IsSet, St::Meta: ref_update_state::IsSet, + St::Ref: ref_update_state::IsSet, + St::NewSha: ref_update_state::IsSet, St::CommitterDid: ref_update_state::IsSet, St::OldSha: ref_update_state::IsSet, - St::RepoName: ref_update_state::IsSet, { /// Build the final struct. pub fn build(self) -> RefUpdate { @@ -1194,37 +1194,37 @@ pub mod meta_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type IsDefaultRef; type CommitCount; + type IsDefaultRef; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type IsDefaultRef = Unset; type CommitCount = Unset; - } - ///State transition - sets the `is_default_ref` field to Set - pub struct SetIsDefaultRef(PhantomData St>); - impl sealed::Sealed for SetIsDefaultRef {} - impl State for SetIsDefaultRef { - type IsDefaultRef = Set; - type CommitCount = St::CommitCount; + type IsDefaultRef = Unset; } ///State transition - sets the `commit_count` field to Set pub struct SetCommitCount(PhantomData St>); impl sealed::Sealed for SetCommitCount {} impl State for SetCommitCount { - type IsDefaultRef = St::IsDefaultRef; type CommitCount = Set; + type IsDefaultRef = St::IsDefaultRef; + } + ///State transition - sets the `is_default_ref` field to Set + pub struct SetIsDefaultRef(PhantomData St>); + impl sealed::Sealed for SetIsDefaultRef {} + impl State for SetIsDefaultRef { + type CommitCount = St::CommitCount; + type IsDefaultRef = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `is_default_ref` field - pub struct is_default_ref(()); ///Marker type for the `commit_count` field pub struct commit_count(()); + ///Marker type for the `is_default_ref` field + pub struct is_default_ref(()); } } @@ -1317,8 +1317,8 @@ impl MetaBuilder { impl MetaBuilder where St: meta_state::State, - St::IsDefaultRef: meta_state::IsSet, St::CommitCount: meta_state::IsSet, + St::IsDefaultRef: meta_state::IsSet, { /// Build the final struct. pub fn build(self) -> Meta { diff --git a/crates/jacquard-api/src/sh_tangled/git/temp.rs b/crates/jacquard-api/src/sh_tangled/git/temp.rs index bbbebc97..f7455217 100644 --- a/crates/jacquard-api/src/sh_tangled/git/temp.rs +++ b/crates/jacquard-api/src/sh_tangled/git/temp.rs @@ -228,67 +228,67 @@ pub mod blob_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type LastCommit; type Mode; type Size; type Name; - type LastCommit; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type LastCommit = Unset; type Mode = Unset; type Size = Unset; type Name = Unset; - type LastCommit = Unset; + } + ///State transition - sets the `last_commit` field to Set + pub struct SetLastCommit(PhantomData St>); + impl sealed::Sealed for SetLastCommit {} + impl State for SetLastCommit { + type LastCommit = Set; + type Mode = St::Mode; + type Size = St::Size; + type Name = St::Name; } ///State transition - sets the `mode` field to Set pub struct SetMode(PhantomData St>); impl sealed::Sealed for SetMode {} impl State for SetMode { + type LastCommit = St::LastCommit; type Mode = Set; type Size = St::Size; type Name = St::Name; - type LastCommit = St::LastCommit; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData St>); impl sealed::Sealed for SetSize {} impl State for SetSize { + type LastCommit = St::LastCommit; type Mode = St::Mode; type Size = Set; type Name = St::Name; - type LastCommit = St::LastCommit; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Mode = St::Mode; - type Size = St::Size; - type Name = Set; type LastCommit = St::LastCommit; - } - ///State transition - sets the `last_commit` field to Set - pub struct SetLastCommit(PhantomData St>); - impl sealed::Sealed for SetLastCommit {} - impl State for SetLastCommit { type Mode = St::Mode; type Size = St::Size; - type Name = St::Name; - type LastCommit = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `last_commit` field + pub struct last_commit(()); ///Marker type for the `mode` field pub struct mode(()); ///Marker type for the `size` field pub struct size(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `last_commit` field - pub struct last_commit(()); } } @@ -415,10 +415,10 @@ impl BlobBuilder { impl BlobBuilder where St: blob_state::State, + St::LastCommit: blob_state::IsSet, St::Mode: blob_state::IsSet, St::Size: blob_state::IsSet, St::Name: blob_state::IsSet, - St::LastCommit: blob_state::IsSet, { /// Build the final struct. pub fn build(self) -> Blob { @@ -858,85 +858,85 @@ pub mod commit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Message; type Committer; type Author; - type Tree; - type Message; type Hash; + type Tree; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Message = Unset; type Committer = Unset; type Author = Unset; - type Tree = Unset; - type Message = Unset; type Hash = Unset; + type Tree = Unset; + } + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData St>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; + type Committer = St::Committer; + type Author = St::Author; + type Hash = St::Hash; + type Tree = St::Tree; } ///State transition - sets the `committer` field to Set pub struct SetCommitter(PhantomData St>); impl sealed::Sealed for SetCommitter {} impl State for SetCommitter { + type Message = St::Message; type Committer = Set; type Author = St::Author; - type Tree = St::Tree; - type Message = St::Message; type Hash = St::Hash; + type Tree = St::Tree; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Committer = St::Committer; - type Author = Set; - type Tree = St::Tree; type Message = St::Message; - type Hash = St::Hash; - } - ///State transition - sets the `tree` field to Set - pub struct SetTree(PhantomData St>); - impl sealed::Sealed for SetTree {} - impl State for SetTree { type Committer = St::Committer; - type Author = St::Author; - type Tree = Set; - type Message = St::Message; + type Author = Set; type Hash = St::Hash; - } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData St>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { - type Committer = St::Committer; - type Author = St::Author; type Tree = St::Tree; - type Message = Set; - type Hash = St::Hash; } ///State transition - sets the `hash` field to Set pub struct SetHash(PhantomData St>); impl sealed::Sealed for SetHash {} impl State for SetHash { + type Message = St::Message; type Committer = St::Committer; type Author = St::Author; + type Hash = Set; type Tree = St::Tree; + } + ///State transition - sets the `tree` field to Set + pub struct SetTree(PhantomData St>); + impl sealed::Sealed for SetTree {} + impl State for SetTree { type Message = St::Message; - type Hash = Set; + type Committer = St::Committer; + type Author = St::Author; + type Hash = St::Hash; + type Tree = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `message` field + pub struct message(()); ///Marker type for the `committer` field pub struct committer(()); ///Marker type for the `author` field pub struct author(()); - ///Marker type for the `tree` field - pub struct tree(()); - ///Marker type for the `message` field - pub struct message(()); ///Marker type for the `hash` field pub struct hash(()); + ///Marker type for the `tree` field + pub struct tree(()); } } @@ -1069,11 +1069,11 @@ where impl CommitBuilder where St: commit_state::State, + St::Message: commit_state::IsSet, St::Committer: commit_state::IsSet, St::Author: commit_state::IsSet, - St::Tree: commit_state::IsSet, - St::Message: commit_state::IsSet, St::Hash: commit_state::IsSet, + St::Tree: commit_state::IsSet, { /// Build the final struct. pub fn build(self) -> Commit { @@ -1110,50 +1110,50 @@ pub mod signature_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type When; - type Name; type Email; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type When = Unset; - type Name = Unset; type Email = Unset; + type Name = Unset; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { type When = Set; - type Name = St::Name; - type Email = St::Email; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type When = St::When; - type Name = Set; type Email = St::Email; + type Name = St::Name; } ///State transition - sets the `email` field to Set pub struct SetEmail(PhantomData St>); impl sealed::Sealed for SetEmail {} impl State for SetEmail { type When = St::When; - type Name = St::Name; type Email = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type When = St::When; + type Email = St::Email; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `when` field pub struct when(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `email` field pub struct email(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -1243,8 +1243,8 @@ impl SignatureBuilder where St: signature_state::State, St::When: signature_state::IsSet, - St::Name: signature_state::IsSet, St::Email: signature_state::IsSet, + St::Name: signature_state::IsSet, { /// Build the final struct. pub fn build(self) -> Signature { @@ -1280,50 +1280,50 @@ pub mod tag_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Name; - type Tagger; type Target; + type Tagger; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Name = Unset; - type Tagger = Unset; type Target = Unset; + type Tagger = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { type Name = Set; - type Tagger = St::Tagger; - type Target = St::Target; - } - ///State transition - sets the `tagger` field to Set - pub struct SetTagger(PhantomData St>); - impl sealed::Sealed for SetTagger {} - impl State for SetTagger { - type Name = St::Name; - type Tagger = Set; type Target = St::Target; + type Tagger = St::Tagger; } ///State transition - sets the `target` field to Set pub struct SetTarget(PhantomData St>); impl sealed::Sealed for SetTarget {} impl State for SetTarget { type Name = St::Name; - type Tagger = St::Tagger; type Target = Set; + type Tagger = St::Tagger; + } + ///State transition - sets the `tagger` field to Set + pub struct SetTagger(PhantomData St>); + impl sealed::Sealed for SetTagger {} + impl State for SetTagger { + type Name = St::Name; + type Target = St::Target; + type Tagger = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `tagger` field - pub struct tagger(()); ///Marker type for the `target` field pub struct target(()); + ///Marker type for the `tagger` field + pub struct tagger(()); } } @@ -1423,8 +1423,8 @@ impl TagBuilder where St: tag_state::State, St::Name: tag_state::IsSet, - St::Tagger: tag_state::IsSet, St::Target: tag_state::IsSet, + St::Tagger: tag_state::IsSet, { /// Build the final struct. pub fn build(self) -> Tag { diff --git a/crates/jacquard-api/src/sh_tangled/git/temp/analyze_merge.rs b/crates/jacquard-api/src/sh_tangled/git/temp/analyze_merge.rs index 2c4651a5..3ac438c1 100644 --- a/crates/jacquard-api/src/sh_tangled/git/temp/analyze_merge.rs +++ b/crates/jacquard-api/src/sh_tangled/git/temp/analyze_merge.rs @@ -211,51 +211,51 @@ pub mod analyze_merge_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Branch; - type Repo; type Patch; + type Repo; + type Branch; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Branch = Unset; - type Repo = Unset; type Patch = Unset; + type Repo = Unset; + type Branch = Unset; } - ///State transition - sets the `branch` field to Set - pub struct SetBranch(PhantomData St>); - impl sealed::Sealed for SetBranch {} - impl State for SetBranch { - type Branch = Set; + ///State transition - sets the `patch` field to Set + pub struct SetPatch(PhantomData St>); + impl sealed::Sealed for SetPatch {} + impl State for SetPatch { + type Patch = Set; type Repo = St::Repo; - type Patch = St::Patch; + type Branch = St::Branch; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Branch = St::Branch; - type Repo = Set; type Patch = St::Patch; - } - ///State transition - sets the `patch` field to Set - pub struct SetPatch(PhantomData St>); - impl sealed::Sealed for SetPatch {} - impl State for SetPatch { + type Repo = Set; type Branch = St::Branch; + } + ///State transition - sets the `branch` field to Set + pub struct SetBranch(PhantomData St>); + impl sealed::Sealed for SetBranch {} + impl State for SetBranch { + type Patch = St::Patch; type Repo = St::Repo; - type Patch = Set; + type Branch = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `branch` field - pub struct branch(()); - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `patch` field pub struct patch(()); + ///Marker type for the `repo` field + pub struct repo(()); + ///Marker type for the `branch` field + pub struct branch(()); } } @@ -344,9 +344,9 @@ where impl AnalyzeMergeBuilder where St: analyze_merge_state::State, - St::Branch: analyze_merge_state::IsSet, - St::Repo: analyze_merge_state::IsSet, St::Patch: analyze_merge_state::IsSet, + St::Repo: analyze_merge_state::IsSet, + St::Branch: analyze_merge_state::IsSet, { /// Build the final struct. pub fn build(self) -> AnalyzeMerge { diff --git a/crates/jacquard-api/src/sh_tangled/git/temp/get_branch.rs b/crates/jacquard-api/src/sh_tangled/git/temp/get_branch.rs index e6c7088a..7810221a 100644 --- a/crates/jacquard-api/src/sh_tangled/git/temp/get_branch.rs +++ b/crates/jacquard-api/src/sh_tangled/git/temp/get_branch.rs @@ -141,37 +141,37 @@ pub mod get_branch_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Repo; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Repo = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Repo = St::Repo; + type Name = Unset; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Name = St::Name; type Repo = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Repo = St::Repo; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -241,8 +241,8 @@ where impl GetBranchBuilder where St: get_branch_state::State, - St::Name: get_branch_state::IsSet, St::Repo: get_branch_state::IsSet, + St::Name: get_branch_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetBranch { diff --git a/crates/jacquard-api/src/sh_tangled/git/temp/get_commit.rs b/crates/jacquard-api/src/sh_tangled/git/temp/get_commit.rs index 9c55fb29..f2d5b66a 100644 --- a/crates/jacquard-api/src/sh_tangled/git/temp/get_commit.rs +++ b/crates/jacquard-api/src/sh_tangled/git/temp/get_commit.rs @@ -132,37 +132,37 @@ pub mod get_commit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Ref; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Ref = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Ref = St::Ref; + type Repo = Unset; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type Repo = St::Repo; type Ref = Set; + type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Ref = St::Ref; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -232,8 +232,8 @@ where impl GetCommitBuilder where St: get_commit_state::State, - St::Repo: get_commit_state::IsSet, St::Ref: get_commit_state::IsSet, + St::Repo: get_commit_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetCommit { diff --git a/crates/jacquard-api/src/sh_tangled/git/temp/get_diff.rs b/crates/jacquard-api/src/sh_tangled/git/temp/get_diff.rs index 6a1fe772..26c3ec6d 100644 --- a/crates/jacquard-api/src/sh_tangled/git/temp/get_diff.rs +++ b/crates/jacquard-api/src/sh_tangled/git/temp/get_diff.rs @@ -160,51 +160,51 @@ pub mod get_diff_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Rev2; - type Rev1; type Repo; + type Rev1; + type Rev2; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Rev2 = Unset; - type Rev1 = Unset; type Repo = Unset; + type Rev1 = Unset; + type Rev2 = Unset; } - ///State transition - sets the `rev2` field to Set - pub struct SetRev2(PhantomData St>); - impl sealed::Sealed for SetRev2 {} - impl State for SetRev2 { - type Rev2 = Set; + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Repo = Set; type Rev1 = St::Rev1; - type Repo = St::Repo; + type Rev2 = St::Rev2; } ///State transition - sets the `rev1` field to Set pub struct SetRev1(PhantomData St>); impl sealed::Sealed for SetRev1 {} impl State for SetRev1 { - type Rev2 = St::Rev2; - type Rev1 = Set; type Repo = St::Repo; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { + type Rev1 = Set; type Rev2 = St::Rev2; + } + ///State transition - sets the `rev2` field to Set + pub struct SetRev2(PhantomData St>); + impl sealed::Sealed for SetRev2 {} + impl State for SetRev2 { + type Repo = St::Repo; type Rev1 = St::Rev1; - type Repo = Set; + type Rev2 = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `rev2` field - pub struct rev2(()); - ///Marker type for the `rev1` field - pub struct rev1(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `rev1` field + pub struct rev1(()); + ///Marker type for the `rev2` field + pub struct rev2(()); } } @@ -293,9 +293,9 @@ where impl GetDiffBuilder where St: get_diff_state::State, - St::Rev2: get_diff_state::IsSet, - St::Rev1: get_diff_state::IsSet, St::Repo: get_diff_state::IsSet, + St::Rev1: get_diff_state::IsSet, + St::Rev2: get_diff_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetDiff { diff --git a/crates/jacquard-api/src/sh_tangled/git/temp/get_entity.rs b/crates/jacquard-api/src/sh_tangled/git/temp/get_entity.rs index 82a50721..61898903 100644 --- a/crates/jacquard-api/src/sh_tangled/git/temp/get_entity.rs +++ b/crates/jacquard-api/src/sh_tangled/git/temp/get_entity.rs @@ -140,37 +140,37 @@ pub mod get_entity_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Path; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Path = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Path = St::Path; + type Repo = Unset; } ///State transition - sets the `path` field to Set pub struct SetPath(PhantomData St>); impl sealed::Sealed for SetPath {} impl State for SetPath { - type Repo = St::Repo; type Path = Set; + type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Path = St::Path; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `path` field pub struct path(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -253,8 +253,8 @@ where impl GetEntityBuilder where St: get_entity_state::State, - St::Repo: get_entity_state::IsSet, St::Path: get_entity_state::IsSet, + St::Repo: get_entity_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetEntity { diff --git a/crates/jacquard-api/src/sh_tangled/git/temp/get_tree.rs b/crates/jacquard-api/src/sh_tangled/git/temp/get_tree.rs index e13e45c3..bb40eee6 100644 --- a/crates/jacquard-api/src/sh_tangled/git/temp/get_tree.rs +++ b/crates/jacquard-api/src/sh_tangled/git/temp/get_tree.rs @@ -284,49 +284,49 @@ pub mod last_commit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Message; type Hash; + type Message; type When; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Message = Unset; type Hash = Unset; + type Message = Unset; type When = Unset; } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData St>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { - type Message = Set; - type Hash = St::Hash; - type When = St::When; - } ///State transition - sets the `hash` field to Set pub struct SetHash(PhantomData St>); impl sealed::Sealed for SetHash {} impl State for SetHash { - type Message = St::Message; type Hash = Set; + type Message = St::Message; + type When = St::When; + } + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData St>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Hash = St::Hash; + type Message = Set; type When = St::When; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Message = St::Message; type Hash = St::Hash; + type Message = St::Message; type When = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `message` field - pub struct message(()); ///Marker type for the `hash` field pub struct hash(()); + ///Marker type for the `message` field + pub struct message(()); ///Marker type for the `when` field pub struct when(()); } @@ -430,8 +430,8 @@ where impl LastCommitBuilder where St: last_commit_state::State, - St::Message: last_commit_state::IsSet, St::Hash: last_commit_state::IsSet, + St::Message: last_commit_state::IsSet, St::When: last_commit_state::IsSet, { /// Build the final struct. @@ -842,49 +842,49 @@ pub mod signature_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Email; type Name; + type Email; type When; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Email = Unset; type Name = Unset; + type Email = Unset; type When = Unset; } - ///State transition - sets the `email` field to Set - pub struct SetEmail(PhantomData St>); - impl sealed::Sealed for SetEmail {} - impl State for SetEmail { - type Email = Set; - type Name = St::Name; - type When = St::When; - } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Email = St::Email; type Name = Set; + type Email = St::Email; + type When = St::When; + } + ///State transition - sets the `email` field to Set + pub struct SetEmail(PhantomData St>); + impl sealed::Sealed for SetEmail {} + impl State for SetEmail { + type Name = St::Name; + type Email = Set; type When = St::When; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Email = St::Email; type Name = St::Name; + type Email = St::Email; type When = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `email` field - pub struct email(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `email` field + pub struct email(()); ///Marker type for the `when` field pub struct when(()); } @@ -975,8 +975,8 @@ where impl SignatureBuilder where St: signature_state::State, - St::Email: signature_state::IsSet, St::Name: signature_state::IsSet, + St::Email: signature_state::IsSet, St::When: signature_state::IsSet, { /// Build the final struct. @@ -1012,51 +1012,51 @@ pub mod tree_entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Name; type Mode; type Size; - type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Name = Unset; type Mode = Unset; type Size = Unset; - type Name = Unset; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Name = Set; + type Mode = St::Mode; + type Size = St::Size; } ///State transition - sets the `mode` field to Set pub struct SetMode(PhantomData St>); impl sealed::Sealed for SetMode {} impl State for SetMode { + type Name = St::Name; type Mode = Set; type Size = St::Size; - type Name = St::Name; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData St>); impl sealed::Sealed for SetSize {} impl State for SetSize { - type Mode = St::Mode; - type Size = Set; type Name = St::Name; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { type Mode = St::Mode; - type Size = St::Size; - type Name = Set; + type Size = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `mode` field pub struct mode(()); ///Marker type for the `size` field pub struct size(()); - ///Marker type for the `name` field - pub struct name(()); } } @@ -1161,9 +1161,9 @@ where impl TreeEntryBuilder where St: tree_entry_state::State, + St::Name: tree_entry_state::IsSet, St::Mode: tree_entry_state::IsSet, St::Size: tree_entry_state::IsSet, - St::Name: tree_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> TreeEntry { diff --git a/crates/jacquard-api/src/sh_tangled/git/temp/list_languages.rs b/crates/jacquard-api/src/sh_tangled/git/temp/list_languages.rs index c509aa69..28736051 100644 --- a/crates/jacquard-api/src/sh_tangled/git/temp/list_languages.rs +++ b/crates/jacquard-api/src/sh_tangled/git/temp/list_languages.rs @@ -188,51 +188,51 @@ pub mod language_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Percentage; type Size; type Name; + type Percentage; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Percentage = Unset; type Size = Unset; type Name = Unset; - } - ///State transition - sets the `percentage` field to Set - pub struct SetPercentage(PhantomData St>); - impl sealed::Sealed for SetPercentage {} - impl State for SetPercentage { - type Percentage = Set; - type Size = St::Size; - type Name = St::Name; + type Percentage = Unset; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData St>); impl sealed::Sealed for SetSize {} impl State for SetSize { - type Percentage = St::Percentage; type Size = Set; type Name = St::Name; + type Percentage = St::Percentage; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Percentage = St::Percentage; type Size = St::Size; type Name = Set; + type Percentage = St::Percentage; + } + ///State transition - sets the `percentage` field to Set + pub struct SetPercentage(PhantomData St>); + impl sealed::Sealed for SetPercentage {} + impl State for SetPercentage { + type Size = St::Size; + type Name = St::Name; + type Percentage = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `percentage` field - pub struct percentage(()); ///Marker type for the `size` field pub struct size(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `percentage` field + pub struct percentage(()); } } @@ -367,9 +367,9 @@ where impl LanguageBuilder where St: language_state::State, - St::Percentage: language_state::IsSet, St::Size: language_state::IsSet, St::Name: language_state::IsSet, + St::Percentage: language_state::IsSet, { /// Build the final struct. pub fn build(self) -> Language { diff --git a/crates/jacquard-api/src/sh_tangled/graph/follow.rs b/crates/jacquard-api/src/sh_tangled/graph/follow.rs index 2c3e6153..de8d02a5 100644 --- a/crates/jacquard-api/src/sh_tangled/graph/follow.rs +++ b/crates/jacquard-api/src/sh_tangled/graph/follow.rs @@ -111,37 +111,37 @@ pub mod follow_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -211,8 +211,8 @@ where impl FollowBuilder where St: follow_state::State, - St::CreatedAt: follow_state::IsSet, St::Subject: follow_state::IsSet, + St::CreatedAt: follow_state::IsSet, { /// Build the final struct. pub fn build(self) -> Follow { diff --git a/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs b/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs index e23c90c1..118c5181 100644 --- a/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs +++ b/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs @@ -253,51 +253,51 @@ pub mod public_key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Key; type Did; type CreatedAt; + type Key; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Key = Unset; type Did = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `key` field to Set - pub struct SetKey(PhantomData St>); - impl sealed::Sealed for SetKey {} - impl State for SetKey { - type Key = Set; - type Did = St::Did; - type CreatedAt = St::CreatedAt; + type Key = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Key = St::Key; type Did = Set; type CreatedAt = St::CreatedAt; + type Key = St::Key; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Key = St::Key; type Did = St::Did; type CreatedAt = Set; + type Key = St::Key; + } + ///State transition - sets the `key` field to Set + pub struct SetKey(PhantomData St>); + impl sealed::Sealed for SetKey {} + impl State for SetKey { + type Did = St::Did; + type CreatedAt = St::CreatedAt; + type Key = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `key` field - pub struct key(()); ///Marker type for the `did` field pub struct did(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `key` field + pub struct key(()); } } @@ -386,9 +386,9 @@ where impl PublicKeyBuilder where St: public_key_state::State, - St::Key: public_key_state::IsSet, St::Did: public_key_state::IsSet, St::CreatedAt: public_key_state::IsSet, + St::Key: public_key_state::IsSet, { /// Build the final struct. pub fn build(self) -> PublicKey { diff --git a/crates/jacquard-api/src/sh_tangled/knot/member.rs b/crates/jacquard-api/src/sh_tangled/knot/member.rs index 52eb3361..37fecb91 100644 --- a/crates/jacquard-api/src/sh_tangled/knot/member.rs +++ b/crates/jacquard-api/src/sh_tangled/knot/member.rs @@ -114,50 +114,50 @@ pub mod member_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Domain; - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Domain = Unset; - type Subject = Unset; type CreatedAt = Unset; + type Subject = Unset; } ///State transition - sets the `domain` field to Set pub struct SetDomain(PhantomData St>); impl sealed::Sealed for SetDomain {} impl State for SetDomain { type Domain = Set; - type Subject = St::Subject; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Domain = St::Domain; - type Subject = Set; type CreatedAt = St::CreatedAt; + type Subject = St::Subject; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Domain = St::Domain; - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Domain = St::Domain; + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `domain` field pub struct domain(()); - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -247,8 +247,8 @@ impl MemberBuilder where St: member_state::State, St::Domain: member_state::IsSet, - St::Subject: member_state::IsSet, St::CreatedAt: member_state::IsSet, + St::Subject: member_state::IsSet, { /// Build the final struct. pub fn build(self) -> Member { diff --git a/crates/jacquard-api/src/sh_tangled/knot/subscribe_repos.rs b/crates/jacquard-api/src/sh_tangled/knot/subscribe_repos.rs index 4f2154fc..a0f70f7a 100644 --- a/crates/jacquard-api/src/sh_tangled/knot/subscribe_repos.rs +++ b/crates/jacquard-api/src/sh_tangled/knot/subscribe_repos.rs @@ -246,37 +246,37 @@ pub mod git_sync1_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Seq; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Seq = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Seq = St::Seq; + type Did = Unset; } ///State transition - sets the `seq` field to Set pub struct SetSeq(PhantomData St>); impl sealed::Sealed for SetSeq {} impl State for SetSeq { - type Did = St::Did; type Seq = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Seq = St::Seq; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `seq` field pub struct seq(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -346,8 +346,8 @@ where impl GitSync1Builder where St: git_sync1_state::State, - St::Did: git_sync1_state::IsSet, St::Seq: git_sync1_state::IsSet, + St::Did: git_sync1_state::IsSet, { /// Build the final struct. pub fn build(self) -> GitSync1 { @@ -640,51 +640,51 @@ pub mod identity_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; - type Seq; type Time; + type Seq; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; - type Seq = Unset; type Time = Unset; + type Seq = Unset; + type Did = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; + ///State transition - sets the `time` field to Set + pub struct SetTime(PhantomData St>); + impl sealed::Sealed for SetTime {} + impl State for SetTime { + type Time = Set; type Seq = St::Seq; - type Time = St::Time; + type Did = St::Did; } ///State transition - sets the `seq` field to Set pub struct SetSeq(PhantomData St>); impl sealed::Sealed for SetSeq {} impl State for SetSeq { - type Did = St::Did; - type Seq = Set; type Time = St::Time; - } - ///State transition - sets the `time` field to Set - pub struct SetTime(PhantomData St>); - impl sealed::Sealed for SetTime {} - impl State for SetTime { + type Seq = Set; type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Time = St::Time; type Seq = St::Seq; - type Time = Set; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); - ///Marker type for the `seq` field - pub struct seq(()); ///Marker type for the `time` field pub struct time(()); + ///Marker type for the `seq` field + pub struct seq(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -773,9 +773,9 @@ where impl IdentityBuilder where St: identity_state::State, - St::Did: identity_state::IsSet, - St::Seq: identity_state::IsSet, St::Time: identity_state::IsSet, + St::Seq: identity_state::IsSet, + St::Did: identity_state::IsSet, { /// Build the final struct. pub fn build(self) -> Identity { diff --git a/crates/jacquard-api/src/sh_tangled/label/definition.rs b/crates/jacquard-api/src/sh_tangled/label/definition.rs index 2cf819aa..0339e4d8 100644 --- a/crates/jacquard-api/src/sh_tangled/label/definition.rs +++ b/crates/jacquard-api/src/sh_tangled/label/definition.rs @@ -179,67 +179,67 @@ pub mod definition_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ValueType; type Name; - type CreatedAt; type Scope; + type CreatedAt; + type ValueType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ValueType = Unset; type Name = Unset; - type CreatedAt = Unset; type Scope = Unset; - } - ///State transition - sets the `value_type` field to Set - pub struct SetValueType(PhantomData St>); - impl sealed::Sealed for SetValueType {} - impl State for SetValueType { - type ValueType = Set; - type Name = St::Name; - type CreatedAt = St::CreatedAt; - type Scope = St::Scope; + type CreatedAt = Unset; + type ValueType = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type ValueType = St::ValueType; type Name = Set; - type CreatedAt = St::CreatedAt; type Scope = St::Scope; + type CreatedAt = St::CreatedAt; + type ValueType = St::ValueType; + } + ///State transition - sets the `scope` field to Set + pub struct SetScope(PhantomData St>); + impl sealed::Sealed for SetScope {} + impl State for SetScope { + type Name = St::Name; + type Scope = Set; + type CreatedAt = St::CreatedAt; + type ValueType = St::ValueType; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type ValueType = St::ValueType; type Name = St::Name; - type CreatedAt = Set; type Scope = St::Scope; - } - ///State transition - sets the `scope` field to Set - pub struct SetScope(PhantomData St>); - impl sealed::Sealed for SetScope {} - impl State for SetScope { + type CreatedAt = Set; type ValueType = St::ValueType; + } + ///State transition - sets the `value_type` field to Set + pub struct SetValueType(PhantomData St>); + impl sealed::Sealed for SetValueType {} + impl State for SetValueType { type Name = St::Name; + type Scope = St::Scope; type CreatedAt = St::CreatedAt; - type Scope = Set; + type ValueType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `value_type` field - pub struct value_type(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `scope` field pub struct scope(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `value_type` field + pub struct value_type(()); } } @@ -380,10 +380,10 @@ where impl DefinitionBuilder where St: definition_state::State, - St::ValueType: definition_state::IsSet, St::Name: definition_state::IsSet, - St::CreatedAt: definition_state::IsSet, St::Scope: definition_state::IsSet, + St::CreatedAt: definition_state::IsSet, + St::ValueType: definition_state::IsSet, { /// Build the final struct. pub fn build(self) -> Definition { diff --git a/crates/jacquard-api/src/sh_tangled/label/op.rs b/crates/jacquard-api/src/sh_tangled/label/op.rs index d77f5dbf..9fccd0e3 100644 --- a/crates/jacquard-api/src/sh_tangled/label/op.rs +++ b/crates/jacquard-api/src/sh_tangled/label/op.rs @@ -142,67 +142,67 @@ pub mod op_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Delete; type Subject; - type PerformedAt; type Add; + type PerformedAt; + type Delete; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Delete = Unset; type Subject = Unset; - type PerformedAt = Unset; type Add = Unset; - } - ///State transition - sets the `delete` field to Set - pub struct SetDelete(PhantomData St>); - impl sealed::Sealed for SetDelete {} - impl State for SetDelete { - type Delete = Set; - type Subject = St::Subject; - type PerformedAt = St::PerformedAt; - type Add = St::Add; + type PerformedAt = Unset; + type Delete = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Delete = St::Delete; type Subject = Set; - type PerformedAt = St::PerformedAt; type Add = St::Add; + type PerformedAt = St::PerformedAt; + type Delete = St::Delete; + } + ///State transition - sets the `add` field to Set + pub struct SetAdd(PhantomData St>); + impl sealed::Sealed for SetAdd {} + impl State for SetAdd { + type Subject = St::Subject; + type Add = Set; + type PerformedAt = St::PerformedAt; + type Delete = St::Delete; } ///State transition - sets the `performed_at` field to Set pub struct SetPerformedAt(PhantomData St>); impl sealed::Sealed for SetPerformedAt {} impl State for SetPerformedAt { - type Delete = St::Delete; type Subject = St::Subject; - type PerformedAt = Set; type Add = St::Add; - } - ///State transition - sets the `add` field to Set - pub struct SetAdd(PhantomData St>); - impl sealed::Sealed for SetAdd {} - impl State for SetAdd { + type PerformedAt = Set; type Delete = St::Delete; + } + ///State transition - sets the `delete` field to Set + pub struct SetDelete(PhantomData St>); + impl sealed::Sealed for SetDelete {} + impl State for SetDelete { type Subject = St::Subject; + type Add = St::Add; type PerformedAt = St::PerformedAt; - type Add = Set; + type Delete = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `delete` field - pub struct delete(()); ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `performed_at` field - pub struct performed_at(()); ///Marker type for the `add` field pub struct add(()); + ///Marker type for the `performed_at` field + pub struct performed_at(()); + ///Marker type for the `delete` field + pub struct delete(()); } } @@ -315,10 +315,10 @@ where impl OpBuilder where St: op_state::State, - St::Delete: op_state::IsSet, St::Subject: op_state::IsSet, - St::PerformedAt: op_state::IsSet, St::Add: op_state::IsSet, + St::PerformedAt: op_state::IsSet, + St::Delete: op_state::IsSet, { /// Build the final struct. pub fn build(self) -> Op { @@ -464,37 +464,37 @@ pub mod operand_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Value; type Key; + type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Value = Unset; type Key = Unset; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { - type Value = Set; - type Key = St::Key; + type Value = Unset; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type Value = St::Value; type Key = Set; + type Value = St::Value; + } + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type Key = St::Key; + type Value = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `value` field - pub struct value(()); ///Marker type for the `key` field pub struct key(()); + ///Marker type for the `value` field + pub struct value(()); } } @@ -564,8 +564,8 @@ where impl OperandBuilder where St: operand_state::State, - St::Value: operand_state::IsSet, St::Key: operand_state::IsSet, + St::Value: operand_state::IsSet, { /// Build the final struct. pub fn build(self) -> Operand { diff --git a/crates/jacquard-api/src/sh_tangled/pipeline.rs b/crates/jacquard-api/src/sh_tangled/pipeline.rs index 23d50d13..a1e84773 100644 --- a/crates/jacquard-api/src/sh_tangled/pipeline.rs +++ b/crates/jacquard-api/src/sh_tangled/pipeline.rs @@ -893,37 +893,37 @@ pub mod pipeline_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type TriggerMetadata; type Workflows; + type TriggerMetadata; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type TriggerMetadata = Unset; type Workflows = Unset; - } - ///State transition - sets the `trigger_metadata` field to Set - pub struct SetTriggerMetadata(PhantomData St>); - impl sealed::Sealed for SetTriggerMetadata {} - impl State for SetTriggerMetadata { - type TriggerMetadata = Set; - type Workflows = St::Workflows; + type TriggerMetadata = Unset; } ///State transition - sets the `workflows` field to Set pub struct SetWorkflows(PhantomData St>); impl sealed::Sealed for SetWorkflows {} impl State for SetWorkflows { - type TriggerMetadata = St::TriggerMetadata; type Workflows = Set; + type TriggerMetadata = St::TriggerMetadata; + } + ///State transition - sets the `trigger_metadata` field to Set + pub struct SetTriggerMetadata(PhantomData St>); + impl sealed::Sealed for SetTriggerMetadata {} + impl State for SetTriggerMetadata { + type Workflows = St::Workflows; + type TriggerMetadata = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `trigger_metadata` field - pub struct trigger_metadata(()); ///Marker type for the `workflows` field pub struct workflows(()); + ///Marker type for the `trigger_metadata` field + pub struct trigger_metadata(()); } } @@ -993,8 +993,8 @@ where impl PipelineBuilder where St: pipeline_state::State, - St::TriggerMetadata: pipeline_state::IsSet, St::Workflows: pipeline_state::IsSet, + St::TriggerMetadata: pipeline_state::IsSet, { /// Build the final struct. pub fn build(self) -> Pipeline { @@ -1024,37 +1024,37 @@ pub mod trigger_metadata_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Kind; type Repo; + type Kind; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Kind = Unset; type Repo = Unset; - } - ///State transition - sets the `kind` field to Set - pub struct SetKind(PhantomData St>); - impl sealed::Sealed for SetKind {} - impl State for SetKind { - type Kind = Set; - type Repo = St::Repo; + type Kind = Unset; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Kind = St::Kind; type Repo = Set; + type Kind = St::Kind; + } + ///State transition - sets the `kind` field to Set + pub struct SetKind(PhantomData St>); + impl sealed::Sealed for SetKind {} + impl State for SetKind { + type Repo = St::Repo; + type Kind = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `kind` field - pub struct kind(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `kind` field + pub struct kind(()); } } @@ -1184,8 +1184,8 @@ where impl TriggerMetadataBuilder where St: trigger_metadata_state::State, - St::Kind: trigger_metadata_state::IsSet, St::Repo: trigger_metadata_state::IsSet, + St::Kind: trigger_metadata_state::IsSet, { /// Build the final struct. pub fn build(self) -> TriggerMetadata { @@ -1225,66 +1225,66 @@ pub mod trigger_repo_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Knot; - type Repo; type Did; type DefaultBranch; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Knot = Unset; - type Repo = Unset; type Did = Unset; type DefaultBranch = Unset; + type Repo = Unset; } ///State transition - sets the `knot` field to Set pub struct SetKnot(PhantomData St>); impl sealed::Sealed for SetKnot {} impl State for SetKnot { type Knot = Set; - type Repo = St::Repo; - type Did = St::Did; - type DefaultBranch = St::DefaultBranch; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Knot = St::Knot; - type Repo = Set; type Did = St::Did; type DefaultBranch = St::DefaultBranch; + type Repo = St::Repo; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { type Knot = St::Knot; - type Repo = St::Repo; type Did = Set; type DefaultBranch = St::DefaultBranch; + type Repo = St::Repo; } ///State transition - sets the `default_branch` field to Set pub struct SetDefaultBranch(PhantomData St>); impl sealed::Sealed for SetDefaultBranch {} impl State for SetDefaultBranch { type Knot = St::Knot; - type Repo = St::Repo; type Did = St::Did; type DefaultBranch = Set; + type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Knot = St::Knot; + type Did = St::Did; + type DefaultBranch = St::DefaultBranch; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `knot` field pub struct knot(()); - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `did` field pub struct did(()); ///Marker type for the `default_branch` field pub struct default_branch(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -1393,9 +1393,9 @@ impl TriggerRepoBuilder where St: trigger_repo_state::State, St::Knot: trigger_repo_state::IsSet, - St::Repo: trigger_repo_state::IsSet, St::Did: trigger_repo_state::IsSet, St::DefaultBranch: trigger_repo_state::IsSet, + St::Repo: trigger_repo_state::IsSet, { /// Build the final struct. pub fn build(self) -> TriggerRepo { @@ -1432,67 +1432,67 @@ pub mod workflow_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Engine; + type Raw; type Clone; + type Engine; type Name; - type Raw; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Engine = Unset; + type Raw = Unset; type Clone = Unset; + type Engine = Unset; type Name = Unset; - type Raw = Unset; } - ///State transition - sets the `engine` field to Set - pub struct SetEngine(PhantomData St>); - impl sealed::Sealed for SetEngine {} - impl State for SetEngine { - type Engine = Set; + ///State transition - sets the `raw` field to Set + pub struct SetRaw(PhantomData St>); + impl sealed::Sealed for SetRaw {} + impl State for SetRaw { + type Raw = Set; type Clone = St::Clone; + type Engine = St::Engine; type Name = St::Name; - type Raw = St::Raw; } ///State transition - sets the `clone` field to Set pub struct SetClone(PhantomData St>); impl sealed::Sealed for SetClone {} impl State for SetClone { - type Engine = St::Engine; + type Raw = St::Raw; type Clone = Set; + type Engine = St::Engine; type Name = St::Name; + } + ///State transition - sets the `engine` field to Set + pub struct SetEngine(PhantomData St>); + impl sealed::Sealed for SetEngine {} + impl State for SetEngine { type Raw = St::Raw; + type Clone = St::Clone; + type Engine = Set; + type Name = St::Name; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Engine = St::Engine; - type Clone = St::Clone; - type Name = Set; type Raw = St::Raw; - } - ///State transition - sets the `raw` field to Set - pub struct SetRaw(PhantomData St>); - impl sealed::Sealed for SetRaw {} - impl State for SetRaw { - type Engine = St::Engine; type Clone = St::Clone; - type Name = St::Name; - type Raw = Set; + type Engine = St::Engine; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `engine` field - pub struct engine(()); + ///Marker type for the `raw` field + pub struct raw(()); ///Marker type for the `clone` field pub struct clone(()); + ///Marker type for the `engine` field + pub struct engine(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `raw` field - pub struct raw(()); } } @@ -1600,10 +1600,10 @@ where impl WorkflowBuilder where St: workflow_state::State, - St::Engine: workflow_state::IsSet, + St::Raw: workflow_state::IsSet, St::Clone: workflow_state::IsSet, + St::Engine: workflow_state::IsSet, St::Name: workflow_state::IsSet, - St::Raw: workflow_state::IsSet, { /// Build the final struct. pub fn build(self) -> Workflow { diff --git a/crates/jacquard-api/src/sh_tangled/pipeline/cancel_pipeline.rs b/crates/jacquard-api/src/sh_tangled/pipeline/cancel_pipeline.rs index 3e2f7c10..e4d54ac4 100644 --- a/crates/jacquard-api/src/sh_tangled/pipeline/cancel_pipeline.rs +++ b/crates/jacquard-api/src/sh_tangled/pipeline/cancel_pipeline.rs @@ -68,51 +68,51 @@ pub mod cancel_pipeline_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Workflow; - type Pipeline; type Repo; + type Pipeline; + type Workflow; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Workflow = Unset; - type Pipeline = Unset; type Repo = Unset; + type Pipeline = Unset; + type Workflow = Unset; } - ///State transition - sets the `workflow` field to Set - pub struct SetWorkflow(PhantomData St>); - impl sealed::Sealed for SetWorkflow {} - impl State for SetWorkflow { - type Workflow = Set; + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Repo = Set; type Pipeline = St::Pipeline; - type Repo = St::Repo; + type Workflow = St::Workflow; } ///State transition - sets the `pipeline` field to Set pub struct SetPipeline(PhantomData St>); impl sealed::Sealed for SetPipeline {} impl State for SetPipeline { - type Workflow = St::Workflow; - type Pipeline = Set; type Repo = St::Repo; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { + type Pipeline = Set; type Workflow = St::Workflow; + } + ///State transition - sets the `workflow` field to Set + pub struct SetWorkflow(PhantomData St>); + impl sealed::Sealed for SetWorkflow {} + impl State for SetWorkflow { + type Repo = St::Repo; type Pipeline = St::Pipeline; - type Repo = Set; + type Workflow = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `workflow` field - pub struct workflow(()); - ///Marker type for the `pipeline` field - pub struct pipeline(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `pipeline` field + pub struct pipeline(()); + ///Marker type for the `workflow` field + pub struct workflow(()); } } @@ -201,9 +201,9 @@ where impl CancelPipelineBuilder where St: cancel_pipeline_state::State, - St::Workflow: cancel_pipeline_state::IsSet, - St::Pipeline: cancel_pipeline_state::IsSet, St::Repo: cancel_pipeline_state::IsSet, + St::Pipeline: cancel_pipeline_state::IsSet, + St::Workflow: cancel_pipeline_state::IsSet, { /// Build the final struct. pub fn build(self) -> CancelPipeline { diff --git a/crates/jacquard-api/src/sh_tangled/pipeline/status.rs b/crates/jacquard-api/src/sh_tangled/pipeline/status.rs index 7dead919..9e871a99 100644 --- a/crates/jacquard-api/src/sh_tangled/pipeline/status.rs +++ b/crates/jacquard-api/src/sh_tangled/pipeline/status.rs @@ -123,67 +123,67 @@ pub mod status_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Workflow; type Status; - type CreatedAt; type Pipeline; + type Workflow; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Workflow = Unset; type Status = Unset; - type CreatedAt = Unset; type Pipeline = Unset; - } - ///State transition - sets the `workflow` field to Set - pub struct SetWorkflow(PhantomData St>); - impl sealed::Sealed for SetWorkflow {} - impl State for SetWorkflow { - type Workflow = Set; - type Status = St::Status; - type CreatedAt = St::CreatedAt; - type Pipeline = St::Pipeline; + type Workflow = Unset; + type CreatedAt = Unset; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type Workflow = St::Workflow; type Status = Set; - type CreatedAt = St::CreatedAt; type Pipeline = St::Pipeline; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Workflow = St::Workflow; - type Status = St::Status; - type CreatedAt = Set; - type Pipeline = St::Pipeline; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `pipeline` field to Set pub struct SetPipeline(PhantomData St>); impl sealed::Sealed for SetPipeline {} impl State for SetPipeline { + type Status = St::Status; + type Pipeline = Set; type Workflow = St::Workflow; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `workflow` field to Set + pub struct SetWorkflow(PhantomData St>); + impl sealed::Sealed for SetWorkflow {} + impl State for SetWorkflow { type Status = St::Status; + type Pipeline = St::Pipeline; + type Workflow = Set; type CreatedAt = St::CreatedAt; - type Pipeline = Set; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Status = St::Status; + type Pipeline = St::Pipeline; + type Workflow = St::Workflow; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `workflow` field - pub struct workflow(()); ///Marker type for the `status` field pub struct status(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `pipeline` field pub struct pipeline(()); + ///Marker type for the `workflow` field + pub struct workflow(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -324,10 +324,10 @@ where impl StatusBuilder where St: status_state::State, - St::Workflow: status_state::IsSet, St::Status: status_state::IsSet, - St::CreatedAt: status_state::IsSet, St::Pipeline: status_state::IsSet, + St::Workflow: status_state::IsSet, + St::CreatedAt: status_state::IsSet, { /// Build the final struct. pub fn build(self) -> Status { diff --git a/crates/jacquard-api/src/sh_tangled/public_key.rs b/crates/jacquard-api/src/sh_tangled/public_key.rs index 2f09e8f8..c9b387f0 100644 --- a/crates/jacquard-api/src/sh_tangled/public_key.rs +++ b/crates/jacquard-api/src/sh_tangled/public_key.rs @@ -126,51 +126,51 @@ pub mod public_key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Name; type Key; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Name = Unset; type Key = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Name = St::Name; + type Key = St::Key; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { + type CreatedAt = St::CreatedAt; type Name = Set; type Key = St::Key; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type Name = St::Name; - type Key = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Name = St::Name; - type Key = St::Key; - type CreatedAt = Set; + type Key = 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 `name` field pub struct name(()); ///Marker type for the `key` field pub struct key(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -259,9 +259,9 @@ where impl PublicKeyBuilder where St: public_key_state::State, + St::CreatedAt: public_key_state::IsSet, St::Name: public_key_state::IsSet, St::Key: public_key_state::IsSet, - St::CreatedAt: public_key_state::IsSet, { /// Build the final struct. pub fn build(self) -> PublicKey { diff --git a/crates/jacquard-api/src/sh_tangled/repo.rs b/crates/jacquard-api/src/sh_tangled/repo.rs index 830e3cbc..dccf6633 100644 --- a/crates/jacquard-api/src/sh_tangled/repo.rs +++ b/crates/jacquard-api/src/sh_tangled/repo.rs @@ -195,49 +195,49 @@ pub mod repo_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Knot; + type CreatedAt; type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Knot = Unset; + type CreatedAt = Unset; type Name = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Knot = St::Knot; - type Name = St::Name; - } ///State transition - sets the `knot` field to Set pub struct SetKnot(PhantomData St>); impl sealed::Sealed for SetKnot {} impl State for SetKnot { - type CreatedAt = St::CreatedAt; type Knot = Set; + type CreatedAt = St::CreatedAt; + type Name = St::Name; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Knot = St::Knot; + type CreatedAt = Set; type Name = St::Name; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Knot = St::Knot; + type CreatedAt = St::CreatedAt; type Name = 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 `knot` field pub struct knot(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `name` field pub struct name(()); } @@ -416,8 +416,8 @@ impl RepoBuilder { impl RepoBuilder where St: repo_state::State, - St::CreatedAt: repo_state::IsSet, St::Knot: repo_state::IsSet, + St::CreatedAt: repo_state::IsSet, St::Name: repo_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs b/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs index 0ad08032..9fce4314 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs @@ -65,51 +65,51 @@ pub mod add_secret_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Value; type Key; type Repo; - type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Value = Unset; type Key = Unset; type Repo = Unset; - type Value = Unset; + } + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type Value = Set; + type Key = St::Key; + type Repo = St::Repo; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { + type Value = St::Value; type Key = Set; type Repo = St::Repo; - type Value = St::Value; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Key = St::Key; - type Repo = Set; type Value = St::Value; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { type Key = St::Key; - type Repo = St::Repo; - type Value = Set; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `value` field + pub struct value(()); ///Marker type for the `key` field pub struct key(()); ///Marker type for the `repo` field pub struct repo(()); - ///Marker type for the `value` field - pub struct value(()); } } @@ -198,9 +198,9 @@ where impl AddSecretBuilder where St: add_secret_state::State, + St::Value: add_secret_state::IsSet, St::Key: add_secret_state::IsSet, St::Repo: add_secret_state::IsSet, - St::Value: add_secret_state::IsSet, { /// Build the final struct. pub fn build(self) -> AddSecret { diff --git a/crates/jacquard-api/src/sh_tangled/repo/archive.rs b/crates/jacquard-api/src/sh_tangled/repo/archive.rs index 9961ee60..012082e2 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/archive.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/archive.rs @@ -168,37 +168,37 @@ pub mod archive_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Ref; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Ref = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Ref = St::Ref; + type Repo = Unset; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type Repo = St::Repo; type Ref = Set; + type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Ref = St::Ref; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -294,8 +294,8 @@ where impl ArchiveBuilder where St: archive_state::State, - St::Repo: archive_state::IsSet, St::Ref: archive_state::IsSet, + St::Repo: archive_state::IsSet, { /// Build the final struct. pub fn build(self) -> Archive { diff --git a/crates/jacquard-api/src/sh_tangled/repo/artifact.rs b/crates/jacquard-api/src/sh_tangled/repo/artifact.rs index 0b8db64e..16a10a1c 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/artifact.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/artifact.rs @@ -162,83 +162,83 @@ pub mod artifact_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Name; - type Repo; type Tag; - type CreatedAt; + type Repo; type Artifact; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type Name = Unset; - type Repo = Unset; type Tag = Unset; - type CreatedAt = Unset; + type Repo = Unset; type Artifact = Unset; } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Name = St::Name; + type Tag = St::Tag; + type Repo = St::Repo; + type Artifact = St::Artifact; + } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Name = Set; - type Repo = St::Repo; - type Tag = St::Tag; type CreatedAt = St::CreatedAt; - type Artifact = St::Artifact; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Name = St::Name; - type Repo = Set; + type Name = Set; type Tag = St::Tag; - type CreatedAt = St::CreatedAt; + type Repo = St::Repo; type Artifact = St::Artifact; } ///State transition - sets the `tag` field to Set pub struct SetTag(PhantomData St>); impl sealed::Sealed for SetTag {} impl State for SetTag { + type CreatedAt = St::CreatedAt; type Name = St::Name; - type Repo = St::Repo; type Tag = Set; - type CreatedAt = St::CreatedAt; + type Repo = St::Repo; type Artifact = St::Artifact; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type CreatedAt = St::CreatedAt; type Name = St::Name; - type Repo = St::Repo; type Tag = St::Tag; - type CreatedAt = Set; + type Repo = Set; type Artifact = St::Artifact; } ///State transition - sets the `artifact` field to Set pub struct SetArtifact(PhantomData St>); impl sealed::Sealed for SetArtifact {} impl State for SetArtifact { + type CreatedAt = St::CreatedAt; type Name = St::Name; - type Repo = St::Repo; type Tag = St::Tag; - type CreatedAt = St::CreatedAt; + type Repo = St::Repo; type Artifact = 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 `name` field pub struct name(()); - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `tag` field pub struct tag(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `repo` field + pub struct repo(()); ///Marker type for the `artifact` field pub struct artifact(()); } @@ -373,10 +373,10 @@ where impl ArtifactBuilder where St: artifact_state::State, + St::CreatedAt: artifact_state::IsSet, St::Name: artifact_state::IsSet, - St::Repo: artifact_state::IsSet, St::Tag: artifact_state::IsSet, - St::CreatedAt: artifact_state::IsSet, + St::Repo: artifact_state::IsSet, St::Artifact: artifact_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/sh_tangled/repo/branch.rs b/crates/jacquard-api/src/sh_tangled/repo/branch.rs index f232c3b1..90221040 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/branch.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/branch.rs @@ -306,49 +306,49 @@ pub mod signature_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Email; type When; + type Email; type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Email = Unset; type When = Unset; + type Email = Unset; type Name = Unset; } - ///State transition - sets the `email` field to Set - pub struct SetEmail(PhantomData St>); - impl sealed::Sealed for SetEmail {} - impl State for SetEmail { - type Email = Set; - type When = St::When; - type Name = St::Name; - } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Email = St::Email; type When = Set; + type Email = St::Email; + type Name = St::Name; + } + ///State transition - sets the `email` field to Set + pub struct SetEmail(PhantomData St>); + impl sealed::Sealed for SetEmail {} + impl State for SetEmail { + type When = St::When; + type Email = Set; type Name = St::Name; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Email = St::Email; type When = St::When; + type Email = St::Email; type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `email` field - pub struct email(()); ///Marker type for the `when` field pub struct when(()); + ///Marker type for the `email` field + pub struct email(()); ///Marker type for the `name` field pub struct name(()); } @@ -439,8 +439,8 @@ where impl SignatureBuilder where St: signature_state::State, - St::Email: signature_state::IsSet, St::When: signature_state::IsSet, + St::Email: signature_state::IsSet, St::Name: signature_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/sh_tangled/repo/collaborator.rs b/crates/jacquard-api/src/sh_tangled/repo/collaborator.rs index 8295883b..86eb828b 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/collaborator.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/collaborator.rs @@ -113,51 +113,51 @@ pub mod collaborator_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; - type CreatedAt; type Subject; + type CreatedAt; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; - type CreatedAt = Unset; type Subject = Unset; + type CreatedAt = Unset; + type Repo = Unset; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Subject = Set; type CreatedAt = St::CreatedAt; - type Subject = St::Subject; + type Repo = St::Repo; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Repo = St::Repo; - type CreatedAt = Set; type Subject = St::Subject; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { + type CreatedAt = Set; type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Subject = St::Subject; type CreatedAt = St::CreatedAt; - type Subject = Set; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -246,9 +246,9 @@ where impl CollaboratorBuilder where St: collaborator_state::State, - St::Repo: collaborator_state::IsSet, - St::CreatedAt: collaborator_state::IsSet, St::Subject: collaborator_state::IsSet, + St::CreatedAt: collaborator_state::IsSet, + St::Repo: collaborator_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collaborator { diff --git a/crates/jacquard-api/src/sh_tangled/repo/diff.rs b/crates/jacquard-api/src/sh_tangled/repo/diff.rs index c90edf10..6c1a11c9 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/diff.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/diff.rs @@ -147,37 +147,37 @@ pub mod diff_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Ref; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Ref = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Ref = St::Ref; + type Repo = Unset; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData St>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type Repo = St::Repo; type Ref = Set; + type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Ref = St::Ref; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -247,8 +247,8 @@ where impl DiffBuilder where St: diff_state::State, - St::Repo: diff_state::IsSet, St::Ref: diff_state::IsSet, + St::Repo: diff_state::IsSet, { /// Build the final struct. pub fn build(self) -> Diff { diff --git a/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs b/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs index 72a9fef8..85dbc56a 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs @@ -82,85 +82,85 @@ pub mod fork_status_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type HiddenRef; type Did; type Branch; + type HiddenRef; type Source; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type HiddenRef = Unset; type Did = Unset; type Branch = Unset; + type HiddenRef = Unset; type Source = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type HiddenRef = St::HiddenRef; - type Did = St::Did; - type Branch = St::Branch; - type Source = St::Source; - } - ///State transition - sets the `hidden_ref` field to Set - pub struct SetHiddenRef(PhantomData St>); - impl sealed::Sealed for SetHiddenRef {} - impl State for SetHiddenRef { - type Name = St::Name; - type HiddenRef = Set; - type Did = St::Did; - type Branch = St::Branch; - type Source = St::Source; + type Name = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Name = St::Name; - type HiddenRef = St::HiddenRef; type Did = Set; type Branch = St::Branch; + type HiddenRef = St::HiddenRef; type Source = St::Source; + type Name = St::Name; } ///State transition - sets the `branch` field to Set pub struct SetBranch(PhantomData St>); impl sealed::Sealed for SetBranch {} impl State for SetBranch { - type Name = St::Name; - type HiddenRef = St::HiddenRef; type Did = St::Did; type Branch = Set; + type HiddenRef = St::HiddenRef; + type Source = St::Source; + type Name = St::Name; + } + ///State transition - sets the `hidden_ref` field to Set + pub struct SetHiddenRef(PhantomData St>); + impl sealed::Sealed for SetHiddenRef {} + impl State for SetHiddenRef { + type Did = St::Did; + type Branch = St::Branch; + type HiddenRef = Set; type Source = St::Source; + type Name = St::Name; } ///State transition - sets the `source` field to Set pub struct SetSource(PhantomData St>); impl sealed::Sealed for SetSource {} impl State for SetSource { - type Name = St::Name; - type HiddenRef = St::HiddenRef; type Did = St::Did; type Branch = St::Branch; + type HiddenRef = St::HiddenRef; type Source = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Did = St::Did; + type Branch = St::Branch; + type HiddenRef = St::HiddenRef; + type Source = St::Source; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `hidden_ref` field - pub struct hidden_ref(()); ///Marker type for the `did` field pub struct did(()); ///Marker type for the `branch` field pub struct branch(()); + ///Marker type for the `hidden_ref` field + pub struct hidden_ref(()); ///Marker type for the `source` field pub struct source(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -287,11 +287,11 @@ where impl ForkStatusBuilder where St: fork_status_state::State, - St::Name: fork_status_state::IsSet, - St::HiddenRef: fork_status_state::IsSet, St::Did: fork_status_state::IsSet, St::Branch: fork_status_state::IsSet, + St::HiddenRef: fork_status_state::IsSet, St::Source: fork_status_state::IsSet, + St::Name: fork_status_state::IsSet, { /// Build the final struct. pub fn build(self) -> ForkStatus { diff --git a/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs b/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs index f415c24a..e118a2ef 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs @@ -70,65 +70,65 @@ pub mod fork_sync_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Name; type Branch; type Did; - type Name; type Source; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Name = Unset; type Branch = Unset; type Did = Unset; - type Name = Unset; type Source = Unset; } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Name = Set; + type Branch = St::Branch; + type Did = St::Did; + type Source = St::Source; + } ///State transition - sets the `branch` field to Set pub struct SetBranch(PhantomData St>); impl sealed::Sealed for SetBranch {} impl State for SetBranch { + type Name = St::Name; type Branch = Set; type Did = St::Did; - type Name = St::Name; type Source = St::Source; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Branch = St::Branch; - type Did = Set; type Name = St::Name; - type Source = St::Source; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { type Branch = St::Branch; - type Did = St::Did; - type Name = Set; + type Did = Set; type Source = St::Source; } ///State transition - sets the `source` field to Set pub struct SetSource(PhantomData St>); impl sealed::Sealed for SetSource {} impl State for SetSource { + type Name = St::Name; type Branch = St::Branch; type Did = St::Did; - type Name = St::Name; type Source = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `branch` field pub struct branch(()); ///Marker type for the `did` field pub struct did(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `source` field pub struct source(()); } @@ -238,9 +238,9 @@ where impl ForkSyncBuilder where St: fork_sync_state::State, + St::Name: fork_sync_state::IsSet, St::Branch: fork_sync_state::IsSet, St::Did: fork_sync_state::IsSet, - St::Name: fork_sync_state::IsSet, St::Source: fork_sync_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/sh_tangled/repo/get_default_branch.rs b/crates/jacquard-api/src/sh_tangled/repo/get_default_branch.rs index d80c6b05..6eda593b 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/get_default_branch.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/get_default_branch.rs @@ -259,51 +259,51 @@ pub mod signature_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Email; - type When; type Name; + type When; + type Email; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Email = Unset; - type When = Unset; type Name = Unset; + type When = Unset; + type Email = Unset; } - ///State transition - sets the `email` field to Set - pub struct SetEmail(PhantomData St>); - impl sealed::Sealed for SetEmail {} - impl State for SetEmail { - type Email = Set; + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Name = Set; type When = St::When; - type Name = St::Name; + type Email = St::Email; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Email = St::Email; - type When = Set; type Name = St::Name; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { + type When = Set; type Email = St::Email; + } + ///State transition - sets the `email` field to Set + pub struct SetEmail(PhantomData St>); + impl sealed::Sealed for SetEmail {} + impl State for SetEmail { + type Name = St::Name; type When = St::When; - type Name = Set; + type Email = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `email` field - pub struct email(()); - ///Marker type for the `when` field - pub struct when(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `when` field + pub struct when(()); + ///Marker type for the `email` field + pub struct email(()); } } @@ -392,9 +392,9 @@ where impl SignatureBuilder where St: signature_state::State, - St::Email: signature_state::IsSet, - St::When: signature_state::IsSet, St::Name: signature_state::IsSet, + St::When: signature_state::IsSet, + St::Email: signature_state::IsSet, { /// Build the final struct. pub fn build(self) -> Signature { diff --git a/crates/jacquard-api/src/sh_tangled/repo/hidden_ref.rs b/crates/jacquard-api/src/sh_tangled/repo/hidden_ref.rs index dc45814a..88faafa3 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/hidden_ref.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/hidden_ref.rs @@ -84,51 +84,51 @@ pub mod hidden_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type RemoteRef; - type Repo; type ForkRef; + type Repo; + type RemoteRef; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type RemoteRef = Unset; - type Repo = Unset; type ForkRef = Unset; + type Repo = Unset; + type RemoteRef = Unset; } - ///State transition - sets the `remote_ref` field to Set - pub struct SetRemoteRef(PhantomData St>); - impl sealed::Sealed for SetRemoteRef {} - impl State for SetRemoteRef { - type RemoteRef = Set; + ///State transition - sets the `fork_ref` field to Set + pub struct SetForkRef(PhantomData St>); + impl sealed::Sealed for SetForkRef {} + impl State for SetForkRef { + type ForkRef = Set; type Repo = St::Repo; - type ForkRef = St::ForkRef; + type RemoteRef = St::RemoteRef; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type RemoteRef = St::RemoteRef; - type Repo = Set; type ForkRef = St::ForkRef; - } - ///State transition - sets the `fork_ref` field to Set - pub struct SetForkRef(PhantomData St>); - impl sealed::Sealed for SetForkRef {} - impl State for SetForkRef { + type Repo = Set; type RemoteRef = St::RemoteRef; + } + ///State transition - sets the `remote_ref` field to Set + pub struct SetRemoteRef(PhantomData St>); + impl sealed::Sealed for SetRemoteRef {} + impl State for SetRemoteRef { + type ForkRef = St::ForkRef; type Repo = St::Repo; - type ForkRef = Set; + type RemoteRef = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `remote_ref` field - pub struct remote_ref(()); - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `fork_ref` field pub struct fork_ref(()); + ///Marker type for the `repo` field + pub struct repo(()); + ///Marker type for the `remote_ref` field + pub struct remote_ref(()); } } @@ -217,9 +217,9 @@ where impl HiddenRefBuilder where St: hidden_ref_state::State, - St::RemoteRef: hidden_ref_state::IsSet, - St::Repo: hidden_ref_state::IsSet, St::ForkRef: hidden_ref_state::IsSet, + St::Repo: hidden_ref_state::IsSet, + St::RemoteRef: hidden_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> HiddenRef { diff --git a/crates/jacquard-api/src/sh_tangled/repo/issue.rs b/crates/jacquard-api/src/sh_tangled/repo/issue.rs index 6e6bc23a..f1617dfb 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/issue.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/issue.rs @@ -122,51 +122,51 @@ pub mod issue_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; - type CreatedAt; type Title; + type CreatedAt; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; - type CreatedAt = Unset; type Title = Unset; + type CreatedAt = Unset; + type Repo = Unset; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Title = Set; type CreatedAt = St::CreatedAt; - type Title = St::Title; + type Repo = St::Repo; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Repo = St::Repo; - type CreatedAt = Set; type Title = St::Title; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { + type CreatedAt = Set; type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Title = St::Title; type CreatedAt = St::CreatedAt; - type Title = Set; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -301,9 +301,9 @@ where impl IssueBuilder where St: issue_state::State, - St::Repo: issue_state::IsSet, - St::CreatedAt: issue_state::IsSet, St::Title: issue_state::IsSet, + St::CreatedAt: issue_state::IsSet, + St::Repo: issue_state::IsSet, { /// Build the final struct. pub fn build(self) -> Issue { diff --git a/crates/jacquard-api/src/sh_tangled/repo/issue/comment.rs b/crates/jacquard-api/src/sh_tangled/repo/issue/comment.rs index 96d3f610..4b9148c6 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/issue/comment.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/issue/comment.rs @@ -119,50 +119,50 @@ pub mod comment_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type Body; type Issue; + type Body; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type Body = Unset; type Issue = Unset; + type Body = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type Body = St::Body; - type Issue = St::Issue; - } - ///State transition - sets the `body` field to Set - pub struct SetBody(PhantomData St>); - impl sealed::Sealed for SetBody {} - impl State for SetBody { - type CreatedAt = St::CreatedAt; - type Body = Set; type Issue = St::Issue; + type Body = St::Body; } ///State transition - sets the `issue` field to Set pub struct SetIssue(PhantomData St>); impl sealed::Sealed for SetIssue {} impl State for SetIssue { type CreatedAt = St::CreatedAt; - type Body = St::Body; type Issue = Set; + type Body = St::Body; + } + ///State transition - sets the `body` field to Set + pub struct SetBody(PhantomData St>); + impl sealed::Sealed for SetBody {} + impl State for SetBody { + type CreatedAt = St::CreatedAt; + type Issue = St::Issue; + type Body = 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 `body` field - pub struct body(()); ///Marker type for the `issue` field pub struct issue(()); + ///Marker type for the `body` field + pub struct body(()); } } @@ -298,8 +298,8 @@ impl CommentBuilder where St: comment_state::State, St::CreatedAt: comment_state::IsSet, - St::Body: comment_state::IsSet, St::Issue: comment_state::IsSet, + St::Body: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/sh_tangled/repo/languages.rs b/crates/jacquard-api/src/sh_tangled/repo/languages.rs index 10bb0fa9..042dd700 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/languages.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/languages.rs @@ -187,49 +187,49 @@ pub mod language_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Size; type Percentage; + type Size; type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Size = Unset; type Percentage = Unset; + type Size = Unset; type Name = Unset; } - ///State transition - sets the `size` field to Set - pub struct SetSize(PhantomData St>); - impl sealed::Sealed for SetSize {} - impl State for SetSize { - type Size = Set; - type Percentage = St::Percentage; - type Name = St::Name; - } ///State transition - sets the `percentage` field to Set pub struct SetPercentage(PhantomData St>); impl sealed::Sealed for SetPercentage {} impl State for SetPercentage { - type Size = St::Size; type Percentage = Set; + type Size = St::Size; + type Name = St::Name; + } + ///State transition - sets the `size` field to Set + pub struct SetSize(PhantomData St>); + impl sealed::Sealed for SetSize {} + impl State for SetSize { + type Percentage = St::Percentage; + type Size = Set; type Name = St::Name; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Size = St::Size; type Percentage = St::Percentage; + type Size = St::Size; type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `size` field - pub struct size(()); ///Marker type for the `percentage` field pub struct percentage(()); + ///Marker type for the `size` field + pub struct size(()); ///Marker type for the `name` field pub struct name(()); } @@ -366,8 +366,8 @@ where impl LanguageBuilder where St: language_state::State, - St::Size: language_state::IsSet, St::Percentage: language_state::IsSet, + St::Size: language_state::IsSet, St::Name: language_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs b/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs index 89085b2b..dd919798 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs @@ -213,65 +213,65 @@ pub mod secret_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Key; type CreatedAt; + type Repo; type CreatedBy; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Key = Unset; type CreatedAt = Unset; + type Repo = Unset; type CreatedBy = Unset; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Key = St::Key; - type CreatedAt = St::CreatedAt; - type CreatedBy = St::CreatedBy; - } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type Repo = St::Repo; type Key = Set; type CreatedAt = St::CreatedAt; + type Repo = St::Repo; type CreatedBy = St::CreatedBy; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Repo = St::Repo; type Key = St::Key; type CreatedAt = Set; + type Repo = St::Repo; + type CreatedBy = St::CreatedBy; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Key = St::Key; + type CreatedAt = St::CreatedAt; + type Repo = Set; type CreatedBy = St::CreatedBy; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData St>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { - type Repo = St::Repo; type Key = St::Key; type CreatedAt = St::CreatedAt; + type Repo = St::Repo; type CreatedBy = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `key` field pub struct key(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `repo` field + pub struct repo(()); ///Marker type for the `created_by` field pub struct created_by(()); } @@ -381,9 +381,9 @@ where impl SecretBuilder where St: secret_state::State, - St::Repo: secret_state::IsSet, St::Key: secret_state::IsSet, St::CreatedAt: secret_state::IsSet, + St::Repo: secret_state::IsSet, St::CreatedBy: secret_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/sh_tangled/repo/merge.rs b/crates/jacquard-api/src/sh_tangled/repo/merge.rs index 4e7afca2..d338a110 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/merge.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/merge.rs @@ -82,67 +82,67 @@ pub mod merge_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Branch; + type Patch; type Did; + type Branch; type Name; - type Patch; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Branch = Unset; + type Patch = Unset; type Did = Unset; + type Branch = Unset; type Name = Unset; - type Patch = Unset; } - ///State transition - sets the `branch` field to Set - pub struct SetBranch(PhantomData St>); - impl sealed::Sealed for SetBranch {} - impl State for SetBranch { - type Branch = Set; + ///State transition - sets the `patch` field to Set + pub struct SetPatch(PhantomData St>); + impl sealed::Sealed for SetPatch {} + impl State for SetPatch { + type Patch = Set; type Did = St::Did; + type Branch = St::Branch; type Name = St::Name; - type Patch = St::Patch; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Branch = St::Branch; + type Patch = St::Patch; type Did = Set; + type Branch = St::Branch; type Name = St::Name; + } + ///State transition - sets the `branch` field to Set + pub struct SetBranch(PhantomData St>); + impl sealed::Sealed for SetBranch {} + impl State for SetBranch { type Patch = St::Patch; + type Did = St::Did; + type Branch = Set; + type Name = St::Name; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Branch = St::Branch; - type Did = St::Did; - type Name = Set; type Patch = St::Patch; - } - ///State transition - sets the `patch` field to Set - pub struct SetPatch(PhantomData St>); - impl sealed::Sealed for SetPatch {} - impl State for SetPatch { - type Branch = St::Branch; type Did = St::Did; - type Name = St::Name; - type Patch = Set; + type Branch = St::Branch; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `branch` field - pub struct branch(()); + ///Marker type for the `patch` field + pub struct patch(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `branch` field + pub struct branch(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `patch` field - pub struct patch(()); } } @@ -311,10 +311,10 @@ where impl MergeBuilder where St: merge_state::State, - St::Branch: merge_state::IsSet, + St::Patch: merge_state::IsSet, St::Did: merge_state::IsSet, + St::Branch: merge_state::IsSet, St::Name: merge_state::IsSet, - St::Patch: merge_state::IsSet, { /// Build the final struct. pub fn build(self) -> Merge { diff --git a/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs b/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs index f6771648..45432126 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs @@ -241,8 +241,8 @@ pub mod merge_check_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Branch; type Patch; + type Branch; type Name; type Did; } @@ -250,26 +250,26 @@ pub mod merge_check_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Branch = Unset; type Patch = Unset; + type Branch = Unset; type Name = Unset; type Did = Unset; } - ///State transition - sets the `branch` field to Set - pub struct SetBranch(PhantomData St>); - impl sealed::Sealed for SetBranch {} - impl State for SetBranch { - type Branch = Set; - type Patch = St::Patch; - type Name = St::Name; - type Did = St::Did; - } ///State transition - sets the `patch` field to Set pub struct SetPatch(PhantomData St>); impl sealed::Sealed for SetPatch {} impl State for SetPatch { - type Branch = St::Branch; type Patch = Set; + type Branch = St::Branch; + type Name = St::Name; + type Did = St::Did; + } + ///State transition - sets the `branch` field to Set + pub struct SetBranch(PhantomData St>); + impl sealed::Sealed for SetBranch {} + impl State for SetBranch { + type Patch = St::Patch; + type Branch = Set; type Name = St::Name; type Did = St::Did; } @@ -277,8 +277,8 @@ pub mod merge_check_state { pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Branch = St::Branch; type Patch = St::Patch; + type Branch = St::Branch; type Name = Set; type Did = St::Did; } @@ -286,18 +286,18 @@ pub mod merge_check_state { pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Branch = St::Branch; type Patch = St::Patch; + type Branch = St::Branch; type Name = St::Name; type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `branch` field - pub struct branch(()); ///Marker type for the `patch` field pub struct patch(()); + ///Marker type for the `branch` field + pub struct branch(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `did` field @@ -409,8 +409,8 @@ where impl MergeCheckBuilder where St: merge_check_state::State, - St::Branch: merge_check_state::IsSet, St::Patch: merge_check_state::IsSet, + St::Branch: merge_check_state::IsSet, St::Name: merge_check_state::IsSet, St::Did: merge_check_state::IsSet, { diff --git a/crates/jacquard-api/src/sh_tangled/repo/pull.rs b/crates/jacquard-api/src/sh_tangled/repo/pull.rs index 28dcc2b7..5c08334c 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/pull.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/pull.rs @@ -232,67 +232,67 @@ pub mod pull_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Title; - type PatchBlob; type Target; + type PatchBlob; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Title = Unset; - type PatchBlob = Unset; type Target = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Title = St::Title; - type PatchBlob = St::PatchBlob; - type Target = St::Target; + type PatchBlob = Unset; + type CreatedAt = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type CreatedAt = St::CreatedAt; type Title = Set; - type PatchBlob = St::PatchBlob; type Target = St::Target; + type PatchBlob = St::PatchBlob; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `target` field to Set + pub struct SetTarget(PhantomData St>); + impl sealed::Sealed for SetTarget {} + impl State for SetTarget { + type Title = St::Title; + type Target = Set; + type PatchBlob = St::PatchBlob; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `patch_blob` field to Set pub struct SetPatchBlob(PhantomData St>); impl sealed::Sealed for SetPatchBlob {} impl State for SetPatchBlob { - type CreatedAt = St::CreatedAt; type Title = St::Title; - type PatchBlob = Set; type Target = St::Target; - } - ///State transition - sets the `target` field to Set - pub struct SetTarget(PhantomData St>); - impl sealed::Sealed for SetTarget {} - impl State for SetTarget { + type PatchBlob = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type Title = St::Title; + type Target = St::Target; type PatchBlob = St::PatchBlob; - type Target = Set; + type CreatedAt = 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 `title` field pub struct title(()); - ///Marker type for the `patch_blob` field - pub struct patch_blob(()); ///Marker type for the `target` field pub struct target(()); + ///Marker type for the `patch_blob` field + pub struct patch_blob(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -475,10 +475,10 @@ where impl PullBuilder where St: pull_state::State, - St::CreatedAt: pull_state::IsSet, St::Title: pull_state::IsSet, - St::PatchBlob: pull_state::IsSet, St::Target: pull_state::IsSet, + St::PatchBlob: pull_state::IsSet, + St::CreatedAt: pull_state::IsSet, { /// Build the final struct. pub fn build(self) -> Pull { diff --git a/crates/jacquard-api/src/sh_tangled/repo/pull/comment.rs b/crates/jacquard-api/src/sh_tangled/repo/pull/comment.rs index 4b1378c7..382c43f1 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/pull/comment.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/pull/comment.rs @@ -117,50 +117,50 @@ pub mod comment_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type Body; type Pull; + type Body; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type Body = Unset; type Pull = Unset; + type Body = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type Body = St::Body; - type Pull = St::Pull; - } - ///State transition - sets the `body` field to Set - pub struct SetBody(PhantomData St>); - impl sealed::Sealed for SetBody {} - impl State for SetBody { - type CreatedAt = St::CreatedAt; - type Body = Set; type Pull = St::Pull; + type Body = St::Body; } ///State transition - sets the `pull` field to Set pub struct SetPull(PhantomData St>); impl sealed::Sealed for SetPull {} impl State for SetPull { type CreatedAt = St::CreatedAt; - type Body = St::Body; type Pull = Set; + type Body = St::Body; + } + ///State transition - sets the `body` field to Set + pub struct SetBody(PhantomData St>); + impl sealed::Sealed for SetBody {} + impl State for SetBody { + type CreatedAt = St::CreatedAt; + type Pull = St::Pull; + type Body = 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 `body` field - pub struct body(()); ///Marker type for the `pull` field pub struct pull(()); + ///Marker type for the `body` field + pub struct body(()); } } @@ -282,8 +282,8 @@ impl CommentBuilder where St: comment_state::State, St::CreatedAt: comment_state::IsSet, - St::Body: comment_state::IsSet, St::Pull: comment_state::IsSet, + St::Body: comment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Comment { diff --git a/crates/jacquard-api/src/sh_tangled/repo/remove_secret.rs b/crates/jacquard-api/src/sh_tangled/repo/remove_secret.rs index 2be5282a..16792282 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/remove_secret.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/remove_secret.rs @@ -64,37 +64,37 @@ pub mod remove_secret_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Key; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Key = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Key = St::Key; + type Repo = Unset; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type Repo = St::Repo; type Key = Set; + type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Key = St::Key; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `key` field pub struct key(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -164,8 +164,8 @@ where impl RemoveSecretBuilder where St: remove_secret_state::State, - St::Repo: remove_secret_state::IsSet, St::Key: remove_secret_state::IsSet, + St::Repo: remove_secret_state::IsSet, { /// Build the final struct. pub fn build(self) -> RemoveSecret { diff --git a/crates/jacquard-api/src/sh_tangled/repo/tree.rs b/crates/jacquard-api/src/sh_tangled/repo/tree.rs index 83b3ef62..45778473 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/tree.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/tree.rs @@ -284,51 +284,51 @@ pub mod last_commit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Message; type When; type Hash; - type Message; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Message = Unset; type When = Unset; type Hash = Unset; - type Message = Unset; + } + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData St>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; + type When = St::When; + type Hash = St::Hash; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { + type Message = St::Message; type When = Set; type Hash = St::Hash; - type Message = St::Message; } ///State transition - sets the `hash` field to Set pub struct SetHash(PhantomData St>); impl sealed::Sealed for SetHash {} impl State for SetHash { - type When = St::When; - type Hash = Set; type Message = St::Message; - } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData St>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { type When = St::When; - type Hash = St::Hash; - type Message = Set; + type Hash = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `message` field + pub struct message(()); ///Marker type for the `when` field pub struct when(()); ///Marker type for the `hash` field pub struct hash(()); - ///Marker type for the `message` field - pub struct message(()); } } @@ -430,9 +430,9 @@ where impl LastCommitBuilder where St: last_commit_state::State, + St::Message: last_commit_state::IsSet, St::When: last_commit_state::IsSet, St::Hash: last_commit_state::IsSet, - St::Message: last_commit_state::IsSet, { /// Build the final struct. pub fn build(self) -> LastCommit { @@ -843,51 +843,51 @@ pub mod signature_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Email; type When; type Name; + type Email; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Email = Unset; type When = Unset; type Name = Unset; - } - ///State transition - sets the `email` field to Set - pub struct SetEmail(PhantomData St>); - impl sealed::Sealed for SetEmail {} - impl State for SetEmail { - type Email = Set; - type When = St::When; - type Name = St::Name; + type Email = Unset; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData St>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Email = St::Email; type When = Set; type Name = St::Name; + type Email = St::Email; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Email = St::Email; type When = St::When; type Name = Set; + type Email = St::Email; + } + ///State transition - sets the `email` field to Set + pub struct SetEmail(PhantomData St>); + impl sealed::Sealed for SetEmail {} + impl State for SetEmail { + type When = St::When; + type Name = St::Name; + type Email = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `email` field - pub struct email(()); ///Marker type for the `when` field pub struct when(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `email` field + pub struct email(()); } } @@ -976,9 +976,9 @@ where impl SignatureBuilder where St: signature_state::State, - St::Email: signature_state::IsSet, St::When: signature_state::IsSet, St::Name: signature_state::IsSet, + St::Email: signature_state::IsSet, { /// Build the final struct. pub fn build(self) -> Signature { @@ -1013,49 +1013,49 @@ pub mod tree_entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Mode; type Size; + type Mode; type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Mode = Unset; type Size = Unset; + type Mode = Unset; type Name = Unset; } - ///State transition - sets the `mode` field to Set - pub struct SetMode(PhantomData St>); - impl sealed::Sealed for SetMode {} - impl State for SetMode { - type Mode = Set; - type Size = St::Size; - type Name = St::Name; - } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData St>); impl sealed::Sealed for SetSize {} impl State for SetSize { - type Mode = St::Mode; type Size = Set; + type Mode = St::Mode; + type Name = St::Name; + } + ///State transition - sets the `mode` field to Set + pub struct SetMode(PhantomData St>); + impl sealed::Sealed for SetMode {} + impl State for SetMode { + type Size = St::Size; + type Mode = Set; type Name = St::Name; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Mode = St::Mode; type Size = St::Size; + type Mode = St::Mode; type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `mode` field - pub struct mode(()); ///Marker type for the `size` field pub struct size(()); + ///Marker type for the `mode` field + pub struct mode(()); ///Marker type for the `name` field pub struct name(()); } @@ -1159,8 +1159,8 @@ where impl TreeEntryBuilder where St: tree_entry_state::State, - St::Mode: tree_entry_state::IsSet, St::Size: tree_entry_state::IsSet, + St::Mode: tree_entry_state::IsSet, St::Name: tree_entry_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/sh_tangled/spindle/member.rs b/crates/jacquard-api/src/sh_tangled/spindle/member.rs index 7b00c6eb..e2c9fe78 100644 --- a/crates/jacquard-api/src/sh_tangled/spindle/member.rs +++ b/crates/jacquard-api/src/sh_tangled/spindle/member.rs @@ -113,51 +113,51 @@ pub mod member_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Subject; type Instance; + type Subject; + type CreatedAt; } /// 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 Instance = Unset; + type Subject = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `instance` field to Set + pub struct SetInstance(PhantomData St>); + impl sealed::Sealed for SetInstance {} + impl State for SetInstance { + type Instance = Set; type Subject = St::Subject; - type Instance = St::Instance; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; - type Subject = Set; type Instance = St::Instance; - } - ///State transition - sets the `instance` field to Set - pub struct SetInstance(PhantomData St>); - impl sealed::Sealed for SetInstance {} - impl State for SetInstance { + type Subject = Set; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Instance = St::Instance; type Subject = St::Subject; - type Instance = Set; + type CreatedAt = 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 `instance` field pub struct instance(()); + ///Marker type for the `subject` field + pub struct subject(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -246,9 +246,9 @@ where impl MemberBuilder where St: member_state::State, - St::CreatedAt: member_state::IsSet, - St::Subject: member_state::IsSet, St::Instance: member_state::IsSet, + St::Subject: member_state::IsSet, + St::CreatedAt: member_state::IsSet, { /// Build the final struct. pub fn build(self) -> Member { diff --git a/crates/jacquard-api/src/sh_tangled/string.rs b/crates/jacquard-api/src/sh_tangled/string.rs index bd85e937..3e41f083 100644 --- a/crates/jacquard-api/src/sh_tangled/string.rs +++ b/crates/jacquard-api/src/sh_tangled/string.rs @@ -165,67 +165,67 @@ pub mod tangled_string_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Description; type Contents; - type CreatedAt; + type Description; type Filename; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Description = Unset; type Contents = Unset; - type CreatedAt = Unset; + type Description = Unset; type Filename = Unset; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { - type Description = Set; - type Contents = St::Contents; - type CreatedAt = St::CreatedAt; - type Filename = St::Filename; + type CreatedAt = Unset; } ///State transition - sets the `contents` field to Set pub struct SetContents(PhantomData St>); impl sealed::Sealed for SetContents {} impl State for SetContents { - type Description = St::Description; type Contents = Set; - type CreatedAt = St::CreatedAt; + type Description = St::Description; type Filename = St::Filename; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Description = St::Description; + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { type Contents = St::Contents; - type CreatedAt = Set; + type Description = Set; type Filename = St::Filename; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `filename` field to Set pub struct SetFilename(PhantomData St>); impl sealed::Sealed for SetFilename {} impl State for SetFilename { - type Description = St::Description; type Contents = St::Contents; - type CreatedAt = St::CreatedAt; + type Description = St::Description; type Filename = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Contents = St::Contents; + type Description = St::Description; + type Filename = St::Filename; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `description` field - pub struct description(()); ///Marker type for the `contents` field pub struct contents(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `description` field + pub struct description(()); ///Marker type for the `filename` field pub struct filename(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -333,10 +333,10 @@ where impl TangledStringBuilder where St: tangled_string_state::State, - St::Description: tangled_string_state::IsSet, St::Contents: tangled_string_state::IsSet, - St::CreatedAt: tangled_string_state::IsSet, + St::Description: tangled_string_state::IsSet, St::Filename: tangled_string_state::IsSet, + St::CreatedAt: tangled_string_state::IsSet, { /// Build the final struct. pub fn build(self) -> TangledString { diff --git a/crates/jacquard-api/src/sh_weaver/actor.rs b/crates/jacquard-api/src/sh_weaver/actor.rs index f0613d26..c85bd0e1 100644 --- a/crates/jacquard-api/src/sh_weaver/actor.rs +++ b/crates/jacquard-api/src/sh_weaver/actor.rs @@ -1786,37 +1786,37 @@ pub mod profile_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Handle; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Handle = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = St::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = St::Did; type Handle = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = St::Handle; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -2132,8 +2132,8 @@ impl ProfileViewBuilder { impl ProfileViewBuilder where St: profile_view_state::State, - St::Did: profile_view_state::IsSet, St::Handle: profile_view_state::IsSet, + St::Did: profile_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProfileView { @@ -2198,37 +2198,37 @@ pub mod profile_view_basic_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Handle; type Did; + type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Handle = Unset; type Did = Unset; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData St>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Handle = Set; - type Did = St::Did; + type Handle = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Handle = St::Handle; type Did = Set; + type Handle = St::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData St>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type Did = St::Did; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `handle` field - pub struct handle(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `handle` field + pub struct handle(()); } } @@ -2385,8 +2385,8 @@ impl ProfileViewBasicBuilder ProfileViewBasicBuilder where St: profile_view_basic_state::State, - St::Handle: profile_view_basic_state::IsSet, St::Did: profile_view_basic_state::IsSet, + St::Handle: profile_view_basic_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProfileViewBasic { @@ -2561,51 +2561,51 @@ pub mod tangled_profile_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Bluesky; type Did; type Handle; - type Bluesky; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Bluesky = Unset; type Did = Unset; type Handle = Unset; - type Bluesky = Unset; + } + ///State transition - sets the `bluesky` field to Set + pub struct SetBluesky(PhantomData St>); + impl sealed::Sealed for SetBluesky {} + impl State for SetBluesky { + type Bluesky = Set; + type Did = St::Did; + type Handle = St::Handle; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { + type Bluesky = St::Bluesky; type Did = Set; type Handle = St::Handle; - type Bluesky = St::Bluesky; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = St::Did; - type Handle = Set; type Bluesky = St::Bluesky; - } - ///State transition - sets the `bluesky` field to Set - pub struct SetBluesky(PhantomData St>); - impl sealed::Sealed for SetBluesky {} - impl State for SetBluesky { type Did = St::Did; - type Handle = St::Handle; - type Bluesky = Set; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `bluesky` field + pub struct bluesky(()); ///Marker type for the `did` field pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); - ///Marker type for the `bluesky` field - pub struct bluesky(()); } } @@ -2771,9 +2771,9 @@ impl TangledProfileViewBuilder impl TangledProfileViewBuilder where St: tangled_profile_view_state::State, + St::Bluesky: tangled_profile_view_state::IsSet, St::Did: tangled_profile_view_state::IsSet, St::Handle: tangled_profile_view_state::IsSet, - St::Bluesky: tangled_profile_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> TangledProfileView { diff --git a/crates/jacquard-api/src/sh_weaver/collab.rs b/crates/jacquard-api/src/sh_weaver/collab.rs index dbf9fff3..9aec3142 100644 --- a/crates/jacquard-api/src/sh_weaver/collab.rs +++ b/crates/jacquard-api/src/sh_weaver/collab.rs @@ -928,51 +928,51 @@ pub mod collaboration_state_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Status; type Resource; type Participants; + type Status; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Status = Unset; type Resource = Unset; type Participants = Unset; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { - type Status = Set; - type Resource = St::Resource; - type Participants = St::Participants; + type Status = Unset; } ///State transition - sets the `resource` field to Set pub struct SetResource(PhantomData St>); impl sealed::Sealed for SetResource {} impl State for SetResource { - type Status = St::Status; type Resource = Set; type Participants = St::Participants; + type Status = St::Status; } ///State transition - sets the `participants` field to Set pub struct SetParticipants(PhantomData St>); impl sealed::Sealed for SetParticipants {} impl State for SetParticipants { - type Status = St::Status; type Resource = St::Resource; type Participants = Set; + type Status = St::Status; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type Resource = St::Resource; + type Participants = St::Participants; + type Status = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `status` field - pub struct status(()); ///Marker type for the `resource` field pub struct resource(()); ///Marker type for the `participants` field pub struct participants(()); + ///Marker type for the `status` field + pub struct status(()); } } @@ -1261,9 +1261,9 @@ where impl CollaborationStateViewBuilder where St: collaboration_state_view_state::State, - St::Status: collaboration_state_view_state::IsSet, St::Resource: collaboration_state_view_state::IsSet, St::Participants: collaboration_state_view_state::IsSet, + St::Status: collaboration_state_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> CollaborationStateView { @@ -1841,65 +1841,65 @@ pub mod former_collaborator_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type User; type WasActiveUntil; type EndReason; - type User; type WasActiveFrom; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type User = Unset; type WasActiveUntil = Unset; type EndReason = Unset; - type User = Unset; type WasActiveFrom = Unset; } + ///State transition - sets the `user` field to Set + pub struct SetUser(PhantomData St>); + impl sealed::Sealed for SetUser {} + impl State for SetUser { + type User = Set; + type WasActiveUntil = St::WasActiveUntil; + type EndReason = St::EndReason; + type WasActiveFrom = St::WasActiveFrom; + } ///State transition - sets the `was_active_until` field to Set pub struct SetWasActiveUntil(PhantomData St>); impl sealed::Sealed for SetWasActiveUntil {} impl State for SetWasActiveUntil { + type User = St::User; type WasActiveUntil = Set; type EndReason = St::EndReason; - type User = St::User; type WasActiveFrom = St::WasActiveFrom; } ///State transition - sets the `end_reason` field to Set pub struct SetEndReason(PhantomData St>); impl sealed::Sealed for SetEndReason {} impl State for SetEndReason { - type WasActiveUntil = St::WasActiveUntil; - type EndReason = Set; type User = St::User; - type WasActiveFrom = St::WasActiveFrom; - } - ///State transition - sets the `user` field to Set - pub struct SetUser(PhantomData St>); - impl sealed::Sealed for SetUser {} - impl State for SetUser { type WasActiveUntil = St::WasActiveUntil; - type EndReason = St::EndReason; - type User = Set; + type EndReason = Set; type WasActiveFrom = St::WasActiveFrom; } ///State transition - sets the `was_active_from` field to Set pub struct SetWasActiveFrom(PhantomData St>); impl sealed::Sealed for SetWasActiveFrom {} impl State for SetWasActiveFrom { + type User = St::User; type WasActiveUntil = St::WasActiveUntil; type EndReason = St::EndReason; - type User = St::User; type WasActiveFrom = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `user` field + pub struct user(()); ///Marker type for the `was_active_until` field pub struct was_active_until(()); ///Marker type for the `end_reason` field pub struct end_reason(()); - ///Marker type for the `user` field - pub struct user(()); ///Marker type for the `was_active_from` field pub struct was_active_from(()); } @@ -2080,9 +2080,9 @@ where impl FormerCollaboratorViewBuilder where St: former_collaborator_view_state::State, + St::User: former_collaborator_view_state::IsSet, St::WasActiveUntil: former_collaborator_view_state::IsSet, St::EndReason: former_collaborator_view_state::IsSet, - St::User: former_collaborator_view_state::IsSet, St::WasActiveFrom: former_collaborator_view_state::IsSet, { /// Build the final struct. @@ -2126,127 +2126,127 @@ pub mod invite_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Status; + type Inviter; type Invitee; + type Uri; type Resource; type CreatedAt; - type Status; - type Uri; type Cid; - type Inviter; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Status = Unset; + type Inviter = Unset; type Invitee = Unset; + type Uri = Unset; type Resource = Unset; type CreatedAt = Unset; - type Status = Unset; - type Uri = Unset; type Cid = Unset; - type Inviter = Unset; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type Status = Set; + type Inviter = St::Inviter; + type Invitee = St::Invitee; + type Uri = St::Uri; + type Resource = St::Resource; + type CreatedAt = St::CreatedAt; + type Cid = St::Cid; + } + ///State transition - sets the `inviter` field to Set + pub struct SetInviter(PhantomData St>); + impl sealed::Sealed for SetInviter {} + impl State for SetInviter { + type Status = St::Status; + type Inviter = Set; + type Invitee = St::Invitee; + type Uri = St::Uri; + type Resource = St::Resource; + type CreatedAt = St::CreatedAt; + type Cid = St::Cid; } ///State transition - sets the `invitee` field to Set pub struct SetInvitee(PhantomData St>); impl sealed::Sealed for SetInvitee {} impl State for SetInvitee { + type Status = St::Status; + type Inviter = St::Inviter; type Invitee = Set; + type Uri = St::Uri; type Resource = St::Resource; type CreatedAt = St::CreatedAt; - type Status = St::Status; - type Uri = St::Uri; type Cid = St::Cid; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Status = St::Status; type Inviter = St::Inviter; + type Invitee = St::Invitee; + type Uri = Set; + type Resource = St::Resource; + type CreatedAt = St::CreatedAt; + type Cid = St::Cid; } ///State transition - sets the `resource` field to Set pub struct SetResource(PhantomData St>); impl sealed::Sealed for SetResource {} impl State for SetResource { + type Status = St::Status; + type Inviter = St::Inviter; type Invitee = St::Invitee; + type Uri = St::Uri; type Resource = Set; type CreatedAt = St::CreatedAt; - type Status = St::Status; - type Uri = St::Uri; type Cid = St::Cid; - type Inviter = St::Inviter; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Invitee = St::Invitee; - type Resource = St::Resource; - type CreatedAt = Set; type Status = St::Status; - type Uri = St::Uri; - type Cid = St::Cid; type Inviter = St::Inviter; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { type Invitee = St::Invitee; - type Resource = St::Resource; - type CreatedAt = St::CreatedAt; - type Status = Set; type Uri = St::Uri; - type Cid = St::Cid; - type Inviter = St::Inviter; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Invitee = St::Invitee; type Resource = St::Resource; - type CreatedAt = St::CreatedAt; - type Status = St::Status; - type Uri = Set; + type CreatedAt = Set; type Cid = St::Cid; - type Inviter = St::Inviter; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Invitee = St::Invitee; - type Resource = St::Resource; - type CreatedAt = St::CreatedAt; type Status = St::Status; - type Uri = St::Uri; - type Cid = Set; type Inviter = St::Inviter; - } - ///State transition - sets the `inviter` field to Set - pub struct SetInviter(PhantomData St>); - impl sealed::Sealed for SetInviter {} - impl State for SetInviter { type Invitee = St::Invitee; + type Uri = St::Uri; type Resource = St::Resource; type CreatedAt = St::CreatedAt; - type Status = St::Status; - type Uri = St::Uri; - type Cid = St::Cid; - type Inviter = Set; + type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `status` field + pub struct status(()); + ///Marker type for the `inviter` field + pub struct inviter(()); ///Marker type for the `invitee` field pub struct invitee(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `resource` field pub struct resource(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `status` field - pub struct status(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `inviter` field - pub struct inviter(()); } } @@ -2517,13 +2517,13 @@ where impl InviteViewBuilder where St: invite_view_state::State, + St::Status: invite_view_state::IsSet, + St::Inviter: invite_view_state::IsSet, St::Invitee: invite_view_state::IsSet, + St::Uri: invite_view_state::IsSet, St::Resource: invite_view_state::IsSet, St::CreatedAt: invite_view_state::IsSet, - St::Status: invite_view_state::IsSet, - St::Uri: invite_view_state::IsSet, St::Cid: invite_view_state::IsSet, - St::Inviter: invite_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> InviteView { @@ -2578,51 +2578,51 @@ pub mod participant_state_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Status; type User; type Role; - type Status; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Status = Unset; type User = Unset; type Role = Unset; - type Status = Unset; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type Status = Set; + type User = St::User; + type Role = St::Role; } ///State transition - sets the `user` field to Set pub struct SetUser(PhantomData St>); impl sealed::Sealed for SetUser {} impl State for SetUser { + type Status = St::Status; type User = Set; type Role = St::Role; - type Status = St::Status; } ///State transition - sets the `role` field to Set pub struct SetRole(PhantomData St>); impl sealed::Sealed for SetRole {} impl State for SetRole { - type User = St::User; - type Role = Set; type Status = St::Status; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { type User = St::User; - type Role = St::Role; - type Status = Set; + type Role = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `status` field + pub struct status(()); ///Marker type for the `user` field pub struct user(()); ///Marker type for the `role` field pub struct role(()); - ///Marker type for the `status` field - pub struct status(()); } } @@ -2860,9 +2860,9 @@ impl< impl ParticipantStateViewBuilder where St: participant_state_view_state::State, + St::Status: participant_state_view_state::IsSet, St::User: participant_state_view_state::IsSet, St::Role: participant_state_view_state::IsSet, - St::Status: participant_state_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ParticipantStateView { @@ -2914,84 +2914,84 @@ pub mod session_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type NodeId; - type CreatedAt; type Uri; type User; type Resource; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type NodeId = Unset; - type CreatedAt = Unset; type Uri = Unset; type User = Unset; type Resource = Unset; + type CreatedAt = Unset; } ///State transition - sets the `node_id` field to Set pub struct SetNodeId(PhantomData St>); impl sealed::Sealed for SetNodeId {} impl State for SetNodeId { type NodeId = Set; - type CreatedAt = St::CreatedAt; - type Uri = St::Uri; - type User = St::User; - type Resource = St::Resource; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type NodeId = St::NodeId; - type CreatedAt = Set; type Uri = St::Uri; type User = St::User; type Resource = St::Resource; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { type NodeId = St::NodeId; - type CreatedAt = St::CreatedAt; type Uri = Set; type User = St::User; type Resource = St::Resource; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `user` field to Set pub struct SetUser(PhantomData St>); impl sealed::Sealed for SetUser {} impl State for SetUser { type NodeId = St::NodeId; - type CreatedAt = St::CreatedAt; type Uri = St::Uri; type User = Set; type Resource = St::Resource; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `resource` field to Set pub struct SetResource(PhantomData St>); impl sealed::Sealed for SetResource {} impl State for SetResource { type NodeId = St::NodeId; - type CreatedAt = St::CreatedAt; type Uri = St::Uri; type User = St::User; type Resource = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type NodeId = St::NodeId; + type Uri = St::Uri; + type User = St::User; + type Resource = St::Resource; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `node_id` field pub struct node_id(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `user` field pub struct user(()); ///Marker type for the `resource` field pub struct resource(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -3153,10 +3153,10 @@ impl SessionViewBuilder where St: session_view_state::State, St::NodeId: session_view_state::IsSet, - St::CreatedAt: session_view_state::IsSet, St::Uri: session_view_state::IsSet, St::User: session_view_state::IsSet, St::Resource: session_view_state::IsSet, + St::CreatedAt: session_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> SessionView { diff --git a/crates/jacquard-api/src/sh_weaver/collab/accept.rs b/crates/jacquard-api/src/sh_weaver/collab/accept.rs index d9981b4c..6981fa0d 100644 --- a/crates/jacquard-api/src/sh_weaver/collab/accept.rs +++ b/crates/jacquard-api/src/sh_weaver/collab/accept.rs @@ -116,51 +116,51 @@ pub mod accept_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Invite; type CreatedAt; type Resource; + type Invite; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Invite = Unset; type CreatedAt = Unset; type Resource = Unset; - } - ///State transition - sets the `invite` field to Set - pub struct SetInvite(PhantomData St>); - impl sealed::Sealed for SetInvite {} - impl State for SetInvite { - type Invite = Set; - type CreatedAt = St::CreatedAt; - type Resource = St::Resource; + type Invite = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Invite = St::Invite; type CreatedAt = Set; type Resource = St::Resource; + type Invite = St::Invite; } ///State transition - sets the `resource` field to Set pub struct SetResource(PhantomData St>); impl sealed::Sealed for SetResource {} impl State for SetResource { - type Invite = St::Invite; type CreatedAt = St::CreatedAt; type Resource = Set; + type Invite = St::Invite; + } + ///State transition - sets the `invite` field to Set + pub struct SetInvite(PhantomData St>); + impl sealed::Sealed for SetInvite {} + impl State for SetInvite { + type CreatedAt = St::CreatedAt; + type Resource = St::Resource; + type Invite = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `invite` field - pub struct invite(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `resource` field pub struct resource(()); + ///Marker type for the `invite` field + pub struct invite(()); } } @@ -249,9 +249,9 @@ where impl AcceptBuilder where St: accept_state::State, - St::Invite: accept_state::IsSet, St::CreatedAt: accept_state::IsSet, St::Resource: accept_state::IsSet, + St::Invite: accept_state::IsSet, { /// Build the final struct. pub fn build(self) -> Accept { diff --git a/crates/jacquard-api/src/sh_weaver/collab/invite.rs b/crates/jacquard-api/src/sh_weaver/collab/invite.rs index b5793b20..86f4d493 100644 --- a/crates/jacquard-api/src/sh_weaver/collab/invite.rs +++ b/crates/jacquard-api/src/sh_weaver/collab/invite.rs @@ -230,50 +230,50 @@ pub mod invite_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Resource; - type CreatedAt; type Invitee; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Resource = Unset; - type CreatedAt = Unset; type Invitee = Unset; + type CreatedAt = Unset; } ///State transition - sets the `resource` field to Set pub struct SetResource(PhantomData St>); impl sealed::Sealed for SetResource {} impl State for SetResource { type Resource = Set; - type CreatedAt = St::CreatedAt; - type Invitee = St::Invitee; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Resource = St::Resource; - type CreatedAt = Set; type Invitee = St::Invitee; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `invitee` field to Set pub struct SetInvitee(PhantomData St>); impl sealed::Sealed for SetInvitee {} impl State for SetInvitee { type Resource = St::Resource; - type CreatedAt = St::CreatedAt; type Invitee = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Resource = St::Resource; + type Invitee = St::Invitee; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `resource` field pub struct resource(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `invitee` field pub struct invitee(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -409,8 +409,8 @@ impl InviteBuilder where St: invite_state::State, St::Resource: invite_state::IsSet, - St::CreatedAt: invite_state::IsSet, St::Invitee: invite_state::IsSet, + St::CreatedAt: invite_state::IsSet, { /// Build the final struct. pub fn build(self) -> Invite { diff --git a/crates/jacquard-api/src/sh_weaver/collab/session.rs b/crates/jacquard-api/src/sh_weaver/collab/session.rs index 344f98a7..661c5b6f 100644 --- a/crates/jacquard-api/src/sh_weaver/collab/session.rs +++ b/crates/jacquard-api/src/sh_weaver/collab/session.rs @@ -122,51 +122,51 @@ pub mod session_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type NodeId; type CreatedAt; type Resource; + type NodeId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type NodeId = Unset; type CreatedAt = Unset; type Resource = Unset; - } - ///State transition - sets the `node_id` field to Set - pub struct SetNodeId(PhantomData St>); - impl sealed::Sealed for SetNodeId {} - impl State for SetNodeId { - type NodeId = Set; - type CreatedAt = St::CreatedAt; - type Resource = St::Resource; + type NodeId = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type NodeId = St::NodeId; type CreatedAt = Set; type Resource = St::Resource; + type NodeId = St::NodeId; } ///State transition - sets the `resource` field to Set pub struct SetResource(PhantomData St>); impl sealed::Sealed for SetResource {} impl State for SetResource { - type NodeId = St::NodeId; type CreatedAt = St::CreatedAt; type Resource = Set; + type NodeId = St::NodeId; + } + ///State transition - sets the `node_id` field to Set + pub struct SetNodeId(PhantomData St>); + impl sealed::Sealed for SetNodeId {} + impl State for SetNodeId { + type CreatedAt = St::CreatedAt; + type Resource = St::Resource; + type NodeId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `node_id` field - pub struct node_id(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `resource` field pub struct resource(()); + ///Marker type for the `node_id` field + pub struct node_id(()); } } @@ -287,9 +287,9 @@ where impl SessionBuilder where St: session_state::State, - St::NodeId: session_state::IsSet, St::CreatedAt: session_state::IsSet, St::Resource: session_state::IsSet, + St::NodeId: session_state::IsSet, { /// Build the final struct. pub fn build(self) -> Session { diff --git a/crates/jacquard-api/src/sh_weaver/edit.rs b/crates/jacquard-api/src/sh_weaver/edit.rs index f5896d80..67078b8d 100644 --- a/crates/jacquard-api/src/sh_weaver/edit.rs +++ b/crates/jacquard-api/src/sh_weaver/edit.rs @@ -768,67 +768,67 @@ pub mod edit_branch_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Length; type Head; - type Author; + type Length; type LastUpdated; + type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Length = Unset; type Head = Unset; - type Author = Unset; + type Length = Unset; type LastUpdated = Unset; - } - ///State transition - sets the `length` field to Set - pub struct SetLength(PhantomData St>); - impl sealed::Sealed for SetLength {} - impl State for SetLength { - type Length = Set; - type Head = St::Head; - type Author = St::Author; - type LastUpdated = St::LastUpdated; + type Author = Unset; } ///State transition - sets the `head` field to Set pub struct SetHead(PhantomData St>); impl sealed::Sealed for SetHead {} impl State for SetHead { - type Length = St::Length; type Head = Set; - type Author = St::Author; + type Length = St::Length; type LastUpdated = St::LastUpdated; + type Author = St::Author; } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Length = St::Length; + ///State transition - sets the `length` field to Set + pub struct SetLength(PhantomData St>); + impl sealed::Sealed for SetLength {} + impl State for SetLength { type Head = St::Head; - type Author = Set; + type Length = Set; type LastUpdated = St::LastUpdated; + type Author = St::Author; } ///State transition - sets the `last_updated` field to Set pub struct SetLastUpdated(PhantomData St>); impl sealed::Sealed for SetLastUpdated {} impl State for SetLastUpdated { - type Length = St::Length; type Head = St::Head; - type Author = St::Author; + type Length = St::Length; type LastUpdated = Set; + type Author = St::Author; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Head = St::Head; + type Length = St::Length; + type LastUpdated = St::LastUpdated; + type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `length` field - pub struct length(()); ///Marker type for the `head` field pub struct head(()); - ///Marker type for the `author` field - pub struct author(()); + ///Marker type for the `length` field + pub struct length(()); ///Marker type for the `last_updated` field pub struct last_updated(()); + ///Marker type for the `author` field + pub struct author(()); } } @@ -983,10 +983,10 @@ impl EditBranchViewBuilder impl EditBranchViewBuilder where St: edit_branch_view_state::State, - St::Length: edit_branch_view_state::IsSet, St::Head: edit_branch_view_state::IsSet, - St::Author: edit_branch_view_state::IsSet, + St::Length: edit_branch_view_state::IsSet, St::LastUpdated: edit_branch_view_state::IsSet, + St::Author: edit_branch_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> EditBranchView { @@ -1030,84 +1030,84 @@ pub mod edit_history_entry_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Cid; - type Type; type Uri; - type Author; type CreatedAt; + type Type; + type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Cid = Unset; - type Type = Unset; type Uri = Unset; - type Author = Unset; type CreatedAt = Unset; + type Type = Unset; + type Author = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { type Cid = Set; - type Type = St::Type; type Uri = St::Uri; - type Author = St::Author; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Cid = St::Cid; - type Type = Set; - type Uri = St::Uri; + type Type = St::Type; type Author = St::Author; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Cid = St::Cid; - type Type = St::Type; type Uri = Set; - type Author = St::Author; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Cid = St::Cid; type Type = St::Type; - type Uri = St::Uri; - type Author = Set; - type CreatedAt = St::CreatedAt; + type Author = St::Author; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Cid = St::Cid; + type Uri = St::Uri; + type CreatedAt = Set; type Type = St::Type; + type Author = St::Author; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Cid = St::Cid; type Uri = St::Uri; + type CreatedAt = St::CreatedAt; + type Type = Set; type Author = St::Author; - type CreatedAt = Set; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Cid = St::Cid; + type Uri = St::Uri; + type CreatedAt = St::CreatedAt; + type Type = St::Type; + type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `author` field - pub struct author(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `type` field + pub struct r#type(()); + ///Marker type for the `author` field + pub struct author(()); } } @@ -1297,10 +1297,10 @@ impl EditHistoryEntryBuilder where St: edit_history_entry_state::State, St::Cid: edit_history_entry_state::IsSet, - St::Type: edit_history_entry_state::IsSet, St::Uri: edit_history_entry_state::IsSet, - St::Author: edit_history_entry_state::IsSet, St::CreatedAt: edit_history_entry_state::IsSet, + St::Type: edit_history_entry_state::IsSet, + St::Author: edit_history_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> EditHistoryEntry { diff --git a/crates/jacquard-api/src/sh_weaver/edit/cursor.rs b/crates/jacquard-api/src/sh_weaver/edit/cursor.rs index f1464e38..d5538f3b 100644 --- a/crates/jacquard-api/src/sh_weaver/edit/cursor.rs +++ b/crates/jacquard-api/src/sh_weaver/edit/cursor.rs @@ -763,37 +763,37 @@ pub mod cursor_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; type Container; + type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Id = Unset; type Container = Unset; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type Container = St::Container; + type Id = Unset; } ///State transition - sets the `container` field to Set pub struct SetContainer(PhantomData St>); impl sealed::Sealed for SetContainer {} impl State for SetContainer { - type Id = St::Id; type Container = Set; + type Id = St::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Container = St::Container; + type Id = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `id` field - pub struct id(()); ///Marker type for the `container` field pub struct container(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -880,8 +880,8 @@ impl CursorBuilder { impl CursorBuilder where St: cursor_state::State, - St::Id: cursor_state::IsSet, St::Container: cursor_state::IsSet, + St::Id: cursor_state::IsSet, { /// Build the final struct. pub fn build(self) -> Cursor { @@ -913,51 +913,51 @@ pub mod normal_container_id_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type ContainerType; type Counter; type Peer; - type ContainerType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type ContainerType = Unset; type Counter = Unset; type Peer = Unset; - type ContainerType = Unset; + } + ///State transition - sets the `container_type` field to Set + pub struct SetContainerType(PhantomData St>); + impl sealed::Sealed for SetContainerType {} + impl State for SetContainerType { + type ContainerType = Set; + type Counter = St::Counter; + type Peer = St::Peer; } ///State transition - sets the `counter` field to Set pub struct SetCounter(PhantomData St>); impl sealed::Sealed for SetCounter {} impl State for SetCounter { + type ContainerType = St::ContainerType; type Counter = Set; type Peer = St::Peer; - type ContainerType = St::ContainerType; } ///State transition - sets the `peer` field to Set pub struct SetPeer(PhantomData St>); impl sealed::Sealed for SetPeer {} impl State for SetPeer { - type Counter = St::Counter; - type Peer = Set; type ContainerType = St::ContainerType; - } - ///State transition - sets the `container_type` field to Set - pub struct SetContainerType(PhantomData St>); - impl sealed::Sealed for SetContainerType {} - impl State for SetContainerType { type Counter = St::Counter; - type Peer = St::Peer; - type ContainerType = Set; + type Peer = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `container_type` field + pub struct container_type(()); ///Marker type for the `counter` field pub struct counter(()); ///Marker type for the `peer` field pub struct peer(()); - ///Marker type for the `container_type` field - pub struct container_type(()); } } @@ -1046,9 +1046,9 @@ where impl NormalContainerIdBuilder where St: normal_container_id_state::State, + St::ContainerType: normal_container_id_state::IsSet, St::Counter: normal_container_id_state::IsSet, St::Peer: normal_container_id_state::IsSet, - St::ContainerType: normal_container_id_state::IsSet, { /// Build the final struct. pub fn build(self) -> NormalContainerId { diff --git a/crates/jacquard-api/src/sh_weaver/edit/list_drafts.rs b/crates/jacquard-api/src/sh_weaver/edit/list_drafts.rs index cd9c6868..ea677230 100644 --- a/crates/jacquard-api/src/sh_weaver/edit/list_drafts.rs +++ b/crates/jacquard-api/src/sh_weaver/edit/list_drafts.rs @@ -120,51 +120,51 @@ pub mod draft_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; type Cid; type CreatedAt; - type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; type Cid = Unset; type CreatedAt = Unset; - type Uri = Unset; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; + type Cid = St::Cid; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Uri = St::Uri; type Cid = Set; type CreatedAt = St::CreatedAt; - type Uri = St::Uri; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Cid = St::Cid; - type CreatedAt = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Cid = St::Cid; - type CreatedAt = St::CreatedAt; - type Uri = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `uri` field - pub struct uri(()); } } @@ -299,9 +299,9 @@ where impl DraftViewBuilder where St: draft_view_state::State, + St::Uri: draft_view_state::IsSet, St::Cid: draft_view_state::IsSet, St::CreatedAt: draft_view_state::IsSet, - St::Uri: draft_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> DraftView { diff --git a/crates/jacquard-api/src/sh_weaver/edit/root.rs b/crates/jacquard-api/src/sh_weaver/edit/root.rs index b924af50..c1213d84 100644 --- a/crates/jacquard-api/src/sh_weaver/edit/root.rs +++ b/crates/jacquard-api/src/sh_weaver/edit/root.rs @@ -154,37 +154,37 @@ pub mod root_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Snapshot; type Doc; + type Snapshot; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Snapshot = Unset; type Doc = Unset; - } - ///State transition - sets the `snapshot` field to Set - pub struct SetSnapshot(PhantomData St>); - impl sealed::Sealed for SetSnapshot {} - impl State for SetSnapshot { - type Snapshot = Set; - type Doc = St::Doc; + type Snapshot = Unset; } ///State transition - sets the `doc` field to Set pub struct SetDoc(PhantomData St>); impl sealed::Sealed for SetDoc {} impl State for SetDoc { - type Snapshot = St::Snapshot; type Doc = Set; + type Snapshot = St::Snapshot; + } + ///State transition - sets the `snapshot` field to Set + pub struct SetSnapshot(PhantomData St>); + impl sealed::Sealed for SetSnapshot {} + impl State for SetSnapshot { + type Doc = St::Doc; + type Snapshot = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `snapshot` field - pub struct snapshot(()); ///Marker type for the `doc` field pub struct doc(()); + ///Marker type for the `snapshot` field + pub struct snapshot(()); } } @@ -254,8 +254,8 @@ where impl RootBuilder where St: root_state::State, - St::Snapshot: root_state::IsSet, St::Doc: root_state::IsSet, + St::Snapshot: root_state::IsSet, { /// Build the final struct. pub fn build(self) -> Root { diff --git a/crates/jacquard-api/src/sh_weaver/embed.rs b/crates/jacquard-api/src/sh_weaver/embed.rs index 04935b76..bb2179bc 100644 --- a/crates/jacquard-api/src/sh_weaver/embed.rs +++ b/crates/jacquard-api/src/sh_weaver/embed.rs @@ -304,37 +304,37 @@ pub mod pixel_size_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Width; type Height; + type Width; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Width = Unset; type Height = Unset; - } - ///State transition - sets the `width` field to Set - pub struct SetWidth(PhantomData St>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = St::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData St>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = St::Width; type Height = Set; + type Width = St::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData St>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = St::Height; + type Width = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `width` field - pub struct width(()); ///Marker type for the `height` field pub struct height(()); + ///Marker type for the `width` field + pub struct width(()); } } @@ -404,8 +404,8 @@ where impl PixelSizeBuilder where St: pixel_size_state::State, - St::Width: pixel_size_state::IsSet, St::Height: pixel_size_state::IsSet, + St::Width: pixel_size_state::IsSet, { /// Build the final struct. pub fn build(self) -> PixelSize { diff --git a/crates/jacquard-api/src/sh_weaver/embed/external.rs b/crates/jacquard-api/src/sh_weaver/embed/external.rs index 62b4b792..90c6e510 100644 --- a/crates/jacquard-api/src/sh_weaver/embed/external.rs +++ b/crates/jacquard-api/src/sh_weaver/embed/external.rs @@ -200,51 +200,51 @@ pub mod external_embed_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Description; - type Title; type Uri; + type Title; + type Description; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Description = Unset; - type Title = Unset; type Uri = Unset; + type Title = Unset; + type Description = Unset; } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData St>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { - type Description = Set; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; type Title = St::Title; - type Uri = St::Uri; + type Description = St::Description; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Description = St::Description; - type Title = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + type Title = Set; type Description = St::Description; + } + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData St>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type Uri = St::Uri; type Title = St::Title; - type Uri = Set; + type Description = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `description` field - pub struct description(()); - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `title` field + pub struct title(()); + ///Marker type for the `description` field + pub struct description(()); } } @@ -346,9 +346,9 @@ where impl ExternalEmbedBuilder where St: external_embed_state::State, - St::Description: external_embed_state::IsSet, - St::Title: external_embed_state::IsSet, St::Uri: external_embed_state::IsSet, + St::Title: external_embed_state::IsSet, + St::Description: external_embed_state::IsSet, { /// Build the final struct. pub fn build(self) -> ExternalEmbed { @@ -716,51 +716,51 @@ pub mod view_external_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; - type Description; type Uri; + type Description; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; - type Description = Unset; type Uri = Unset; + type Description = Unset; + type Title = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; type Description = St::Description; - type Uri = St::Uri; + type Title = St::Title; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Title = St::Title; - type Description = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + type Description = Set; type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Uri = St::Uri; type Description = St::Description; - type Uri = Set; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); - ///Marker type for the `description` field - pub struct description(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `description` field + pub struct description(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -862,9 +862,9 @@ where impl ViewExternalBuilder where St: view_external_state::State, - St::Title: view_external_state::IsSet, - St::Description: view_external_state::IsSet, St::Uri: view_external_state::IsSet, + St::Description: view_external_state::IsSet, + St::Title: view_external_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewExternal { diff --git a/crates/jacquard-api/src/sh_weaver/embed/images.rs b/crates/jacquard-api/src/sh_weaver/embed/images.rs index e13bbc8c..cfb2e66f 100644 --- a/crates/jacquard-api/src/sh_weaver/embed/images.rs +++ b/crates/jacquard-api/src/sh_weaver/embed/images.rs @@ -836,51 +836,51 @@ pub mod view_image_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Alt; - type Thumb; type Fullsize; + type Thumb; + type Alt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Alt = Unset; - type Thumb = Unset; type Fullsize = Unset; + type Thumb = Unset; + type Alt = Unset; } - ///State transition - sets the `alt` field to Set - pub struct SetAlt(PhantomData St>); - impl sealed::Sealed for SetAlt {} - impl State for SetAlt { - type Alt = Set; + ///State transition - sets the `fullsize` field to Set + pub struct SetFullsize(PhantomData St>); + impl sealed::Sealed for SetFullsize {} + impl State for SetFullsize { + type Fullsize = Set; type Thumb = St::Thumb; - type Fullsize = St::Fullsize; + type Alt = St::Alt; } ///State transition - sets the `thumb` field to Set pub struct SetThumb(PhantomData St>); impl sealed::Sealed for SetThumb {} impl State for SetThumb { - type Alt = St::Alt; - type Thumb = Set; type Fullsize = St::Fullsize; - } - ///State transition - sets the `fullsize` field to Set - pub struct SetFullsize(PhantomData St>); - impl sealed::Sealed for SetFullsize {} - impl State for SetFullsize { + type Thumb = Set; type Alt = St::Alt; + } + ///State transition - sets the `alt` field to Set + pub struct SetAlt(PhantomData St>); + impl sealed::Sealed for SetAlt {} + impl State for SetAlt { + type Fullsize = St::Fullsize; type Thumb = St::Thumb; - type Fullsize = Set; + type Alt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `alt` field - pub struct alt(()); - ///Marker type for the `thumb` field - pub struct thumb(()); ///Marker type for the `fullsize` field pub struct fullsize(()); + ///Marker type for the `thumb` field + pub struct thumb(()); + ///Marker type for the `alt` field + pub struct alt(()); } } @@ -1004,9 +1004,9 @@ where impl ViewImageBuilder where St: view_image_state::State, - St::Alt: view_image_state::IsSet, - St::Thumb: view_image_state::IsSet, St::Fullsize: view_image_state::IsSet, + St::Thumb: view_image_state::IsSet, + St::Alt: view_image_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewImage { diff --git a/crates/jacquard-api/src/sh_weaver/embed/record_with_media.rs b/crates/jacquard-api/src/sh_weaver/embed/record_with_media.rs index 141ff7ba..4cb79ff5 100644 --- a/crates/jacquard-api/src/sh_weaver/embed/record_with_media.rs +++ b/crates/jacquard-api/src/sh_weaver/embed/record_with_media.rs @@ -118,37 +118,37 @@ pub mod record_with_media_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Records; type Media; + type Records; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Records = Unset; type Media = Unset; - } - ///State transition - sets the `records` field to Set - pub struct SetRecords(PhantomData St>); - impl sealed::Sealed for SetRecords {} - impl State for SetRecords { - type Records = Set; - type Media = St::Media; + type Records = Unset; } ///State transition - sets the `media` field to Set pub struct SetMedia(PhantomData St>); impl sealed::Sealed for SetMedia {} impl State for SetMedia { - type Records = St::Records; type Media = Set; + type Records = St::Records; + } + ///State transition - sets the `records` field to Set + pub struct SetRecords(PhantomData St>); + impl sealed::Sealed for SetRecords {} + impl State for SetRecords { + type Media = St::Media; + type Records = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `records` field - pub struct records(()); ///Marker type for the `media` field pub struct media(()); + ///Marker type for the `records` field + pub struct records(()); } } @@ -218,8 +218,8 @@ where impl RecordWithMediaBuilder where St: record_with_media_state::State, - St::Records: record_with_media_state::IsSet, St::Media: record_with_media_state::IsSet, + St::Records: record_with_media_state::IsSet, { /// Build the final struct. pub fn build(self) -> RecordWithMedia { @@ -334,37 +334,37 @@ pub mod view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Media; type Record; + type Media; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Media = Unset; type Record = Unset; - } - ///State transition - sets the `media` field to Set - pub struct SetMedia(PhantomData St>); - impl sealed::Sealed for SetMedia {} - impl State for SetMedia { - type Media = Set; - type Record = St::Record; + type Media = Unset; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Media = St::Media; type Record = Set; + type Media = St::Media; + } + ///State transition - sets the `media` field to Set + pub struct SetMedia(PhantomData St>); + impl sealed::Sealed for SetMedia {} + impl State for SetMedia { + type Record = St::Record; + type Media = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `media` field - pub struct media(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `media` field + pub struct media(()); } } @@ -428,8 +428,8 @@ impl ViewBuilder { impl ViewBuilder where St: view_state::State, - St::Media: view_state::IsSet, St::Record: view_state::IsSet, + St::Media: view_state::IsSet, { /// Build the final struct. pub fn build(self) -> View { diff --git a/crates/jacquard-api/src/sh_weaver/embed/records.rs b/crates/jacquard-api/src/sh_weaver/embed/records.rs index b62231d5..2e477d58 100644 --- a/crates/jacquard-api/src/sh_weaver/embed/records.rs +++ b/crates/jacquard-api/src/sh_weaver/embed/records.rs @@ -1071,51 +1071,51 @@ pub mod view_blocked_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Author; type Uri; type Blocked; + type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Author = Unset; type Uri = Unset; type Blocked = Unset; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Author = Set; - type Uri = St::Uri; - type Blocked = St::Blocked; + type Author = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Author = St::Author; type Uri = Set; type Blocked = St::Blocked; + type Author = St::Author; } ///State transition - sets the `blocked` field to Set pub struct SetBlocked(PhantomData St>); impl sealed::Sealed for SetBlocked {} impl State for SetBlocked { - type Author = St::Author; type Uri = St::Uri; type Blocked = Set; + type Author = St::Author; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Uri = St::Uri; + type Blocked = St::Blocked; + type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `author` field - pub struct author(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `blocked` field pub struct blocked(()); + ///Marker type for the `author` field + pub struct author(()); } } @@ -1204,9 +1204,9 @@ where impl ViewBlockedBuilder where St: view_blocked_state::State, - St::Author: view_blocked_state::IsSet, St::Uri: view_blocked_state::IsSet, St::Blocked: view_blocked_state::IsSet, + St::Author: view_blocked_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewBlocked { @@ -1375,37 +1375,37 @@ pub mod view_not_found_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type NotFound; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type NotFound = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type NotFound = St::NotFound; + type Uri = Unset; } ///State transition - sets the `not_found` field to Set pub struct SetNotFound(PhantomData St>); impl sealed::Sealed for SetNotFound {} impl State for SetNotFound { - type Uri = St::Uri; type NotFound = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type NotFound = St::NotFound; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `not_found` field pub struct not_found(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -1475,8 +1475,8 @@ where impl ViewNotFoundBuilder where St: view_not_found_state::State, - St::Uri: view_not_found_state::IsSet, St::NotFound: view_not_found_state::IsSet, + St::Uri: view_not_found_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewNotFound { @@ -1509,85 +1509,85 @@ pub mod view_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; - type Author; - type Value; type IndexedAt; + type Author; type Uri; + type Cid; + type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; - type Author = Unset; - type Value = Unset; type IndexedAt = Unset; + type Author = Unset; type Uri = Unset; + type Cid = Unset; + type Value = Unset; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type IndexedAt = Set; type Author = St::Author; - type Value = St::Value; - type IndexedAt = St::IndexedAt; type Uri = St::Uri; + type Cid = St::Cid; + type Value = St::Value; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Cid = St::Cid; - type Author = Set; - type Value = St::Value; - type IndexedAt = St::IndexedAt; - type Uri = St::Uri; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { - type Cid = St::Cid; - type Author = St::Author; - type Value = Set; type IndexedAt = St::IndexedAt; + type Author = Set; type Uri = St::Uri; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { type Cid = St::Cid; - type Author = St::Author; type Value = St::Value; - type IndexedAt = Set; - type Uri = St::Uri; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { + type IndexedAt = St::IndexedAt; + type Author = St::Author; + type Uri = Set; type Cid = St::Cid; + type Value = St::Value; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type IndexedAt = St::IndexedAt; type Author = St::Author; + type Uri = St::Uri; + type Cid = Set; type Value = St::Value; + } + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { type IndexedAt = St::IndexedAt; - type Uri = Set; + type Author = St::Author; + type Uri = St::Uri; + type Cid = St::Cid; + type Value = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); - ///Marker type for the `author` field - pub struct author(()); - ///Marker type for the `value` field - pub struct value(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); + ///Marker type for the `author` field + pub struct author(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `value` field + pub struct value(()); } } @@ -1810,11 +1810,11 @@ where impl ViewRecordBuilder where St: view_record_state::State, - St::Cid: view_record_state::IsSet, - St::Author: view_record_state::IsSet, - St::Value: view_record_state::IsSet, St::IndexedAt: view_record_state::IsSet, + St::Author: view_record_state::IsSet, St::Uri: view_record_state::IsSet, + St::Cid: view_record_state::IsSet, + St::Value: view_record_state::IsSet, { /// Build the final struct. pub fn build(self) -> ViewRecord { diff --git a/crates/jacquard-api/src/sh_weaver/embed/video.rs b/crates/jacquard-api/src/sh_weaver/embed/video.rs index c9ee9a19..e6548c38 100644 --- a/crates/jacquard-api/src/sh_weaver/embed/video.rs +++ b/crates/jacquard-api/src/sh_weaver/embed/video.rs @@ -335,37 +335,37 @@ pub mod caption_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Lang; type File; + type Lang; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Lang = Unset; type File = Unset; - } - ///State transition - sets the `lang` field to Set - pub struct SetLang(PhantomData St>); - impl sealed::Sealed for SetLang {} - impl State for SetLang { - type Lang = Set; - type File = St::File; + type Lang = Unset; } ///State transition - sets the `file` field to Set pub struct SetFile(PhantomData St>); impl sealed::Sealed for SetFile {} impl State for SetFile { - type Lang = St::Lang; type File = Set; + type Lang = St::Lang; + } + ///State transition - sets the `lang` field to Set + pub struct SetLang(PhantomData St>); + impl sealed::Sealed for SetLang {} + impl State for SetLang { + type File = St::File; + type Lang = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `lang` field - pub struct lang(()); ///Marker type for the `file` field pub struct file(()); + ///Marker type for the `lang` field + pub struct lang(()); } } @@ -435,8 +435,8 @@ where impl CaptionBuilder where St: caption_state::State, - St::Lang: caption_state::IsSet, St::File: caption_state::IsSet, + St::Lang: caption_state::IsSet, { /// Build the final struct. pub fn build(self) -> Caption { @@ -911,37 +911,37 @@ pub mod view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Playlist; type Cid; + type Playlist; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Playlist = Unset; type Cid = Unset; - } - ///State transition - sets the `playlist` field to Set - pub struct SetPlaylist(PhantomData St>); - impl sealed::Sealed for SetPlaylist {} - impl State for SetPlaylist { - type Playlist = Set; - type Cid = St::Cid; + type Playlist = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Playlist = St::Playlist; type Cid = Set; + type Playlist = St::Playlist; + } + ///State transition - sets the `playlist` field to Set + pub struct SetPlaylist(PhantomData St>); + impl sealed::Sealed for SetPlaylist {} + impl State for SetPlaylist { + type Cid = St::Cid; + type Playlist = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `playlist` field - pub struct playlist(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `playlist` field + pub struct playlist(()); } } @@ -1070,8 +1070,8 @@ impl ViewBuilder { impl ViewBuilder where St: view_state::State, - St::Playlist: view_state::IsSet, St::Cid: view_state::IsSet, + St::Playlist: view_state::IsSet, { /// Build the final struct. pub fn build(self) -> View { diff --git a/crates/jacquard-api/src/sh_weaver/graph.rs b/crates/jacquard-api/src/sh_weaver/graph.rs index 4c1767a3..a5cc6113 100644 --- a/crates/jacquard-api/src/sh_weaver/graph.rs +++ b/crates/jacquard-api/src/sh_weaver/graph.rs @@ -377,37 +377,37 @@ pub mod community_tag_count_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Tag; type Count; + type Tag; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Tag = Unset; type Count = Unset; - } - ///State transition - sets the `tag` field to Set - pub struct SetTag(PhantomData St>); - impl sealed::Sealed for SetTag {} - impl State for SetTag { - type Tag = Set; - type Count = St::Count; + type Tag = Unset; } ///State transition - sets the `count` field to Set pub struct SetCount(PhantomData St>); impl sealed::Sealed for SetCount {} impl State for SetCount { - type Tag = St::Tag; type Count = Set; + type Tag = St::Tag; + } + ///State transition - sets the `tag` field to Set + pub struct SetTag(PhantomData St>); + impl sealed::Sealed for SetTag {} + impl State for SetTag { + type Count = St::Count; + type Tag = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `tag` field - pub struct tag(()); ///Marker type for the `count` field pub struct count(()); + ///Marker type for the `tag` field + pub struct tag(()); } } @@ -477,8 +477,8 @@ where impl CommunityTagCountBuilder where St: community_tag_count_state::State, - St::Tag: community_tag_count_state::IsSet, St::Count: community_tag_count_state::IsSet, + St::Tag: community_tag_count_state::IsSet, { /// Build the final struct. pub fn build(self) -> CommunityTagCount { @@ -871,37 +871,37 @@ pub mod list_item_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type Uri; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type Uri = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type Uri = St::Uri; + type Subject = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Subject = St::Subject; type Uri = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Uri = St::Uri; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -984,8 +984,8 @@ where impl ListItemViewBuilder where St: list_item_view_state::State, - St::Subject: list_item_view_state::IsSet, St::Uri: list_item_view_state::IsSet, + St::Subject: list_item_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ListItemView { @@ -1020,125 +1020,125 @@ pub mod list_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; + type Name; + type Cid; + type Purpose; type ItemCount; + type Uri; type IndexedAt; - type Purpose; - type Cid; - type Name; type Creator; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; + type Name = Unset; + type Cid = Unset; + type Purpose = Unset; type ItemCount = Unset; + type Uri = Unset; type IndexedAt = Unset; - type Purpose = Unset; - type Cid = Unset; - type Name = Unset; type Creator = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type ItemCount = St::ItemCount; - type IndexedAt = St::IndexedAt; - type Purpose = St::Purpose; + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Name = Set; type Cid = St::Cid; - type Name = St::Name; - type Creator = St::Creator; - } - ///State transition - sets the `item_count` field to Set - pub struct SetItemCount(PhantomData St>); - impl sealed::Sealed for SetItemCount {} - impl State for SetItemCount { + type Purpose = St::Purpose; + type ItemCount = St::ItemCount; type Uri = St::Uri; - type ItemCount = Set; type IndexedAt = St::IndexedAt; - type Purpose = St::Purpose; - type Cid = St::Cid; - type Name = St::Name; type Creator = St::Creator; } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type Uri = St::Uri; - type ItemCount = St::ItemCount; - type IndexedAt = Set; - type Purpose = St::Purpose; - type Cid = St::Cid; + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { type Name = St::Name; + type Cid = Set; + type Purpose = St::Purpose; + type ItemCount = St::ItemCount; + type Uri = St::Uri; + type IndexedAt = St::IndexedAt; type Creator = St::Creator; } ///State transition - sets the `purpose` field to Set pub struct SetPurpose(PhantomData St>); impl sealed::Sealed for SetPurpose {} impl State for SetPurpose { - type Uri = St::Uri; + type Name = St::Name; + type Cid = St::Cid; + type Purpose = Set; type ItemCount = St::ItemCount; + type Uri = St::Uri; type IndexedAt = St::IndexedAt; - type Purpose = Set; - type Cid = St::Cid; - type Name = St::Name; type Creator = St::Creator; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { + ///State transition - sets the `item_count` field to Set + pub struct SetItemCount(PhantomData St>); + impl sealed::Sealed for SetItemCount {} + impl State for SetItemCount { + type Name = St::Name; + type Cid = St::Cid; + type Purpose = St::Purpose; + type ItemCount = Set; type Uri = St::Uri; - type ItemCount = St::ItemCount; type IndexedAt = St::IndexedAt; - type Purpose = St::Purpose; - type Cid = Set; - type Name = St::Name; type Creator = St::Creator; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Uri = St::Uri; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Name = St::Name; + type Cid = St::Cid; + type Purpose = St::Purpose; type ItemCount = St::ItemCount; + type Uri = Set; type IndexedAt = St::IndexedAt; - type Purpose = St::Purpose; + type Creator = St::Creator; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Name = St::Name; type Cid = St::Cid; - type Name = Set; + type Purpose = St::Purpose; + type ItemCount = St::ItemCount; + type Uri = St::Uri; + type IndexedAt = Set; type Creator = St::Creator; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData St>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Uri = St::Uri; + type Name = St::Name; + type Cid = St::Cid; + type Purpose = St::Purpose; type ItemCount = St::ItemCount; + type Uri = St::Uri; type IndexedAt = St::IndexedAt; - type Purpose = St::Purpose; - type Cid = St::Cid; - type Name = St::Name; type Creator = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); + ///Marker type for the `name` field + pub struct name(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `purpose` field + pub struct purpose(()); ///Marker type for the `item_count` field pub struct item_count(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `purpose` field - pub struct purpose(()); - ///Marker type for the `cid` field - pub struct cid(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `creator` field pub struct creator(()); } @@ -1355,12 +1355,12 @@ impl ListViewBuilder { impl ListViewBuilder where St: list_view_state::State, - St::Uri: list_view_state::IsSet, + St::Name: list_view_state::IsSet, + St::Cid: list_view_state::IsSet, + St::Purpose: list_view_state::IsSet, St::ItemCount: list_view_state::IsSet, + St::Uri: list_view_state::IsSet, St::IndexedAt: list_view_state::IsSet, - St::Purpose: list_view_state::IsSet, - St::Cid: list_view_state::IsSet, - St::Name: list_view_state::IsSet, St::Creator: list_view_state::IsSet, { /// Build the final struct. @@ -1597,67 +1597,67 @@ pub mod tag_application_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type AppliedBy; type Tag; type CreatedAt; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type AppliedBy = Unset; type Tag = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type AppliedBy = St::AppliedBy; - type Tag = St::Tag; - type CreatedAt = St::CreatedAt; + type Uri = Unset; } ///State transition - sets the `applied_by` field to Set pub struct SetAppliedBy(PhantomData St>); impl sealed::Sealed for SetAppliedBy {} impl State for SetAppliedBy { - type Uri = St::Uri; type AppliedBy = Set; type Tag = St::Tag; type CreatedAt = St::CreatedAt; + type Uri = St::Uri; } ///State transition - sets the `tag` field to Set pub struct SetTag(PhantomData St>); impl sealed::Sealed for SetTag {} impl State for SetTag { - type Uri = St::Uri; type AppliedBy = St::AppliedBy; type Tag = Set; type CreatedAt = St::CreatedAt; + type Uri = St::Uri; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Uri = St::Uri; type AppliedBy = St::AppliedBy; type Tag = St::Tag; type CreatedAt = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type AppliedBy = St::AppliedBy; + type Tag = St::Tag; + type CreatedAt = St::CreatedAt; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `applied_by` field pub struct applied_by(()); ///Marker type for the `tag` field pub struct tag(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -1770,10 +1770,10 @@ where impl TagApplicationViewBuilder where St: tag_application_view_state::State, - St::Uri: tag_application_view_state::IsSet, St::AppliedBy: tag_application_view_state::IsSet, St::Tag: tag_application_view_state::IsSet, St::CreatedAt: tag_application_view_state::IsSet, + St::Uri: tag_application_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> TagApplicationView { diff --git a/crates/jacquard-api/src/sh_weaver/graph/follow_accept.rs b/crates/jacquard-api/src/sh_weaver/graph/follow_accept.rs index 183b6438..e56da319 100644 --- a/crates/jacquard-api/src/sh_weaver/graph/follow_accept.rs +++ b/crates/jacquard-api/src/sh_weaver/graph/follow_accept.rs @@ -114,37 +114,37 @@ pub mod follow_accept_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Follow; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Follow = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Follow = St::Follow; + type CreatedAt = Unset; } ///State transition - sets the `follow` field to Set pub struct SetFollow(PhantomData St>); impl sealed::Sealed for SetFollow {} impl State for SetFollow { - type CreatedAt = St::CreatedAt; type Follow = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Follow = St::Follow; + type CreatedAt = 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 `follow` field pub struct follow(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -214,8 +214,8 @@ where impl FollowAcceptBuilder where St: follow_accept_state::State, - St::CreatedAt: follow_accept_state::IsSet, St::Follow: follow_accept_state::IsSet, + St::CreatedAt: follow_accept_state::IsSet, { /// Build the final struct. pub fn build(self) -> FollowAccept { diff --git a/crates/jacquard-api/src/sh_weaver/graph/like.rs b/crates/jacquard-api/src/sh_weaver/graph/like.rs index 0764d46a..890ea4c3 100644 --- a/crates/jacquard-api/src/sh_weaver/graph/like.rs +++ b/crates/jacquard-api/src/sh_weaver/graph/like.rs @@ -114,37 +114,37 @@ pub mod like_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = St::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; type CreatedAt = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -214,8 +214,8 @@ where impl LikeBuilder where St: like_state::State, - St::Subject: like_state::IsSet, St::CreatedAt: like_state::IsSet, + St::Subject: like_state::IsSet, { /// Build the final struct. pub fn build(self) -> Like { diff --git a/crates/jacquard-api/src/sh_weaver/graph/list.rs b/crates/jacquard-api/src/sh_weaver/graph/list.rs index c3e1967e..b15d88b5 100644 --- a/crates/jacquard-api/src/sh_weaver/graph/list.rs +++ b/crates/jacquard-api/src/sh_weaver/graph/list.rs @@ -281,51 +281,51 @@ pub mod list_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type CreatedAt; type Purpose; + type CreatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type CreatedAt = Unset; type Purpose = Unset; + type CreatedAt = Unset; + type Name = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; + ///State transition - sets the `purpose` field to Set + pub struct SetPurpose(PhantomData St>); + impl sealed::Sealed for SetPurpose {} + impl State for SetPurpose { + type Purpose = Set; type CreatedAt = St::CreatedAt; - type Purpose = St::Purpose; + type Name = St::Name; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; - type CreatedAt = Set; type Purpose = St::Purpose; - } - ///State transition - sets the `purpose` field to Set - pub struct SetPurpose(PhantomData St>); - impl sealed::Sealed for SetPurpose {} - impl State for SetPurpose { + type CreatedAt = Set; type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Purpose = St::Purpose; type CreatedAt = St::CreatedAt; - type Purpose = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `purpose` field pub struct purpose(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -446,9 +446,9 @@ where impl ListBuilder where St: list_state::State, - St::Name: list_state::IsSet, - St::CreatedAt: list_state::IsSet, St::Purpose: list_state::IsSet, + St::CreatedAt: list_state::IsSet, + St::Name: list_state::IsSet, { /// Build the final struct. pub fn build(self) -> List { diff --git a/crates/jacquard-api/src/sh_weaver/graph/listitem.rs b/crates/jacquard-api/src/sh_weaver/graph/listitem.rs index c8d70649..6371e22d 100644 --- a/crates/jacquard-api/src/sh_weaver/graph/listitem.rs +++ b/crates/jacquard-api/src/sh_weaver/graph/listitem.rs @@ -116,51 +116,51 @@ pub mod listitem_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type List; type Subject; type CreatedAt; - type List; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type List = Unset; type Subject = Unset; type CreatedAt = Unset; - type List = Unset; + } + ///State transition - sets the `list` field to Set + pub struct SetList(PhantomData St>); + impl sealed::Sealed for SetList {} + impl State for SetList { + type List = Set; + type Subject = St::Subject; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { + type List = St::List; type Subject = Set; type CreatedAt = St::CreatedAt; - type List = St::List; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = St::Subject; - type CreatedAt = Set; type List = St::List; - } - ///State transition - sets the `list` field to Set - pub struct SetList(PhantomData St>); - impl sealed::Sealed for SetList {} - impl State for SetList { type Subject = St::Subject; - type CreatedAt = St::CreatedAt; - type List = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `list` field + pub struct list(()); ///Marker type for the `subject` field pub struct subject(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `list` field - pub struct list(()); } } @@ -249,9 +249,9 @@ where impl ListitemBuilder where St: listitem_state::State, + St::List: listitem_state::IsSet, St::Subject: listitem_state::IsSet, St::CreatedAt: listitem_state::IsSet, - St::List: listitem_state::IsSet, { /// Build the final struct. pub fn build(self) -> Listitem { diff --git a/crates/jacquard-api/src/sh_weaver/graph/subscribe.rs b/crates/jacquard-api/src/sh_weaver/graph/subscribe.rs index 7a2c5204..e525500b 100644 --- a/crates/jacquard-api/src/sh_weaver/graph/subscribe.rs +++ b/crates/jacquard-api/src/sh_weaver/graph/subscribe.rs @@ -113,37 +113,37 @@ pub mod subscribe_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Notebook; type CreatedAt; + type Notebook; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Notebook = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `notebook` field to Set - pub struct SetNotebook(PhantomData St>); - impl sealed::Sealed for SetNotebook {} - impl State for SetNotebook { - type Notebook = Set; - type CreatedAt = St::CreatedAt; + type Notebook = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Notebook = St::Notebook; type CreatedAt = Set; + type Notebook = St::Notebook; + } + ///State transition - sets the `notebook` field to Set + pub struct SetNotebook(PhantomData St>); + impl sealed::Sealed for SetNotebook {} + impl State for SetNotebook { + type CreatedAt = St::CreatedAt; + type Notebook = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `notebook` field - pub struct notebook(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `notebook` field + pub struct notebook(()); } } @@ -213,8 +213,8 @@ where impl SubscribeBuilder where St: subscribe_state::State, - St::Notebook: subscribe_state::IsSet, St::CreatedAt: subscribe_state::IsSet, + St::Notebook: subscribe_state::IsSet, { /// Build the final struct. pub fn build(self) -> Subscribe { diff --git a/crates/jacquard-api/src/sh_weaver/graph/subscribe_accept.rs b/crates/jacquard-api/src/sh_weaver/graph/subscribe_accept.rs index 68a27a03..0cdce97d 100644 --- a/crates/jacquard-api/src/sh_weaver/graph/subscribe_accept.rs +++ b/crates/jacquard-api/src/sh_weaver/graph/subscribe_accept.rs @@ -114,37 +114,37 @@ pub mod subscribe_accept_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subscribe; type CreatedAt; + type Subscribe; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subscribe = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `subscribe` field to Set - pub struct SetSubscribe(PhantomData St>); - impl sealed::Sealed for SetSubscribe {} - impl State for SetSubscribe { - type Subscribe = Set; - type CreatedAt = St::CreatedAt; + type Subscribe = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subscribe = St::Subscribe; type CreatedAt = Set; + type Subscribe = St::Subscribe; + } + ///State transition - sets the `subscribe` field to Set + pub struct SetSubscribe(PhantomData St>); + impl sealed::Sealed for SetSubscribe {} + impl State for SetSubscribe { + type CreatedAt = St::CreatedAt; + type Subscribe = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subscribe` field - pub struct subscribe(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `subscribe` field + pub struct subscribe(()); } } @@ -214,8 +214,8 @@ where impl SubscribeAcceptBuilder where St: subscribe_accept_state::State, - St::Subscribe: subscribe_accept_state::IsSet, St::CreatedAt: subscribe_accept_state::IsSet, + St::Subscribe: subscribe_accept_state::IsSet, { /// Build the final struct. pub fn build(self) -> SubscribeAccept { diff --git a/crates/jacquard-api/src/sh_weaver/notebook.rs b/crates/jacquard-api/src/sh_weaver/notebook.rs index 79196ab1..07a6d6fd 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook.rs @@ -2493,37 +2493,37 @@ pub mod book_entry_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Index; type Entry; + type Index; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Index = Unset; type Entry = Unset; - } - ///State transition - sets the `index` field to Set - pub struct SetIndex(PhantomData St>); - impl sealed::Sealed for SetIndex {} - impl State for SetIndex { - type Index = Set; - type Entry = St::Entry; + type Index = Unset; } ///State transition - sets the `entry` field to Set pub struct SetEntry(PhantomData St>); impl sealed::Sealed for SetEntry {} impl State for SetEntry { - type Index = St::Index; type Entry = Set; + type Index = St::Index; + } + ///State transition - sets the `index` field to Set + pub struct SetIndex(PhantomData St>); + impl sealed::Sealed for SetIndex {} + impl State for SetIndex { + type Entry = St::Entry; + type Index = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `index` field - pub struct index(()); ///Marker type for the `entry` field pub struct entry(()); + ///Marker type for the `index` field + pub struct index(()); } } @@ -2624,8 +2624,8 @@ impl BookEntryViewBuilder { impl BookEntryViewBuilder where St: book_entry_view_state::State, - St::Index: book_entry_view_state::IsSet, St::Entry: book_entry_view_state::IsSet, + St::Index: book_entry_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> BookEntryView { @@ -2831,105 +2831,105 @@ pub mod chapter_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type IndexedAt; - type Cid; type Uri; - type Authors; + type Cid; type Notebook; type Record; + type Authors; + type IndexedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type IndexedAt = Unset; - type Cid = Unset; type Uri = Unset; - type Authors = Unset; + type Cid = Unset; type Notebook = Unset; type Record = Unset; + type Authors = Unset; + type IndexedAt = Unset; } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type IndexedAt = Set; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; type Cid = St::Cid; - type Uri = St::Uri; - type Authors = St::Authors; type Notebook = St::Notebook; type Record = St::Record; + type Authors = St::Authors; + type IndexedAt = St::IndexedAt; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type IndexedAt = St::IndexedAt; - type Cid = Set; type Uri = St::Uri; - type Authors = St::Authors; + type Cid = Set; type Notebook = St::Notebook; type Record = St::Record; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type IndexedAt = St::IndexedAt; - type Cid = St::Cid; - type Uri = Set; type Authors = St::Authors; - type Notebook = St::Notebook; - type Record = St::Record; - } - ///State transition - sets the `authors` field to Set - pub struct SetAuthors(PhantomData St>); - impl sealed::Sealed for SetAuthors {} - impl State for SetAuthors { type IndexedAt = St::IndexedAt; - type Cid = St::Cid; - type Uri = St::Uri; - type Authors = Set; - type Notebook = St::Notebook; - type Record = St::Record; } ///State transition - sets the `notebook` field to Set pub struct SetNotebook(PhantomData St>); impl sealed::Sealed for SetNotebook {} impl State for SetNotebook { - type IndexedAt = St::IndexedAt; - type Cid = St::Cid; type Uri = St::Uri; - type Authors = St::Authors; + type Cid = St::Cid; type Notebook = Set; type Record = St::Record; + type Authors = St::Authors; + type IndexedAt = St::IndexedAt; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { + type Uri = St::Uri; + type Cid = St::Cid; + type Notebook = St::Notebook; + type Record = Set; + type Authors = St::Authors; type IndexedAt = St::IndexedAt; + } + ///State transition - sets the `authors` field to Set + pub struct SetAuthors(PhantomData St>); + impl sealed::Sealed for SetAuthors {} + impl State for SetAuthors { + type Uri = St::Uri; type Cid = St::Cid; + type Notebook = St::Notebook; + type Record = St::Record; + type Authors = Set; + type IndexedAt = St::IndexedAt; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { type Uri = St::Uri; - type Authors = St::Authors; + type Cid = St::Cid; type Notebook = St::Notebook; - type Record = Set; + type Record = St::Record; + type Authors = St::Authors; + type IndexedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `authors` field - pub struct authors(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `notebook` field pub struct notebook(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `authors` field + pub struct authors(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); } } @@ -3124,12 +3124,12 @@ where impl ChapterViewBuilder where St: chapter_view_state::State, - St::IndexedAt: chapter_view_state::IsSet, - St::Cid: chapter_view_state::IsSet, St::Uri: chapter_view_state::IsSet, - St::Authors: chapter_view_state::IsSet, + St::Cid: chapter_view_state::IsSet, St::Notebook: chapter_view_state::IsSet, St::Record: chapter_view_state::IsSet, + St::Authors: chapter_view_state::IsSet, + St::IndexedAt: chapter_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ChapterView { @@ -3191,9 +3191,9 @@ pub mod entry_view_state { pub trait State: sealed::Sealed { type Cid; type IndexedAt; - type Authors; type Uri; type Record; + type Authors; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -3201,9 +3201,9 @@ pub mod entry_view_state { impl State for Empty { type Cid = Unset; type IndexedAt = Unset; - type Authors = Unset; type Uri = Unset; type Record = Unset; + type Authors = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); @@ -3211,9 +3211,9 @@ pub mod entry_view_state { impl State for SetCid { type Cid = Set; type IndexedAt = St::IndexedAt; - type Authors = St::Authors; type Uri = St::Uri; type Record = St::Record; + type Authors = St::Authors; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); @@ -3221,19 +3221,9 @@ pub mod entry_view_state { impl State for SetIndexedAt { type Cid = St::Cid; type IndexedAt = Set; - type Authors = St::Authors; - type Uri = St::Uri; - type Record = St::Record; - } - ///State transition - sets the `authors` field to Set - pub struct SetAuthors(PhantomData St>); - impl sealed::Sealed for SetAuthors {} - impl State for SetAuthors { - type Cid = St::Cid; - type IndexedAt = St::IndexedAt; - type Authors = Set; type Uri = St::Uri; type Record = St::Record; + type Authors = St::Authors; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); @@ -3241,9 +3231,9 @@ pub mod entry_view_state { impl State for SetUri { type Cid = St::Cid; type IndexedAt = St::IndexedAt; - type Authors = St::Authors; type Uri = Set; type Record = St::Record; + type Authors = St::Authors; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); @@ -3251,9 +3241,19 @@ pub mod entry_view_state { impl State for SetRecord { type Cid = St::Cid; type IndexedAt = St::IndexedAt; - type Authors = St::Authors; type Uri = St::Uri; type Record = Set; + type Authors = St::Authors; + } + ///State transition - sets the `authors` field to Set + pub struct SetAuthors(PhantomData St>); + impl sealed::Sealed for SetAuthors {} + impl State for SetAuthors { + type Cid = St::Cid; + type IndexedAt = St::IndexedAt; + type Uri = St::Uri; + type Record = St::Record; + type Authors = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -3262,12 +3262,12 @@ pub mod entry_view_state { pub struct cid(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `authors` field - pub struct authors(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `authors` field + pub struct authors(()); } } @@ -3576,9 +3576,9 @@ where St: entry_view_state::State, St::Cid: entry_view_state::IsSet, St::IndexedAt: entry_view_state::IsSet, - St::Authors: entry_view_state::IsSet, St::Uri: entry_view_state::IsSet, St::Record: entry_view_state::IsSet, + St::Authors: entry_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> EntryView { @@ -3777,37 +3777,37 @@ pub mod feed_notebook_context_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Title; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Title = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Title = St::Title; + type Uri = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Uri = St::Uri; type Title = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Title = St::Title; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -3896,8 +3896,8 @@ where impl FeedNotebookContextBuilder where St: feed_notebook_context_state::State, - St::Uri: feed_notebook_context_state::IsSet, St::Title: feed_notebook_context_state::IsSet, + St::Uri: feed_notebook_context_state::IsSet, { /// Build the final struct. pub fn build(self) -> FeedNotebookContext { @@ -3932,85 +3932,85 @@ pub mod notebook_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Authors; + type Record; type IndexedAt; type Uri; type Cid; - type Record; + type Authors; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Authors = Unset; + type Record = Unset; type IndexedAt = Unset; type Uri = Unset; type Cid = Unset; - type Record = Unset; + type Authors = Unset; } - ///State transition - sets the `authors` field to Set - pub struct SetAuthors(PhantomData St>); - impl sealed::Sealed for SetAuthors {} - impl State for SetAuthors { - type Authors = Set; + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Record = Set; type IndexedAt = St::IndexedAt; type Uri = St::Uri; type Cid = St::Cid; - type Record = St::Record; + type Authors = St::Authors; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Authors = St::Authors; + type Record = St::Record; type IndexedAt = Set; type Uri = St::Uri; type Cid = St::Cid; - type Record = St::Record; + type Authors = St::Authors; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Authors = St::Authors; + type Record = St::Record; type IndexedAt = St::IndexedAt; type Uri = Set; type Cid = St::Cid; - type Record = St::Record; + type Authors = St::Authors; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Authors = St::Authors; + type Record = St::Record; type IndexedAt = St::IndexedAt; type Uri = St::Uri; type Cid = Set; - type Record = St::Record; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { type Authors = St::Authors; + } + ///State transition - sets the `authors` field to Set + pub struct SetAuthors(PhantomData St>); + impl sealed::Sealed for SetAuthors {} + impl State for SetAuthors { + type Record = St::Record; type IndexedAt = St::IndexedAt; type Uri = St::Uri; type Cid = St::Cid; - type Record = Set; + type Authors = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `authors` field - pub struct authors(()); + ///Marker type for the `record` field + pub struct record(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `record` field - pub struct record(()); + ///Marker type for the `authors` field + pub struct authors(()); } } @@ -4341,11 +4341,11 @@ impl NotebookViewBuilder { impl NotebookViewBuilder where St: notebook_view_state::State, - St::Authors: notebook_view_state::IsSet, + St::Record: notebook_view_state::IsSet, St::IndexedAt: notebook_view_state::IsSet, St::Uri: notebook_view_state::IsSet, St::Cid: notebook_view_state::IsSet, - St::Record: notebook_view_state::IsSet, + St::Authors: notebook_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> NotebookView { @@ -4408,85 +4408,85 @@ pub mod page_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type IndexedAt; + type Uri; type Cid; type Notebook; - type Uri; type Record; + type IndexedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type IndexedAt = Unset; + type Uri = Unset; type Cid = Unset; type Notebook = Unset; - type Uri = Unset; type Record = Unset; + type IndexedAt = Unset; } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type IndexedAt = Set; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; type Cid = St::Cid; type Notebook = St::Notebook; - type Uri = St::Uri; type Record = St::Record; + type IndexedAt = St::IndexedAt; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type IndexedAt = St::IndexedAt; + type Uri = St::Uri; type Cid = Set; type Notebook = St::Notebook; - type Uri = St::Uri; type Record = St::Record; + type IndexedAt = St::IndexedAt; } ///State transition - sets the `notebook` field to Set pub struct SetNotebook(PhantomData St>); impl sealed::Sealed for SetNotebook {} impl State for SetNotebook { - type IndexedAt = St::IndexedAt; + type Uri = St::Uri; type Cid = St::Cid; type Notebook = Set; - type Uri = St::Uri; type Record = St::Record; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type IndexedAt = St::IndexedAt; - type Cid = St::Cid; - type Notebook = St::Notebook; - type Uri = Set; - type Record = St::Record; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type IndexedAt = St::IndexedAt; + type Uri = St::Uri; type Cid = St::Cid; type Notebook = St::Notebook; - type Uri = St::Uri; type Record = Set; + type IndexedAt = St::IndexedAt; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Uri = St::Uri; + type Cid = St::Cid; + type Notebook = St::Notebook; + type Record = St::Record; + type IndexedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); ///Marker type for the `notebook` field pub struct notebook(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); } } @@ -4661,11 +4661,11 @@ where impl PageViewBuilder where St: page_view_state::State, - St::IndexedAt: page_view_state::IsSet, + St::Uri: page_view_state::IsSet, St::Cid: page_view_state::IsSet, St::Notebook: page_view_state::IsSet, - St::Uri: page_view_state::IsSet, St::Record: page_view_state::IsSet, + St::IndexedAt: page_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> PageView { @@ -4707,8 +4707,8 @@ pub mod permission_grant_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Scope; type Did; + type Scope; type Source; type GrantedAt; } @@ -4716,26 +4716,26 @@ pub mod permission_grant_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Scope = Unset; type Did = Unset; + type Scope = Unset; type Source = Unset; type GrantedAt = Unset; } - ///State transition - sets the `scope` field to Set - pub struct SetScope(PhantomData St>); - impl sealed::Sealed for SetScope {} - impl State for SetScope { - type Scope = Set; - type Did = St::Did; - type Source = St::Source; - type GrantedAt = St::GrantedAt; - } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Scope = St::Scope; type Did = Set; + type Scope = St::Scope; + type Source = St::Source; + type GrantedAt = St::GrantedAt; + } + ///State transition - sets the `scope` field to Set + pub struct SetScope(PhantomData St>); + impl sealed::Sealed for SetScope {} + impl State for SetScope { + type Did = St::Did; + type Scope = Set; type Source = St::Source; type GrantedAt = St::GrantedAt; } @@ -4743,8 +4743,8 @@ pub mod permission_grant_state { pub struct SetSource(PhantomData St>); impl sealed::Sealed for SetSource {} impl State for SetSource { - type Scope = St::Scope; type Did = St::Did; + type Scope = St::Scope; type Source = Set; type GrantedAt = St::GrantedAt; } @@ -4752,18 +4752,18 @@ pub mod permission_grant_state { pub struct SetGrantedAt(PhantomData St>); impl sealed::Sealed for SetGrantedAt {} impl State for SetGrantedAt { - type Scope = St::Scope; type Did = St::Did; + type Scope = St::Scope; type Source = St::Source; type GrantedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `scope` field - pub struct scope(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `scope` field + pub struct scope(()); ///Marker type for the `source` field pub struct source(()); ///Marker type for the `granted_at` field @@ -4880,8 +4880,8 @@ where impl PermissionGrantBuilder where St: permission_grant_state::State, - St::Scope: permission_grant_state::IsSet, St::Did: permission_grant_state::IsSet, + St::Scope: permission_grant_state::IsSet, St::Source: permission_grant_state::IsSet, St::GrantedAt: permission_grant_state::IsSet, { @@ -5044,67 +5044,67 @@ pub mod published_version_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Publisher; type PublishedAt; type Cid; + type Publisher; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; - type Publisher = Unset; type PublishedAt = Unset; type Cid = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Publisher = St::Publisher; - type PublishedAt = St::PublishedAt; - type Cid = St::Cid; - } - ///State transition - sets the `publisher` field to Set - pub struct SetPublisher(PhantomData St>); - impl sealed::Sealed for SetPublisher {} - impl State for SetPublisher { - type Uri = St::Uri; - type Publisher = Set; - type PublishedAt = St::PublishedAt; - type Cid = St::Cid; + type Publisher = Unset; + type Uri = Unset; } ///State transition - sets the `published_at` field to Set pub struct SetPublishedAt(PhantomData St>); impl sealed::Sealed for SetPublishedAt {} impl State for SetPublishedAt { - type Uri = St::Uri; - type Publisher = St::Publisher; type PublishedAt = Set; type Cid = St::Cid; + type Publisher = St::Publisher; + type Uri = St::Uri; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = St::Uri; - type Publisher = St::Publisher; type PublishedAt = St::PublishedAt; type Cid = Set; + type Publisher = St::Publisher; + type Uri = St::Uri; + } + ///State transition - sets the `publisher` field to Set + pub struct SetPublisher(PhantomData St>); + impl sealed::Sealed for SetPublisher {} + impl State for SetPublisher { + type PublishedAt = St::PublishedAt; + type Cid = St::Cid; + type Publisher = Set; + type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type PublishedAt = St::PublishedAt; + type Cid = St::Cid; + type Publisher = St::Publisher; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `publisher` field - pub struct publisher(()); ///Marker type for the `published_at` field pub struct published_at(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `publisher` field + pub struct publisher(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -5274,10 +5274,10 @@ where impl PublishedVersionViewBuilder where St: published_version_view_state::State, - St::Uri: published_version_view_state::IsSet, - St::Publisher: published_version_view_state::IsSet, St::PublishedAt: published_version_view_state::IsSet, St::Cid: published_version_view_state::IsSet, + St::Publisher: published_version_view_state::IsSet, + St::Uri: published_version_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> PublishedVersionView { @@ -5454,37 +5454,37 @@ pub mod reason_like_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type IndexedAt; type By; + type IndexedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type IndexedAt = Unset; type By = Unset; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type IndexedAt = Set; - type By = St::By; + type IndexedAt = Unset; } ///State transition - sets the `by` field to Set pub struct SetBy(PhantomData St>); impl sealed::Sealed for SetBy {} impl State for SetBy { - type IndexedAt = St::IndexedAt; type By = Set; + type IndexedAt = St::IndexedAt; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type By = St::By; + type IndexedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); ///Marker type for the `by` field pub struct by(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); } } @@ -5554,8 +5554,8 @@ where impl ReasonLikeBuilder where St: reason_like_state::State, - St::IndexedAt: reason_like_state::IsSet, St::By: reason_like_state::IsSet, + St::IndexedAt: reason_like_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReasonLike { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/chapter.rs b/crates/jacquard-api/src/sh_weaver/notebook/chapter.rs index a901c766..d0484bb0 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/chapter.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/chapter.rs @@ -132,50 +132,50 @@ pub mod chapter_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Authors; - type Notebook; type EntryList; + type Notebook; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Authors = Unset; - type Notebook = Unset; type EntryList = Unset; + type Notebook = Unset; } ///State transition - sets the `authors` field to Set pub struct SetAuthors(PhantomData St>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { type Authors = Set; - type Notebook = St::Notebook; - type EntryList = St::EntryList; - } - ///State transition - sets the `notebook` field to Set - pub struct SetNotebook(PhantomData St>); - impl sealed::Sealed for SetNotebook {} - impl State for SetNotebook { - type Authors = St::Authors; - type Notebook = Set; type EntryList = St::EntryList; + type Notebook = St::Notebook; } ///State transition - sets the `entry_list` field to Set pub struct SetEntryList(PhantomData St>); impl sealed::Sealed for SetEntryList {} impl State for SetEntryList { type Authors = St::Authors; - type Notebook = St::Notebook; type EntryList = Set; + type Notebook = St::Notebook; + } + ///State transition - sets the `notebook` field to Set + pub struct SetNotebook(PhantomData St>); + impl sealed::Sealed for SetNotebook {} + impl State for SetNotebook { + type Authors = St::Authors; + type EntryList = St::EntryList; + type Notebook = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `authors` field pub struct authors(()); - ///Marker type for the `notebook` field - pub struct notebook(()); ///Marker type for the `entry_list` field pub struct entry_list(()); + ///Marker type for the `notebook` field + pub struct notebook(()); } } @@ -342,8 +342,8 @@ impl ChapterBuilder where St: chapter_state::State, St::Authors: chapter_state::IsSet, - St::Notebook: chapter_state::IsSet, St::EntryList: chapter_state::IsSet, + St::Notebook: chapter_state::IsSet, { /// Build the final struct. pub fn build(self) -> Chapter { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/colour_scheme.rs b/crates/jacquard-api/src/sh_weaver/notebook/colour_scheme.rs index 160286dd..b24b3569 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/colour_scheme.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/colour_scheme.rs @@ -405,51 +405,51 @@ pub mod colour_scheme_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Variant; type Name; type Colours; - type Variant; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Variant = Unset; type Name = Unset; type Colours = Unset; - type Variant = Unset; + } + ///State transition - sets the `variant` field to Set + pub struct SetVariant(PhantomData St>); + impl sealed::Sealed for SetVariant {} + impl State for SetVariant { + type Variant = Set; + type Name = St::Name; + type Colours = St::Colours; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { + type Variant = St::Variant; type Name = Set; type Colours = St::Colours; - type Variant = St::Variant; } ///State transition - sets the `colours` field to Set pub struct SetColours(PhantomData St>); impl sealed::Sealed for SetColours {} impl State for SetColours { - type Name = St::Name; - type Colours = Set; type Variant = St::Variant; - } - ///State transition - sets the `variant` field to Set - pub struct SetVariant(PhantomData St>); - impl sealed::Sealed for SetVariant {} - impl State for SetVariant { type Name = St::Name; - type Colours = St::Colours; - type Variant = Set; + type Colours = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `variant` field + pub struct variant(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `colours` field pub struct colours(()); - ///Marker type for the `variant` field - pub struct variant(()); } } @@ -538,9 +538,9 @@ where impl ColourSchemeBuilder where St: colour_scheme_state::State, + St::Variant: colour_scheme_state::IsSet, St::Name: colour_scheme_state::IsSet, St::Colours: colour_scheme_state::IsSet, - St::Variant: colour_scheme_state::IsSet, { /// Build the final struct. pub fn build(self) -> ColourScheme { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/entry.rs b/crates/jacquard-api/src/sh_weaver/notebook/entry.rs index cacb4dfa..6a9ef66a 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/entry.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/entry.rs @@ -351,67 +351,67 @@ pub mod entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Path; type Content; - type CreatedAt; type Title; + type Path; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Path = Unset; type Content = Unset; - type CreatedAt = Unset; type Title = Unset; - } - ///State transition - sets the `path` field to Set - pub struct SetPath(PhantomData St>); - impl sealed::Sealed for SetPath {} - impl State for SetPath { - type Path = Set; - type Content = St::Content; - type CreatedAt = St::CreatedAt; - type Title = St::Title; + type Path = Unset; + type CreatedAt = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Path = St::Path; type Content = Set; - type CreatedAt = St::CreatedAt; type Title = St::Title; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Path = St::Path; - type Content = St::Content; - type CreatedAt = Set; - type Title = St::Title; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { + type Content = St::Content; + type Title = Set; type Path = St::Path; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `path` field to Set + pub struct SetPath(PhantomData St>); + impl sealed::Sealed for SetPath {} + impl State for SetPath { type Content = St::Content; + type Title = St::Title; + type Path = Set; type CreatedAt = St::CreatedAt; - type Title = Set; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Content = St::Content; + type Title = St::Title; + type Path = St::Path; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `path` field - pub struct path(()); ///Marker type for the `content` field pub struct content(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `path` field + pub struct path(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -611,10 +611,10 @@ impl EntryBuilder { impl EntryBuilder where St: entry_state::State, - St::Path: entry_state::IsSet, St::Content: entry_state::IsSet, - St::CreatedAt: entry_state::IsSet, St::Title: entry_state::IsSet, + St::Path: entry_state::IsSet, + St::CreatedAt: entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> Entry { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/get_notebook_by_title.rs b/crates/jacquard-api/src/sh_weaver/notebook/get_notebook_by_title.rs index 2d209d04..9cac5c41 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/get_notebook_by_title.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/get_notebook_by_title.rs @@ -112,37 +112,37 @@ pub mod get_notebook_by_title_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Actor; type Title; + type Actor; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Actor = Unset; type Title = Unset; - } - ///State transition - sets the `actor` field to Set - pub struct SetActor(PhantomData St>); - impl sealed::Sealed for SetActor {} - impl State for SetActor { - type Actor = Set; - type Title = St::Title; + type Actor = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Actor = St::Actor; type Title = Set; + type Actor = St::Actor; + } + ///State transition - sets the `actor` field to Set + pub struct SetActor(PhantomData St>); + impl sealed::Sealed for SetActor {} + impl State for SetActor { + type Title = St::Title; + type Actor = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `actor` field - pub struct actor(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `actor` field + pub struct actor(()); } } @@ -212,8 +212,8 @@ where impl GetNotebookByTitleBuilder where St: get_notebook_by_title_state::State, - St::Actor: get_notebook_by_title_state::IsSet, St::Title: get_notebook_by_title_state::IsSet, + St::Actor: get_notebook_by_title_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetNotebookByTitle { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/page.rs b/crates/jacquard-api/src/sh_weaver/notebook/page.rs index 815c8907..a66a97da 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/page.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/page.rs @@ -124,50 +124,50 @@ pub mod page_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Authors; - type Notebook; type EntryList; + type Notebook; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Authors = Unset; - type Notebook = Unset; type EntryList = Unset; + type Notebook = Unset; } ///State transition - sets the `authors` field to Set pub struct SetAuthors(PhantomData St>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { type Authors = Set; - type Notebook = St::Notebook; - type EntryList = St::EntryList; - } - ///State transition - sets the `notebook` field to Set - pub struct SetNotebook(PhantomData St>); - impl sealed::Sealed for SetNotebook {} - impl State for SetNotebook { - type Authors = St::Authors; - type Notebook = Set; type EntryList = St::EntryList; + type Notebook = St::Notebook; } ///State transition - sets the `entry_list` field to Set pub struct SetEntryList(PhantomData St>); impl sealed::Sealed for SetEntryList {} impl State for SetEntryList { type Authors = St::Authors; - type Notebook = St::Notebook; type EntryList = Set; + type Notebook = St::Notebook; + } + ///State transition - sets the `notebook` field to Set + pub struct SetNotebook(PhantomData St>); + impl sealed::Sealed for SetNotebook {} + impl State for SetNotebook { + type Authors = St::Authors; + type EntryList = St::EntryList; + type Notebook = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `authors` field pub struct authors(()); - ///Marker type for the `notebook` field - pub struct notebook(()); ///Marker type for the `entry_list` field pub struct entry_list(()); + ///Marker type for the `notebook` field + pub struct notebook(()); } } @@ -283,8 +283,8 @@ impl PageBuilder where St: page_state::State, St::Authors: page_state::IsSet, - St::Notebook: page_state::IsSet, St::EntryList: page_state::IsSet, + St::Notebook: page_state::IsSet, { /// Build the final struct. pub fn build(self) -> Page { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/resolve_entry.rs b/crates/jacquard-api/src/sh_weaver/notebook/resolve_entry.rs index b948f3a3..485974b0 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/resolve_entry.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/resolve_entry.rs @@ -125,51 +125,51 @@ pub mod resolve_entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Entry; type Notebook; type Actor; - type Entry; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Entry = Unset; type Notebook = Unset; type Actor = Unset; - type Entry = Unset; + } + ///State transition - sets the `entry` field to Set + pub struct SetEntry(PhantomData St>); + impl sealed::Sealed for SetEntry {} + impl State for SetEntry { + type Entry = Set; + type Notebook = St::Notebook; + type Actor = St::Actor; } ///State transition - sets the `notebook` field to Set pub struct SetNotebook(PhantomData St>); impl sealed::Sealed for SetNotebook {} impl State for SetNotebook { + type Entry = St::Entry; type Notebook = Set; type Actor = St::Actor; - type Entry = St::Entry; } ///State transition - sets the `actor` field to Set pub struct SetActor(PhantomData St>); impl sealed::Sealed for SetActor {} impl State for SetActor { - type Notebook = St::Notebook; - type Actor = Set; type Entry = St::Entry; - } - ///State transition - sets the `entry` field to Set - pub struct SetEntry(PhantomData St>); - impl sealed::Sealed for SetEntry {} - impl State for SetEntry { type Notebook = St::Notebook; - type Actor = St::Actor; - type Entry = Set; + type Actor = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `entry` field + pub struct entry(()); ///Marker type for the `notebook` field pub struct notebook(()); ///Marker type for the `actor` field pub struct actor(()); - ///Marker type for the `entry` field - pub struct entry(()); } } @@ -258,9 +258,9 @@ where impl ResolveEntryBuilder where St: resolve_entry_state::State, + St::Entry: resolve_entry_state::IsSet, St::Notebook: resolve_entry_state::IsSet, St::Actor: resolve_entry_state::IsSet, - St::Entry: resolve_entry_state::IsSet, { /// Build the final struct. pub fn build(self) -> ResolveEntry { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/theme.rs b/crates/jacquard-api/src/sh_weaver/notebook/theme.rs index 3c5740c3..90406380 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/theme.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/theme.rs @@ -345,51 +345,51 @@ pub mod code_theme_file_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Content; type Name; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Content = Unset; type Name = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Content = St::Content; - type Name = St::Name; + type Did = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Did = St::Did; type Content = Set; type Name = St::Name; + type Did = St::Did; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Did = St::Did; type Content = St::Content; type Name = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Content = St::Content; + type Name = St::Name; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `content` field pub struct content(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -478,9 +478,9 @@ where impl CodeThemeFileBuilder where St: code_theme_file_state::State, - St::Did: code_theme_file_state::IsSet, St::Content: code_theme_file_state::IsSet, St::Name: code_theme_file_state::IsSet, + St::Did: code_theme_file_state::IsSet, { /// Build the final struct. pub fn build(self) -> CodeThemeFile { @@ -897,51 +897,51 @@ pub mod font_file_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Did; type Content; type Name; - type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Did = Unset; type Content = Unset; type Name = Unset; - type Did = Unset; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Did = Set; + type Content = St::Content; + type Name = St::Name; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { + type Did = St::Did; type Content = Set; type Name = St::Name; - type Did = St::Did; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Content = St::Content; - type Name = Set; type Did = St::Did; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { type Content = St::Content; - type Name = St::Name; - type Did = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `content` field pub struct content(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `did` field - pub struct did(()); } } @@ -1030,9 +1030,9 @@ where impl FontFileBuilder where St: font_file_state::State, + St::Did: font_file_state::IsSet, St::Content: font_file_state::IsSet, St::Name: font_file_state::IsSet, - St::Did: font_file_state::IsSet, { /// Build the final struct. pub fn build(self) -> FontFile { @@ -1084,50 +1084,50 @@ pub mod theme_fonts_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Heading; - type Monospace; type Body; + type Monospace; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Heading = Unset; - type Monospace = Unset; type Body = Unset; + type Monospace = Unset; } ///State transition - sets the `heading` field to Set pub struct SetHeading(PhantomData St>); impl sealed::Sealed for SetHeading {} impl State for SetHeading { type Heading = Set; - type Monospace = St::Monospace; - type Body = St::Body; - } - ///State transition - sets the `monospace` field to Set - pub struct SetMonospace(PhantomData St>); - impl sealed::Sealed for SetMonospace {} - impl State for SetMonospace { - type Heading = St::Heading; - type Monospace = Set; type Body = St::Body; + type Monospace = St::Monospace; } ///State transition - sets the `body` field to Set pub struct SetBody(PhantomData St>); impl sealed::Sealed for SetBody {} impl State for SetBody { type Heading = St::Heading; - type Monospace = St::Monospace; type Body = Set; + type Monospace = St::Monospace; + } + ///State transition - sets the `monospace` field to Set + pub struct SetMonospace(PhantomData St>); + impl sealed::Sealed for SetMonospace {} + impl State for SetMonospace { + type Heading = St::Heading; + type Body = St::Body; + type Monospace = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `heading` field pub struct heading(()); - ///Marker type for the `monospace` field - pub struct monospace(()); ///Marker type for the `body` field pub struct body(()); + ///Marker type for the `monospace` field + pub struct monospace(()); } } @@ -1221,8 +1221,8 @@ impl ThemeFontsBuilder where St: theme_fonts_state::State, St::Heading: theme_fonts_state::IsSet, - St::Monospace: theme_fonts_state::IsSet, St::Body: theme_fonts_state::IsSet, + St::Monospace: theme_fonts_state::IsSet, { /// Build the final struct. pub fn build(self) -> ThemeFonts { @@ -1272,105 +1272,105 @@ pub mod theme_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Spacing; + type DarkScheme; type LightScheme; + type Fonts; + type Spacing; type DarkCodeTheme; type LightCodeTheme; - type DarkScheme; - type Fonts; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Spacing = Unset; + type DarkScheme = Unset; type LightScheme = Unset; + type Fonts = Unset; + type Spacing = Unset; type DarkCodeTheme = Unset; type LightCodeTheme = Unset; - type DarkScheme = Unset; - type Fonts = Unset; } - ///State transition - sets the `spacing` field to Set - pub struct SetSpacing(PhantomData St>); - impl sealed::Sealed for SetSpacing {} - impl State for SetSpacing { - type Spacing = Set; + ///State transition - sets the `dark_scheme` field to Set + pub struct SetDarkScheme(PhantomData St>); + impl sealed::Sealed for SetDarkScheme {} + impl State for SetDarkScheme { + type DarkScheme = Set; type LightScheme = St::LightScheme; + type Fonts = St::Fonts; + type Spacing = St::Spacing; type DarkCodeTheme = St::DarkCodeTheme; type LightCodeTheme = St::LightCodeTheme; - type DarkScheme = St::DarkScheme; - type Fonts = St::Fonts; } ///State transition - sets the `light_scheme` field to Set pub struct SetLightScheme(PhantomData St>); impl sealed::Sealed for SetLightScheme {} impl State for SetLightScheme { - type Spacing = St::Spacing; + type DarkScheme = St::DarkScheme; type LightScheme = Set; + type Fonts = St::Fonts; + type Spacing = St::Spacing; type DarkCodeTheme = St::DarkCodeTheme; type LightCodeTheme = St::LightCodeTheme; + } + ///State transition - sets the `fonts` field to Set + pub struct SetFonts(PhantomData St>); + impl sealed::Sealed for SetFonts {} + impl State for SetFonts { type DarkScheme = St::DarkScheme; + type LightScheme = St::LightScheme; + type Fonts = Set; + type Spacing = St::Spacing; + type DarkCodeTheme = St::DarkCodeTheme; + type LightCodeTheme = St::LightCodeTheme; + } + ///State transition - sets the `spacing` field to Set + pub struct SetSpacing(PhantomData St>); + impl sealed::Sealed for SetSpacing {} + impl State for SetSpacing { + type DarkScheme = St::DarkScheme; + type LightScheme = St::LightScheme; type Fonts = St::Fonts; + type Spacing = Set; + type DarkCodeTheme = St::DarkCodeTheme; + type LightCodeTheme = St::LightCodeTheme; } ///State transition - sets the `dark_code_theme` field to Set pub struct SetDarkCodeTheme(PhantomData St>); impl sealed::Sealed for SetDarkCodeTheme {} impl State for SetDarkCodeTheme { - type Spacing = St::Spacing; + type DarkScheme = St::DarkScheme; type LightScheme = St::LightScheme; + type Fonts = St::Fonts; + type Spacing = St::Spacing; type DarkCodeTheme = Set; type LightCodeTheme = St::LightCodeTheme; - type DarkScheme = St::DarkScheme; - type Fonts = St::Fonts; } ///State transition - sets the `light_code_theme` field to Set pub struct SetLightCodeTheme(PhantomData St>); impl sealed::Sealed for SetLightCodeTheme {} impl State for SetLightCodeTheme { - type Spacing = St::Spacing; - type LightScheme = St::LightScheme; - type DarkCodeTheme = St::DarkCodeTheme; - type LightCodeTheme = Set; type DarkScheme = St::DarkScheme; - type Fonts = St::Fonts; - } - ///State transition - sets the `dark_scheme` field to Set - pub struct SetDarkScheme(PhantomData St>); - impl sealed::Sealed for SetDarkScheme {} - impl State for SetDarkScheme { - type Spacing = St::Spacing; type LightScheme = St::LightScheme; - type DarkCodeTheme = St::DarkCodeTheme; - type LightCodeTheme = St::LightCodeTheme; - type DarkScheme = Set; type Fonts = St::Fonts; - } - ///State transition - sets the `fonts` field to Set - pub struct SetFonts(PhantomData St>); - impl sealed::Sealed for SetFonts {} - impl State for SetFonts { type Spacing = St::Spacing; - type LightScheme = St::LightScheme; type DarkCodeTheme = St::DarkCodeTheme; - type LightCodeTheme = St::LightCodeTheme; - type DarkScheme = St::DarkScheme; - type Fonts = Set; + type LightCodeTheme = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `spacing` field - pub struct spacing(()); + ///Marker type for the `dark_scheme` field + pub struct dark_scheme(()); ///Marker type for the `light_scheme` field pub struct light_scheme(()); + ///Marker type for the `fonts` field + pub struct fonts(()); + ///Marker type for the `spacing` field + pub struct spacing(()); ///Marker type for the `dark_code_theme` field pub struct dark_code_theme(()); ///Marker type for the `light_code_theme` field pub struct light_code_theme(()); - ///Marker type for the `dark_scheme` field - pub struct dark_scheme(()); - ///Marker type for the `fonts` field - pub struct fonts(()); } } @@ -1537,12 +1537,12 @@ where impl ThemeBuilder where St: theme_state::State, - St::Spacing: theme_state::IsSet, + St::DarkScheme: theme_state::IsSet, St::LightScheme: theme_state::IsSet, + St::Fonts: theme_state::IsSet, + St::Spacing: theme_state::IsSet, St::DarkCodeTheme: theme_state::IsSet, St::LightCodeTheme: theme_state::IsSet, - St::DarkScheme: theme_state::IsSet, - St::Fonts: theme_state::IsSet, { /// Build the final struct. pub fn build(self) -> Theme { diff --git a/crates/jacquard-api/src/sh_weaver/notification.rs b/crates/jacquard-api/src/sh_weaver/notification.rs index 0b9d1e37..943cb49d 100644 --- a/crates/jacquard-api/src/sh_weaver/notification.rs +++ b/crates/jacquard-api/src/sh_weaver/notification.rs @@ -285,103 +285,103 @@ pub mod notification_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Cid; + type Uri; type Reason; - type IndexedAt; type IsRead; - type Uri; - type Cid; + type IndexedAt; type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Cid = Unset; + type Uri = Unset; type Reason = Unset; - type IndexedAt = Unset; type IsRead = Unset; - type Uri = Unset; - type Cid = Unset; + type IndexedAt = Unset; type Author = Unset; } - ///State transition - sets the `reason` field to Set - pub struct SetReason(PhantomData St>); - impl sealed::Sealed for SetReason {} - impl State for SetReason { - type Reason = Set; - type IndexedAt = St::IndexedAt; - type IsRead = St::IsRead; + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Cid = Set; type Uri = St::Uri; - type Cid = St::Cid; + type Reason = St::Reason; + type IsRead = St::IsRead; + type IndexedAt = St::IndexedAt; type Author = St::Author; } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = St::Cid; + type Uri = Set; type Reason = St::Reason; - type IndexedAt = Set; type IsRead = St::IsRead; - type Uri = St::Uri; + type IndexedAt = St::IndexedAt; + type Author = St::Author; + } + ///State transition - sets the `reason` field to Set + pub struct SetReason(PhantomData St>); + impl sealed::Sealed for SetReason {} + impl State for SetReason { type Cid = St::Cid; + type Uri = St::Uri; + type Reason = Set; + type IsRead = St::IsRead; + type IndexedAt = St::IndexedAt; type Author = St::Author; } ///State transition - sets the `is_read` field to Set pub struct SetIsRead(PhantomData St>); impl sealed::Sealed for SetIsRead {} impl State for SetIsRead { - type Reason = St::Reason; - type IndexedAt = St::IndexedAt; - type IsRead = Set; - type Uri = St::Uri; type Cid = St::Cid; - type Author = St::Author; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + type Uri = St::Uri; type Reason = St::Reason; + type IsRead = Set; type IndexedAt = St::IndexedAt; - type IsRead = St::IsRead; - type Uri = Set; - type Cid = St::Cid; type Author = St::Author; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Cid = St::Cid; + type Uri = St::Uri; type Reason = St::Reason; - type IndexedAt = St::IndexedAt; type IsRead = St::IsRead; - type Uri = St::Uri; - type Cid = Set; + type IndexedAt = Set; type Author = St::Author; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { + type Cid = St::Cid; + type Uri = St::Uri; type Reason = St::Reason; - type IndexedAt = St::IndexedAt; type IsRead = St::IsRead; - type Uri = St::Uri; - type Cid = St::Cid; + type IndexedAt = St::IndexedAt; type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `reason` field pub struct reason(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); ///Marker type for the `is_read` field pub struct is_read(()); - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `cid` field - pub struct cid(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `author` field pub struct author(()); } @@ -564,11 +564,11 @@ where impl NotificationBuilder where St: notification_state::State, + St::Cid: notification_state::IsSet, + St::Uri: notification_state::IsSet, St::Reason: notification_state::IsSet, - St::IndexedAt: notification_state::IsSet, St::IsRead: notification_state::IsSet, - St::Uri: notification_state::IsSet, - St::Cid: notification_state::IsSet, + St::IndexedAt: notification_state::IsSet, St::Author: notification_state::IsSet, { /// Build the final struct. @@ -863,85 +863,85 @@ pub mod notification_group_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Reason; type Actors; type Count; - type Subject; type MostRecentAt; - type Reason; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Reason = Unset; type Actors = Unset; type Count = Unset; - type Subject = Unset; type MostRecentAt = Unset; - type Reason = Unset; + type Subject = Unset; + } + ///State transition - sets the `reason` field to Set + pub struct SetReason(PhantomData St>); + impl sealed::Sealed for SetReason {} + impl State for SetReason { + type Reason = Set; + type Actors = St::Actors; + type Count = St::Count; + type MostRecentAt = St::MostRecentAt; + type Subject = St::Subject; } ///State transition - sets the `actors` field to Set pub struct SetActors(PhantomData St>); impl sealed::Sealed for SetActors {} impl State for SetActors { + type Reason = St::Reason; type Actors = Set; type Count = St::Count; - type Subject = St::Subject; type MostRecentAt = St::MostRecentAt; - type Reason = St::Reason; + type Subject = St::Subject; } ///State transition - sets the `count` field to Set pub struct SetCount(PhantomData St>); impl sealed::Sealed for SetCount {} impl State for SetCount { - type Actors = St::Actors; - type Count = Set; - type Subject = St::Subject; - type MostRecentAt = St::MostRecentAt; type Reason = St::Reason; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { type Actors = St::Actors; - type Count = St::Count; - type Subject = Set; + type Count = Set; type MostRecentAt = St::MostRecentAt; - type Reason = St::Reason; + type Subject = St::Subject; } ///State transition - sets the `most_recent_at` field to Set pub struct SetMostRecentAt(PhantomData St>); impl sealed::Sealed for SetMostRecentAt {} impl State for SetMostRecentAt { + type Reason = St::Reason; type Actors = St::Actors; type Count = St::Count; - type Subject = St::Subject; type MostRecentAt = Set; - type Reason = St::Reason; + type Subject = St::Subject; } - ///State transition - sets the `reason` field to Set - pub struct SetReason(PhantomData St>); - impl sealed::Sealed for SetReason {} - impl State for SetReason { + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Reason = St::Reason; type Actors = St::Actors; type Count = St::Count; - type Subject = St::Subject; type MostRecentAt = St::MostRecentAt; - type Reason = Set; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `reason` field + pub struct reason(()); ///Marker type for the `actors` field pub struct actors(()); ///Marker type for the `count` field pub struct count(()); - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `most_recent_at` field pub struct most_recent_at(()); - ///Marker type for the `reason` field - pub struct reason(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -1088,11 +1088,11 @@ where impl NotificationGroupBuilder where St: notification_group_state::State, + St::Reason: notification_group_state::IsSet, St::Actors: notification_group_state::IsSet, St::Count: notification_group_state::IsSet, - St::Subject: notification_group_state::IsSet, St::MostRecentAt: notification_group_state::IsSet, - St::Reason: notification_group_state::IsSet, + St::Subject: notification_group_state::IsSet, { /// Build the final struct. pub fn build(self) -> NotificationGroup { @@ -1133,51 +1133,51 @@ pub mod subscription_update_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type UpdatedAt; type Notebook; type NewEntries; - type UpdatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type UpdatedAt = Unset; type Notebook = Unset; type NewEntries = Unset; - type UpdatedAt = Unset; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type UpdatedAt = Set; + type Notebook = St::Notebook; + type NewEntries = St::NewEntries; } ///State transition - sets the `notebook` field to Set pub struct SetNotebook(PhantomData St>); impl sealed::Sealed for SetNotebook {} impl State for SetNotebook { + type UpdatedAt = St::UpdatedAt; type Notebook = Set; type NewEntries = St::NewEntries; - type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `new_entries` field to Set pub struct SetNewEntries(PhantomData St>); impl sealed::Sealed for SetNewEntries {} impl State for SetNewEntries { - type Notebook = St::Notebook; - type NewEntries = Set; type UpdatedAt = St::UpdatedAt; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { type Notebook = St::Notebook; - type NewEntries = St::NewEntries; - type UpdatedAt = Set; + type NewEntries = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `updated_at` field + pub struct updated_at(()); ///Marker type for the `notebook` field pub struct notebook(()); ///Marker type for the `new_entries` field pub struct new_entries(()); - ///Marker type for the `updated_at` field - pub struct updated_at(()); } } @@ -1305,9 +1305,9 @@ impl< impl SubscriptionUpdateViewBuilder where St: subscription_update_view_state::State, + St::UpdatedAt: subscription_update_view_state::IsSet, St::Notebook: subscription_update_view_state::IsSet, St::NewEntries: subscription_update_view_state::IsSet, - St::UpdatedAt: subscription_update_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> SubscriptionUpdateView { diff --git a/crates/jacquard-api/src/sh_weaver/publish/blob.rs b/crates/jacquard-api/src/sh_weaver/publish/blob.rs index 7bca5588..b308249e 100644 --- a/crates/jacquard-api/src/sh_weaver/publish/blob.rs +++ b/crates/jacquard-api/src/sh_weaver/publish/blob.rs @@ -166,37 +166,37 @@ pub mod blob_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Path; type Upload; + type Path; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Path = Unset; type Upload = Unset; - } - ///State transition - sets the `path` field to Set - pub struct SetPath(PhantomData St>); - impl sealed::Sealed for SetPath {} - impl State for SetPath { - type Path = Set; - type Upload = St::Upload; + type Path = Unset; } ///State transition - sets the `upload` field to Set pub struct SetUpload(PhantomData St>); impl sealed::Sealed for SetUpload {} impl State for SetUpload { - type Path = St::Path; type Upload = Set; + type Path = St::Path; + } + ///State transition - sets the `path` field to Set + pub struct SetPath(PhantomData St>); + impl sealed::Sealed for SetPath {} + impl State for SetPath { + type Upload = St::Upload; + type Path = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `path` field - pub struct path(()); ///Marker type for the `upload` field pub struct upload(()); + ///Marker type for the `path` field + pub struct path(()); } } @@ -266,8 +266,8 @@ where impl BlobBuilder where St: blob_state::State, - St::Path: blob_state::IsSet, St::Upload: blob_state::IsSet, + St::Path: blob_state::IsSet, { /// Build the final struct. pub fn build(self) -> Blob { diff --git a/crates/jacquard-api/src/site_standard/document.rs b/crates/jacquard-api/src/site_standard/document.rs index 39946c4b..046b7599 100644 --- a/crates/jacquard-api/src/site_standard/document.rs +++ b/crates/jacquard-api/src/site_standard/document.rs @@ -224,49 +224,49 @@ pub mod document_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type PublishedAt; + type Title; type Site; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type PublishedAt = Unset; + type Title = Unset; type Site = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type PublishedAt = St::PublishedAt; - type Site = St::Site; - } ///State transition - sets the `published_at` field to Set pub struct SetPublishedAt(PhantomData St>); impl sealed::Sealed for SetPublishedAt {} impl State for SetPublishedAt { - type Title = St::Title; type PublishedAt = Set; + type Title = St::Title; + type Site = St::Site; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type PublishedAt = St::PublishedAt; + type Title = Set; type Site = St::Site; } ///State transition - sets the `site` field to Set pub struct SetSite(PhantomData St>); impl sealed::Sealed for SetSite {} impl State for SetSite { - type Title = St::Title; type PublishedAt = St::PublishedAt; + type Title = St::Title; type Site = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `published_at` field pub struct published_at(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `site` field pub struct site(()); } @@ -515,8 +515,8 @@ impl DocumentBuilder { impl DocumentBuilder where St: document_state::State, - St::Title: document_state::IsSet, St::PublishedAt: document_state::IsSet, + St::Title: document_state::IsSet, St::Site: document_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/site_standard/publication.rs b/crates/jacquard-api/src/site_standard/publication.rs index 860ee5d1..99c3c362 100644 --- a/crates/jacquard-api/src/site_standard/publication.rs +++ b/crates/jacquard-api/src/site_standard/publication.rs @@ -252,37 +252,37 @@ pub mod publication_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Url; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Url = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Url = St::Url; + type Name = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Name = St::Name; type Url = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Url = St::Url; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -431,8 +431,8 @@ where impl PublicationBuilder where St: publication_state::State, - St::Name: publication_state::IsSet, St::Url: publication_state::IsSet, + St::Name: publication_state::IsSet, { /// Build the final struct. pub fn build(self) -> Publication { diff --git a/crates/jacquard-api/src/site_standard/theme/basic.rs b/crates/jacquard-api/src/site_standard/theme/basic.rs index 97d05ed8..df42e7ef 100644 --- a/crates/jacquard-api/src/site_standard/theme/basic.rs +++ b/crates/jacquard-api/src/site_standard/theme/basic.rs @@ -62,66 +62,66 @@ pub mod basic_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Foreground; + type AccentForeground; type Accent; type Background; - type AccentForeground; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Foreground = Unset; + type AccentForeground = Unset; type Accent = Unset; type Background = Unset; - type AccentForeground = Unset; } ///State transition - sets the `foreground` field to Set pub struct SetForeground(PhantomData St>); impl sealed::Sealed for SetForeground {} impl State for SetForeground { type Foreground = Set; + type AccentForeground = St::AccentForeground; + type Accent = St::Accent; + type Background = St::Background; + } + ///State transition - sets the `accent_foreground` field to Set + pub struct SetAccentForeground(PhantomData St>); + impl sealed::Sealed for SetAccentForeground {} + impl State for SetAccentForeground { + type Foreground = St::Foreground; + type AccentForeground = Set; type Accent = St::Accent; type Background = St::Background; - type AccentForeground = St::AccentForeground; } ///State transition - sets the `accent` field to Set pub struct SetAccent(PhantomData St>); impl sealed::Sealed for SetAccent {} impl State for SetAccent { type Foreground = St::Foreground; + type AccentForeground = St::AccentForeground; type Accent = Set; type Background = St::Background; - type AccentForeground = St::AccentForeground; } ///State transition - sets the `background` field to Set pub struct SetBackground(PhantomData St>); impl sealed::Sealed for SetBackground {} impl State for SetBackground { type Foreground = St::Foreground; - type Accent = St::Accent; - type Background = Set; type AccentForeground = St::AccentForeground; - } - ///State transition - sets the `accent_foreground` field to Set - pub struct SetAccentForeground(PhantomData St>); - impl sealed::Sealed for SetAccentForeground {} - impl State for SetAccentForeground { - type Foreground = St::Foreground; type Accent = St::Accent; - type Background = St::Background; - type AccentForeground = Set; + type Background = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `foreground` field pub struct foreground(()); + ///Marker type for the `accent_foreground` field + pub struct accent_foreground(()); ///Marker type for the `accent` field pub struct accent(()); ///Marker type for the `background` field pub struct background(()); - ///Marker type for the `accent_foreground` field - pub struct accent_foreground(()); } } @@ -230,9 +230,9 @@ impl BasicBuilder where St: basic_state::State, St::Foreground: basic_state::IsSet, + St::AccentForeground: basic_state::IsSet, St::Accent: basic_state::IsSet, St::Background: basic_state::IsSet, - St::AccentForeground: basic_state::IsSet, { /// Build the final struct. pub fn build(self) -> Basic { diff --git a/crates/jacquard-api/src/site_standard/theme/color.rs b/crates/jacquard-api/src/site_standard/theme/color.rs index e11c346f..d12a1508 100644 --- a/crates/jacquard-api/src/site_standard/theme/color.rs +++ b/crates/jacquard-api/src/site_standard/theme/color.rs @@ -227,50 +227,50 @@ pub mod rgb_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type B; - type G; type R; + type G; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type B = Unset; - type G = Unset; type R = Unset; + type G = Unset; } ///State transition - sets the `b` field to Set pub struct SetB(PhantomData St>); impl sealed::Sealed for SetB {} impl State for SetB { type B = Set; - type G = St::G; - type R = St::R; - } - ///State transition - sets the `g` field to Set - pub struct SetG(PhantomData St>); - impl sealed::Sealed for SetG {} - impl State for SetG { - type B = St::B; - type G = Set; type R = St::R; + type G = St::G; } ///State transition - sets the `r` field to Set pub struct SetR(PhantomData St>); impl sealed::Sealed for SetR {} impl State for SetR { type B = St::B; - type G = St::G; type R = Set; + type G = St::G; + } + ///State transition - sets the `g` field to Set + pub struct SetG(PhantomData St>); + impl sealed::Sealed for SetG {} + impl State for SetG { + type B = St::B; + type R = St::R; + type G = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `b` field pub struct b(()); - ///Marker type for the `g` field - pub struct g(()); ///Marker type for the `r` field pub struct r(()); + ///Marker type for the `g` field + pub struct g(()); } } @@ -351,8 +351,8 @@ impl RgbBuilder where St: rgb_state::State, St::B: rgb_state::IsSet, - St::G: rgb_state::IsSet, St::R: rgb_state::IsSet, + St::G: rgb_state::IsSet, { /// Build the final struct. pub fn build(self) -> Rgb { @@ -490,65 +490,65 @@ pub mod rgba_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type G; type R; type B; - type G; type A; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type G = Unset; type R = Unset; type B = Unset; - type G = Unset; type A = Unset; } + ///State transition - sets the `g` field to Set + pub struct SetG(PhantomData St>); + impl sealed::Sealed for SetG {} + impl State for SetG { + type G = Set; + type R = St::R; + type B = St::B; + type A = St::A; + } ///State transition - sets the `r` field to Set pub struct SetR(PhantomData St>); impl sealed::Sealed for SetR {} impl State for SetR { + type G = St::G; type R = Set; type B = St::B; - type G = St::G; type A = St::A; } ///State transition - sets the `b` field to Set pub struct SetB(PhantomData St>); impl sealed::Sealed for SetB {} impl State for SetB { - type R = St::R; - type B = Set; type G = St::G; - type A = St::A; - } - ///State transition - sets the `g` field to Set - pub struct SetG(PhantomData St>); - impl sealed::Sealed for SetG {} - impl State for SetG { type R = St::R; - type B = St::B; - type G = Set; + type B = Set; type A = St::A; } ///State transition - sets the `a` field to Set pub struct SetA(PhantomData St>); impl sealed::Sealed for SetA {} impl State for SetA { + type G = St::G; type R = St::R; type B = St::B; - type G = St::G; type A = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `g` field + pub struct g(()); ///Marker type for the `r` field pub struct r(()); ///Marker type for the `b` field pub struct b(()); - ///Marker type for the `g` field - pub struct g(()); ///Marker type for the `a` field pub struct a(()); } @@ -646,9 +646,9 @@ where impl RgbaBuilder where St: rgba_state::State, + St::G: rgba_state::IsSet, St::R: rgba_state::IsSet, St::B: rgba_state::IsSet, - St::G: rgba_state::IsSet, St::A: rgba_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/social_clippr/actor.rs b/crates/jacquard-api/src/social_clippr/actor.rs index 9235d58b..a8c59864 100644 --- a/crates/jacquard-api/src/social_clippr/actor.rs +++ b/crates/jacquard-api/src/social_clippr/actor.rs @@ -252,51 +252,51 @@ pub mod profile_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; - type Handle; type DisplayName; + type Handle; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; - type Handle = Unset; type DisplayName = Unset; + type Handle = Unset; + type Did = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; + ///State transition - sets the `display_name` field to Set + pub struct SetDisplayName(PhantomData St>); + impl sealed::Sealed for SetDisplayName {} + impl State for SetDisplayName { + type DisplayName = Set; type Handle = St::Handle; - type DisplayName = St::DisplayName; + type Did = St::Did; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = St::Did; - type Handle = Set; type DisplayName = St::DisplayName; - } - ///State transition - sets the `display_name` field to Set - pub struct SetDisplayName(PhantomData St>); - impl sealed::Sealed for SetDisplayName {} - impl State for SetDisplayName { + type Handle = Set; type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type DisplayName = St::DisplayName; type Handle = St::Handle; - type DisplayName = Set; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); - ///Marker type for the `handle` field - pub struct handle(()); ///Marker type for the `display_name` field pub struct display_name(()); + ///Marker type for the `handle` field + pub struct handle(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -431,9 +431,9 @@ where impl ProfileViewBuilder where St: profile_view_state::State, - St::Did: profile_view_state::IsSet, - St::Handle: profile_view_state::IsSet, St::DisplayName: profile_view_state::IsSet, + St::Handle: profile_view_state::IsSet, + St::Did: profile_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProfileView { diff --git a/crates/jacquard-api/src/social_clippr/feed.rs b/crates/jacquard-api/src/social_clippr/feed.rs index 6fc88086..f21e3fa7 100644 --- a/crates/jacquard-api/src/social_clippr/feed.rs +++ b/crates/jacquard-api/src/social_clippr/feed.rs @@ -112,85 +112,85 @@ pub mod clip_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; type IndexedAt; type Author; - type Record; - type Uri; type Cid; + type Record; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; type IndexedAt = Unset; type Author = Unset; - type Record = Unset; - type Uri = Unset; type Cid = Unset; + type Record = Unset; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; + type IndexedAt = St::IndexedAt; + type Author = St::Author; + type Cid = St::Cid; + type Record = St::Record; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { + type Uri = St::Uri; type IndexedAt = Set; type Author = St::Author; - type Record = St::Record; - type Uri = St::Uri; type Cid = St::Cid; + type Record = St::Record; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type IndexedAt = St::IndexedAt; - type Author = Set; - type Record = St::Record; type Uri = St::Uri; - type Cid = St::Cid; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { type IndexedAt = St::IndexedAt; - type Author = St::Author; - type Record = Set; - type Uri = St::Uri; + type Author = Set; type Cid = St::Cid; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type IndexedAt = St::IndexedAt; - type Author = St::Author; type Record = St::Record; - type Uri = Set; - type Cid = St::Cid; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Uri = St::Uri; type IndexedAt = St::IndexedAt; type Author = St::Author; + type Cid = Set; type Record = St::Record; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { type Uri = St::Uri; - type Cid = Set; + type IndexedAt = St::IndexedAt; + type Author = St::Author; + type Cid = St::Cid; + type Record = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); ///Marker type for the `author` field pub struct author(()); - ///Marker type for the `record` field - pub struct record(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `record` field + pub struct record(()); } } @@ -323,11 +323,11 @@ where impl ClipViewBuilder where St: clip_view_state::State, + St::Uri: clip_view_state::IsSet, St::IndexedAt: clip_view_state::IsSet, St::Author: clip_view_state::IsSet, - St::Record: clip_view_state::IsSet, - St::Uri: clip_view_state::IsSet, St::Cid: clip_view_state::IsSet, + St::Record: clip_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ClipView { @@ -511,85 +511,85 @@ pub mod tag_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Record; - type Author; type Cid; - type Uri; type IndexedAt; + type Author; + type Uri; + type Record; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Record = Unset; - type Author = Unset; type Cid = Unset; - type Uri = Unset; type IndexedAt = Unset; + type Author = Unset; + type Uri = Unset; + type Record = Unset; } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Record = Set; + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Cid = Set; + type IndexedAt = St::IndexedAt; type Author = St::Author; + type Uri = St::Uri; + type Record = St::Record; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { type Cid = St::Cid; + type IndexedAt = Set; + type Author = St::Author; type Uri = St::Uri; - type IndexedAt = St::IndexedAt; + type Record = St::Record; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Record = St::Record; - type Author = Set; type Cid = St::Cid; - type Uri = St::Uri; type IndexedAt = St::IndexedAt; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Record = St::Record; - type Author = St::Author; - type Cid = Set; + type Author = Set; type Uri = St::Uri; - type IndexedAt = St::IndexedAt; + type Record = St::Record; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Record = St::Record; - type Author = St::Author; type Cid = St::Cid; - type Uri = Set; type IndexedAt = St::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type Record = St::Record; type Author = St::Author; + type Uri = Set; + type Record = St::Record; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { type Cid = St::Cid; + type IndexedAt = St::IndexedAt; + type Author = St::Author; type Uri = St::Uri; - type IndexedAt = Set; + type Record = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `record` field - pub struct record(()); - ///Marker type for the `author` field - pub struct author(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); + ///Marker type for the `author` field + pub struct author(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `record` field + pub struct record(()); } } @@ -722,11 +722,11 @@ where impl TagViewBuilder where St: tag_view_state::State, - St::Record: tag_view_state::IsSet, - St::Author: tag_view_state::IsSet, St::Cid: tag_view_state::IsSet, - St::Uri: tag_view_state::IsSet, St::IndexedAt: tag_view_state::IsSet, + St::Author: tag_view_state::IsSet, + St::Uri: tag_view_state::IsSet, + St::Record: tag_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> TagView { diff --git a/crates/jacquard-api/src/social_clippr/feed/clip.rs b/crates/jacquard-api/src/social_clippr/feed/clip.rs index fceb3c1d..a931030d 100644 --- a/crates/jacquard-api/src/social_clippr/feed/clip.rs +++ b/crates/jacquard-api/src/social_clippr/feed/clip.rs @@ -247,85 +247,85 @@ pub mod clip_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Title; - type Url; - type Description; type Unlisted; + type CreatedAt; + type Description; + type Url; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Title = Unset; - type Url = Unset; - type Description = Unset; type Unlisted = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Title = St::Title; - type Url = St::Url; - type Description = St::Description; - type Unlisted = St::Unlisted; + type CreatedAt = Unset; + type Description = Unset; + type Url = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type CreatedAt = St::CreatedAt; type Title = Set; - type Url = St::Url; - type Description = St::Description; type Unlisted = St::Unlisted; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { type CreatedAt = St::CreatedAt; + type Description = St::Description; + type Url = St::Url; + } + ///State transition - sets the `unlisted` field to Set + pub struct SetUnlisted(PhantomData St>); + impl sealed::Sealed for SetUnlisted {} + impl State for SetUnlisted { type Title = St::Title; - type Url = Set; + type Unlisted = Set; + type CreatedAt = St::CreatedAt; type Description = St::Description; + type Url = St::Url; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Title = St::Title; type Unlisted = St::Unlisted; + type CreatedAt = Set; + type Description = St::Description; + type Url = St::Url; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type CreatedAt = St::CreatedAt; type Title = St::Title; - type Url = St::Url; - type Description = Set; type Unlisted = St::Unlisted; - } - ///State transition - sets the `unlisted` field to Set - pub struct SetUnlisted(PhantomData St>); - impl sealed::Sealed for SetUnlisted {} - impl State for SetUnlisted { type CreatedAt = St::CreatedAt; - type Title = St::Title; + type Description = Set; type Url = St::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type Title = St::Title; + type Unlisted = St::Unlisted; + type CreatedAt = St::CreatedAt; type Description = St::Description; - type Unlisted = Set; + type Url = 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 `title` field pub struct title(()); - ///Marker type for the `url` field - pub struct url(()); - ///Marker type for the `description` field - pub struct description(()); ///Marker type for the `unlisted` field pub struct unlisted(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `description` field + pub struct description(()); + ///Marker type for the `url` field + pub struct url(()); } } @@ -514,11 +514,11 @@ where impl ClipBuilder where St: clip_state::State, - St::CreatedAt: clip_state::IsSet, St::Title: clip_state::IsSet, - St::Url: clip_state::IsSet, - St::Description: clip_state::IsSet, St::Unlisted: clip_state::IsSet, + St::CreatedAt: clip_state::IsSet, + St::Description: clip_state::IsSet, + St::Url: clip_state::IsSet, { /// Build the final struct. pub fn build(self) -> Clip { diff --git a/crates/jacquard-api/src/social_clippr/feed/tag.rs b/crates/jacquard-api/src/social_clippr/feed/tag.rs index c43e4cde..25ddd5dc 100644 --- a/crates/jacquard-api/src/social_clippr/feed/tag.rs +++ b/crates/jacquard-api/src/social_clippr/feed/tag.rs @@ -188,37 +188,37 @@ pub mod tag_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = 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 `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -311,8 +311,8 @@ where impl TagBuilder where St: tag_state::State, - St::CreatedAt: tag_state::IsSet, St::Name: tag_state::IsSet, + St::CreatedAt: tag_state::IsSet, { /// Build the final struct. pub fn build(self) -> Tag { diff --git a/crates/jacquard-api/src/social_colibri/approval.rs b/crates/jacquard-api/src/social_colibri/approval.rs index b2c74544..1f3e14bc 100644 --- a/crates/jacquard-api/src/social_colibri/approval.rs +++ b/crates/jacquard-api/src/social_colibri/approval.rs @@ -114,49 +114,49 @@ pub mod approval_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Community; type CreatedAt; + type Community; type Membership; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Community = Unset; type CreatedAt = Unset; + type Community = Unset; type Membership = Unset; } - ///State transition - sets the `community` field to Set - pub struct SetCommunity(PhantomData St>); - impl sealed::Sealed for SetCommunity {} - impl State for SetCommunity { - type Community = Set; - type CreatedAt = St::CreatedAt; - type Membership = St::Membership; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Community = St::Community; type CreatedAt = Set; + type Community = St::Community; + type Membership = St::Membership; + } + ///State transition - sets the `community` field to Set + pub struct SetCommunity(PhantomData St>); + impl sealed::Sealed for SetCommunity {} + impl State for SetCommunity { + type CreatedAt = St::CreatedAt; + type Community = Set; type Membership = St::Membership; } ///State transition - sets the `membership` field to Set pub struct SetMembership(PhantomData St>); impl sealed::Sealed for SetMembership {} impl State for SetMembership { - type Community = St::Community; type CreatedAt = St::CreatedAt; + type Community = St::Community; type Membership = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `community` field - pub struct community(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `community` field + pub struct community(()); ///Marker type for the `membership` field pub struct membership(()); } @@ -247,8 +247,8 @@ where impl ApprovalBuilder where St: approval_state::State, - St::Community: approval_state::IsSet, St::CreatedAt: approval_state::IsSet, + St::Community: approval_state::IsSet, St::Membership: approval_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/social_drydown/fragrance.rs b/crates/jacquard-api/src/social_drydown/fragrance.rs index ac5ad67d..ea767e95 100644 --- a/crates/jacquard-api/src/social_drydown/fragrance.rs +++ b/crates/jacquard-api/src/social_drydown/fragrance.rs @@ -163,50 +163,50 @@ pub mod fragrance_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Name; - type CreatedAt; type House; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Name = Unset; - type CreatedAt = Unset; type House = Unset; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { type Name = Set; - type CreatedAt = St::CreatedAt; - type House = St::House; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Name = St::Name; - type CreatedAt = Set; type House = St::House; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `house` field to Set pub struct SetHouse(PhantomData St>); impl sealed::Sealed for SetHouse {} impl State for SetHouse { type Name = St::Name; - type CreatedAt = St::CreatedAt; type House = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type House = St::House; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `house` field pub struct house(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -328,8 +328,8 @@ impl FragranceBuilder where St: fragrance_state::State, St::Name: fragrance_state::IsSet, - St::CreatedAt: fragrance_state::IsSet, St::House: fragrance_state::IsSet, + St::CreatedAt: fragrance_state::IsSet, { /// Build the final struct. pub fn build(self) -> Fragrance { diff --git a/crates/jacquard-api/src/social_drydown/house.rs b/crates/jacquard-api/src/social_drydown/house.rs index dc0c6327..074181df 100644 --- a/crates/jacquard-api/src/social_drydown/house.rs +++ b/crates/jacquard-api/src/social_drydown/house.rs @@ -139,37 +139,37 @@ pub mod house_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = 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 `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -252,8 +252,8 @@ impl HouseBuilder { impl HouseBuilder where St: house_state::State, - St::CreatedAt: house_state::IsSet, St::Name: house_state::IsSet, + St::CreatedAt: house_state::IsSet, { /// Build the final struct. pub fn build(self) -> House { diff --git a/crates/jacquard-api/src/social_drydown/review.rs b/crates/jacquard-api/src/social_drydown/review.rs index 27dcc2be..a8740b1b 100644 --- a/crates/jacquard-api/src/social_drydown/review.rs +++ b/crates/jacquard-api/src/social_drydown/review.rs @@ -370,37 +370,37 @@ pub mod review_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Fragrance; type CreatedAt; + type Fragrance; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Fragrance = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `fragrance` field to Set - pub struct SetFragrance(PhantomData St>); - impl sealed::Sealed for SetFragrance {} - impl State for SetFragrance { - type Fragrance = Set; - type CreatedAt = St::CreatedAt; + type Fragrance = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Fragrance = St::Fragrance; type CreatedAt = Set; + type Fragrance = St::Fragrance; + } + ///State transition - sets the `fragrance` field to Set + pub struct SetFragrance(PhantomData St>); + impl sealed::Sealed for SetFragrance {} + impl State for SetFragrance { + type CreatedAt = St::CreatedAt; + type Fragrance = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `fragrance` field - pub struct fragrance(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `fragrance` field + pub struct fragrance(()); } } @@ -746,8 +746,8 @@ impl ReviewBuilder { impl ReviewBuilder where St: review_state::State, - St::Fragrance: review_state::IsSet, St::CreatedAt: review_state::IsSet, + St::Fragrance: review_state::IsSet, { /// Build the final struct. pub fn build(self) -> Review { diff --git a/crates/jacquard-api/src/social_grain/actor.rs b/crates/jacquard-api/src/social_grain/actor.rs index 9b41dd7a..a8c4d180 100644 --- a/crates/jacquard-api/src/social_grain/actor.rs +++ b/crates/jacquard-api/src/social_grain/actor.rs @@ -117,37 +117,37 @@ pub mod profile_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Handle; type Did; + type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Handle = Unset; type Did = Unset; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData St>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Handle = Set; - type Did = St::Did; + type Handle = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Handle = St::Handle; type Did = Set; + type Handle = St::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData St>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type Did = St::Did; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `handle` field - pub struct handle(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `handle` field + pub struct handle(()); } } @@ -290,8 +290,8 @@ impl ProfileViewBuilder { impl ProfileViewBuilder where St: profile_view_state::State, - St::Handle: profile_view_state::IsSet, St::Did: profile_view_state::IsSet, + St::Handle: profile_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ProfileView { diff --git a/crates/jacquard-api/src/social_grain/gallery.rs b/crates/jacquard-api/src/social_grain/gallery.rs index 438fd238..1540e664 100644 --- a/crates/jacquard-api/src/social_grain/gallery.rs +++ b/crates/jacquard-api/src/social_grain/gallery.rs @@ -410,84 +410,84 @@ pub mod gallery_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Record; + type Creator; type IndexedAt; - type Cid; type Uri; - type Creator; + type Cid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Record = Unset; + type Creator = Unset; type IndexedAt = Unset; - type Cid = Unset; type Uri = Unset; - type Creator = Unset; + type Cid = Unset; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData St>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { type Record = Set; + type Creator = St::Creator; type IndexedAt = St::IndexedAt; + type Uri = St::Uri; type Cid = St::Cid; + } + ///State transition - sets the `creator` field to Set + pub struct SetCreator(PhantomData St>); + impl sealed::Sealed for SetCreator {} + impl State for SetCreator { + type Record = St::Record; + type Creator = Set; + type IndexedAt = St::IndexedAt; type Uri = St::Uri; - type Creator = St::Creator; + type Cid = St::Cid; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { type Record = St::Record; - type IndexedAt = Set; - type Cid = St::Cid; - type Uri = St::Uri; type Creator = St::Creator; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Record = St::Record; - type IndexedAt = St::IndexedAt; - type Cid = Set; + type IndexedAt = Set; type Uri = St::Uri; - type Creator = St::Creator; + type Cid = St::Cid; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Record = St::Record; + type Creator = St::Creator; type IndexedAt = St::IndexedAt; - type Cid = St::Cid; type Uri = Set; - type Creator = St::Creator; + type Cid = St::Cid; } - ///State transition - sets the `creator` field to Set - pub struct SetCreator(PhantomData St>); - impl sealed::Sealed for SetCreator {} - impl State for SetCreator { + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { type Record = St::Record; + type Creator = St::Creator; type IndexedAt = St::IndexedAt; - type Cid = St::Cid; type Uri = St::Uri; - type Creator = Set; + type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `creator` field + pub struct creator(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `creator` field - pub struct creator(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -649,10 +649,10 @@ impl GalleryViewBuilder where St: gallery_view_state::State, St::Record: gallery_view_state::IsSet, + St::Creator: gallery_view_state::IsSet, St::IndexedAt: gallery_view_state::IsSet, - St::Cid: gallery_view_state::IsSet, St::Uri: gallery_view_state::IsSet, - St::Creator: gallery_view_state::IsSet, + St::Cid: gallery_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> GalleryView { diff --git a/crates/jacquard-api/src/social_grain/gallery/item.rs b/crates/jacquard-api/src/social_grain/gallery/item.rs index ef818972..24b34cd4 100644 --- a/crates/jacquard-api/src/social_grain/gallery/item.rs +++ b/crates/jacquard-api/src/social_grain/gallery/item.rs @@ -120,51 +120,51 @@ pub mod item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Gallery; - type CreatedAt; type Item; + type CreatedAt; + type Gallery; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Gallery = Unset; - type CreatedAt = Unset; type Item = Unset; + type CreatedAt = Unset; + type Gallery = Unset; } - ///State transition - sets the `gallery` field to Set - pub struct SetGallery(PhantomData St>); - impl sealed::Sealed for SetGallery {} - impl State for SetGallery { - type Gallery = Set; + ///State transition - sets the `item` field to Set + pub struct SetItem(PhantomData St>); + impl sealed::Sealed for SetItem {} + impl State for SetItem { + type Item = Set; type CreatedAt = St::CreatedAt; - type Item = St::Item; + type Gallery = St::Gallery; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Gallery = St::Gallery; - type CreatedAt = Set; type Item = St::Item; - } - ///State transition - sets the `item` field to Set - pub struct SetItem(PhantomData St>); - impl sealed::Sealed for SetItem {} - impl State for SetItem { + type CreatedAt = Set; type Gallery = St::Gallery; + } + ///State transition - sets the `gallery` field to Set + pub struct SetGallery(PhantomData St>); + impl sealed::Sealed for SetGallery {} + impl State for SetGallery { + type Item = St::Item; type CreatedAt = St::CreatedAt; - type Item = Set; + type Gallery = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `gallery` field - pub struct gallery(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `item` field pub struct item(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `gallery` field + pub struct gallery(()); } } @@ -266,9 +266,9 @@ impl ItemBuilder { impl ItemBuilder where St: item_state::State, - St::Gallery: item_state::IsSet, - St::CreatedAt: item_state::IsSet, St::Item: item_state::IsSet, + St::CreatedAt: item_state::IsSet, + St::Gallery: item_state::IsSet, { /// Build the final struct. pub fn build(self) -> Item { diff --git a/crates/jacquard-api/src/social_grain/photo.rs b/crates/jacquard-api/src/social_grain/photo.rs index ac3b3af5..7cd45c34 100644 --- a/crates/jacquard-api/src/social_grain/photo.rs +++ b/crates/jacquard-api/src/social_grain/photo.rs @@ -247,37 +247,37 @@ pub mod photo_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Alt; type Photo; + type Alt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Alt = Unset; type Photo = Unset; - } - ///State transition - sets the `alt` field to Set - pub struct SetAlt(PhantomData St>); - impl sealed::Sealed for SetAlt {} - impl State for SetAlt { - type Alt = Set; - type Photo = St::Photo; + type Alt = Unset; } ///State transition - sets the `photo` field to Set pub struct SetPhoto(PhantomData St>); impl sealed::Sealed for SetPhoto {} impl State for SetPhoto { - type Alt = St::Alt; type Photo = Set; + type Alt = St::Alt; + } + ///State transition - sets the `alt` field to Set + pub struct SetAlt(PhantomData St>); + impl sealed::Sealed for SetAlt {} + impl State for SetAlt { + type Photo = St::Photo; + type Alt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `alt` field - pub struct alt(()); ///Marker type for the `photo` field pub struct photo(()); + ///Marker type for the `alt` field + pub struct alt(()); } } @@ -373,8 +373,8 @@ where impl PhotoBuilder where St: photo_state::State, - St::Alt: photo_state::IsSet, St::Photo: photo_state::IsSet, + St::Alt: photo_state::IsSet, { /// Build the final struct. pub fn build(self) -> Photo { @@ -1000,85 +1000,85 @@ pub mod photo_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; - type Thumb; type Alt; - type Uri; type Fullsize; + type Uri; + type Cid; + type Thumb; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; - type Thumb = Unset; type Alt = Unset; - type Uri = Unset; type Fullsize = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Thumb = St::Thumb; - type Alt = St::Alt; - type Uri = St::Uri; - type Fullsize = St::Fullsize; - } - ///State transition - sets the `thumb` field to Set - pub struct SetThumb(PhantomData St>); - impl sealed::Sealed for SetThumb {} - impl State for SetThumb { - type Cid = St::Cid; - type Thumb = Set; - type Alt = St::Alt; - type Uri = St::Uri; - type Fullsize = St::Fullsize; + type Uri = Unset; + type Cid = Unset; + type Thumb = Unset; } ///State transition - sets the `alt` field to Set pub struct SetAlt(PhantomData St>); impl sealed::Sealed for SetAlt {} impl State for SetAlt { + type Alt = Set; + type Fullsize = St::Fullsize; + type Uri = St::Uri; type Cid = St::Cid; type Thumb = St::Thumb; - type Alt = Set; + } + ///State transition - sets the `fullsize` field to Set + pub struct SetFullsize(PhantomData St>); + impl sealed::Sealed for SetFullsize {} + impl State for SetFullsize { + type Alt = St::Alt; + type Fullsize = Set; type Uri = St::Uri; - type Fullsize = St::Fullsize; + type Cid = St::Cid; + type Thumb = St::Thumb; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { + type Alt = St::Alt; + type Fullsize = St::Fullsize; + type Uri = Set; type Cid = St::Cid; type Thumb = St::Thumb; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { type Alt = St::Alt; - type Uri = Set; type Fullsize = St::Fullsize; - } - ///State transition - sets the `fullsize` field to Set - pub struct SetFullsize(PhantomData St>); - impl sealed::Sealed for SetFullsize {} - impl State for SetFullsize { - type Cid = St::Cid; + type Uri = St::Uri; + type Cid = Set; type Thumb = St::Thumb; + } + ///State transition - sets the `thumb` field to Set + pub struct SetThumb(PhantomData St>); + impl sealed::Sealed for SetThumb {} + impl State for SetThumb { type Alt = St::Alt; + type Fullsize = St::Fullsize; type Uri = St::Uri; - type Fullsize = Set; + type Cid = St::Cid; + type Thumb = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); - ///Marker type for the `thumb` field - pub struct thumb(()); ///Marker type for the `alt` field pub struct alt(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `fullsize` field pub struct fullsize(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `thumb` field + pub struct thumb(()); } } @@ -1239,11 +1239,11 @@ where impl PhotoViewBuilder where St: photo_view_state::State, - St::Cid: photo_view_state::IsSet, - St::Thumb: photo_view_state::IsSet, St::Alt: photo_view_state::IsSet, - St::Uri: photo_view_state::IsSet, St::Fullsize: photo_view_state::IsSet, + St::Uri: photo_view_state::IsSet, + St::Cid: photo_view_state::IsSet, + St::Thumb: photo_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> PhotoView { diff --git a/crates/jacquard-api/src/social_grain/photo/exif.rs b/crates/jacquard-api/src/social_grain/photo/exif.rs index dc1b80e0..277c2745 100644 --- a/crates/jacquard-api/src/social_grain/photo/exif.rs +++ b/crates/jacquard-api/src/social_grain/photo/exif.rs @@ -132,37 +132,37 @@ pub mod exif_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Photo; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Photo = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Photo = St::Photo; + type CreatedAt = Unset; } ///State transition - sets the `photo` field to Set pub struct SetPhoto(PhantomData St>); impl sealed::Sealed for SetPhoto {} impl State for SetPhoto { - type CreatedAt = St::CreatedAt; type Photo = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Photo = St::Photo; + type CreatedAt = 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 `photo` field pub struct photo(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -388,8 +388,8 @@ where impl ExifBuilder where St: exif_state::State, - St::CreatedAt: exif_state::IsSet, St::Photo: exif_state::IsSet, + St::CreatedAt: exif_state::IsSet, { /// Build the final struct. pub fn build(self) -> Exif { diff --git a/crates/jacquard-api/src/social_lexical/works/collectionitem.rs b/crates/jacquard-api/src/social_lexical/works/collectionitem.rs index 4e69b73b..a0b06d28 100644 --- a/crates/jacquard-api/src/social_lexical/works/collectionitem.rs +++ b/crates/jacquard-api/src/social_lexical/works/collectionitem.rs @@ -116,51 +116,51 @@ pub mod collectionitem_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Work; type CreatedAt; type List; + type Work; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Work = Unset; type CreatedAt = Unset; type List = Unset; - } - ///State transition - sets the `work` field to Set - pub struct SetWork(PhantomData St>); - impl sealed::Sealed for SetWork {} - impl State for SetWork { - type Work = Set; - type CreatedAt = St::CreatedAt; - type List = St::List; + type Work = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Work = St::Work; type CreatedAt = Set; type List = St::List; + type Work = St::Work; } ///State transition - sets the `list` field to Set pub struct SetList(PhantomData St>); impl sealed::Sealed for SetList {} impl State for SetList { - type Work = St::Work; type CreatedAt = St::CreatedAt; type List = Set; + type Work = St::Work; + } + ///State transition - sets the `work` field to Set + pub struct SetWork(PhantomData St>); + impl sealed::Sealed for SetWork {} + impl State for SetWork { + type CreatedAt = St::CreatedAt; + type List = St::List; + type Work = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `work` field - pub struct work(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `list` field pub struct list(()); + ///Marker type for the `work` field + pub struct work(()); } } @@ -249,9 +249,9 @@ where impl CollectionitemBuilder where St: collectionitem_state::State, - St::Work: collectionitem_state::IsSet, St::CreatedAt: collectionitem_state::IsSet, St::List: collectionitem_state::IsSet, + St::Work: collectionitem_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collectionitem { diff --git a/crates/jacquard-api/src/social_lexical/works/identifiers.rs b/crates/jacquard-api/src/social_lexical/works/identifiers.rs index 1e7421db..6d6bb1cc 100644 --- a/crates/jacquard-api/src/social_lexical/works/identifiers.rs +++ b/crates/jacquard-api/src/social_lexical/works/identifiers.rs @@ -333,37 +333,37 @@ pub mod identifiers_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Identifiers; type Work; + type Identifiers; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Identifiers = Unset; type Work = Unset; - } - ///State transition - sets the `identifiers` field to Set - pub struct SetIdentifiers(PhantomData St>); - impl sealed::Sealed for SetIdentifiers {} - impl State for SetIdentifiers { - type Identifiers = Set; - type Work = St::Work; + type Identifiers = Unset; } ///State transition - sets the `work` field to Set pub struct SetWork(PhantomData St>); impl sealed::Sealed for SetWork {} impl State for SetWork { - type Identifiers = St::Identifiers; type Work = Set; + type Identifiers = St::Identifiers; + } + ///State transition - sets the `identifiers` field to Set + pub struct SetIdentifiers(PhantomData St>); + impl sealed::Sealed for SetIdentifiers {} + impl State for SetIdentifiers { + type Work = St::Work; + type Identifiers = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `identifiers` field - pub struct identifiers(()); ///Marker type for the `work` field pub struct work(()); + ///Marker type for the `identifiers` field + pub struct identifiers(()); } } @@ -433,8 +433,8 @@ where impl IdentifiersBuilder where St: identifiers_state::State, - St::Identifiers: identifiers_state::IsSet, St::Work: identifiers_state::IsSet, + St::Identifiers: identifiers_state::IsSet, { /// Build the final struct. pub fn build(self) -> Identifiers { diff --git a/crates/jacquard-api/src/social_lexical/works/work.rs b/crates/jacquard-api/src/social_lexical/works/work.rs index 6a54efcf..98cd7ed6 100644 --- a/crates/jacquard-api/src/social_lexical/works/work.rs +++ b/crates/jacquard-api/src/social_lexical/works/work.rs @@ -283,37 +283,37 @@ pub mod work_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type WorkType; type Title; + type WorkType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type WorkType = Unset; type Title = Unset; - } - ///State transition - sets the `work_type` field to Set - pub struct SetWorkType(PhantomData St>); - impl sealed::Sealed for SetWorkType {} - impl State for SetWorkType { - type WorkType = Set; - type Title = St::Title; + type WorkType = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type WorkType = St::WorkType; type Title = Set; + type WorkType = St::WorkType; + } + ///State transition - sets the `work_type` field to Set + pub struct SetWorkType(PhantomData St>); + impl sealed::Sealed for SetWorkType {} + impl State for SetWorkType { + type Title = St::Title; + type WorkType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `work_type` field - pub struct work_type(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `work_type` field + pub struct work_type(()); } } @@ -409,8 +409,8 @@ impl WorkBuilder { impl WorkBuilder where St: work_state::State, - St::WorkType: work_state::IsSet, St::Title: work_state::IsSet, + St::WorkType: work_state::IsSet, { /// Build the final struct. pub fn build(self) -> Work { diff --git a/crates/jacquard-api/src/social_octosphere/publication.rs b/crates/jacquard-api/src/social_octosphere/publication.rs index 4bc12adf..4a7c2ab5 100644 --- a/crates/jacquard-api/src/social_octosphere/publication.rs +++ b/crates/jacquard-api/src/social_octosphere/publication.rs @@ -356,267 +356,267 @@ pub mod publication_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type ContentHtml; + type CreatedAt; + type UpdatedAt; + type LinkedTo; + type ContentText; + type LinkedFrom; type PublicationType; type Title; - type Citations; type OctopusId; - type LinkedTo; + type Citations; type Status; - type UpdatedAt; - type ContentHtml; type VersionId; - type LinkedFrom; - type ContentText; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type ContentHtml = Unset; + type CreatedAt = Unset; + type UpdatedAt = Unset; + type LinkedTo = Unset; + type ContentText = Unset; + type LinkedFrom = Unset; type PublicationType = Unset; type Title = Unset; - type Citations = Unset; type OctopusId = Unset; - type LinkedTo = Unset; + type Citations = Unset; type Status = Unset; - type UpdatedAt = Unset; - type ContentHtml = Unset; type VersionId = Unset; - type LinkedFrom = Unset; - type ContentText = Unset; - type CreatedAt = Unset; } - ///State transition - sets the `publication_type` field to Set - pub struct SetPublicationType(PhantomData St>); - impl sealed::Sealed for SetPublicationType {} - impl State for SetPublicationType { - type PublicationType = Set; - type Title = St::Title; - type Citations = St::Citations; - type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; - type Status = St::Status; + ///State transition - sets the `content_html` field to Set + pub struct SetContentHtml(PhantomData St>); + impl sealed::Sealed for SetContentHtml {} + impl State for SetContentHtml { + type ContentHtml = Set; + type CreatedAt = St::CreatedAt; type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; - type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; + type LinkedTo = St::LinkedTo; type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; - type Title = Set; - type Citations = St::Citations; + type Title = St::Title; type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; + type Citations = St::Citations; type Status = St::Status; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; - type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; } - ///State transition - sets the `citations` field to Set - pub struct SetCitations(PhantomData St>); - impl sealed::Sealed for SetCitations {} - impl State for SetCitations { + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type ContentHtml = St::ContentHtml; + type CreatedAt = Set; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; + type ContentText = St::ContentText; + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; type Title = St::Title; - type Citations = Set; type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; + type Citations = St::Citations; type Status = St::Status; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; - type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; } - ///State transition - sets the `octopus_id` field to Set - pub struct SetOctopusId(PhantomData St>); - impl sealed::Sealed for SetOctopusId {} - impl State for SetOctopusId { + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = Set; + type LinkedTo = St::LinkedTo; + type ContentText = St::ContentText; + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; type Title = St::Title; + type OctopusId = St::OctopusId; type Citations = St::Citations; - type OctopusId = Set; - type LinkedTo = St::LinkedTo; type Status = St::Status; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; - type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `linked_to` field to Set pub struct SetLinkedTo(PhantomData St>); impl sealed::Sealed for SetLinkedTo {} impl State for SetLinkedTo { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = Set; + type ContentText = St::ContentText; + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; type Title = St::Title; - type Citations = St::Citations; type OctopusId = St::OctopusId; - type LinkedTo = Set; + type Citations = St::Citations; type Status = St::Status; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; - type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData St>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { + ///State transition - sets the `content_text` field to Set + pub struct SetContentText(PhantomData St>); + impl sealed::Sealed for SetContentText {} + impl State for SetContentText { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; + type ContentText = Set; + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; type Title = St::Title; - type Citations = St::Citations; type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; - type Status = Set; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; + type Citations = St::Citations; + type Status = St::Status; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; - type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { + ///State transition - sets the `linked_from` field to Set + pub struct SetLinkedFrom(PhantomData St>); + impl sealed::Sealed for SetLinkedFrom {} + impl State for SetLinkedFrom { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; + type ContentText = St::ContentText; + type LinkedFrom = Set; type PublicationType = St::PublicationType; type Title = St::Title; - type Citations = St::Citations; type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; + type Citations = St::Citations; type Status = St::Status; - type UpdatedAt = Set; - type ContentHtml = St::ContentHtml; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; - type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; } - ///State transition - sets the `content_html` field to Set - pub struct SetContentHtml(PhantomData St>); - impl sealed::Sealed for SetContentHtml {} - impl State for SetContentHtml { - type PublicationType = St::PublicationType; + ///State transition - sets the `publication_type` field to Set + pub struct SetPublicationType(PhantomData St>); + impl sealed::Sealed for SetPublicationType {} + impl State for SetPublicationType { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; + type ContentText = St::ContentText; + type LinkedFrom = St::LinkedFrom; + type PublicationType = Set; type Title = St::Title; - type Citations = St::Citations; type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; + type Citations = St::Citations; type Status = St::Status; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = Set; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; - type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; } - ///State transition - sets the `version_id` field to Set - pub struct SetVersionId(PhantomData St>); - impl sealed::Sealed for SetVersionId {} - impl State for SetVersionId { + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; + type ContentText = St::ContentText; + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; - type Title = St::Title; - type Citations = St::Citations; + type Title = Set; type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; + type Citations = St::Citations; type Status = St::Status; - type UpdatedAt = St::UpdatedAt; + type VersionId = St::VersionId; + } + ///State transition - sets the `octopus_id` field to Set + pub struct SetOctopusId(PhantomData St>); + impl sealed::Sealed for SetOctopusId {} + impl State for SetOctopusId { type ContentHtml = St::ContentHtml; - type VersionId = Set; - type LinkedFrom = St::LinkedFrom; - type ContentText = St::ContentText; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `linked_from` field to Set - pub struct SetLinkedFrom(PhantomData St>); - impl sealed::Sealed for SetLinkedFrom {} - impl State for SetLinkedFrom { + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; + type ContentText = St::ContentText; + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; type Title = St::Title; + type OctopusId = Set; type Citations = St::Citations; - type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; type Status = St::Status; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; type VersionId = St::VersionId; - type LinkedFrom = Set; - type ContentText = St::ContentText; - type CreatedAt = St::CreatedAt; } - ///State transition - sets the `content_text` field to Set - pub struct SetContentText(PhantomData St>); - impl sealed::Sealed for SetContentText {} - impl State for SetContentText { + ///State transition - sets the `citations` field to Set + pub struct SetCitations(PhantomData St>); + impl sealed::Sealed for SetCitations {} + impl State for SetCitations { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; + type ContentText = St::ContentText; + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; type Title = St::Title; - type Citations = St::Citations; type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; + type Citations = Set; type Status = St::Status; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; - type ContentText = Set; - type CreatedAt = St::CreatedAt; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData St>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; + type ContentText = St::ContentText; + type LinkedFrom = St::LinkedFrom; type PublicationType = St::PublicationType; type Title = St::Title; - type Citations = St::Citations; type OctopusId = St::OctopusId; - type LinkedTo = St::LinkedTo; - type Status = St::Status; - type UpdatedAt = St::UpdatedAt; - type ContentHtml = St::ContentHtml; + type Citations = St::Citations; + type Status = Set; type VersionId = St::VersionId; - type LinkedFrom = St::LinkedFrom; + } + ///State transition - sets the `version_id` field to Set + pub struct SetVersionId(PhantomData St>); + impl sealed::Sealed for SetVersionId {} + impl State for SetVersionId { + type ContentHtml = St::ContentHtml; + type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; + type LinkedTo = St::LinkedTo; type ContentText = St::ContentText; - type CreatedAt = Set; + type LinkedFrom = St::LinkedFrom; + type PublicationType = St::PublicationType; + type Title = St::Title; + type OctopusId = St::OctopusId; + type Citations = St::Citations; + type Status = St::Status; + type VersionId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `content_html` field + pub struct content_html(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `updated_at` field + pub struct updated_at(()); + ///Marker type for the `linked_to` field + pub struct linked_to(()); + ///Marker type for the `content_text` field + pub struct content_text(()); + ///Marker type for the `linked_from` field + pub struct linked_from(()); ///Marker type for the `publication_type` field pub struct publication_type(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `citations` field - pub struct citations(()); ///Marker type for the `octopus_id` field pub struct octopus_id(()); - ///Marker type for the `linked_to` field - pub struct linked_to(()); + ///Marker type for the `citations` field + pub struct citations(()); ///Marker type for the `status` field pub struct status(()); - ///Marker type for the `updated_at` field - pub struct updated_at(()); - ///Marker type for the `content_html` field - pub struct content_html(()); ///Marker type for the `version_id` field pub struct version_id(()); - ///Marker type for the `linked_from` field - pub struct linked_from(()); - ///Marker type for the `content_text` field - pub struct content_text(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -962,18 +962,18 @@ where impl PublicationBuilder where St: publication_state::State, + St::ContentHtml: publication_state::IsSet, + St::CreatedAt: publication_state::IsSet, + St::UpdatedAt: publication_state::IsSet, + St::LinkedTo: publication_state::IsSet, + St::ContentText: publication_state::IsSet, + St::LinkedFrom: publication_state::IsSet, St::PublicationType: publication_state::IsSet, St::Title: publication_state::IsSet, - St::Citations: publication_state::IsSet, St::OctopusId: publication_state::IsSet, - St::LinkedTo: publication_state::IsSet, + St::Citations: publication_state::IsSet, St::Status: publication_state::IsSet, - St::UpdatedAt: publication_state::IsSet, - St::ContentHtml: publication_state::IsSet, St::VersionId: publication_state::IsSet, - St::LinkedFrom: publication_state::IsSet, - St::ContentText: publication_state::IsSet, - St::CreatedAt: publication_state::IsSet, { /// Build the final struct. pub fn build(self) -> Publication { diff --git a/crates/jacquard-api/src/social_pace/daily/ring.rs b/crates/jacquard-api/src/social_pace/daily/ring.rs index 9fed0276..b3e23075 100644 --- a/crates/jacquard-api/src/social_pace/daily/ring.rs +++ b/crates/jacquard-api/src/social_pace/daily/ring.rs @@ -124,10 +124,10 @@ pub mod ring_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type ExerciseGoal; - type StandHours; type StandGoal; - type CreatedAt; type Exercise; + type StandHours; + type CreatedAt; type MoveGoal; type Move; } @@ -136,10 +136,10 @@ pub mod ring_state { impl sealed::Sealed for Empty {} impl State for Empty { type ExerciseGoal = Unset; - type StandHours = Unset; type StandGoal = Unset; - type CreatedAt = Unset; type Exercise = Unset; + type StandHours = Unset; + type CreatedAt = Unset; type MoveGoal = Unset; type Move = Unset; } @@ -148,22 +148,10 @@ pub mod ring_state { impl sealed::Sealed for SetExerciseGoal {} impl State for SetExerciseGoal { type ExerciseGoal = Set; - type StandHours = St::StandHours; type StandGoal = St::StandGoal; - type CreatedAt = St::CreatedAt; type Exercise = St::Exercise; - type MoveGoal = St::MoveGoal; - type Move = St::Move; - } - ///State transition - sets the `stand_hours` field to Set - pub struct SetStandHours(PhantomData St>); - impl sealed::Sealed for SetStandHours {} - impl State for SetStandHours { - type ExerciseGoal = St::ExerciseGoal; - type StandHours = Set; - type StandGoal = St::StandGoal; + type StandHours = St::StandHours; type CreatedAt = St::CreatedAt; - type Exercise = St::Exercise; type MoveGoal = St::MoveGoal; type Move = St::Move; } @@ -172,22 +160,10 @@ pub mod ring_state { impl sealed::Sealed for SetStandGoal {} impl State for SetStandGoal { type ExerciseGoal = St::ExerciseGoal; - type StandHours = St::StandHours; type StandGoal = Set; - type CreatedAt = St::CreatedAt; type Exercise = St::Exercise; - type MoveGoal = St::MoveGoal; - type Move = St::Move; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type ExerciseGoal = St::ExerciseGoal; type StandHours = St::StandHours; - type StandGoal = St::StandGoal; - type CreatedAt = Set; - type Exercise = St::Exercise; + type CreatedAt = St::CreatedAt; type MoveGoal = St::MoveGoal; type Move = St::Move; } @@ -196,10 +172,34 @@ pub mod ring_state { impl sealed::Sealed for SetExercise {} impl State for SetExercise { type ExerciseGoal = St::ExerciseGoal; + type StandGoal = St::StandGoal; + type Exercise = Set; type StandHours = St::StandHours; + type CreatedAt = St::CreatedAt; + type MoveGoal = St::MoveGoal; + type Move = St::Move; + } + ///State transition - sets the `stand_hours` field to Set + pub struct SetStandHours(PhantomData St>); + impl sealed::Sealed for SetStandHours {} + impl State for SetStandHours { + type ExerciseGoal = St::ExerciseGoal; type StandGoal = St::StandGoal; + type Exercise = St::Exercise; + type StandHours = Set; type CreatedAt = St::CreatedAt; - type Exercise = Set; + type MoveGoal = St::MoveGoal; + type Move = St::Move; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type ExerciseGoal = St::ExerciseGoal; + type StandGoal = St::StandGoal; + type Exercise = St::Exercise; + type StandHours = St::StandHours; + type CreatedAt = Set; type MoveGoal = St::MoveGoal; type Move = St::Move; } @@ -208,10 +208,10 @@ pub mod ring_state { impl sealed::Sealed for SetMoveGoal {} impl State for SetMoveGoal { type ExerciseGoal = St::ExerciseGoal; - type StandHours = St::StandHours; type StandGoal = St::StandGoal; - type CreatedAt = St::CreatedAt; type Exercise = St::Exercise; + type StandHours = St::StandHours; + type CreatedAt = St::CreatedAt; type MoveGoal = Set; type Move = St::Move; } @@ -220,10 +220,10 @@ pub mod ring_state { impl sealed::Sealed for SetMove {} impl State for SetMove { type ExerciseGoal = St::ExerciseGoal; - type StandHours = St::StandHours; type StandGoal = St::StandGoal; - type CreatedAt = St::CreatedAt; type Exercise = St::Exercise; + type StandHours = St::StandHours; + type CreatedAt = St::CreatedAt; type MoveGoal = St::MoveGoal; type Move = Set; } @@ -232,14 +232,14 @@ pub mod ring_state { pub mod members { ///Marker type for the `exercise_goal` field pub struct exercise_goal(()); - ///Marker type for the `stand_hours` field - pub struct stand_hours(()); ///Marker type for the `stand_goal` field pub struct stand_goal(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `exercise` field pub struct exercise(()); + ///Marker type for the `stand_hours` field + pub struct stand_hours(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `move_goal` field pub struct move_goal(()); ///Marker type for the `move` field @@ -417,10 +417,10 @@ impl RingBuilder where St: ring_state::State, St::ExerciseGoal: ring_state::IsSet, - St::StandHours: ring_state::IsSet, St::StandGoal: ring_state::IsSet, - St::CreatedAt: ring_state::IsSet, St::Exercise: ring_state::IsSet, + St::StandHours: ring_state::IsSet, + St::CreatedAt: ring_state::IsSet, St::MoveGoal: ring_state::IsSet, St::Move: ring_state::IsSet, { diff --git a/crates/jacquard-api/src/social_pace/daily/step.rs b/crates/jacquard-api/src/social_pace/daily/step.rs index 29071a7a..26f629d3 100644 --- a/crates/jacquard-api/src/social_pace/daily/step.rs +++ b/crates/jacquard-api/src/social_pace/daily/step.rs @@ -117,50 +117,50 @@ pub mod step_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Steps; - type UpdatedAt; type CreatedAt; + type UpdatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Steps = Unset; - type UpdatedAt = Unset; type CreatedAt = Unset; + type UpdatedAt = Unset; } ///State transition - sets the `steps` field to Set pub struct SetSteps(PhantomData St>); impl sealed::Sealed for SetSteps {} impl State for SetSteps { type Steps = Set; - type UpdatedAt = St::UpdatedAt; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { - type Steps = St::Steps; - type UpdatedAt = Set; type CreatedAt = St::CreatedAt; + type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Steps = St::Steps; - type UpdatedAt = St::UpdatedAt; type CreatedAt = Set; + type UpdatedAt = St::UpdatedAt; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type Steps = St::Steps; + type CreatedAt = St::CreatedAt; + type UpdatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `steps` field pub struct steps(()); - ///Marker type for the `updated_at` field - pub struct updated_at(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `updated_at` field + pub struct updated_at(()); } } @@ -250,8 +250,8 @@ impl StepBuilder where St: step_state::State, St::Steps: step_state::IsSet, - St::UpdatedAt: step_state::IsSet, St::CreatedAt: step_state::IsSet, + St::UpdatedAt: step_state::IsSet, { /// Build the final struct. pub fn build(self) -> Step { diff --git a/crates/jacquard-api/src/social_pace/feed/activity.rs b/crates/jacquard-api/src/social_pace/feed/activity.rs index 08e225d4..dea6a416 100644 --- a/crates/jacquard-api/src/social_pace/feed/activity.rs +++ b/crates/jacquard-api/src/social_pace/feed/activity.rs @@ -180,67 +180,67 @@ pub mod activity_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type EndedAt; type Type; type CreatedAt; type StartedAt; + type EndedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type EndedAt = Unset; type Type = Unset; type CreatedAt = Unset; type StartedAt = Unset; - } - ///State transition - sets the `ended_at` field to Set - pub struct SetEndedAt(PhantomData St>); - impl sealed::Sealed for SetEndedAt {} - impl State for SetEndedAt { - type EndedAt = Set; - type Type = St::Type; - type CreatedAt = St::CreatedAt; - type StartedAt = St::StartedAt; + type EndedAt = Unset; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { - type EndedAt = St::EndedAt; type Type = Set; type CreatedAt = St::CreatedAt; type StartedAt = St::StartedAt; + type EndedAt = St::EndedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type EndedAt = St::EndedAt; type Type = St::Type; type CreatedAt = Set; type StartedAt = St::StartedAt; + type EndedAt = St::EndedAt; } ///State transition - sets the `started_at` field to Set pub struct SetStartedAt(PhantomData St>); impl sealed::Sealed for SetStartedAt {} impl State for SetStartedAt { - type EndedAt = St::EndedAt; type Type = St::Type; type CreatedAt = St::CreatedAt; type StartedAt = Set; + type EndedAt = St::EndedAt; + } + ///State transition - sets the `ended_at` field to Set + pub struct SetEndedAt(PhantomData St>); + impl sealed::Sealed for SetEndedAt {} + impl State for SetEndedAt { + type Type = St::Type; + type CreatedAt = St::CreatedAt; + type StartedAt = St::StartedAt; + type EndedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `ended_at` field - pub struct ended_at(()); ///Marker type for the `type` field pub struct r#type(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `started_at` field pub struct started_at(()); + ///Marker type for the `ended_at` field + pub struct ended_at(()); } } @@ -437,10 +437,10 @@ where impl ActivityBuilder where St: activity_state::State, - St::EndedAt: activity_state::IsSet, St::Type: activity_state::IsSet, St::CreatedAt: activity_state::IsSet, St::StartedAt: activity_state::IsSet, + St::EndedAt: activity_state::IsSet, { /// Build the final struct. pub fn build(self) -> Activity { diff --git a/crates/jacquard-api/src/social_pace/goal/ring.rs b/crates/jacquard-api/src/social_pace/goal/ring.rs index 2daf29a5..392b50ce 100644 --- a/crates/jacquard-api/src/social_pace/goal/ring.rs +++ b/crates/jacquard-api/src/social_pace/goal/ring.rs @@ -123,125 +123,125 @@ pub mod ring_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type StandGoal; - type CreatedAt; - type Move; - type ExerciseGoal; type MoveGoal; type Exercise; + type ExerciseGoal; + type StandGoal; + type Move; + type CreatedAt; type StandHours; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type StandGoal = Unset; - type CreatedAt = Unset; - type Move = Unset; - type ExerciseGoal = Unset; type MoveGoal = Unset; type Exercise = Unset; + type ExerciseGoal = Unset; + type StandGoal = Unset; + type Move = Unset; + type CreatedAt = Unset; type StandHours = Unset; } - ///State transition - sets the `stand_goal` field to Set - pub struct SetStandGoal(PhantomData St>); - impl sealed::Sealed for SetStandGoal {} - impl State for SetStandGoal { - type StandGoal = Set; - type CreatedAt = St::CreatedAt; - type Move = St::Move; - type ExerciseGoal = St::ExerciseGoal; - type MoveGoal = St::MoveGoal; + ///State transition - sets the `move_goal` field to Set + pub struct SetMoveGoal(PhantomData St>); + impl sealed::Sealed for SetMoveGoal {} + impl State for SetMoveGoal { + type MoveGoal = Set; type Exercise = St::Exercise; - type StandHours = St::StandHours; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type ExerciseGoal = St::ExerciseGoal; type StandGoal = St::StandGoal; - type CreatedAt = Set; type Move = St::Move; - type ExerciseGoal = St::ExerciseGoal; - type MoveGoal = St::MoveGoal; - type Exercise = St::Exercise; + type CreatedAt = St::CreatedAt; type StandHours = St::StandHours; } - ///State transition - sets the `move` field to Set - pub struct SetMove(PhantomData St>); - impl sealed::Sealed for SetMove {} - impl State for SetMove { + ///State transition - sets the `exercise` field to Set + pub struct SetExercise(PhantomData St>); + impl sealed::Sealed for SetExercise {} + impl State for SetExercise { + type MoveGoal = St::MoveGoal; + type Exercise = Set; + type ExerciseGoal = St::ExerciseGoal; type StandGoal = St::StandGoal; + type Move = St::Move; type CreatedAt = St::CreatedAt; - type Move = Set; - type ExerciseGoal = St::ExerciseGoal; - type MoveGoal = St::MoveGoal; - type Exercise = St::Exercise; type StandHours = St::StandHours; } ///State transition - sets the `exercise_goal` field to Set pub struct SetExerciseGoal(PhantomData St>); impl sealed::Sealed for SetExerciseGoal {} impl State for SetExerciseGoal { + type MoveGoal = St::MoveGoal; + type Exercise = St::Exercise; + type ExerciseGoal = Set; type StandGoal = St::StandGoal; - type CreatedAt = St::CreatedAt; type Move = St::Move; - type ExerciseGoal = Set; + type CreatedAt = St::CreatedAt; + type StandHours = St::StandHours; + } + ///State transition - sets the `stand_goal` field to Set + pub struct SetStandGoal(PhantomData St>); + impl sealed::Sealed for SetStandGoal {} + impl State for SetStandGoal { type MoveGoal = St::MoveGoal; type Exercise = St::Exercise; + type ExerciseGoal = St::ExerciseGoal; + type StandGoal = Set; + type Move = St::Move; + type CreatedAt = St::CreatedAt; type StandHours = St::StandHours; } - ///State transition - sets the `move_goal` field to Set - pub struct SetMoveGoal(PhantomData St>); - impl sealed::Sealed for SetMoveGoal {} - impl State for SetMoveGoal { + ///State transition - sets the `move` field to Set + pub struct SetMove(PhantomData St>); + impl sealed::Sealed for SetMove {} + impl State for SetMove { + type MoveGoal = St::MoveGoal; + type Exercise = St::Exercise; + type ExerciseGoal = St::ExerciseGoal; type StandGoal = St::StandGoal; + type Move = Set; type CreatedAt = St::CreatedAt; - type Move = St::Move; - type ExerciseGoal = St::ExerciseGoal; - type MoveGoal = Set; - type Exercise = St::Exercise; type StandHours = St::StandHours; } - ///State transition - sets the `exercise` field to Set - pub struct SetExercise(PhantomData St>); - impl sealed::Sealed for SetExercise {} - impl State for SetExercise { + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type MoveGoal = St::MoveGoal; + type Exercise = St::Exercise; + type ExerciseGoal = St::ExerciseGoal; type StandGoal = St::StandGoal; - type CreatedAt = St::CreatedAt; type Move = St::Move; - type ExerciseGoal = St::ExerciseGoal; - type MoveGoal = St::MoveGoal; - type Exercise = Set; + type CreatedAt = Set; type StandHours = St::StandHours; } ///State transition - sets the `stand_hours` field to Set pub struct SetStandHours(PhantomData St>); impl sealed::Sealed for SetStandHours {} impl State for SetStandHours { - type StandGoal = St::StandGoal; - type CreatedAt = St::CreatedAt; - type Move = St::Move; - type ExerciseGoal = St::ExerciseGoal; type MoveGoal = St::MoveGoal; type Exercise = St::Exercise; + type ExerciseGoal = St::ExerciseGoal; + type StandGoal = St::StandGoal; + type Move = St::Move; + type CreatedAt = St::CreatedAt; type StandHours = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `stand_goal` field - pub struct stand_goal(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `move` field - pub struct r#move(()); - ///Marker type for the `exercise_goal` field - pub struct exercise_goal(()); ///Marker type for the `move_goal` field pub struct move_goal(()); ///Marker type for the `exercise` field pub struct exercise(()); + ///Marker type for the `exercise_goal` field + pub struct exercise_goal(()); + ///Marker type for the `stand_goal` field + pub struct stand_goal(()); + ///Marker type for the `move` field + pub struct r#move(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `stand_hours` field pub struct stand_hours(()); } @@ -416,12 +416,12 @@ where impl RingBuilder where St: ring_state::State, - St::StandGoal: ring_state::IsSet, - St::CreatedAt: ring_state::IsSet, - St::Move: ring_state::IsSet, - St::ExerciseGoal: ring_state::IsSet, St::MoveGoal: ring_state::IsSet, St::Exercise: ring_state::IsSet, + St::ExerciseGoal: ring_state::IsSet, + St::StandGoal: ring_state::IsSet, + St::Move: ring_state::IsSet, + St::CreatedAt: ring_state::IsSet, St::StandHours: ring_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/social_pace/goal/step.rs b/crates/jacquard-api/src/social_pace/goal/step.rs index f3768063..f91c018c 100644 --- a/crates/jacquard-api/src/social_pace/goal/step.rs +++ b/crates/jacquard-api/src/social_pace/goal/step.rs @@ -117,50 +117,50 @@ pub mod step_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Steps; - type CreatedAt; type UpdatedAt; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Steps = Unset; - type CreatedAt = Unset; type UpdatedAt = Unset; + type CreatedAt = Unset; } ///State transition - sets the `steps` field to Set pub struct SetSteps(PhantomData St>); impl sealed::Sealed for SetSteps {} impl State for SetSteps { type Steps = Set; - type CreatedAt = St::CreatedAt; - type UpdatedAt = St::UpdatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Steps = St::Steps; - type CreatedAt = Set; type UpdatedAt = St::UpdatedAt; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData St>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { type Steps = St::Steps; - type CreatedAt = St::CreatedAt; type UpdatedAt = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Steps = St::Steps; + type UpdatedAt = St::UpdatedAt; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `steps` field pub struct steps(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `updated_at` field pub struct updated_at(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -250,8 +250,8 @@ impl StepBuilder where St: step_state::State, St::Steps: step_state::IsSet, - St::CreatedAt: step_state::IsSet, St::UpdatedAt: step_state::IsSet, + St::CreatedAt: step_state::IsSet, { /// Build the final struct. pub fn build(self) -> Step { diff --git a/crates/jacquard-api/src/social_pmsky/proposal.rs b/crates/jacquard-api/src/social_pmsky/proposal.rs index b787017a..66421cd1 100644 --- a/crates/jacquard-api/src/social_pmsky/proposal.rs +++ b/crates/jacquard-api/src/social_pmsky/proposal.rs @@ -150,85 +150,85 @@ pub mod proposal_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Val; - type Uri; + type Src; type Typ; + type Val; type Cts; - type Src; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Val = Unset; - type Uri = Unset; + type Src = Unset; type Typ = Unset; + type Val = Unset; type Cts = Unset; - type Src = Unset; + type Uri = Unset; } - ///State transition - sets the `val` field to Set - pub struct SetVal(PhantomData St>); - impl sealed::Sealed for SetVal {} - impl State for SetVal { - type Val = Set; - type Uri = St::Uri; + ///State transition - sets the `src` field to Set + pub struct SetSrc(PhantomData St>); + impl sealed::Sealed for SetSrc {} + impl State for SetSrc { + type Src = Set; type Typ = St::Typ; - type Cts = St::Cts; - type Src = St::Src; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Val = St::Val; - type Uri = Set; - type Typ = St::Typ; type Cts = St::Cts; - type Src = St::Src; + type Uri = St::Uri; } ///State transition - sets the `typ` field to Set pub struct SetTyp(PhantomData St>); impl sealed::Sealed for SetTyp {} impl State for SetTyp { - type Val = St::Val; - type Uri = St::Uri; + type Src = St::Src; type Typ = Set; + type Val = St::Val; type Cts = St::Cts; + type Uri = St::Uri; + } + ///State transition - sets the `val` field to Set + pub struct SetVal(PhantomData St>); + impl sealed::Sealed for SetVal {} + impl State for SetVal { type Src = St::Src; + type Typ = St::Typ; + type Val = Set; + type Cts = St::Cts; + type Uri = St::Uri; } ///State transition - sets the `cts` field to Set pub struct SetCts(PhantomData St>); impl sealed::Sealed for SetCts {} impl State for SetCts { - type Val = St::Val; - type Uri = St::Uri; - type Typ = St::Typ; - type Cts = Set; type Src = St::Src; - } - ///State transition - sets the `src` field to Set - pub struct SetSrc(PhantomData St>); - impl sealed::Sealed for SetSrc {} - impl State for SetSrc { + type Typ = St::Typ; type Val = St::Val; + type Cts = Set; type Uri = St::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Src = St::Src; type Typ = St::Typ; + type Val = St::Val; type Cts = St::Cts; - type Src = Set; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `val` field - pub struct val(()); - ///Marker type for the `uri` field - pub struct uri(()); + ///Marker type for the `src` field + pub struct src(()); ///Marker type for the `typ` field pub struct typ(()); + ///Marker type for the `val` field + pub struct val(()); ///Marker type for the `cts` field pub struct cts(()); - ///Marker type for the `src` field - pub struct src(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -445,11 +445,11 @@ impl ProposalBuilder { impl ProposalBuilder where St: proposal_state::State, - St::Val: proposal_state::IsSet, - St::Uri: proposal_state::IsSet, + St::Src: proposal_state::IsSet, St::Typ: proposal_state::IsSet, + St::Val: proposal_state::IsSet, St::Cts: proposal_state::IsSet, - St::Src: proposal_state::IsSet, + St::Uri: proposal_state::IsSet, { /// Build the final struct. pub fn build(self) -> Proposal { diff --git a/crates/jacquard-api/src/social_pmsky/vote.rs b/crates/jacquard-api/src/social_pmsky/vote.rs index 7586db21..c0ea7803 100644 --- a/crates/jacquard-api/src/social_pmsky/vote.rs +++ b/crates/jacquard-api/src/social_pmsky/vote.rs @@ -131,67 +131,67 @@ pub mod vote_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cts; - type Src; type Uri; + type Src; type Val; + type Cts; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cts = Unset; - type Src = Unset; type Uri = Unset; + type Src = Unset; type Val = Unset; + type Cts = Unset; } - ///State transition - sets the `cts` field to Set - pub struct SetCts(PhantomData St>); - impl sealed::Sealed for SetCts {} - impl State for SetCts { - type Cts = Set; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; type Src = St::Src; - type Uri = St::Uri; type Val = St::Val; + type Cts = St::Cts; } ///State transition - sets the `src` field to Set pub struct SetSrc(PhantomData St>); impl sealed::Sealed for SetSrc {} impl State for SetSrc { - type Cts = St::Cts; - type Src = Set; type Uri = St::Uri; + type Src = Set; type Val = St::Val; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Cts = St::Cts; - type Src = St::Src; - type Uri = Set; - type Val = St::Val; } ///State transition - sets the `val` field to Set pub struct SetVal(PhantomData St>); impl sealed::Sealed for SetVal {} impl State for SetVal { - type Cts = St::Cts; - type Src = St::Src; type Uri = St::Uri; + type Src = St::Src; type Val = Set; + type Cts = St::Cts; + } + ///State transition - sets the `cts` field to Set + pub struct SetCts(PhantomData St>); + impl sealed::Sealed for SetCts {} + impl State for SetCts { + type Uri = St::Uri; + type Src = St::Src; + type Val = St::Val; + type Cts = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cts` field - pub struct cts(()); - ///Marker type for the `src` field - pub struct src(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `src` field + pub struct src(()); ///Marker type for the `val` field pub struct val(()); + ///Marker type for the `cts` field + pub struct cts(()); } } @@ -360,10 +360,10 @@ where impl VoteBuilder where St: vote_state::State, - St::Cts: vote_state::IsSet, - St::Src: vote_state::IsSet, St::Uri: vote_state::IsSet, + St::Src: vote_state::IsSet, St::Val: vote_state::IsSet, + St::Cts: vote_state::IsSet, { /// Build the final struct. pub fn build(self) -> Vote { diff --git a/crates/jacquard-api/src/social_psky/richtext/facet.rs b/crates/jacquard-api/src/social_psky/richtext/facet.rs index b51c2135..ae08e664 100644 --- a/crates/jacquard-api/src/social_psky/richtext/facet.rs +++ b/crates/jacquard-api/src/social_psky/richtext/facet.rs @@ -219,37 +219,37 @@ pub mod byte_slice_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ByteEnd; type ByteStart; + type ByteEnd; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ByteEnd = Unset; type ByteStart = Unset; - } - ///State transition - sets the `byte_end` field to Set - pub struct SetByteEnd(PhantomData St>); - impl sealed::Sealed for SetByteEnd {} - impl State for SetByteEnd { - type ByteEnd = Set; - type ByteStart = St::ByteStart; + type ByteEnd = Unset; } ///State transition - sets the `byte_start` field to Set pub struct SetByteStart(PhantomData St>); impl sealed::Sealed for SetByteStart {} impl State for SetByteStart { - type ByteEnd = St::ByteEnd; type ByteStart = Set; + type ByteEnd = St::ByteEnd; + } + ///State transition - sets the `byte_end` field to Set + pub struct SetByteEnd(PhantomData St>); + impl sealed::Sealed for SetByteEnd {} + impl State for SetByteEnd { + type ByteStart = St::ByteStart; + type ByteEnd = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `byte_end` field - pub struct byte_end(()); ///Marker type for the `byte_start` field pub struct byte_start(()); + ///Marker type for the `byte_end` field + pub struct byte_end(()); } } @@ -319,8 +319,8 @@ where impl ByteSliceBuilder where St: byte_slice_state::State, - St::ByteEnd: byte_slice_state::IsSet, St::ByteStart: byte_slice_state::IsSet, + St::ByteEnd: byte_slice_state::IsSet, { /// Build the final struct. pub fn build(self) -> ByteSlice { diff --git a/crates/jacquard-api/src/social_showcase.rs b/crates/jacquard-api/src/social_showcase.rs index 5f7bdae7..4938ac39 100644 --- a/crates/jacquard-api/src/social_showcase.rs +++ b/crates/jacquard-api/src/social_showcase.rs @@ -1289,50 +1289,50 @@ pub mod activity_settings_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type RetentionDays; - type ShareActivity; type ShareNewItems; + type ShareActivity; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type RetentionDays = Unset; - type ShareActivity = Unset; type ShareNewItems = Unset; + type ShareActivity = Unset; } ///State transition - sets the `retention_days` field to Set pub struct SetRetentionDays(PhantomData St>); impl sealed::Sealed for SetRetentionDays {} impl State for SetRetentionDays { type RetentionDays = Set; - type ShareActivity = St::ShareActivity; - type ShareNewItems = St::ShareNewItems; - } - ///State transition - sets the `share_activity` field to Set - pub struct SetShareActivity(PhantomData St>); - impl sealed::Sealed for SetShareActivity {} - impl State for SetShareActivity { - type RetentionDays = St::RetentionDays; - type ShareActivity = Set; type ShareNewItems = St::ShareNewItems; + type ShareActivity = St::ShareActivity; } ///State transition - sets the `share_new_items` field to Set pub struct SetShareNewItems(PhantomData St>); impl sealed::Sealed for SetShareNewItems {} impl State for SetShareNewItems { type RetentionDays = St::RetentionDays; - type ShareActivity = St::ShareActivity; type ShareNewItems = Set; + type ShareActivity = St::ShareActivity; + } + ///State transition - sets the `share_activity` field to Set + pub struct SetShareActivity(PhantomData St>); + impl sealed::Sealed for SetShareActivity {} + impl State for SetShareActivity { + type RetentionDays = St::RetentionDays; + type ShareNewItems = St::ShareNewItems; + type ShareActivity = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `retention_days` field pub struct retention_days(()); - ///Marker type for the `share_activity` field - pub struct share_activity(()); ///Marker type for the `share_new_items` field pub struct share_new_items(()); + ///Marker type for the `share_activity` field + pub struct share_activity(()); } } @@ -1422,8 +1422,8 @@ impl ActivitySettingsBuilder where St: activity_settings_state::State, St::RetentionDays: activity_settings_state::IsSet, - St::ShareActivity: activity_settings_state::IsSet, St::ShareNewItems: activity_settings_state::IsSet, + St::ShareActivity: activity_settings_state::IsSet, { /// Build the final struct. pub fn build(self) -> ActivitySettings { @@ -2193,51 +2193,51 @@ pub mod collection_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Order; type Uri; type AddedAt; + type Order; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Order = Unset; type Uri = Unset; type AddedAt = Unset; - } - ///State transition - sets the `order` field to Set - pub struct SetOrder(PhantomData St>); - impl sealed::Sealed for SetOrder {} - impl State for SetOrder { - type Order = Set; - type Uri = St::Uri; - type AddedAt = St::AddedAt; + type Order = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Order = St::Order; type Uri = Set; type AddedAt = St::AddedAt; + type Order = St::Order; } ///State transition - sets the `added_at` field to Set pub struct SetAddedAt(PhantomData St>); impl sealed::Sealed for SetAddedAt {} impl State for SetAddedAt { - type Order = St::Order; type Uri = St::Uri; type AddedAt = Set; + type Order = St::Order; + } + ///State transition - sets the `order` field to Set + pub struct SetOrder(PhantomData St>); + impl sealed::Sealed for SetOrder {} + impl State for SetOrder { + type Uri = St::Uri; + type AddedAt = St::AddedAt; + type Order = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `order` field - pub struct order(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `added_at` field pub struct added_at(()); + ///Marker type for the `order` field + pub struct order(()); } } @@ -2326,9 +2326,9 @@ where impl CollectionItemBuilder where St: collection_item_state::State, - St::Order: collection_item_state::IsSet, St::Uri: collection_item_state::IsSet, St::AddedAt: collection_item_state::IsSet, + St::Order: collection_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> CollectionItem { @@ -2363,139 +2363,137 @@ pub mod collection_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type Cid; + type Visibility; type Tags; type Type; type CreatedAt; type Uri; - type Visibility; + type Name; + type Cid; type Author; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type Cid = Unset; + type Visibility = Unset; type Tags = Unset; type Type = Unset; type CreatedAt = Unset; type Uri = Unset; - type Visibility = Unset; + type Name = Unset; + type Cid = Unset; type Author = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Cid = St::Cid; + ///State transition - sets the `visibility` field to Set + pub struct SetVisibility(PhantomData St>); + impl sealed::Sealed for SetVisibility {} + impl State for SetVisibility { + type Visibility = Set; type Tags = St::Tags; type Type = St::Type; type CreatedAt = St::CreatedAt; type Uri = St::Uri; - type Visibility = St::Visibility; - type Author = St::Author; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { type Name = St::Name; - type Cid = Set; - type Tags = St::Tags; - type Type = St::Type; - type CreatedAt = St::CreatedAt; - type Uri = St::Uri; - type Visibility = St::Visibility; + type Cid = St::Cid; type Author = St::Author; } ///State transition - sets the `tags` field to Set pub struct SetTags(PhantomData St>); impl sealed::Sealed for SetTags {} impl State for SetTags { - type Name = St::Name; - type Cid = St::Cid; + type Visibility = St::Visibility; type Tags = Set; type Type = St::Type; type CreatedAt = St::CreatedAt; type Uri = St::Uri; - type Visibility = St::Visibility; + type Name = St::Name; + type Cid = St::Cid; type Author = St::Author; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData St>); impl sealed::Sealed for SetType {} impl State for SetType { - type Name = St::Name; - type Cid = St::Cid; + type Visibility = St::Visibility; type Tags = St::Tags; type Type = Set; type CreatedAt = St::CreatedAt; type Uri = St::Uri; - type Visibility = St::Visibility; + type Name = St::Name; + type Cid = St::Cid; type Author = St::Author; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; - type Cid = St::Cid; + type Visibility = St::Visibility; type Tags = St::Tags; type Type = St::Type; type CreatedAt = Set; type Uri = St::Uri; - type Visibility = St::Visibility; + type Name = St::Name; + type Cid = St::Cid; type Author = St::Author; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Name = St::Name; - type Cid = St::Cid; + type Visibility = St::Visibility; type Tags = St::Tags; type Type = St::Type; type CreatedAt = St::CreatedAt; type Uri = Set; - type Visibility = St::Visibility; + type Name = St::Name; + type Cid = St::Cid; type Author = St::Author; } - ///State transition - sets the `visibility` field to Set - pub struct SetVisibility(PhantomData St>); - impl sealed::Sealed for SetVisibility {} - impl State for SetVisibility { - type Name = St::Name; + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Visibility = St::Visibility; + type Tags = St::Tags; + type Type = St::Type; + type CreatedAt = St::CreatedAt; + type Uri = St::Uri; + type Name = Set; type Cid = St::Cid; + type Author = St::Author; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Visibility = St::Visibility; type Tags = St::Tags; type Type = St::Type; type CreatedAt = St::CreatedAt; type Uri = St::Uri; - type Visibility = Set; + type Name = St::Name; + type Cid = Set; type Author = St::Author; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Name = St::Name; - type Cid = St::Cid; + type Visibility = St::Visibility; type Tags = St::Tags; type Type = St::Type; type CreatedAt = St::CreatedAt; type Uri = St::Uri; - type Visibility = St::Visibility; + type Name = St::Name; + type Cid = St::Cid; type Author = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `cid` field - pub struct cid(()); + ///Marker type for the `visibility` field + pub struct visibility(()); ///Marker type for the `tags` field pub struct tags(()); ///Marker type for the `type` field @@ -2504,8 +2502,10 @@ pub mod collection_view_state { pub struct created_at(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `visibility` field - pub struct visibility(()); + ///Marker type for the `name` field + pub struct name(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `author` field pub struct author(()); } @@ -2790,13 +2790,13 @@ where impl CollectionViewBuilder where St: collection_view_state::State, - St::Name: collection_view_state::IsSet, - St::Cid: collection_view_state::IsSet, + St::Visibility: collection_view_state::IsSet, St::Tags: collection_view_state::IsSet, St::Type: collection_view_state::IsSet, St::CreatedAt: collection_view_state::IsSet, St::Uri: collection_view_state::IsSet, - St::Visibility: collection_view_state::IsSet, + St::Name: collection_view_state::IsSet, + St::Cid: collection_view_state::IsSet, St::Author: collection_view_state::IsSet, { /// Build the final struct. @@ -2988,151 +2988,151 @@ pub mod item_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Visibility; + type Author; + type Uri; + type Title; + type Images; type Tags; type Cid; - type Title; - type Uri; - type Author; type CreatedAt; - type Visibility; - type Images; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Visibility = Unset; + type Author = Unset; + type Uri = Unset; + type Title = Unset; + type Images = Unset; type Tags = Unset; type Cid = Unset; - type Title = Unset; - type Uri = Unset; - type Author = Unset; type CreatedAt = Unset; - type Visibility = Unset; - type Images = Unset; } - ///State transition - sets the `tags` field to Set - pub struct SetTags(PhantomData St>); - impl sealed::Sealed for SetTags {} - impl State for SetTags { - type Tags = Set; - type Cid = St::Cid; - type Title = St::Title; - type Uri = St::Uri; + ///State transition - sets the `visibility` field to Set + pub struct SetVisibility(PhantomData St>); + impl sealed::Sealed for SetVisibility {} + impl State for SetVisibility { + type Visibility = Set; type Author = St::Author; - type CreatedAt = St::CreatedAt; - type Visibility = St::Visibility; + type Uri = St::Uri; + type Title = St::Title; type Images = St::Images; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { type Tags = St::Tags; - type Cid = Set; - type Title = St::Title; - type Uri = St::Uri; - type Author = St::Author; + type Cid = St::Cid; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { type Visibility = St::Visibility; + type Author = Set; + type Uri = St::Uri; + type Title = St::Title; type Images = St::Images; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { type Tags = St::Tags; type Cid = St::Cid; - type Title = Set; - type Uri = St::Uri; - type Author = St::Author; type CreatedAt = St::CreatedAt; - type Visibility = St::Visibility; - type Images = St::Images; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { + type Visibility = St::Visibility; + type Author = St::Author; + type Uri = Set; + type Title = St::Title; + type Images = St::Images; type Tags = St::Tags; type Cid = St::Cid; - type Title = St::Title; - type Uri = Set; - type Author = St::Author; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { type Visibility = St::Visibility; + type Author = St::Author; + type Uri = St::Uri; + type Title = Set; type Images = St::Images; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { type Tags = St::Tags; type Cid = St::Cid; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `images` field to Set + pub struct SetImages(PhantomData St>); + impl sealed::Sealed for SetImages {} + impl State for SetImages { + type Visibility = St::Visibility; + type Author = St::Author; + type Uri = St::Uri; type Title = St::Title; + type Images = Set; + type Tags = St::Tags; + type Cid = St::Cid; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `tags` field to Set + pub struct SetTags(PhantomData St>); + impl sealed::Sealed for SetTags {} + impl State for SetTags { + type Visibility = St::Visibility; + type Author = St::Author; type Uri = St::Uri; - type Author = Set; + type Title = St::Title; + type Images = St::Images; + type Tags = Set; + type Cid = St::Cid; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { type Visibility = St::Visibility; + type Author = St::Author; + type Uri = St::Uri; + type Title = St::Title; type Images = St::Images; + type Tags = St::Tags; + type Cid = Set; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Tags = St::Tags; - type Cid = St::Cid; - type Title = St::Title; - type Uri = St::Uri; - type Author = St::Author; - type CreatedAt = Set; type Visibility = St::Visibility; - type Images = St::Images; - } - ///State transition - sets the `visibility` field to Set - pub struct SetVisibility(PhantomData St>); - impl sealed::Sealed for SetVisibility {} - impl State for SetVisibility { - type Tags = St::Tags; - type Cid = St::Cid; - type Title = St::Title; - type Uri = St::Uri; type Author = St::Author; - type CreatedAt = St::CreatedAt; - type Visibility = Set; + type Uri = St::Uri; + type Title = St::Title; type Images = St::Images; - } - ///State transition - sets the `images` field to Set - pub struct SetImages(PhantomData St>); - impl sealed::Sealed for SetImages {} - impl State for SetImages { type Tags = St::Tags; type Cid = St::Cid; - type Title = St::Title; - type Uri = St::Uri; - type Author = St::Author; - type CreatedAt = St::CreatedAt; - type Visibility = St::Visibility; - type Images = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `visibility` field + pub struct visibility(()); + ///Marker type for the `author` field + pub struct author(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `title` field + pub struct title(()); + ///Marker type for the `images` field + pub struct images(()); ///Marker type for the `tags` field pub struct tags(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `title` field - pub struct title(()); - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `author` field - pub struct author(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `visibility` field - pub struct visibility(()); - ///Marker type for the `images` field - pub struct images(()); } } @@ -3424,14 +3424,14 @@ where impl ItemViewBuilder where St: item_view_state::State, + St::Visibility: item_view_state::IsSet, + St::Author: item_view_state::IsSet, + St::Uri: item_view_state::IsSet, + St::Title: item_view_state::IsSet, + St::Images: item_view_state::IsSet, St::Tags: item_view_state::IsSet, St::Cid: item_view_state::IsSet, - St::Title: item_view_state::IsSet, - St::Uri: item_view_state::IsSet, - St::Author: item_view_state::IsSet, St::CreatedAt: item_view_state::IsSet, - St::Visibility: item_view_state::IsSet, - St::Images: item_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ItemView { @@ -3486,50 +3486,50 @@ pub mod notification_settings_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Reactions; - type Follows; type Comments; + type Follows; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Reactions = Unset; - type Follows = Unset; type Comments = Unset; + type Follows = Unset; } ///State transition - sets the `reactions` field to Set pub struct SetReactions(PhantomData St>); impl sealed::Sealed for SetReactions {} impl State for SetReactions { type Reactions = Set; - type Follows = St::Follows; - type Comments = St::Comments; - } - ///State transition - sets the `follows` field to Set - pub struct SetFollows(PhantomData St>); - impl sealed::Sealed for SetFollows {} - impl State for SetFollows { - type Reactions = St::Reactions; - type Follows = Set; type Comments = St::Comments; + type Follows = St::Follows; } ///State transition - sets the `comments` field to Set pub struct SetComments(PhantomData St>); impl sealed::Sealed for SetComments {} impl State for SetComments { type Reactions = St::Reactions; - type Follows = St::Follows; type Comments = Set; + type Follows = St::Follows; + } + ///State transition - sets the `follows` field to Set + pub struct SetFollows(PhantomData St>); + impl sealed::Sealed for SetFollows {} + impl State for SetFollows { + type Reactions = St::Reactions; + type Comments = St::Comments; + type Follows = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `reactions` field pub struct reactions(()); - ///Marker type for the `follows` field - pub struct follows(()); ///Marker type for the `comments` field pub struct comments(()); + ///Marker type for the `follows` field + pub struct follows(()); } } @@ -3622,8 +3622,8 @@ impl NotificationSettingsBuilder where St: notification_settings_state::State, St::Reactions: notification_settings_state::IsSet, - St::Follows: notification_settings_state::IsSet, St::Comments: notification_settings_state::IsSet, + St::Follows: notification_settings_state::IsSet, { /// Build the final struct. pub fn build(self) -> NotificationSettings { @@ -3658,49 +3658,49 @@ pub mod privacy_settings_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AllowReactions; type Indexable; + type AllowReactions; type AllowComments; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AllowReactions = Unset; type Indexable = Unset; + type AllowReactions = Unset; type AllowComments = Unset; } - ///State transition - sets the `allow_reactions` field to Set - pub struct SetAllowReactions(PhantomData St>); - impl sealed::Sealed for SetAllowReactions {} - impl State for SetAllowReactions { - type AllowReactions = Set; - type Indexable = St::Indexable; - type AllowComments = St::AllowComments; - } ///State transition - sets the `indexable` field to Set pub struct SetIndexable(PhantomData St>); impl sealed::Sealed for SetIndexable {} impl State for SetIndexable { - type AllowReactions = St::AllowReactions; type Indexable = Set; + type AllowReactions = St::AllowReactions; + type AllowComments = St::AllowComments; + } + ///State transition - sets the `allow_reactions` field to Set + pub struct SetAllowReactions(PhantomData St>); + impl sealed::Sealed for SetAllowReactions {} + impl State for SetAllowReactions { + type Indexable = St::Indexable; + type AllowReactions = Set; type AllowComments = St::AllowComments; } ///State transition - sets the `allow_comments` field to Set pub struct SetAllowComments(PhantomData St>); impl sealed::Sealed for SetAllowComments {} impl State for SetAllowComments { - type AllowReactions = St::AllowReactions; type Indexable = St::Indexable; + type AllowReactions = St::AllowReactions; type AllowComments = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `allow_reactions` field - pub struct allow_reactions(()); ///Marker type for the `indexable` field pub struct indexable(()); + ///Marker type for the `allow_reactions` field + pub struct allow_reactions(()); ///Marker type for the `allow_comments` field pub struct allow_comments(()); } @@ -3791,8 +3791,8 @@ where impl PrivacySettingsBuilder where St: privacy_settings_state::State, - St::AllowReactions: privacy_settings_state::IsSet, St::Indexable: privacy_settings_state::IsSet, + St::AllowReactions: privacy_settings_state::IsSet, St::AllowComments: privacy_settings_state::IsSet, { /// Build the final struct. @@ -3962,85 +3962,85 @@ pub mod reaction_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type CreatedAt; - type Subject; - type Uri; type Actor; + type Type; + type Uri; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type CreatedAt = Unset; - type Subject = Unset; - type Uri = Unset; type Actor = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type CreatedAt = St::CreatedAt; - type Subject = St::Subject; - type Uri = St::Uri; - type Actor = St::Actor; + type Type = Unset; + type Uri = Unset; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Type = St::Type; type CreatedAt = Set; - type Subject = St::Subject; - type Uri = St::Uri; type Actor = St::Actor; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { type Type = St::Type; + type Uri = St::Uri; + type Subject = St::Subject; + } + ///State transition - sets the `actor` field to Set + pub struct SetActor(PhantomData St>); + impl sealed::Sealed for SetActor {} + impl State for SetActor { type CreatedAt = St::CreatedAt; - type Subject = Set; + type Actor = Set; + type Type = St::Type; type Uri = St::Uri; + type Subject = St::Subject; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type CreatedAt = St::CreatedAt; type Actor = St::Actor; + type Type = Set; + type Uri = St::Uri; + type Subject = St::Subject; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Type = St::Type; type CreatedAt = St::CreatedAt; - type Subject = St::Subject; - type Uri = Set; type Actor = St::Actor; - } - ///State transition - sets the `actor` field to Set - pub struct SetActor(PhantomData St>); - impl sealed::Sealed for SetActor {} - impl State for SetActor { type Type = St::Type; - type CreatedAt = St::CreatedAt; + type Uri = Set; type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = St::CreatedAt; + type Actor = St::Actor; + type Type = St::Type; type Uri = St::Uri; - type Actor = Set; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `subject` field - pub struct subject(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `actor` field pub struct actor(()); + ///Marker type for the `type` field + pub struct r#type(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -4173,11 +4173,11 @@ where impl ReactionViewBuilder where St: reaction_view_state::State, - St::Type: reaction_view_state::IsSet, St::CreatedAt: reaction_view_state::IsSet, - St::Subject: reaction_view_state::IsSet, - St::Uri: reaction_view_state::IsSet, St::Actor: reaction_view_state::IsSet, + St::Type: reaction_view_state::IsSet, + St::Uri: reaction_view_state::IsSet, + St::Subject: reaction_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReactionView { @@ -4216,51 +4216,51 @@ pub mod showcase_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type AddedAt; type Order; type Uri; + type AddedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type AddedAt = Unset; type Order = Unset; type Uri = Unset; - } - ///State transition - sets the `added_at` field to Set - pub struct SetAddedAt(PhantomData St>); - impl sealed::Sealed for SetAddedAt {} - impl State for SetAddedAt { - type AddedAt = Set; - type Order = St::Order; - type Uri = St::Uri; + type AddedAt = Unset; } ///State transition - sets the `order` field to Set pub struct SetOrder(PhantomData St>); impl sealed::Sealed for SetOrder {} impl State for SetOrder { - type AddedAt = St::AddedAt; type Order = Set; type Uri = St::Uri; + type AddedAt = St::AddedAt; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type AddedAt = St::AddedAt; type Order = St::Order; type Uri = Set; + type AddedAt = St::AddedAt; + } + ///State transition - sets the `added_at` field to Set + pub struct SetAddedAt(PhantomData St>); + impl sealed::Sealed for SetAddedAt {} + impl State for SetAddedAt { + type Order = St::Order; + type Uri = St::Uri; + type AddedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `added_at` field - pub struct added_at(()); ///Marker type for the `order` field pub struct order(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `added_at` field + pub struct added_at(()); } } @@ -4349,9 +4349,9 @@ where impl ShowcaseItemBuilder where St: showcase_item_state::State, - St::AddedAt: showcase_item_state::IsSet, St::Order: showcase_item_state::IsSet, St::Uri: showcase_item_state::IsSet, + St::AddedAt: showcase_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> ShowcaseItem { diff --git a/crates/jacquard-api/src/social_showcase/graph/block.rs b/crates/jacquard-api/src/social_showcase/graph/block.rs index fece78c8..87ccd620 100644 --- a/crates/jacquard-api/src/social_showcase/graph/block.rs +++ b/crates/jacquard-api/src/social_showcase/graph/block.rs @@ -113,37 +113,37 @@ pub mod block_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Subject; + type CreatedAt; } /// 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = St::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; type Subject = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; + type CreatedAt = 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 `created_at` field + pub struct created_at(()); } } @@ -213,8 +213,8 @@ where impl BlockBuilder where St: block_state::State, - St::CreatedAt: block_state::IsSet, St::Subject: block_state::IsSet, + St::CreatedAt: block_state::IsSet, { /// Build the final struct. pub fn build(self) -> Block { diff --git a/crates/jacquard-api/src/social_showcase/library/create_item.rs b/crates/jacquard-api/src/social_showcase/library/create_item.rs index c2f62891..852318ce 100644 --- a/crates/jacquard-api/src/social_showcase/library/create_item.rs +++ b/crates/jacquard-api/src/social_showcase/library/create_item.rs @@ -170,67 +170,67 @@ pub mod create_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Images; + type Visibility; type Tags; type Title; - type Visibility; - type Images; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Images = Unset; + type Visibility = Unset; type Tags = Unset; type Title = Unset; - type Visibility = Unset; - type Images = Unset; + } + ///State transition - sets the `images` field to Set + pub struct SetImages(PhantomData St>); + impl sealed::Sealed for SetImages {} + impl State for SetImages { + type Images = Set; + type Visibility = St::Visibility; + type Tags = St::Tags; + type Title = St::Title; + } + ///State transition - sets the `visibility` field to Set + pub struct SetVisibility(PhantomData St>); + impl sealed::Sealed for SetVisibility {} + impl State for SetVisibility { + type Images = St::Images; + type Visibility = Set; + type Tags = St::Tags; + type Title = St::Title; } ///State transition - sets the `tags` field to Set pub struct SetTags(PhantomData St>); impl sealed::Sealed for SetTags {} impl State for SetTags { + type Images = St::Images; + type Visibility = St::Visibility; type Tags = Set; type Title = St::Title; - type Visibility = St::Visibility; - type Images = St::Images; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Tags = St::Tags; - type Title = Set; - type Visibility = St::Visibility; - type Images = St::Images; - } - ///State transition - sets the `visibility` field to Set - pub struct SetVisibility(PhantomData St>); - impl sealed::Sealed for SetVisibility {} - impl State for SetVisibility { - type Tags = St::Tags; - type Title = St::Title; - type Visibility = Set; type Images = St::Images; - } - ///State transition - sets the `images` field to Set - pub struct SetImages(PhantomData St>); - impl sealed::Sealed for SetImages {} - impl State for SetImages { - type Tags = St::Tags; - type Title = St::Title; type Visibility = St::Visibility; - type Images = Set; + type Tags = St::Tags; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `images` field + pub struct images(()); + ///Marker type for the `visibility` field + pub struct visibility(()); ///Marker type for the `tags` field pub struct tags(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `visibility` field - pub struct visibility(()); - ///Marker type for the `images` field - pub struct images(()); } } @@ -399,10 +399,10 @@ where impl CreateItemBuilder where St: create_item_state::State, + St::Images: create_item_state::IsSet, + St::Visibility: create_item_state::IsSet, St::Tags: create_item_state::IsSet, St::Title: create_item_state::IsSet, - St::Visibility: create_item_state::IsSet, - St::Images: create_item_state::IsSet, { /// Build the final struct. pub fn build(self) -> CreateItem { diff --git a/crates/jacquard-api/src/social_showcase/library/item.rs b/crates/jacquard-api/src/social_showcase/library/item.rs index 8d2d1fec..0513cbe5 100644 --- a/crates/jacquard-api/src/social_showcase/library/item.rs +++ b/crates/jacquard-api/src/social_showcase/library/item.rs @@ -300,85 +300,85 @@ pub mod item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; - type Images; type Tags; type Visibility; + type Images; type CreatedAt; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; - type Images = Unset; type Tags = Unset; type Visibility = Unset; + type Images = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Images = St::Images; - type Tags = St::Tags; - type Visibility = St::Visibility; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `images` field to Set - pub struct SetImages(PhantomData St>); - impl sealed::Sealed for SetImages {} - impl State for SetImages { - type Title = St::Title; - type Images = Set; - type Tags = St::Tags; - type Visibility = St::Visibility; - type CreatedAt = St::CreatedAt; + type Title = Unset; } ///State transition - sets the `tags` field to Set pub struct SetTags(PhantomData St>); impl sealed::Sealed for SetTags {} impl State for SetTags { - type Title = St::Title; - type Images = St::Images; type Tags = Set; type Visibility = St::Visibility; + type Images = St::Images; type CreatedAt = St::CreatedAt; + type Title = St::Title; } ///State transition - sets the `visibility` field to Set pub struct SetVisibility(PhantomData St>); impl sealed::Sealed for SetVisibility {} impl State for SetVisibility { - type Title = St::Title; - type Images = St::Images; type Tags = St::Tags; type Visibility = Set; + type Images = St::Images; + type CreatedAt = St::CreatedAt; + type Title = St::Title; + } + ///State transition - sets the `images` field to Set + pub struct SetImages(PhantomData St>); + impl sealed::Sealed for SetImages {} + impl State for SetImages { + type Tags = St::Tags; + type Visibility = St::Visibility; + type Images = Set; type CreatedAt = St::CreatedAt; + type Title = St::Title; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Title = St::Title; - type Images = St::Images; type Tags = St::Tags; type Visibility = St::Visibility; + type Images = St::Images; type CreatedAt = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Tags = St::Tags; + type Visibility = St::Visibility; + type Images = St::Images; + type CreatedAt = St::CreatedAt; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); - ///Marker type for the `images` field - pub struct images(()); ///Marker type for the `tags` field pub struct tags(()); ///Marker type for the `visibility` field pub struct visibility(()); + ///Marker type for the `images` field + pub struct images(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -622,11 +622,11 @@ where impl ItemBuilder where St: item_state::State, - St::Title: item_state::IsSet, - St::Images: item_state::IsSet, St::Tags: item_state::IsSet, St::Visibility: item_state::IsSet, + St::Images: item_state::IsSet, St::CreatedAt: item_state::IsSet, + St::Title: item_state::IsSet, { /// Build the final struct. pub fn build(self) -> Item { diff --git a/crates/jacquard-api/src/social_showcase/profile/preferences.rs b/crates/jacquard-api/src/social_showcase/profile/preferences.rs index 97c4a60b..7835f016 100644 --- a/crates/jacquard-api/src/social_showcase/profile/preferences.rs +++ b/crates/jacquard-api/src/social_showcase/profile/preferences.rs @@ -130,85 +130,85 @@ pub mod preferences_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Activity; - type UpdatedAt; type Privacy; type Notifications; type Visibility; + type Activity; + type UpdatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Activity = Unset; - type UpdatedAt = Unset; type Privacy = Unset; type Notifications = Unset; type Visibility = Unset; - } - ///State transition - sets the `activity` field to Set - pub struct SetActivity(PhantomData St>); - impl sealed::Sealed for SetActivity {} - impl State for SetActivity { - type Activity = Set; - type UpdatedAt = St::UpdatedAt; - type Privacy = St::Privacy; - type Notifications = St::Notifications; - type Visibility = St::Visibility; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { - type Activity = St::Activity; - type UpdatedAt = Set; - type Privacy = St::Privacy; - type Notifications = St::Notifications; - type Visibility = St::Visibility; + type Activity = Unset; + type UpdatedAt = Unset; } ///State transition - sets the `privacy` field to Set pub struct SetPrivacy(PhantomData St>); impl sealed::Sealed for SetPrivacy {} impl State for SetPrivacy { - type Activity = St::Activity; - type UpdatedAt = St::UpdatedAt; type Privacy = Set; type Notifications = St::Notifications; type Visibility = St::Visibility; + type Activity = St::Activity; + type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `notifications` field to Set pub struct SetNotifications(PhantomData St>); impl sealed::Sealed for SetNotifications {} impl State for SetNotifications { - type Activity = St::Activity; - type UpdatedAt = St::UpdatedAt; type Privacy = St::Privacy; type Notifications = Set; type Visibility = St::Visibility; + type Activity = St::Activity; + type UpdatedAt = St::UpdatedAt; } ///State transition - sets the `visibility` field to Set pub struct SetVisibility(PhantomData St>); impl sealed::Sealed for SetVisibility {} impl State for SetVisibility { + type Privacy = St::Privacy; + type Notifications = St::Notifications; + type Visibility = Set; type Activity = St::Activity; type UpdatedAt = St::UpdatedAt; + } + ///State transition - sets the `activity` field to Set + pub struct SetActivity(PhantomData St>); + impl sealed::Sealed for SetActivity {} + impl State for SetActivity { type Privacy = St::Privacy; type Notifications = St::Notifications; - type Visibility = Set; + type Visibility = St::Visibility; + type Activity = Set; + type UpdatedAt = St::UpdatedAt; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type Privacy = St::Privacy; + type Notifications = St::Notifications; + type Visibility = St::Visibility; + type Activity = St::Activity; + type UpdatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `activity` field - pub struct activity(()); - ///Marker type for the `updated_at` field - pub struct updated_at(()); ///Marker type for the `privacy` field pub struct privacy(()); ///Marker type for the `notifications` field pub struct notifications(()); ///Marker type for the `visibility` field pub struct visibility(()); + ///Marker type for the `activity` field + pub struct activity(()); + ///Marker type for the `updated_at` field + pub struct updated_at(()); } } @@ -369,11 +369,11 @@ where impl PreferencesBuilder where St: preferences_state::State, - St::Activity: preferences_state::IsSet, - St::UpdatedAt: preferences_state::IsSet, St::Privacy: preferences_state::IsSet, St::Notifications: preferences_state::IsSet, St::Visibility: preferences_state::IsSet, + St::Activity: preferences_state::IsSet, + St::UpdatedAt: preferences_state::IsSet, { /// Build the final struct. pub fn build(self) -> Preferences { diff --git a/crates/jacquard-api/src/social_showcase/profile/profile.rs b/crates/jacquard-api/src/social_showcase/profile/profile.rs index 226aee00..cb0a1318 100644 --- a/crates/jacquard-api/src/social_showcase/profile/profile.rs +++ b/crates/jacquard-api/src/social_showcase/profile/profile.rs @@ -344,67 +344,67 @@ pub mod profile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; + type CreatedAt; type Handle; type Tags; - type CreatedAt; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; + type CreatedAt = Unset; type Handle = Unset; type Tags = Unset; - type CreatedAt = Unset; + type Did = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Handle = St::Handle; type Tags = St::Tags; - type CreatedAt = St::CreatedAt; + type Did = St::Did; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = St::Did; + type CreatedAt = St::CreatedAt; type Handle = Set; type Tags = St::Tags; - type CreatedAt = St::CreatedAt; + type Did = St::Did; } ///State transition - sets the `tags` field to Set pub struct SetTags(PhantomData St>); impl sealed::Sealed for SetTags {} impl State for SetTags { - type Did = St::Did; + type CreatedAt = St::CreatedAt; type Handle = St::Handle; type Tags = Set; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type CreatedAt = St::CreatedAt; type Handle = St::Handle; type Tags = St::Tags; - type CreatedAt = Set; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `handle` field pub struct handle(()); ///Marker type for the `tags` field pub struct tags(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -702,10 +702,10 @@ impl ProfileBuilder { impl ProfileBuilder where St: profile_state::State, - St::Did: profile_state::IsSet, + St::CreatedAt: profile_state::IsSet, St::Handle: profile_state::IsSet, St::Tags: profile_state::IsSet, - St::CreatedAt: profile_state::IsSet, + St::Did: profile_state::IsSet, { /// Build the final struct. pub fn build(self) -> Profile { diff --git a/crates/jacquard-api/src/social_tophhie/profile.rs b/crates/jacquard-api/src/social_tophhie/profile.rs index 7db84536..f1d6bcb6 100644 --- a/crates/jacquard-api/src/social_tophhie/profile.rs +++ b/crates/jacquard-api/src/social_tophhie/profile.rs @@ -415,50 +415,50 @@ pub mod profile_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type PdsPreferences; - type CommunicationPreferences; type CreatedAt; + type CommunicationPreferences; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type PdsPreferences = Unset; - type CommunicationPreferences = Unset; type CreatedAt = Unset; + type CommunicationPreferences = Unset; } ///State transition - sets the `pds_preferences` field to Set pub struct SetPdsPreferences(PhantomData St>); impl sealed::Sealed for SetPdsPreferences {} impl State for SetPdsPreferences { type PdsPreferences = Set; - type CommunicationPreferences = St::CommunicationPreferences; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `communication_preferences` field to Set - pub struct SetCommunicationPreferences(PhantomData St>); - impl sealed::Sealed for SetCommunicationPreferences {} - impl State for SetCommunicationPreferences { - type PdsPreferences = St::PdsPreferences; - type CommunicationPreferences = Set; type CreatedAt = St::CreatedAt; + type CommunicationPreferences = St::CommunicationPreferences; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type PdsPreferences = St::PdsPreferences; - type CommunicationPreferences = St::CommunicationPreferences; type CreatedAt = Set; + type CommunicationPreferences = St::CommunicationPreferences; + } + ///State transition - sets the `communication_preferences` field to Set + pub struct SetCommunicationPreferences(PhantomData St>); + impl sealed::Sealed for SetCommunicationPreferences {} + impl State for SetCommunicationPreferences { + type PdsPreferences = St::PdsPreferences; + type CreatedAt = St::CreatedAt; + type CommunicationPreferences = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `pds_preferences` field pub struct pds_preferences(()); - ///Marker type for the `communication_preferences` field - pub struct communication_preferences(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `communication_preferences` field + pub struct communication_preferences(()); } } @@ -566,8 +566,8 @@ impl ProfileBuilder where St: profile_state::State, St::PdsPreferences: profile_state::IsSet, - St::CommunicationPreferences: profile_state::IsSet, St::CreatedAt: profile_state::IsSet, + St::CommunicationPreferences: profile_state::IsSet, { /// Build the final struct. pub fn build(self) -> Profile { diff --git a/crates/jacquard-api/src/space_litenote/note.rs b/crates/jacquard-api/src/space_litenote/note.rs index 8fdeaa1a..0398c513 100644 --- a/crates/jacquard-api/src/space_litenote/note.rs +++ b/crates/jacquard-api/src/space_litenote/note.rs @@ -584,37 +584,37 @@ pub mod note_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Content; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Content = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData St>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Content = St::Content; + type Title = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Title = St::Title; type Content = Set; + type Title = St::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData St>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Content = St::Content; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `title` field - pub struct title(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -771,8 +771,8 @@ where impl NoteBuilder where St: note_state::State, - St::Title: note_state::IsSet, St::Content: note_state::IsSet, + St::Title: note_state::IsSet, { /// Build the final struct. pub fn build(self) -> Note { diff --git a/crates/jacquard-api/src/st_lifepo/event.rs b/crates/jacquard-api/src/st_lifepo/event.rs index 0f067b24..64377f38 100644 --- a/crates/jacquard-api/src/st_lifepo/event.rs +++ b/crates/jacquard-api/src/st_lifepo/event.rs @@ -78,37 +78,37 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type StartDate; type Title; + type StartDate; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type StartDate = Unset; type Title = Unset; - } - ///State transition - sets the `start_date` field to Set - pub struct SetStartDate(PhantomData St>); - impl sealed::Sealed for SetStartDate {} - impl State for SetStartDate { - type StartDate = Set; - type Title = St::Title; + type StartDate = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type StartDate = St::StartDate; type Title = Set; + type StartDate = St::StartDate; + } + ///State transition - sets the `start_date` field to Set + pub struct SetStartDate(PhantomData St>); + impl sealed::Sealed for SetStartDate {} + impl State for SetStartDate { + type Title = St::Title; + type StartDate = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `start_date` field - pub struct start_date(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `start_date` field + pub struct start_date(()); } } @@ -204,8 +204,8 @@ where impl EventBuilder where St: event_state::State, - St::StartDate: event_state::IsSet, St::Title: event_state::IsSet, + St::StartDate: event_state::IsSet, { /// Build the final struct. pub fn build(self) -> Event { diff --git a/crates/jacquard-api/src/st_lifepo/profile.rs b/crates/jacquard-api/src/st_lifepo/profile.rs index e6ca8190..a5b0e3d2 100644 --- a/crates/jacquard-api/src/st_lifepo/profile.rs +++ b/crates/jacquard-api/src/st_lifepo/profile.rs @@ -107,37 +107,37 @@ pub mod life_event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type StartDate; type Title; + type StartDate; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type StartDate = Unset; type Title = Unset; - } - ///State transition - sets the `start_date` field to Set - pub struct SetStartDate(PhantomData St>); - impl sealed::Sealed for SetStartDate {} - impl State for SetStartDate { - type StartDate = Set; - type Title = St::Title; + type StartDate = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type StartDate = St::StartDate; type Title = Set; + type StartDate = St::StartDate; + } + ///State transition - sets the `start_date` field to Set + pub struct SetStartDate(PhantomData St>); + impl sealed::Sealed for SetStartDate {} + impl State for SetStartDate { + type Title = St::Title; + type StartDate = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `start_date` field - pub struct start_date(()); ///Marker type for the `title` field pub struct title(()); + ///Marker type for the `start_date` field + pub struct start_date(()); } } @@ -233,8 +233,8 @@ where impl LifeEventBuilder where St: life_event_state::State, - St::StartDate: life_event_state::IsSet, St::Title: life_event_state::IsSet, + St::StartDate: life_event_state::IsSet, { /// Build the final struct. pub fn build(self) -> LifeEvent { diff --git a/crates/jacquard-api/src/systems_timker/hawlt/get_note.rs b/crates/jacquard-api/src/systems_timker/hawlt/get_note.rs index 6eea3471..bc82fe18 100644 --- a/crates/jacquard-api/src/systems_timker/hawlt/get_note.rs +++ b/crates/jacquard-api/src/systems_timker/hawlt/get_note.rs @@ -71,37 +71,37 @@ pub mod get_note_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Rkey; + type Repo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Rkey = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Rkey = St::Rkey; + type Repo = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Repo = St::Repo; type Rkey = Set; + type Repo = St::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Rkey = St::Rkey; + type Repo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `repo` field - pub struct repo(()); ///Marker type for the `rkey` field pub struct rkey(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -171,8 +171,8 @@ where impl GetNoteBuilder where St: get_note_state::State, - St::Repo: get_note_state::IsSet, St::Rkey: get_note_state::IsSet, + St::Repo: get_note_state::IsSet, { /// Build the final struct. pub fn build(self) -> GetNote { diff --git a/crates/jacquard-api/src/systems_timker/hawlt/list_notes.rs b/crates/jacquard-api/src/systems_timker/hawlt/list_notes.rs index ae0bcd05..81b6451e 100644 --- a/crates/jacquard-api/src/systems_timker/hawlt/list_notes.rs +++ b/crates/jacquard-api/src/systems_timker/hawlt/list_notes.rs @@ -230,67 +230,67 @@ pub mod note_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type IndexedAt; type Uri; - type Value; type Cid; - type IndexedAt; + type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type IndexedAt = Unset; type Uri = Unset; - type Value = Unset; type Cid = Unset; - type IndexedAt = Unset; + type Value = Unset; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type IndexedAt = Set; + type Uri = St::Uri; + type Cid = St::Cid; + type Value = St::Value; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Uri = Set; - type Value = St::Value; - type Cid = St::Cid; type IndexedAt = St::IndexedAt; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData St>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { - type Uri = St::Uri; - type Value = Set; + type Uri = Set; type Cid = St::Cid; - type IndexedAt = St::IndexedAt; + type Value = St::Value; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type IndexedAt = St::IndexedAt; type Uri = St::Uri; - type Value = St::Value; type Cid = Set; - type IndexedAt = St::IndexedAt; + type Value = St::Value; } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData St>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type IndexedAt = St::IndexedAt; type Uri = St::Uri; - type Value = St::Value; type Cid = St::Cid; - type IndexedAt = Set; + type Value = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `value` field - pub struct value(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); + ///Marker type for the `value` field + pub struct value(()); } } @@ -398,10 +398,10 @@ where impl NoteViewBuilder where St: note_view_state::State, + St::IndexedAt: note_view_state::IsSet, St::Uri: note_view_state::IsSet, - St::Value: note_view_state::IsSet, St::Cid: note_view_state::IsSet, - St::IndexedAt: note_view_state::IsSet, + St::Value: note_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> NoteView { diff --git a/crates/jacquard-api/src/systems_timker/hawlt/put_note.rs b/crates/jacquard-api/src/systems_timker/hawlt/put_note.rs index 3c29043b..178e5ed0 100644 --- a/crates/jacquard-api/src/systems_timker/hawlt/put_note.rs +++ b/crates/jacquard-api/src/systems_timker/hawlt/put_note.rs @@ -77,37 +77,37 @@ pub mod put_note_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Record; type Rkey; + type Record; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Record = Unset; type Rkey = Unset; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData St>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Record = Set; - type Rkey = St::Rkey; + type Record = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData St>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Record = St::Record; type Rkey = Set; + type Record = St::Record; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData St>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Rkey = St::Rkey; + type Record = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `record` field - pub struct record(()); ///Marker type for the `rkey` field pub struct rkey(()); + ///Marker type for the `record` field + pub struct record(()); } } @@ -177,8 +177,8 @@ where impl PutNoteBuilder where St: put_note_state::State, - St::Record: put_note_state::IsSet, St::Rkey: put_note_state::IsSet, + St::Record: put_note_state::IsSet, { /// Build the final struct. pub fn build(self) -> PutNote { diff --git a/crates/jacquard-api/src/tech_lenooby09/didgit/object.rs b/crates/jacquard-api/src/tech_lenooby09/didgit/object.rs index be1b1ad2..1857a35a 100644 --- a/crates/jacquard-api/src/tech_lenooby09/didgit/object.rs +++ b/crates/jacquard-api/src/tech_lenooby09/didgit/object.rs @@ -253,37 +253,37 @@ pub mod object_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ObjectType; type Content; + type ObjectType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ObjectType = Unset; type Content = Unset; - } - ///State transition - sets the `object_type` field to Set - pub struct SetObjectType(PhantomData St>); - impl sealed::Sealed for SetObjectType {} - impl State for SetObjectType { - type ObjectType = Set; - type Content = St::Content; + type ObjectType = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type ObjectType = St::ObjectType; type Content = Set; + type ObjectType = St::ObjectType; + } + ///State transition - sets the `object_type` field to Set + pub struct SetObjectType(PhantomData St>); + impl sealed::Sealed for SetObjectType {} + impl State for SetObjectType { + type Content = St::Content; + type ObjectType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `object_type` field - pub struct object_type(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `object_type` field + pub struct object_type(()); } } @@ -353,8 +353,8 @@ where impl ObjectBuilder where St: object_state::State, - St::ObjectType: object_state::IsSet, St::Content: object_state::IsSet, + St::ObjectType: object_state::IsSet, { /// Build the final struct. pub fn build(self) -> Object { diff --git a/crates/jacquard-api/src/tech_lenooby09/didgit/ref.rs b/crates/jacquard-api/src/tech_lenooby09/didgit/ref.rs index b581ce06..cce31e25 100644 --- a/crates/jacquard-api/src/tech_lenooby09/didgit/ref.rs +++ b/crates/jacquard-api/src/tech_lenooby09/didgit/ref.rs @@ -150,50 +150,50 @@ pub mod ref_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type RefName; - type ObjectId; type Repo; + type ObjectId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type RefName = Unset; - type ObjectId = Unset; type Repo = Unset; + type ObjectId = Unset; } ///State transition - sets the `ref_name` field to Set pub struct SetRefName(PhantomData St>); impl sealed::Sealed for SetRefName {} impl State for SetRefName { type RefName = Set; - type ObjectId = St::ObjectId; - type Repo = St::Repo; - } - ///State transition - sets the `object_id` field to Set - pub struct SetObjectId(PhantomData St>); - impl sealed::Sealed for SetObjectId {} - impl State for SetObjectId { - type RefName = St::RefName; - type ObjectId = Set; type Repo = St::Repo; + type ObjectId = St::ObjectId; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { type RefName = St::RefName; - type ObjectId = St::ObjectId; type Repo = Set; + type ObjectId = St::ObjectId; + } + ///State transition - sets the `object_id` field to Set + pub struct SetObjectId(PhantomData St>); + impl sealed::Sealed for SetObjectId {} + impl State for SetObjectId { + type RefName = St::RefName; + type Repo = St::Repo; + type ObjectId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `ref_name` field pub struct ref_name(()); - ///Marker type for the `object_id` field - pub struct object_id(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `object_id` field + pub struct object_id(()); } } @@ -280,8 +280,8 @@ impl RefBuilder where St: ref_state::State, St::RefName: ref_state::IsSet, - St::ObjectId: ref_state::IsSet, St::Repo: ref_state::IsSet, + St::ObjectId: ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> Ref { diff --git a/crates/jacquard-api/src/tech_lenooby09/didgit/signature_proof.rs b/crates/jacquard-api/src/tech_lenooby09/didgit/signature_proof.rs index 608f12ec..19bdfa87 100644 --- a/crates/jacquard-api/src/tech_lenooby09/didgit/signature_proof.rs +++ b/crates/jacquard-api/src/tech_lenooby09/didgit/signature_proof.rs @@ -280,105 +280,105 @@ pub mod signature_proof_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Signer; - type ObjectType; - type ObjectId; type SignatureType; - type SignedAt; type Signature; + type SignedAt; + type ObjectId; + type ObjectType; + type Signer; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Signer = Unset; - type ObjectType = Unset; - type ObjectId = Unset; type SignatureType = Unset; - type SignedAt = Unset; type Signature = Unset; + type SignedAt = Unset; + type ObjectId = Unset; + type ObjectType = Unset; + type Signer = Unset; } - ///State transition - sets the `signer` field to Set - pub struct SetSigner(PhantomData St>); - impl sealed::Sealed for SetSigner {} - impl State for SetSigner { - type Signer = Set; - type ObjectType = St::ObjectType; + ///State transition - sets the `signature_type` field to Set + pub struct SetSignatureType(PhantomData St>); + impl sealed::Sealed for SetSignatureType {} + impl State for SetSignatureType { + type SignatureType = Set; + type Signature = St::Signature; + type SignedAt = St::SignedAt; type ObjectId = St::ObjectId; + type ObjectType = St::ObjectType; + type Signer = St::Signer; + } + ///State transition - sets the `signature` field to Set + pub struct SetSignature(PhantomData St>); + impl sealed::Sealed for SetSignature {} + impl State for SetSignature { type SignatureType = St::SignatureType; + type Signature = Set; type SignedAt = St::SignedAt; - type Signature = St::Signature; - } - ///State transition - sets the `object_type` field to Set - pub struct SetObjectType(PhantomData St>); - impl sealed::Sealed for SetObjectType {} - impl State for SetObjectType { - type Signer = St::Signer; - type ObjectType = Set; type ObjectId = St::ObjectId; + type ObjectType = St::ObjectType; + type Signer = St::Signer; + } + ///State transition - sets the `signed_at` field to Set + pub struct SetSignedAt(PhantomData St>); + impl sealed::Sealed for SetSignedAt {} + impl State for SetSignedAt { type SignatureType = St::SignatureType; - type SignedAt = St::SignedAt; type Signature = St::Signature; + type SignedAt = Set; + type ObjectId = St::ObjectId; + type ObjectType = St::ObjectType; + type Signer = St::Signer; } ///State transition - sets the `object_id` field to Set pub struct SetObjectId(PhantomData St>); impl sealed::Sealed for SetObjectId {} impl State for SetObjectId { - type Signer = St::Signer; - type ObjectType = St::ObjectType; - type ObjectId = Set; type SignatureType = St::SignatureType; - type SignedAt = St::SignedAt; type Signature = St::Signature; - } - ///State transition - sets the `signature_type` field to Set - pub struct SetSignatureType(PhantomData St>); - impl sealed::Sealed for SetSignatureType {} - impl State for SetSignatureType { - type Signer = St::Signer; - type ObjectType = St::ObjectType; - type ObjectId = St::ObjectId; - type SignatureType = Set; type SignedAt = St::SignedAt; - type Signature = St::Signature; - } - ///State transition - sets the `signed_at` field to Set - pub struct SetSignedAt(PhantomData St>); - impl sealed::Sealed for SetSignedAt {} - impl State for SetSignedAt { - type Signer = St::Signer; + type ObjectId = Set; type ObjectType = St::ObjectType; - type ObjectId = St::ObjectId; + type Signer = St::Signer; + } + ///State transition - sets the `object_type` field to Set + pub struct SetObjectType(PhantomData St>); + impl sealed::Sealed for SetObjectType {} + impl State for SetObjectType { type SignatureType = St::SignatureType; - type SignedAt = Set; type Signature = St::Signature; - } - ///State transition - sets the `signature` field to Set - pub struct SetSignature(PhantomData St>); - impl sealed::Sealed for SetSignature {} - impl State for SetSignature { - type Signer = St::Signer; - type ObjectType = St::ObjectType; + type SignedAt = St::SignedAt; type ObjectId = St::ObjectId; + type ObjectType = Set; + type Signer = St::Signer; + } + ///State transition - sets the `signer` field to Set + pub struct SetSigner(PhantomData St>); + impl sealed::Sealed for SetSigner {} + impl State for SetSigner { type SignatureType = St::SignatureType; + type Signature = St::Signature; type SignedAt = St::SignedAt; - type Signature = Set; + type ObjectId = St::ObjectId; + type ObjectType = St::ObjectType; + type Signer = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `signer` field - pub struct signer(()); - ///Marker type for the `object_type` field - pub struct object_type(()); - ///Marker type for the `object_id` field - pub struct object_id(()); ///Marker type for the `signature_type` field pub struct signature_type(()); - ///Marker type for the `signed_at` field - pub struct signed_at(()); ///Marker type for the `signature` field pub struct signature(()); + ///Marker type for the `signed_at` field + pub struct signed_at(()); + ///Marker type for the `object_id` field + pub struct object_id(()); + ///Marker type for the `object_type` field + pub struct object_type(()); + ///Marker type for the `signer` field + pub struct signer(()); } } @@ -545,12 +545,12 @@ where impl SignatureProofBuilder where St: signature_proof_state::State, - St::Signer: signature_proof_state::IsSet, - St::ObjectType: signature_proof_state::IsSet, - St::ObjectId: signature_proof_state::IsSet, St::SignatureType: signature_proof_state::IsSet, - St::SignedAt: signature_proof_state::IsSet, St::Signature: signature_proof_state::IsSet, + St::SignedAt: signature_proof_state::IsSet, + St::ObjectId: signature_proof_state::IsSet, + St::ObjectType: signature_proof_state::IsSet, + St::Signer: signature_proof_state::IsSet, { /// Build the final struct. pub fn build(self) -> SignatureProof { diff --git a/crates/jacquard-api/src/tech_manos/twmirror/post.rs b/crates/jacquard-api/src/tech_manos/twmirror/post.rs index e5abd00a..1c2c420b 100644 --- a/crates/jacquard-api/src/tech_manos/twmirror/post.rs +++ b/crates/jacquard-api/src/tech_manos/twmirror/post.rs @@ -120,65 +120,65 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type TwUserId; type BskyPost; + type TwUserId; + type CreatedAt; type TweetId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type TwUserId = Unset; type BskyPost = Unset; + type TwUserId = Unset; + type CreatedAt = Unset; type TweetId = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; + ///State transition - sets the `bsky_post` field to Set + pub struct SetBskyPost(PhantomData St>); + impl sealed::Sealed for SetBskyPost {} + impl State for SetBskyPost { + type BskyPost = Set; type TwUserId = St::TwUserId; - type BskyPost = St::BskyPost; + type CreatedAt = St::CreatedAt; type TweetId = St::TweetId; } ///State transition - sets the `tw_user_id` field to Set pub struct SetTwUserId(PhantomData St>); impl sealed::Sealed for SetTwUserId {} impl State for SetTwUserId { - type CreatedAt = St::CreatedAt; - type TwUserId = Set; type BskyPost = St::BskyPost; + type TwUserId = Set; + type CreatedAt = St::CreatedAt; type TweetId = St::TweetId; } - ///State transition - sets the `bsky_post` field to Set - pub struct SetBskyPost(PhantomData St>); - impl sealed::Sealed for SetBskyPost {} - impl State for SetBskyPost { - type CreatedAt = St::CreatedAt; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type BskyPost = St::BskyPost; type TwUserId = St::TwUserId; - type BskyPost = Set; + type CreatedAt = Set; type TweetId = St::TweetId; } ///State transition - sets the `tweet_id` field to Set pub struct SetTweetId(PhantomData St>); impl sealed::Sealed for SetTweetId {} impl State for SetTweetId { - type CreatedAt = St::CreatedAt; - type TwUserId = St::TwUserId; type BskyPost = St::BskyPost; + type TwUserId = St::TwUserId; + type CreatedAt = St::CreatedAt; type TweetId = 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 `tw_user_id` field - pub struct tw_user_id(()); ///Marker type for the `bsky_post` field pub struct bsky_post(()); + ///Marker type for the `tw_user_id` field + pub struct tw_user_id(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `tweet_id` field pub struct tweet_id(()); } @@ -293,9 +293,9 @@ where impl PostBuilder where St: post_state::State, - St::CreatedAt: post_state::IsSet, - St::TwUserId: post_state::IsSet, St::BskyPost: post_state::IsSet, + St::TwUserId: post_state::IsSet, + St::CreatedAt: post_state::IsSet, St::TweetId: post_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/tech_tokimeki/kaku.rs b/crates/jacquard-api/src/tech_tokimeki/kaku.rs index 8a763a64..73584e5b 100644 --- a/crates/jacquard-api/src/tech_tokimeki/kaku.rs +++ b/crates/jacquard-api/src/tech_tokimeki/kaku.rs @@ -614,37 +614,37 @@ pub mod aspect_ratio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Width; type Height; + type Width; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Width = Unset; type Height = Unset; - } - ///State transition - sets the `width` field to Set - pub struct SetWidth(PhantomData St>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = St::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData St>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = St::Width; type Height = Set; + type Width = St::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData St>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = St::Height; + type Width = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `width` field - pub struct width(()); ///Marker type for the `height` field pub struct height(()); + ///Marker type for the `width` field + pub struct width(()); } } @@ -714,8 +714,8 @@ where impl AspectRatioBuilder where St: aspect_ratio_state::State, - St::Width: aspect_ratio_state::IsSet, St::Height: aspect_ratio_state::IsSet, + St::Width: aspect_ratio_state::IsSet, { /// Build the final struct. pub fn build(self) -> AspectRatio { @@ -1382,83 +1382,83 @@ pub mod collection_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Author; type Cid; + type CreatedAt; type Name; + type Author; type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Author = Unset; type Cid = Unset; + type CreatedAt = Unset; type Name = Unset; + type Author = Unset; type Uri = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Author = St::Author; - type Cid = St::Cid; - type Name = St::Name; - type Uri = St::Uri; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type CreatedAt = St::CreatedAt; - type Author = Set; - type Cid = St::Cid; - type Name = St::Name; - type Uri = St::Uri; - } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Cid = Set; type CreatedAt = St::CreatedAt; + type Name = St::Name; type Author = St::Author; - type Cid = Set; + type Uri = St::Uri; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Cid = St::Cid; + type CreatedAt = Set; type Name = St::Name; + type Author = St::Author; type Uri = St::Uri; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { + type Cid = St::Cid; type CreatedAt = St::CreatedAt; + type Name = Set; type Author = St::Author; + type Uri = St::Uri; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { type Cid = St::Cid; - type Name = Set; + type CreatedAt = St::CreatedAt; + type Name = St::Name; + type Author = Set; type Uri = St::Uri; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type CreatedAt = St::CreatedAt; - type Author = St::Author; type Cid = St::Cid; + type CreatedAt = St::CreatedAt; type Name = St::Name; + type Author = St::Author; type Uri = 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 `author` field - pub struct author(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `author` field + pub struct author(()); ///Marker type for the `uri` field pub struct uri(()); } @@ -1649,10 +1649,10 @@ where impl CollectionViewBuilder where St: collection_view_state::State, - St::CreatedAt: collection_view_state::IsSet, - St::Author: collection_view_state::IsSet, St::Cid: collection_view_state::IsSet, + St::CreatedAt: collection_view_state::IsSet, St::Name: collection_view_state::IsSet, + St::Author: collection_view_state::IsSet, St::Uri: collection_view_state::IsSet, { /// Build the final struct. @@ -1700,105 +1700,105 @@ pub mod post_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Image; type Uri; + type Cid; type Author; - type CreatedAt; + type Image; type AspectRatio; - type Cid; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Image = Unset; type Uri = Unset; + type Cid = Unset; type Author = Unset; - type CreatedAt = Unset; + type Image = Unset; type AspectRatio = Unset; - type Cid = Unset; - } - ///State transition - sets the `image` field to Set - pub struct SetImage(PhantomData St>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type Uri = St::Uri; - type Author = St::Author; - type CreatedAt = St::CreatedAt; - type AspectRatio = St::AspectRatio; - type Cid = St::Cid; + type CreatedAt = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Image = St::Image; type Uri = Set; + type Cid = St::Cid; type Author = St::Author; + type Image = St::Image; + type AspectRatio = St::AspectRatio; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type Cid = Set; + type Author = St::Author; + type Image = St::Image; type AspectRatio = St::AspectRatio; - type Cid = St::Cid; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Image = St::Image; type Uri = St::Uri; + type Cid = St::Cid; type Author = Set; - type CreatedAt = St::CreatedAt; + type Image = St::Image; type AspectRatio = St::AspectRatio; - type Cid = St::Cid; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Image = St::Image; + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData St>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { type Uri = St::Uri; + type Cid = St::Cid; type Author = St::Author; - type CreatedAt = Set; + type Image = Set; type AspectRatio = St::AspectRatio; - type Cid = St::Cid; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `aspect_ratio` field to Set pub struct SetAspectRatio(PhantomData St>); impl sealed::Sealed for SetAspectRatio {} impl State for SetAspectRatio { - type Image = St::Image; type Uri = St::Uri; + type Cid = St::Cid; type Author = St::Author; - type CreatedAt = St::CreatedAt; + type Image = St::Image; type AspectRatio = Set; - type Cid = St::Cid; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Image = St::Image; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { type Uri = St::Uri; + type Cid = St::Cid; type Author = St::Author; - type CreatedAt = St::CreatedAt; + type Image = St::Image; type AspectRatio = St::AspectRatio; - type Cid = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `image` field - pub struct image(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `author` field pub struct author(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `image` field + pub struct image(()); ///Marker type for the `aspect_ratio` field pub struct aspect_ratio(()); - ///Marker type for the `cid` field - pub struct cid(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -2060,12 +2060,12 @@ impl PostViewBuilder { impl PostViewBuilder where St: post_view_state::State, - St::Image: post_view_state::IsSet, St::Uri: post_view_state::IsSet, + St::Cid: post_view_state::IsSet, St::Author: post_view_state::IsSet, - St::CreatedAt: post_view_state::IsSet, + St::Image: post_view_state::IsSet, St::AspectRatio: post_view_state::IsSet, - St::Cid: post_view_state::IsSet, + St::CreatedAt: post_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> PostView { @@ -2148,83 +2148,83 @@ pub mod reply_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; type Author; - type Cid; type Text; - type Uri; + type Cid; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; type Author = Unset; - type Cid = Unset; type Text = Unset; - type Uri = Unset; + type Cid = Unset; type CreatedAt = Unset; } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; + type Author = St::Author; + type Text = St::Text; + type Cid = St::Cid; + type CreatedAt = St::CreatedAt; + } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Author = Set; - type Cid = St::Cid; - type Text = St::Text; type Uri = St::Uri; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Author = St::Author; - type Cid = Set; + type Author = Set; type Text = St::Text; - type Uri = St::Uri; + type Cid = St::Cid; type CreatedAt = St::CreatedAt; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { + type Uri = St::Uri; type Author = St::Author; - type Cid = St::Cid; type Text = Set; - type Uri = St::Uri; + type Cid = St::Cid; type CreatedAt = St::CreatedAt; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; type Author = St::Author; - type Cid = St::Cid; type Text = St::Text; - type Uri = Set; + type Cid = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Uri = St::Uri; type Author = St::Author; - type Cid = St::Cid; type Text = St::Text; - type Uri = St::Uri; + type Cid = St::Cid; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `author` field pub struct author(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `text` field pub struct text(()); - ///Marker type for the `uri` field - pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -2359,10 +2359,10 @@ where impl ReplyViewBuilder where St: reply_view_state::State, + St::Uri: reply_view_state::IsSet, St::Author: reply_view_state::IsSet, - St::Cid: reply_view_state::IsSet, St::Text: reply_view_state::IsSet, - St::Uri: reply_view_state::IsSet, + St::Cid: reply_view_state::IsSet, St::CreatedAt: reply_view_state::IsSet, { /// Build the final struct. @@ -2402,85 +2402,85 @@ pub mod request_response_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type Post; + type Cid; type Uri; type Author; - type Cid; + type CreatedAt; + type Post; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type Post = Unset; + type Cid = Unset; type Uri = Unset; type Author = Unset; - type Cid = Unset; + type CreatedAt = Unset; + type Post = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Post = St::Post; + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Cid = Set; type Uri = St::Uri; type Author = St::Author; - type Cid = St::Cid; - } - ///State transition - sets the `post` field to Set - pub struct SetPost(PhantomData St>); - impl sealed::Sealed for SetPost {} - impl State for SetPost { type CreatedAt = St::CreatedAt; - type Post = Set; - type Uri = St::Uri; - type Author = St::Author; - type Cid = St::Cid; + type Post = St::Post; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type CreatedAt = St::CreatedAt; - type Post = St::Post; + type Cid = St::Cid; type Uri = Set; type Author = St::Author; - type Cid = St::Cid; + type CreatedAt = St::CreatedAt; + type Post = St::Post; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData St>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type CreatedAt = St::CreatedAt; - type Post = St::Post; + type Cid = St::Cid; type Uri = St::Uri; type Author = Set; - type Cid = St::Cid; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { type CreatedAt = St::CreatedAt; type Post = St::Post; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Cid = St::Cid; type Uri = St::Uri; type Author = St::Author; - type Cid = Set; + type CreatedAt = Set; + type Post = St::Post; + } + ///State transition - sets the `post` field to Set + pub struct SetPost(PhantomData St>); + impl sealed::Sealed for SetPost {} + impl State for SetPost { + type Cid = St::Cid; + type Uri = St::Uri; + type Author = St::Author; + type CreatedAt = St::CreatedAt; + type Post = 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 `post` field - pub struct post(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `author` field pub struct author(()); - ///Marker type for the `cid` field - pub struct cid(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `post` field + pub struct post(()); } } @@ -2633,11 +2633,11 @@ where impl RequestResponseViewBuilder where St: request_response_view_state::State, - St::CreatedAt: request_response_view_state::IsSet, - St::Post: request_response_view_state::IsSet, + St::Cid: request_response_view_state::IsSet, St::Uri: request_response_view_state::IsSet, St::Author: request_response_view_state::IsSet, - St::Cid: request_response_view_state::IsSet, + St::CreatedAt: request_response_view_state::IsSet, + St::Post: request_response_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> RequestResponseView { @@ -2680,10 +2680,10 @@ pub mod request_view_state { pub trait State: sealed::Sealed { type Cid; type Uri; + type Author; + type CreatedAt; type Text; type IsOpen; - type CreatedAt; - type Author; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -2691,10 +2691,10 @@ pub mod request_view_state { impl State for Empty { type Cid = Unset; type Uri = Unset; + type Author = Unset; + type CreatedAt = Unset; type Text = Unset; type IsOpen = Unset; - type CreatedAt = Unset; - type Author = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); @@ -2702,10 +2702,10 @@ pub mod request_view_state { impl State for SetCid { type Cid = Set; type Uri = St::Uri; + type Author = St::Author; + type CreatedAt = St::CreatedAt; type Text = St::Text; type IsOpen = St::IsOpen; - type CreatedAt = St::CreatedAt; - type Author = St::Author; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); @@ -2713,10 +2713,32 @@ pub mod request_view_state { impl State for SetUri { type Cid = St::Cid; type Uri = Set; + type Author = St::Author; + type CreatedAt = St::CreatedAt; type Text = St::Text; type IsOpen = St::IsOpen; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData St>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Cid = St::Cid; + type Uri = St::Uri; + type Author = Set; type CreatedAt = St::CreatedAt; + type Text = St::Text; + type IsOpen = St::IsOpen; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Cid = St::Cid; + type Uri = St::Uri; type Author = St::Author; + type CreatedAt = Set; + type Text = St::Text; + type IsOpen = St::IsOpen; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); @@ -2724,10 +2746,10 @@ pub mod request_view_state { impl State for SetText { type Cid = St::Cid; type Uri = St::Uri; + type Author = St::Author; + type CreatedAt = St::CreatedAt; type Text = Set; type IsOpen = St::IsOpen; - type CreatedAt = St::CreatedAt; - type Author = St::Author; } ///State transition - sets the `is_open` field to Set pub struct SetIsOpen(PhantomData St>); @@ -2735,32 +2757,10 @@ pub mod request_view_state { impl State for SetIsOpen { type Cid = St::Cid; type Uri = St::Uri; - type Text = St::Text; - type IsOpen = Set; - type CreatedAt = St::CreatedAt; - type Author = St::Author; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Cid = St::Cid; - type Uri = St::Uri; - type Text = St::Text; - type IsOpen = St::IsOpen; - type CreatedAt = Set; type Author = St::Author; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData St>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Cid = St::Cid; - type Uri = St::Uri; - type Text = St::Text; - type IsOpen = St::IsOpen; type CreatedAt = St::CreatedAt; - type Author = Set; + type Text = St::Text; + type IsOpen = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -2769,14 +2769,14 @@ pub mod request_view_state { pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `author` field + pub struct author(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `text` field pub struct text(()); ///Marker type for the `is_open` field pub struct is_open(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `author` field - pub struct author(()); } } @@ -3007,10 +3007,10 @@ where St: request_view_state::State, St::Cid: request_view_state::IsSet, St::Uri: request_view_state::IsSet, + St::Author: request_view_state::IsSet, + St::CreatedAt: request_view_state::IsSet, St::Text: request_view_state::IsSet, St::IsOpen: request_view_state::IsSet, - St::CreatedAt: request_view_state::IsSet, - St::Author: request_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> RequestView { diff --git a/crates/jacquard-api/src/tech_tokimeki/kaku/collection.rs b/crates/jacquard-api/src/tech_tokimeki/kaku/collection.rs index c165bba9..081f1354 100644 --- a/crates/jacquard-api/src/tech_tokimeki/kaku/collection.rs +++ b/crates/jacquard-api/src/tech_tokimeki/kaku/collection.rs @@ -181,37 +181,37 @@ pub mod collection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Name; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Name = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Name = St::Name; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatedAt = St::CreatedAt; type Name = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = 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 `name` field pub struct name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -307,8 +307,8 @@ where impl CollectionBuilder where St: collection_state::State, - St::CreatedAt: collection_state::IsSet, St::Name: collection_state::IsSet, + St::CreatedAt: collection_state::IsSet, { /// Build the final struct. pub fn build(self) -> Collection { diff --git a/crates/jacquard-api/src/tech_tokimeki/kaku/collection_item.rs b/crates/jacquard-api/src/tech_tokimeki/kaku/collection_item.rs index afd05658..f54b9d51 100644 --- a/crates/jacquard-api/src/tech_tokimeki/kaku/collection_item.rs +++ b/crates/jacquard-api/src/tech_tokimeki/kaku/collection_item.rs @@ -128,49 +128,49 @@ pub mod collection_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Collection; type Post; + type Collection; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Collection = Unset; type Post = Unset; + type Collection = Unset; type CreatedAt = Unset; } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData St>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Collection = Set; - type Post = St::Post; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `post` field to Set pub struct SetPost(PhantomData St>); impl sealed::Sealed for SetPost {} impl State for SetPost { - type Collection = St::Collection; type Post = Set; + type Collection = St::Collection; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData St>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type Post = St::Post; + type Collection = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Collection = St::Collection; type Post = St::Post; + type Collection = St::Collection; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `collection` field - pub struct collection(()); ///Marker type for the `post` field pub struct post(()); + ///Marker type for the `collection` field + pub struct collection(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -274,8 +274,8 @@ where impl CollectionItemBuilder where St: collection_item_state::State, - St::Collection: collection_item_state::IsSet, St::Post: collection_item_state::IsSet, + St::Collection: collection_item_state::IsSet, St::CreatedAt: collection_item_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/tech_tokimeki/kaku/reaction.rs b/crates/jacquard-api/src/tech_tokimeki/kaku/reaction.rs index 6d7f505f..1c6e9e63 100644 --- a/crates/jacquard-api/src/tech_tokimeki/kaku/reaction.rs +++ b/crates/jacquard-api/src/tech_tokimeki/kaku/reaction.rs @@ -207,51 +207,51 @@ pub mod reaction_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Type; type CreatedAt; type Subject; - type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Type = Unset; type CreatedAt = Unset; type Subject = Unset; - type Type = Unset; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Type = Set; + type CreatedAt = St::CreatedAt; + type Subject = St::Subject; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Type = St::Type; type CreatedAt = Set; type Subject = St::Subject; - type Type = St::Type; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = St::CreatedAt; - type Subject = Set; type Type = St::Type; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { type CreatedAt = St::CreatedAt; - type Subject = St::Subject; - type Type = Set; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `type` field + pub struct r#type(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `type` field - pub struct r#type(()); } } @@ -340,9 +340,9 @@ where impl ReactionBuilder where St: reaction_state::State, + St::Type: reaction_state::IsSet, St::CreatedAt: reaction_state::IsSet, St::Subject: reaction_state::IsSet, - St::Type: reaction_state::IsSet, { /// Build the final struct. pub fn build(self) -> Reaction { diff --git a/crates/jacquard-api/src/tech_tokimeki/kaku/request_response.rs b/crates/jacquard-api/src/tech_tokimeki/kaku/request_response.rs index adbcb8d6..2bd33c66 100644 --- a/crates/jacquard-api/src/tech_tokimeki/kaku/request_response.rs +++ b/crates/jacquard-api/src/tech_tokimeki/kaku/request_response.rs @@ -141,51 +141,51 @@ pub mod request_response_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Request; type Post; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Request = Unset; type Post = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Request = St::Request; - type Post = St::Post; + type CreatedAt = Unset; } ///State transition - sets the `request` field to Set pub struct SetRequest(PhantomData St>); impl sealed::Sealed for SetRequest {} impl State for SetRequest { - type CreatedAt = St::CreatedAt; type Request = Set; type Post = St::Post; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `post` field to Set pub struct SetPost(PhantomData St>); impl sealed::Sealed for SetPost {} impl State for SetPost { - type CreatedAt = St::CreatedAt; type Request = St::Request; type Post = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Request = St::Request; + type Post = St::Post; + type CreatedAt = 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 `request` field pub struct request(()); ///Marker type for the `post` field pub struct post(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -287,9 +287,9 @@ where impl RequestResponseBuilder where St: request_response_state::State, - St::CreatedAt: request_response_state::IsSet, St::Request: request_response_state::IsSet, St::Post: request_response_state::IsSet, + St::CreatedAt: request_response_state::IsSet, { /// Build the final struct. pub fn build(self) -> RequestResponse { diff --git a/crates/jacquard-api/src/tech_tokimeki/poll/vote.rs b/crates/jacquard-api/src/tech_tokimeki/poll/vote.rs index 6c3d59fc..b554baac 100644 --- a/crates/jacquard-api/src/tech_tokimeki/poll/vote.rs +++ b/crates/jacquard-api/src/tech_tokimeki/poll/vote.rs @@ -136,49 +136,49 @@ pub mod vote_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type OptionIndex; type CreatedAt; + type OptionIndex; type Poll; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type OptionIndex = Unset; type CreatedAt = Unset; + type OptionIndex = Unset; type Poll = Unset; } - ///State transition - sets the `option_index` field to Set - pub struct SetOptionIndex(PhantomData St>); - impl sealed::Sealed for SetOptionIndex {} - impl State for SetOptionIndex { - type OptionIndex = Set; - type CreatedAt = St::CreatedAt; - type Poll = St::Poll; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type OptionIndex = St::OptionIndex; type CreatedAt = Set; + type OptionIndex = St::OptionIndex; + type Poll = St::Poll; + } + ///State transition - sets the `option_index` field to Set + pub struct SetOptionIndex(PhantomData St>); + impl sealed::Sealed for SetOptionIndex {} + impl State for SetOptionIndex { + type CreatedAt = St::CreatedAt; + type OptionIndex = Set; type Poll = St::Poll; } ///State transition - sets the `poll` field to Set pub struct SetPoll(PhantomData St>); impl sealed::Sealed for SetPoll {} impl State for SetPoll { - type OptionIndex = St::OptionIndex; type CreatedAt = St::CreatedAt; + type OptionIndex = St::OptionIndex; type Poll = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `option_index` field - pub struct option_index(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `option_index` field + pub struct option_index(()); ///Marker type for the `poll` field pub struct poll(()); } @@ -269,8 +269,8 @@ where impl VoteBuilder where St: vote_state::State, - St::OptionIndex: vote_state::IsSet, St::CreatedAt: vote_state::IsSet, + St::OptionIndex: vote_state::IsSet, St::Poll: vote_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/tech_tokimeki/takibi/log.rs b/crates/jacquard-api/src/tech_tokimeki/takibi/log.rs index 887710ba..c256f41f 100644 --- a/crates/jacquard-api/src/tech_tokimeki/takibi/log.rs +++ b/crates/jacquard-api/src/tech_tokimeki/takibi/log.rs @@ -385,37 +385,37 @@ pub mod spark_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Spark; type Elapsed; + type Spark; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Spark = Unset; type Elapsed = Unset; - } - ///State transition - sets the `spark` field to Set - pub struct SetSpark(PhantomData St>); - impl sealed::Sealed for SetSpark {} - impl State for SetSpark { - type Spark = Set; - type Elapsed = St::Elapsed; + type Spark = Unset; } ///State transition - sets the `elapsed` field to Set pub struct SetElapsed(PhantomData St>); impl sealed::Sealed for SetElapsed {} impl State for SetElapsed { - type Spark = St::Spark; type Elapsed = Set; + type Spark = St::Spark; + } + ///State transition - sets the `spark` field to Set + pub struct SetSpark(PhantomData St>); + impl sealed::Sealed for SetSpark {} + impl State for SetSpark { + type Elapsed = St::Elapsed; + type Spark = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `spark` field - pub struct spark(()); ///Marker type for the `elapsed` field pub struct elapsed(()); + ///Marker type for the `spark` field + pub struct spark(()); } } @@ -485,8 +485,8 @@ where impl SparkRefBuilder where St: spark_ref_state::State, - St::Spark: spark_ref_state::IsSet, St::Elapsed: spark_ref_state::IsSet, + St::Spark: spark_ref_state::IsSet, { /// Build the final struct. pub fn build(self) -> SparkRef { diff --git a/crates/jacquard-api/src/tech_tokimeki/takibi/spark.rs b/crates/jacquard-api/src/tech_tokimeki/takibi/spark.rs index 574cac30..09ae3456 100644 --- a/crates/jacquard-api/src/tech_tokimeki/takibi/spark.rs +++ b/crates/jacquard-api/src/tech_tokimeki/takibi/spark.rs @@ -137,37 +137,37 @@ pub mod spark_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; type CreatedAt; + type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Text = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type CreatedAt = St::CreatedAt; + type Text = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = St::Text; type CreatedAt = Set; + type Text = St::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = St::CreatedAt; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `text` field - pub struct text(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -237,8 +237,8 @@ where impl SparkBuilder where St: spark_state::State, - St::Text: spark_state::IsSet, St::CreatedAt: spark_state::IsSet, + St::Text: spark_state::IsSet, { /// Build the final struct. pub fn build(self) -> Spark { diff --git a/crates/jacquard-api/src/tools_ozone/communication.rs b/crates/jacquard-api/src/tools_ozone/communication.rs index eedc5ec5..96ecddf3 100644 --- a/crates/jacquard-api/src/tools_ozone/communication.rs +++ b/crates/jacquard-api/src/tools_ozone/communication.rs @@ -79,127 +79,127 @@ pub mod template_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type LastUpdatedBy; + type CreatedAt; type Disabled; + type Id; type UpdatedAt; - type CreatedAt; - type LastUpdatedBy; type ContentMarkdown; type Name; - type Id; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type LastUpdatedBy = Unset; + type CreatedAt = Unset; type Disabled = Unset; + type Id = Unset; type UpdatedAt = Unset; - type CreatedAt = Unset; - type LastUpdatedBy = Unset; type ContentMarkdown = Unset; type Name = Unset; - type Id = Unset; } - ///State transition - sets the `disabled` field to Set - pub struct SetDisabled(PhantomData St>); - impl sealed::Sealed for SetDisabled {} - impl State for SetDisabled { - type Disabled = Set; - type UpdatedAt = St::UpdatedAt; + ///State transition - sets the `last_updated_by` field to Set + pub struct SetLastUpdatedBy(PhantomData St>); + impl sealed::Sealed for SetLastUpdatedBy {} + impl State for SetLastUpdatedBy { + type LastUpdatedBy = Set; type CreatedAt = St::CreatedAt; - type LastUpdatedBy = St::LastUpdatedBy; - type ContentMarkdown = St::ContentMarkdown; - type Name = St::Name; - type Id = St::Id; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { type Disabled = St::Disabled; - type UpdatedAt = Set; - type CreatedAt = St::CreatedAt; - type LastUpdatedBy = St::LastUpdatedBy; + type Id = St::Id; + type UpdatedAt = St::UpdatedAt; type ContentMarkdown = St::ContentMarkdown; type Name = St::Name; - type Id = St::Id; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type LastUpdatedBy = St::LastUpdatedBy; + type CreatedAt = Set; type Disabled = St::Disabled; + type Id = St::Id; type UpdatedAt = St::UpdatedAt; - type CreatedAt = Set; - type LastUpdatedBy = St::LastUpdatedBy; type ContentMarkdown = St::ContentMarkdown; type Name = St::Name; + } + ///State transition - sets the `disabled` field to Set + pub struct SetDisabled(PhantomData St>); + impl sealed::Sealed for SetDisabled {} + impl State for SetDisabled { + type LastUpdatedBy = St::LastUpdatedBy; + type CreatedAt = St::CreatedAt; + type Disabled = Set; type Id = St::Id; + type UpdatedAt = St::UpdatedAt; + type ContentMarkdown = St::ContentMarkdown; + type Name = St::Name; } - ///State transition - sets the `last_updated_by` field to Set - pub struct SetLastUpdatedBy(PhantomData St>); - impl sealed::Sealed for SetLastUpdatedBy {} - impl State for SetLastUpdatedBy { + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type LastUpdatedBy = St::LastUpdatedBy; + type CreatedAt = St::CreatedAt; type Disabled = St::Disabled; + type Id = Set; type UpdatedAt = St::UpdatedAt; - type CreatedAt = St::CreatedAt; - type LastUpdatedBy = Set; type ContentMarkdown = St::ContentMarkdown; type Name = St::Name; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type LastUpdatedBy = St::LastUpdatedBy; + type CreatedAt = St::CreatedAt; + type Disabled = St::Disabled; type Id = St::Id; + type UpdatedAt = Set; + type ContentMarkdown = St::ContentMarkdown; + type Name = St::Name; } ///State transition - sets the `content_markdown` field to Set pub struct SetContentMarkdown(PhantomData St>); impl sealed::Sealed for SetContentMarkdown {} impl State for SetContentMarkdown { + type LastUpdatedBy = St::LastUpdatedBy; + type CreatedAt = St::CreatedAt; type Disabled = St::Disabled; + type Id = St::Id; type UpdatedAt = St::UpdatedAt; - type CreatedAt = St::CreatedAt; - type LastUpdatedBy = St::LastUpdatedBy; type ContentMarkdown = Set; type Name = St::Name; - type Id = St::Id; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Disabled = St::Disabled; - type UpdatedAt = St::UpdatedAt; - type CreatedAt = St::CreatedAt; type LastUpdatedBy = St::LastUpdatedBy; - type ContentMarkdown = St::ContentMarkdown; - type Name = Set; - type Id = St::Id; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { + type CreatedAt = St::CreatedAt; type Disabled = St::Disabled; + type Id = St::Id; type UpdatedAt = St::UpdatedAt; - type CreatedAt = St::CreatedAt; - type LastUpdatedBy = St::LastUpdatedBy; type ContentMarkdown = St::ContentMarkdown; - type Name = St::Name; - type Id = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `last_updated_by` field + pub struct last_updated_by(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `disabled` field pub struct disabled(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `updated_at` field pub struct updated_at(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `last_updated_by` field - pub struct last_updated_by(()); ///Marker type for the `content_markdown` field pub struct content_markdown(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `id` field - pub struct id(()); } } @@ -400,13 +400,13 @@ where impl TemplateViewBuilder where St: template_view_state::State, + St::LastUpdatedBy: template_view_state::IsSet, + St::CreatedAt: template_view_state::IsSet, St::Disabled: template_view_state::IsSet, + St::Id: template_view_state::IsSet, St::UpdatedAt: template_view_state::IsSet, - St::CreatedAt: template_view_state::IsSet, - St::LastUpdatedBy: template_view_state::IsSet, St::ContentMarkdown: template_view_state::IsSet, St::Name: template_view_state::IsSet, - St::Id: template_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> TemplateView { diff --git a/crates/jacquard-api/src/tools_ozone/moderation.rs b/crates/jacquard-api/src/tools_ozone/moderation.rs index 92617017..bf6d6789 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation.rs @@ -5847,50 +5847,50 @@ pub mod age_assurance_event_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type AttemptId; type Status; + type AttemptId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type AttemptId = Unset; type Status = Unset; + type AttemptId = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type AttemptId = St::AttemptId; - type Status = St::Status; - } - ///State transition - sets the `attempt_id` field to Set - pub struct SetAttemptId(PhantomData St>); - impl sealed::Sealed for SetAttemptId {} - impl State for SetAttemptId { - type CreatedAt = St::CreatedAt; - type AttemptId = Set; type Status = St::Status; + type AttemptId = St::AttemptId; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { type CreatedAt = St::CreatedAt; - type AttemptId = St::AttemptId; type Status = Set; + type AttemptId = St::AttemptId; + } + ///State transition - sets the `attempt_id` field to Set + pub struct SetAttemptId(PhantomData St>); + impl sealed::Sealed for SetAttemptId {} + impl State for SetAttemptId { + type CreatedAt = St::CreatedAt; + type Status = St::Status; + type AttemptId = 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 `attempt_id` field - pub struct attempt_id(()); ///Marker type for the `status` field pub struct status(()); + ///Marker type for the `attempt_id` field + pub struct attempt_id(()); } } @@ -6082,8 +6082,8 @@ impl AgeAssuranceEventBuilder where St: age_assurance_event_state::State, St::CreatedAt: age_assurance_event_state::IsSet, - St::AttemptId: age_assurance_event_state::IsSet, St::Status: age_assurance_event_state::IsSet, + St::AttemptId: age_assurance_event_state::IsSet, { /// Build the final struct. pub fn build(self) -> AgeAssuranceEvent { @@ -6132,67 +6132,67 @@ pub mod blob_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type MimeType; type Size; type CreatedAt; type Cid; + type MimeType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type MimeType = Unset; type Size = Unset; type CreatedAt = Unset; type Cid = Unset; - } - ///State transition - sets the `mime_type` field to Set - pub struct SetMimeType(PhantomData St>); - impl sealed::Sealed for SetMimeType {} - impl State for SetMimeType { - type MimeType = Set; - type Size = St::Size; - type CreatedAt = St::CreatedAt; - type Cid = St::Cid; + type MimeType = Unset; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData St>); impl sealed::Sealed for SetSize {} impl State for SetSize { - type MimeType = St::MimeType; type Size = Set; type CreatedAt = St::CreatedAt; type Cid = St::Cid; + type MimeType = St::MimeType; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type MimeType = St::MimeType; type Size = St::Size; type CreatedAt = Set; type Cid = St::Cid; + type MimeType = St::MimeType; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData St>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type MimeType = St::MimeType; type Size = St::Size; type CreatedAt = St::CreatedAt; type Cid = Set; + type MimeType = St::MimeType; + } + ///State transition - sets the `mime_type` field to Set + pub struct SetMimeType(PhantomData St>); + impl sealed::Sealed for SetMimeType {} + impl State for SetMimeType { + type Size = St::Size; + type CreatedAt = St::CreatedAt; + type Cid = St::Cid; + type MimeType = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `mime_type` field - pub struct mime_type(()); ///Marker type for the `size` field pub struct size(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `mime_type` field + pub struct mime_type(()); } } @@ -6336,10 +6336,10 @@ where impl BlobViewBuilder where St: blob_view_state::State, - St::MimeType: blob_view_state::IsSet, St::Size: blob_view_state::IsSet, St::CreatedAt: blob_view_state::IsSet, St::Cid: blob_view_state::IsSet, + St::MimeType: blob_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> BlobView { @@ -6543,37 +6543,37 @@ pub mod image_details_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Height; type Width; + type Height; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Height = Unset; type Width = Unset; - } - ///State transition - sets the `height` field to Set - pub struct SetHeight(PhantomData St>); - impl sealed::Sealed for SetHeight {} - impl State for SetHeight { - type Height = Set; - type Width = St::Width; + type Height = Unset; } ///State transition - sets the `width` field to Set pub struct SetWidth(PhantomData St>); impl sealed::Sealed for SetWidth {} impl State for SetWidth { - type Height = St::Height; type Width = Set; + type Height = St::Height; + } + ///State transition - sets the `height` field to Set + pub struct SetHeight(PhantomData St>); + impl sealed::Sealed for SetHeight {} + impl State for SetHeight { + type Width = St::Width; + type Height = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `height` field - pub struct height(()); ///Marker type for the `width` field pub struct width(()); + ///Marker type for the `height` field + pub struct height(()); } } @@ -6643,8 +6643,8 @@ where impl ImageDetailsBuilder where St: image_details_state::State, - St::Height: image_details_state::IsSet, St::Width: image_details_state::IsSet, + St::Height: image_details_state::IsSet, { /// Build the final struct. pub fn build(self) -> ImageDetails { @@ -6677,37 +6677,37 @@ pub mod mod_event_label_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreateLabelVals; type NegateLabelVals; + type CreateLabelVals; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreateLabelVals = Unset; type NegateLabelVals = Unset; - } - ///State transition - sets the `create_label_vals` field to Set - pub struct SetCreateLabelVals(PhantomData St>); - impl sealed::Sealed for SetCreateLabelVals {} - impl State for SetCreateLabelVals { - type CreateLabelVals = Set; - type NegateLabelVals = St::NegateLabelVals; + type CreateLabelVals = Unset; } ///State transition - sets the `negate_label_vals` field to Set pub struct SetNegateLabelVals(PhantomData St>); impl sealed::Sealed for SetNegateLabelVals {} impl State for SetNegateLabelVals { - type CreateLabelVals = St::CreateLabelVals; type NegateLabelVals = Set; + type CreateLabelVals = St::CreateLabelVals; + } + ///State transition - sets the `create_label_vals` field to Set + pub struct SetCreateLabelVals(PhantomData St>); + impl sealed::Sealed for SetCreateLabelVals {} + impl State for SetCreateLabelVals { + type NegateLabelVals = St::NegateLabelVals; + type CreateLabelVals = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `create_label_vals` field - pub struct create_label_vals(()); ///Marker type for the `negate_label_vals` field pub struct negate_label_vals(()); + ///Marker type for the `create_label_vals` field + pub struct create_label_vals(()); } } @@ -6803,8 +6803,8 @@ where impl ModEventLabelBuilder where St: mod_event_label_state::State, - St::CreateLabelVals: mod_event_label_state::IsSet, St::NegateLabelVals: mod_event_label_state::IsSet, + St::CreateLabelVals: mod_event_label_state::IsSet, { /// Build the final struct. pub fn build(self) -> ModEventLabel { @@ -7359,105 +7359,105 @@ pub mod mod_event_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type SubjectBlobCids; + type Id; type Subject; - type CreatedAt; - type Event; type CreatedBy; - type Id; + type Event; + type SubjectBlobCids; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type SubjectBlobCids = Unset; + type Id = Unset; type Subject = Unset; - type CreatedAt = Unset; - type Event = Unset; type CreatedBy = Unset; - type Id = Unset; + type Event = Unset; + type SubjectBlobCids = Unset; + type CreatedAt = Unset; } - ///State transition - sets the `subject_blob_cids` field to Set - pub struct SetSubjectBlobCids(PhantomData St>); - impl sealed::Sealed for SetSubjectBlobCids {} - impl State for SetSubjectBlobCids { - type SubjectBlobCids = Set; + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Id = Set; type Subject = St::Subject; - type CreatedAt = St::CreatedAt; - type Event = St::Event; type CreatedBy = St::CreatedBy; - type Id = St::Id; + type Event = St::Event; + type SubjectBlobCids = St::SubjectBlobCids; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type SubjectBlobCids = St::SubjectBlobCids; + type Id = St::Id; type Subject = Set; - type CreatedAt = St::CreatedAt; - type Event = St::Event; type CreatedBy = St::CreatedBy; - type Id = St::Id; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Event = St::Event; type SubjectBlobCids = St::SubjectBlobCids; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData St>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { + type Id = St::Id; type Subject = St::Subject; - type CreatedAt = Set; + type CreatedBy = Set; type Event = St::Event; - type CreatedBy = St::CreatedBy; - type Id = St::Id; + type SubjectBlobCids = St::SubjectBlobCids; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `event` field to Set pub struct SetEvent(PhantomData St>); impl sealed::Sealed for SetEvent {} impl State for SetEvent { - type SubjectBlobCids = St::SubjectBlobCids; + type Id = St::Id; type Subject = St::Subject; - type CreatedAt = St::CreatedAt; - type Event = Set; type CreatedBy = St::CreatedBy; - type Id = St::Id; - } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData St>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { + type Event = Set; type SubjectBlobCids = St::SubjectBlobCids; - type Subject = St::Subject; type CreatedAt = St::CreatedAt; - type Event = St::Event; - type CreatedBy = Set; - type Id = St::Id; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type SubjectBlobCids = St::SubjectBlobCids; + ///State transition - sets the `subject_blob_cids` field to Set + pub struct SetSubjectBlobCids(PhantomData St>); + impl sealed::Sealed for SetSubjectBlobCids {} + impl State for SetSubjectBlobCids { + type Id = St::Id; type Subject = St::Subject; - type CreatedAt = St::CreatedAt; + type CreatedBy = St::CreatedBy; type Event = St::Event; + type SubjectBlobCids = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Id = St::Id; + type Subject = St::Subject; type CreatedBy = St::CreatedBy; - type Id = Set; + type Event = St::Event; + type SubjectBlobCids = St::SubjectBlobCids; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject_blob_cids` field - pub struct subject_blob_cids(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `created_at` field - pub struct created_at(()); - ///Marker type for the `event` field - pub struct event(()); ///Marker type for the `created_by` field pub struct created_by(()); - ///Marker type for the `id` field - pub struct id(()); + ///Marker type for the `event` field + pub struct event(()); + ///Marker type for the `subject_blob_cids` field + pub struct subject_blob_cids(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -7652,12 +7652,12 @@ impl ModEventViewBuilder { impl ModEventViewBuilder where St: mod_event_view_state::State, - St::SubjectBlobCids: mod_event_view_state::IsSet, + St::Id: mod_event_view_state::IsSet, St::Subject: mod_event_view_state::IsSet, - St::CreatedAt: mod_event_view_state::IsSet, - St::Event: mod_event_view_state::IsSet, St::CreatedBy: mod_event_view_state::IsSet, - St::Id: mod_event_view_state::IsSet, + St::Event: mod_event_view_state::IsSet, + St::SubjectBlobCids: mod_event_view_state::IsSet, + St::CreatedAt: mod_event_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ModEventView { @@ -7704,103 +7704,103 @@ pub mod mod_event_view_detail_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; + type Subject; type Id; - type SubjectBlobs; type CreatedBy; - type Subject; + type SubjectBlobs; + type CreatedAt; type Event; } /// 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 Id = Unset; - type SubjectBlobs = Unset; type CreatedBy = Unset; - type Subject = Unset; + type SubjectBlobs = Unset; + type CreatedAt = Unset; type Event = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Id = St::Id; - type SubjectBlobs = St::SubjectBlobs; - type CreatedBy = St::CreatedBy; - type Subject = St::Subject; + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Subject = Set; + type Id = St::Id; + type CreatedBy = St::CreatedBy; + type SubjectBlobs = St::SubjectBlobs; + type CreatedAt = St::CreatedAt; type Event = St::Event; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type CreatedAt = St::CreatedAt; + type Subject = St::Subject; type Id = Set; - type SubjectBlobs = St::SubjectBlobs; type CreatedBy = St::CreatedBy; - type Subject = St::Subject; - type Event = St::Event; - } - ///State transition - sets the `subject_blobs` field to Set - pub struct SetSubjectBlobs(PhantomData St>); - impl sealed::Sealed for SetSubjectBlobs {} - impl State for SetSubjectBlobs { + type SubjectBlobs = St::SubjectBlobs; type CreatedAt = St::CreatedAt; - type Id = St::Id; - type SubjectBlobs = Set; - type CreatedBy = St::CreatedBy; - type Subject = St::Subject; type Event = St::Event; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData St>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { - type CreatedAt = St::CreatedAt; + type Subject = St::Subject; type Id = St::Id; - type SubjectBlobs = St::SubjectBlobs; type CreatedBy = Set; - type Subject = St::Subject; + type SubjectBlobs = St::SubjectBlobs; + type CreatedAt = St::CreatedAt; type Event = St::Event; } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { + ///State transition - sets the `subject_blobs` field to Set + pub struct SetSubjectBlobs(PhantomData St>); + impl sealed::Sealed for SetSubjectBlobs {} + impl State for SetSubjectBlobs { + type Subject = St::Subject; + type Id = St::Id; + type CreatedBy = St::CreatedBy; + type SubjectBlobs = Set; type CreatedAt = St::CreatedAt; + type Event = St::Event; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = St::Subject; type Id = St::Id; - type SubjectBlobs = St::SubjectBlobs; type CreatedBy = St::CreatedBy; - type Subject = Set; + type SubjectBlobs = St::SubjectBlobs; + type CreatedAt = Set; type Event = St::Event; } ///State transition - sets the `event` field to Set pub struct SetEvent(PhantomData St>); impl sealed::Sealed for SetEvent {} impl State for SetEvent { - type CreatedAt = St::CreatedAt; + type Subject = St::Subject; type Id = St::Id; - type SubjectBlobs = St::SubjectBlobs; type CreatedBy = St::CreatedBy; - type Subject = St::Subject; + type SubjectBlobs = St::SubjectBlobs; + type CreatedAt = St::CreatedAt; type Event = 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 `id` field pub struct id(()); - ///Marker type for the `subject_blobs` field - pub struct subject_blobs(()); ///Marker type for the `created_by` field pub struct created_by(()); - ///Marker type for the `subject` field - pub struct subject(()); + ///Marker type for the `subject_blobs` field + pub struct subject_blobs(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `event` field pub struct event(()); } @@ -7972,11 +7972,11 @@ where impl ModEventViewDetailBuilder where St: mod_event_view_detail_state::State, - St::CreatedAt: mod_event_view_detail_state::IsSet, + St::Subject: mod_event_view_detail_state::IsSet, St::Id: mod_event_view_detail_state::IsSet, - St::SubjectBlobs: mod_event_view_detail_state::IsSet, St::CreatedBy: mod_event_view_detail_state::IsSet, - St::Subject: mod_event_view_detail_state::IsSet, + St::SubjectBlobs: mod_event_view_detail_state::IsSet, + St::CreatedAt: mod_event_view_detail_state::IsSet, St::Event: mod_event_view_detail_state::IsSet, { /// Build the final struct. @@ -8020,37 +8020,37 @@ pub mod record_event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Timestamp; type Op; + type Timestamp; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Timestamp = Unset; type Op = Unset; - } - ///State transition - sets the `timestamp` field to Set - pub struct SetTimestamp(PhantomData St>); - impl sealed::Sealed for SetTimestamp {} - impl State for SetTimestamp { - type Timestamp = Set; - type Op = St::Op; + type Timestamp = Unset; } ///State transition - sets the `op` field to Set pub struct SetOp(PhantomData St>); impl sealed::Sealed for SetOp {} impl State for SetOp { - type Timestamp = St::Timestamp; type Op = Set; + type Timestamp = St::Timestamp; + } + ///State transition - sets the `timestamp` field to Set + pub struct SetTimestamp(PhantomData St>); + impl sealed::Sealed for SetTimestamp {} + impl State for SetTimestamp { + type Op = St::Op; + type Timestamp = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `timestamp` field - pub struct timestamp(()); ///Marker type for the `op` field pub struct op(()); + ///Marker type for the `timestamp` field + pub struct timestamp(()); } } @@ -8146,8 +8146,8 @@ where impl RecordEventBuilder where St: record_event_state::State, - St::Timestamp: record_event_state::IsSet, St::Op: record_event_state::IsSet, + St::Timestamp: record_event_state::IsSet, { /// Build the final struct. pub fn build(self) -> RecordEvent { @@ -8184,127 +8184,127 @@ pub mod record_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; + type BlobCids; + type Value; type IndexedAt; - type Cid; type Moderation; - type Value; - type Uri; type Repo; - type BlobCids; + type Cid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; + type BlobCids = Unset; + type Value = Unset; type IndexedAt = Unset; - type Cid = Unset; type Moderation = Unset; - type Value = Unset; - type Uri = Unset; type Repo = Unset; - type BlobCids = Unset; + type Cid = Unset; } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type IndexedAt = Set; - type Cid = St::Cid; - type Moderation = St::Moderation; - type Value = St::Value; - type Uri = St::Uri; - type Repo = St::Repo; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; type BlobCids = St::BlobCids; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { + type Value = St::Value; type IndexedAt = St::IndexedAt; - type Cid = Set; type Moderation = St::Moderation; - type Value = St::Value; - type Uri = St::Uri; type Repo = St::Repo; - type BlobCids = St::BlobCids; - } - ///State transition - sets the `moderation` field to Set - pub struct SetModeration(PhantomData St>); - impl sealed::Sealed for SetModeration {} - impl State for SetModeration { - type IndexedAt = St::IndexedAt; type Cid = St::Cid; - type Moderation = Set; - type Value = St::Value; + } + ///State transition - sets the `blob_cids` field to Set + pub struct SetBlobCids(PhantomData St>); + impl sealed::Sealed for SetBlobCids {} + impl State for SetBlobCids { type Uri = St::Uri; + type BlobCids = Set; + type Value = St::Value; + type IndexedAt = St::IndexedAt; + type Moderation = St::Moderation; type Repo = St::Repo; - type BlobCids = St::BlobCids; + type Cid = St::Cid; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type IndexedAt = St::IndexedAt; - type Cid = St::Cid; - type Moderation = St::Moderation; - type Value = Set; type Uri = St::Uri; - type Repo = St::Repo; type BlobCids = St::BlobCids; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + type Value = Set; type IndexedAt = St::IndexedAt; - type Cid = St::Cid; type Moderation = St::Moderation; + type Repo = St::Repo; + type Cid = St::Cid; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Uri = St::Uri; + type BlobCids = St::BlobCids; type Value = St::Value; - type Uri = Set; + type IndexedAt = Set; + type Moderation = St::Moderation; type Repo = St::Repo; + type Cid = St::Cid; + } + ///State transition - sets the `moderation` field to Set + pub struct SetModeration(PhantomData St>); + impl sealed::Sealed for SetModeration {} + impl State for SetModeration { + type Uri = St::Uri; type BlobCids = St::BlobCids; + type Value = St::Value; + type IndexedAt = St::IndexedAt; + type Moderation = Set; + type Repo = St::Repo; + type Cid = St::Cid; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData St>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { + type Uri = St::Uri; + type BlobCids = St::BlobCids; + type Value = St::Value; type IndexedAt = St::IndexedAt; - type Cid = St::Cid; type Moderation = St::Moderation; - type Value = St::Value; - type Uri = St::Uri; type Repo = Set; - type BlobCids = St::BlobCids; + type Cid = St::Cid; } - ///State transition - sets the `blob_cids` field to Set - pub struct SetBlobCids(PhantomData St>); - impl sealed::Sealed for SetBlobCids {} - impl State for SetBlobCids { + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type BlobCids = St::BlobCids; + type Value = St::Value; type IndexedAt = St::IndexedAt; - type Cid = St::Cid; type Moderation = St::Moderation; - type Value = St::Value; - type Uri = St::Uri; type Repo = St::Repo; - type BlobCids = Set; + type Cid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `blob_cids` field + pub struct blob_cids(()); + ///Marker type for the `value` field + pub struct value(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `moderation` field pub struct moderation(()); - ///Marker type for the `value` field - pub struct value(()); - ///Marker type for the `uri` field - pub struct uri(()); ///Marker type for the `repo` field pub struct repo(()); - ///Marker type for the `blob_cids` field - pub struct blob_cids(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -8477,13 +8477,13 @@ where impl RecordViewBuilder where St: record_view_state::State, + St::Uri: record_view_state::IsSet, + St::BlobCids: record_view_state::IsSet, + St::Value: record_view_state::IsSet, St::IndexedAt: record_view_state::IsSet, - St::Cid: record_view_state::IsSet, St::Moderation: record_view_state::IsSet, - St::Value: record_view_state::IsSet, - St::Uri: record_view_state::IsSet, St::Repo: record_view_state::IsSet, - St::BlobCids: record_view_state::IsSet, + St::Cid: record_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> RecordView { @@ -8526,125 +8526,125 @@ pub mod record_view_detail_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Uri; type Blobs; - type Repo; - type IndexedAt; + type Cid; type Moderation; + type IndexedAt; + type Repo; type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Uri = Unset; type Blobs = Unset; - type Repo = Unset; - type IndexedAt = Unset; + type Cid = Unset; type Moderation = Unset; + type IndexedAt = Unset; + type Repo = Unset; type Value = Unset; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Uri = St::Uri; - type Blobs = St::Blobs; - type Repo = St::Repo; - type IndexedAt = St::IndexedAt; - type Moderation = St::Moderation; - type Value = St::Value; - } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Cid = St::Cid; type Uri = Set; type Blobs = St::Blobs; - type Repo = St::Repo; - type IndexedAt = St::IndexedAt; + type Cid = St::Cid; type Moderation = St::Moderation; + type IndexedAt = St::IndexedAt; + type Repo = St::Repo; type Value = St::Value; } ///State transition - sets the `blobs` field to Set pub struct SetBlobs(PhantomData St>); impl sealed::Sealed for SetBlobs {} impl State for SetBlobs { - type Cid = St::Cid; type Uri = St::Uri; type Blobs = Set; - type Repo = St::Repo; + type Cid = St::Cid; + type Moderation = St::Moderation; type IndexedAt = St::IndexedAt; + type Repo = St::Repo; + type Value = St::Value; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type Blobs = St::Blobs; + type Cid = Set; type Moderation = St::Moderation; + type IndexedAt = St::IndexedAt; + type Repo = St::Repo; type Value = St::Value; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Cid = St::Cid; + ///State transition - sets the `moderation` field to Set + pub struct SetModeration(PhantomData St>); + impl sealed::Sealed for SetModeration {} + impl State for SetModeration { type Uri = St::Uri; type Blobs = St::Blobs; - type Repo = Set; + type Cid = St::Cid; + type Moderation = Set; type IndexedAt = St::IndexedAt; - type Moderation = St::Moderation; + type Repo = St::Repo; type Value = St::Value; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Cid = St::Cid; type Uri = St::Uri; type Blobs = St::Blobs; - type Repo = St::Repo; - type IndexedAt = Set; + type Cid = St::Cid; type Moderation = St::Moderation; + type IndexedAt = Set; + type Repo = St::Repo; type Value = St::Value; } - ///State transition - sets the `moderation` field to Set - pub struct SetModeration(PhantomData St>); - impl sealed::Sealed for SetModeration {} - impl State for SetModeration { - type Cid = St::Cid; + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { type Uri = St::Uri; type Blobs = St::Blobs; - type Repo = St::Repo; + type Cid = St::Cid; + type Moderation = St::Moderation; type IndexedAt = St::IndexedAt; - type Moderation = Set; + type Repo = Set; type Value = St::Value; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Cid = St::Cid; type Uri = St::Uri; type Blobs = St::Blobs; - type Repo = St::Repo; - type IndexedAt = St::IndexedAt; + type Cid = St::Cid; type Moderation = St::Moderation; + type IndexedAt = St::IndexedAt; + type Repo = St::Repo; type Value = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `blobs` field pub struct blobs(()); - ///Marker type for the `repo` field - pub struct repo(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `moderation` field pub struct moderation(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); + ///Marker type for the `repo` field + pub struct repo(()); ///Marker type for the `value` field pub struct value(()); } @@ -8833,12 +8833,12 @@ where impl RecordViewDetailBuilder where St: record_view_detail_state::State, - St::Cid: record_view_detail_state::IsSet, St::Uri: record_view_detail_state::IsSet, St::Blobs: record_view_detail_state::IsSet, - St::Repo: record_view_detail_state::IsSet, - St::IndexedAt: record_view_detail_state::IsSet, + St::Cid: record_view_detail_state::IsSet, St::Moderation: record_view_detail_state::IsSet, + St::IndexedAt: record_view_detail_state::IsSet, + St::Repo: record_view_detail_state::IsSet, St::Value: record_view_detail_state::IsSet, { /// Build the final struct. @@ -8984,85 +8984,85 @@ pub mod repo_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Moderation; - type IndexedAt; - type Did; type Handle; type RelatedRecords; + type Did; + type IndexedAt; + type Moderation; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Moderation = Unset; - type IndexedAt = Unset; - type Did = Unset; type Handle = Unset; - type RelatedRecords = Unset; - } - ///State transition - sets the `moderation` field to Set - pub struct SetModeration(PhantomData St>); - impl sealed::Sealed for SetModeration {} - impl State for SetModeration { - type Moderation = Set; - type IndexedAt = St::IndexedAt; - type Did = St::Did; - type Handle = St::Handle; - type RelatedRecords = St::RelatedRecords; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData St>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type Moderation = St::Moderation; - type IndexedAt = Set; - type Did = St::Did; - type Handle = St::Handle; - type RelatedRecords = St::RelatedRecords; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Moderation = St::Moderation; - type IndexedAt = St::IndexedAt; - type Did = Set; - type Handle = St::Handle; - type RelatedRecords = St::RelatedRecords; + type RelatedRecords = Unset; + type Did = Unset; + type IndexedAt = Unset; + type Moderation = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Moderation = St::Moderation; - type IndexedAt = St::IndexedAt; - type Did = St::Did; type Handle = Set; type RelatedRecords = St::RelatedRecords; + type Did = St::Did; + type IndexedAt = St::IndexedAt; + type Moderation = St::Moderation; } ///State transition - sets the `related_records` field to Set pub struct SetRelatedRecords(PhantomData St>); impl sealed::Sealed for SetRelatedRecords {} impl State for SetRelatedRecords { + type Handle = St::Handle; + type RelatedRecords = Set; + type Did = St::Did; + type IndexedAt = St::IndexedAt; type Moderation = St::Moderation; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = St::Handle; + type RelatedRecords = St::RelatedRecords; + type Did = Set; type IndexedAt = St::IndexedAt; + type Moderation = St::Moderation; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData St>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Handle = St::Handle; + type RelatedRecords = St::RelatedRecords; type Did = St::Did; + type IndexedAt = Set; + type Moderation = St::Moderation; + } + ///State transition - sets the `moderation` field to Set + pub struct SetModeration(PhantomData St>); + impl sealed::Sealed for SetModeration {} + impl State for SetModeration { type Handle = St::Handle; - type RelatedRecords = Set; + type RelatedRecords = St::RelatedRecords; + type Did = St::Did; + type IndexedAt = St::IndexedAt; + type Moderation = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `moderation` field - pub struct moderation(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); ///Marker type for the `related_records` field pub struct related_records(()); + ///Marker type for the `did` field + pub struct did(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); + ///Marker type for the `moderation` field + pub struct moderation(()); } } @@ -9285,11 +9285,11 @@ impl RepoViewBuilder { impl RepoViewBuilder where St: repo_view_state::State, - St::Moderation: repo_view_state::IsSet, - St::IndexedAt: repo_view_state::IsSet, - St::Did: repo_view_state::IsSet, St::Handle: repo_view_state::IsSet, St::RelatedRecords: repo_view_state::IsSet, + St::Did: repo_view_state::IsSet, + St::IndexedAt: repo_view_state::IsSet, + St::Moderation: repo_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> RepoView { @@ -9338,84 +9338,84 @@ pub mod repo_view_detail_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Handle; - type RelatedRecords; type Moderation; - type IndexedAt; type Did; + type IndexedAt; + type RelatedRecords; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Handle = Unset; - type RelatedRecords = Unset; type Moderation = Unset; - type IndexedAt = Unset; type Did = Unset; + type IndexedAt = Unset; + type RelatedRecords = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { type Handle = Set; - type RelatedRecords = St::RelatedRecords; type Moderation = St::Moderation; - type IndexedAt = St::IndexedAt; type Did = St::Did; - } - ///State transition - sets the `related_records` field to Set - pub struct SetRelatedRecords(PhantomData St>); - impl sealed::Sealed for SetRelatedRecords {} - impl State for SetRelatedRecords { - type Handle = St::Handle; - type RelatedRecords = Set; - type Moderation = St::Moderation; type IndexedAt = St::IndexedAt; - type Did = St::Did; + type RelatedRecords = St::RelatedRecords; } ///State transition - sets the `moderation` field to Set pub struct SetModeration(PhantomData St>); impl sealed::Sealed for SetModeration {} impl State for SetModeration { type Handle = St::Handle; - type RelatedRecords = St::RelatedRecords; type Moderation = Set; - type IndexedAt = St::IndexedAt; type Did = St::Did; + type IndexedAt = St::IndexedAt; + type RelatedRecords = St::RelatedRecords; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = St::Handle; + type Moderation = St::Moderation; + type Did = Set; + type IndexedAt = St::IndexedAt; + type RelatedRecords = St::RelatedRecords; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData St>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { type Handle = St::Handle; - type RelatedRecords = St::RelatedRecords; type Moderation = St::Moderation; - type IndexedAt = Set; type Did = St::Did; + type IndexedAt = Set; + type RelatedRecords = St::RelatedRecords; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { + ///State transition - sets the `related_records` field to Set + pub struct SetRelatedRecords(PhantomData St>); + impl sealed::Sealed for SetRelatedRecords {} + impl State for SetRelatedRecords { type Handle = St::Handle; - type RelatedRecords = St::RelatedRecords; type Moderation = St::Moderation; + type Did = St::Did; type IndexedAt = St::IndexedAt; - type Did = Set; + type RelatedRecords = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `handle` field pub struct handle(()); - ///Marker type for the `related_records` field - pub struct related_records(()); ///Marker type for the `moderation` field pub struct moderation(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); + ///Marker type for the `related_records` field + pub struct related_records(()); } } @@ -9696,10 +9696,10 @@ impl RepoViewDetailBuilder where St: repo_view_detail_state::State, St::Handle: repo_view_detail_state::IsSet, - St::RelatedRecords: repo_view_detail_state::IsSet, St::Moderation: repo_view_detail_state::IsSet, - St::IndexedAt: repo_view_detail_state::IsSet, St::Did: repo_view_detail_state::IsSet, + St::IndexedAt: repo_view_detail_state::IsSet, + St::RelatedRecords: repo_view_detail_state::IsSet, { /// Build the final struct. pub fn build(self) -> RepoViewDetail { @@ -9857,176 +9857,176 @@ pub mod reporter_stats_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Did; - type LabeledAccountCount; + type LabeledRecordCount; type ReportedRecordCount; type TakendownAccountCount; - type RecordReportCount; - type AccountReportCount; type TakendownRecordCount; - type LabeledRecordCount; type ReportedAccountCount; + type LabeledAccountCount; + type AccountReportCount; + type RecordReportCount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Did = Unset; - type LabeledAccountCount = Unset; + type LabeledRecordCount = Unset; type ReportedRecordCount = Unset; type TakendownAccountCount = Unset; - type RecordReportCount = Unset; - type AccountReportCount = Unset; type TakendownRecordCount = Unset; - type LabeledRecordCount = Unset; type ReportedAccountCount = Unset; + type LabeledAccountCount = Unset; + type AccountReportCount = Unset; + type RecordReportCount = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { type Did = Set; - type LabeledAccountCount = St::LabeledAccountCount; + type LabeledRecordCount = St::LabeledRecordCount; type ReportedRecordCount = St::ReportedRecordCount; type TakendownAccountCount = St::TakendownAccountCount; - type RecordReportCount = St::RecordReportCount; - type AccountReportCount = St::AccountReportCount; type TakendownRecordCount = St::TakendownRecordCount; - type LabeledRecordCount = St::LabeledRecordCount; type ReportedAccountCount = St::ReportedAccountCount; + type LabeledAccountCount = St::LabeledAccountCount; + type AccountReportCount = St::AccountReportCount; + type RecordReportCount = St::RecordReportCount; } - ///State transition - sets the `labeled_account_count` field to Set - pub struct SetLabeledAccountCount(PhantomData St>); - impl sealed::Sealed for SetLabeledAccountCount {} - impl State for SetLabeledAccountCount { + ///State transition - sets the `labeled_record_count` field to Set + pub struct SetLabeledRecordCount(PhantomData St>); + impl sealed::Sealed for SetLabeledRecordCount {} + impl State for SetLabeledRecordCount { type Did = St::Did; - type LabeledAccountCount = Set; + type LabeledRecordCount = Set; type ReportedRecordCount = St::ReportedRecordCount; type TakendownAccountCount = St::TakendownAccountCount; - type RecordReportCount = St::RecordReportCount; - type AccountReportCount = St::AccountReportCount; type TakendownRecordCount = St::TakendownRecordCount; - type LabeledRecordCount = St::LabeledRecordCount; type ReportedAccountCount = St::ReportedAccountCount; + type LabeledAccountCount = St::LabeledAccountCount; + type AccountReportCount = St::AccountReportCount; + type RecordReportCount = St::RecordReportCount; } ///State transition - sets the `reported_record_count` field to Set pub struct SetReportedRecordCount(PhantomData St>); impl sealed::Sealed for SetReportedRecordCount {} impl State for SetReportedRecordCount { type Did = St::Did; - type LabeledAccountCount = St::LabeledAccountCount; + type LabeledRecordCount = St::LabeledRecordCount; type ReportedRecordCount = Set; type TakendownAccountCount = St::TakendownAccountCount; - type RecordReportCount = St::RecordReportCount; - type AccountReportCount = St::AccountReportCount; type TakendownRecordCount = St::TakendownRecordCount; - type LabeledRecordCount = St::LabeledRecordCount; type ReportedAccountCount = St::ReportedAccountCount; + type LabeledAccountCount = St::LabeledAccountCount; + type AccountReportCount = St::AccountReportCount; + type RecordReportCount = St::RecordReportCount; } ///State transition - sets the `takendown_account_count` field to Set pub struct SetTakendownAccountCount(PhantomData St>); impl sealed::Sealed for SetTakendownAccountCount {} impl State for SetTakendownAccountCount { type Did = St::Did; - type LabeledAccountCount = St::LabeledAccountCount; + type LabeledRecordCount = St::LabeledRecordCount; type ReportedRecordCount = St::ReportedRecordCount; type TakendownAccountCount = Set; - type RecordReportCount = St::RecordReportCount; - type AccountReportCount = St::AccountReportCount; type TakendownRecordCount = St::TakendownRecordCount; - type LabeledRecordCount = St::LabeledRecordCount; type ReportedAccountCount = St::ReportedAccountCount; - } - ///State transition - sets the `record_report_count` field to Set - pub struct SetRecordReportCount(PhantomData St>); - impl sealed::Sealed for SetRecordReportCount {} - impl State for SetRecordReportCount { - type Did = St::Did; type LabeledAccountCount = St::LabeledAccountCount; - type ReportedRecordCount = St::ReportedRecordCount; - type TakendownAccountCount = St::TakendownAccountCount; - type RecordReportCount = Set; type AccountReportCount = St::AccountReportCount; - type TakendownRecordCount = St::TakendownRecordCount; - type LabeledRecordCount = St::LabeledRecordCount; - type ReportedAccountCount = St::ReportedAccountCount; - } - ///State transition - sets the `account_report_count` field to Set - pub struct SetAccountReportCount(PhantomData St>); - impl sealed::Sealed for SetAccountReportCount {} - impl State for SetAccountReportCount { - type Did = St::Did; - type LabeledAccountCount = St::LabeledAccountCount; - type ReportedRecordCount = St::ReportedRecordCount; - type TakendownAccountCount = St::TakendownAccountCount; type RecordReportCount = St::RecordReportCount; - type AccountReportCount = Set; - type TakendownRecordCount = St::TakendownRecordCount; - type LabeledRecordCount = St::LabeledRecordCount; - type ReportedAccountCount = St::ReportedAccountCount; } ///State transition - sets the `takendown_record_count` field to Set pub struct SetTakendownRecordCount(PhantomData St>); impl sealed::Sealed for SetTakendownRecordCount {} impl State for SetTakendownRecordCount { type Did = St::Did; - type LabeledAccountCount = St::LabeledAccountCount; + type LabeledRecordCount = St::LabeledRecordCount; type ReportedRecordCount = St::ReportedRecordCount; type TakendownAccountCount = St::TakendownAccountCount; - type RecordReportCount = St::RecordReportCount; - type AccountReportCount = St::AccountReportCount; type TakendownRecordCount = Set; - type LabeledRecordCount = St::LabeledRecordCount; type ReportedAccountCount = St::ReportedAccountCount; + type LabeledAccountCount = St::LabeledAccountCount; + type AccountReportCount = St::AccountReportCount; + type RecordReportCount = St::RecordReportCount; } - ///State transition - sets the `labeled_record_count` field to Set - pub struct SetLabeledRecordCount(PhantomData St>); - impl sealed::Sealed for SetLabeledRecordCount {} - impl State for SetLabeledRecordCount { + ///State transition - sets the `reported_account_count` field to Set + pub struct SetReportedAccountCount(PhantomData St>); + impl sealed::Sealed for SetReportedAccountCount {} + impl State for SetReportedAccountCount { type Did = St::Did; - type LabeledAccountCount = St::LabeledAccountCount; + type LabeledRecordCount = St::LabeledRecordCount; type ReportedRecordCount = St::ReportedRecordCount; type TakendownAccountCount = St::TakendownAccountCount; + type TakendownRecordCount = St::TakendownRecordCount; + type ReportedAccountCount = Set; + type LabeledAccountCount = St::LabeledAccountCount; + type AccountReportCount = St::AccountReportCount; type RecordReportCount = St::RecordReportCount; + } + ///State transition - sets the `labeled_account_count` field to Set + pub struct SetLabeledAccountCount(PhantomData St>); + impl sealed::Sealed for SetLabeledAccountCount {} + impl State for SetLabeledAccountCount { + type Did = St::Did; + type LabeledRecordCount = St::LabeledRecordCount; + type ReportedRecordCount = St::ReportedRecordCount; + type TakendownAccountCount = St::TakendownAccountCount; + type TakendownRecordCount = St::TakendownRecordCount; + type ReportedAccountCount = St::ReportedAccountCount; + type LabeledAccountCount = Set; type AccountReportCount = St::AccountReportCount; + type RecordReportCount = St::RecordReportCount; + } + ///State transition - sets the `account_report_count` field to Set + pub struct SetAccountReportCount(PhantomData St>); + impl sealed::Sealed for SetAccountReportCount {} + impl State for SetAccountReportCount { + type Did = St::Did; + type LabeledRecordCount = St::LabeledRecordCount; + type ReportedRecordCount = St::ReportedRecordCount; + type TakendownAccountCount = St::TakendownAccountCount; type TakendownRecordCount = St::TakendownRecordCount; - type LabeledRecordCount = Set; type ReportedAccountCount = St::ReportedAccountCount; + type LabeledAccountCount = St::LabeledAccountCount; + type AccountReportCount = Set; + type RecordReportCount = St::RecordReportCount; } - ///State transition - sets the `reported_account_count` field to Set - pub struct SetReportedAccountCount(PhantomData St>); - impl sealed::Sealed for SetReportedAccountCount {} - impl State for SetReportedAccountCount { + ///State transition - sets the `record_report_count` field to Set + pub struct SetRecordReportCount(PhantomData St>); + impl sealed::Sealed for SetRecordReportCount {} + impl State for SetRecordReportCount { type Did = St::Did; - type LabeledAccountCount = St::LabeledAccountCount; + type LabeledRecordCount = St::LabeledRecordCount; type ReportedRecordCount = St::ReportedRecordCount; type TakendownAccountCount = St::TakendownAccountCount; - type RecordReportCount = St::RecordReportCount; - type AccountReportCount = St::AccountReportCount; type TakendownRecordCount = St::TakendownRecordCount; - type LabeledRecordCount = St::LabeledRecordCount; - type ReportedAccountCount = Set; + type ReportedAccountCount = St::ReportedAccountCount; + type LabeledAccountCount = St::LabeledAccountCount; + type AccountReportCount = St::AccountReportCount; + type RecordReportCount = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `did` field pub struct did(()); - ///Marker type for the `labeled_account_count` field - pub struct labeled_account_count(()); + ///Marker type for the `labeled_record_count` field + pub struct labeled_record_count(()); ///Marker type for the `reported_record_count` field pub struct reported_record_count(()); ///Marker type for the `takendown_account_count` field pub struct takendown_account_count(()); - ///Marker type for the `record_report_count` field - pub struct record_report_count(()); - ///Marker type for the `account_report_count` field - pub struct account_report_count(()); ///Marker type for the `takendown_record_count` field pub struct takendown_record_count(()); - ///Marker type for the `labeled_record_count` field - pub struct labeled_record_count(()); ///Marker type for the `reported_account_count` field pub struct reported_account_count(()); + ///Marker type for the `labeled_account_count` field + pub struct labeled_account_count(()); + ///Marker type for the `account_report_count` field + pub struct account_report_count(()); + ///Marker type for the `record_report_count` field + pub struct record_report_count(()); } } @@ -10240,14 +10240,14 @@ impl ReporterStatsBuilder where St: reporter_stats_state::State, St::Did: reporter_stats_state::IsSet, - St::LabeledAccountCount: reporter_stats_state::IsSet, + St::LabeledRecordCount: reporter_stats_state::IsSet, St::ReportedRecordCount: reporter_stats_state::IsSet, St::TakendownAccountCount: reporter_stats_state::IsSet, - St::RecordReportCount: reporter_stats_state::IsSet, - St::AccountReportCount: reporter_stats_state::IsSet, St::TakendownRecordCount: reporter_stats_state::IsSet, - St::LabeledRecordCount: reporter_stats_state::IsSet, St::ReportedAccountCount: reporter_stats_state::IsSet, + St::LabeledAccountCount: reporter_stats_state::IsSet, + St::AccountReportCount: reporter_stats_state::IsSet, + St::RecordReportCount: reporter_stats_state::IsSet, { /// Build the final struct. pub fn build(self) -> ReporterStats { @@ -10295,104 +10295,104 @@ pub mod scheduled_action_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Did; - type Id; type Status; - type Action; type CreatedBy; + type Id; type CreatedAt; + type Action; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Did = Unset; - type Id = Unset; type Status = Unset; - type Action = Unset; type CreatedBy = Unset; + type Id = Unset; type CreatedAt = Unset; + type Action = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { type Did = Set; - type Id = St::Id; type Status = St::Status; - type Action = St::Action; type CreatedBy = St::CreatedBy; + type Id = St::Id; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData St>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Did = St::Did; - type Id = Set; - type Status = St::Status; type Action = St::Action; - type CreatedBy = St::CreatedBy; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData St>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { type Did = St::Did; - type Id = St::Id; type Status = Set; - type Action = St::Action; type CreatedBy = St::CreatedBy; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `action` field to Set - pub struct SetAction(PhantomData St>); - impl sealed::Sealed for SetAction {} - impl State for SetAction { - type Did = St::Did; type Id = St::Id; - type Status = St::Status; - type Action = Set; - type CreatedBy = St::CreatedBy; type CreatedAt = St::CreatedAt; + type Action = St::Action; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData St>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { type Did = St::Did; - type Id = St::Id; type Status = St::Status; - type Action = St::Action; type CreatedBy = Set; + type Id = St::Id; + type CreatedAt = St::CreatedAt; + type Action = St::Action; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData St>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Did = St::Did; + type Status = St::Status; + type CreatedBy = St::CreatedBy; + type Id = Set; type CreatedAt = St::CreatedAt; + type Action = St::Action; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Did = St::Did; - type Id = St::Id; type Status = St::Status; - type Action = St::Action; type CreatedBy = St::CreatedBy; + type Id = St::Id; type CreatedAt = Set; + type Action = St::Action; + } + ///State transition - sets the `action` field to Set + pub struct SetAction(PhantomData St>); + impl sealed::Sealed for SetAction {} + impl State for SetAction { + type Did = St::Did; + type Status = St::Status; + type CreatedBy = St::CreatedBy; + type Id = St::Id; + type CreatedAt = St::CreatedAt; + type Action = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `did` field pub struct did(()); - ///Marker type for the `id` field - pub struct id(()); ///Marker type for the `status` field pub struct status(()); - ///Marker type for the `action` field - pub struct action(()); ///Marker type for the `created_by` field pub struct created_by(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `action` field + pub struct action(()); } } @@ -10718,11 +10718,11 @@ impl ScheduledActionViewBuilder where St: scheduled_action_view_state::State, St::Did: scheduled_action_view_state::IsSet, - St::Id: scheduled_action_view_state::IsSet, St::Status: scheduled_action_view_state::IsSet, - St::Action: scheduled_action_view_state::IsSet, St::CreatedBy: scheduled_action_view_state::IsSet, + St::Id: scheduled_action_view_state::IsSet, St::CreatedAt: scheduled_action_view_state::IsSet, + St::Action: scheduled_action_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> ScheduledActionView { @@ -10781,85 +10781,85 @@ pub mod subject_status_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ReviewState; - type Subject; type Id; - type CreatedAt; type UpdatedAt; + type ReviewState; + type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ReviewState = Unset; - type Subject = Unset; type Id = Unset; - type CreatedAt = Unset; type UpdatedAt = Unset; - } - ///State transition - sets the `review_state` field to Set - pub struct SetReviewState(PhantomData St>); - impl sealed::Sealed for SetReviewState {} - impl State for SetReviewState { - type ReviewState = Set; - type Subject = St::Subject; - type Id = St::Id; - type CreatedAt = St::CreatedAt; - type UpdatedAt = St::UpdatedAt; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type ReviewState = St::ReviewState; - type Subject = Set; - type Id = St::Id; - type CreatedAt = St::CreatedAt; - type UpdatedAt = St::UpdatedAt; + type ReviewState = Unset; + type CreatedAt = Unset; + type Subject = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { + type Id = Set; + type UpdatedAt = St::UpdatedAt; type ReviewState = St::ReviewState; + type CreatedAt = St::CreatedAt; type Subject = St::Subject; - type Id = Set; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type Id = St::Id; + type UpdatedAt = Set; + type ReviewState = St::ReviewState; type CreatedAt = St::CreatedAt; + type Subject = St::Subject; + } + ///State transition - sets the `review_state` field to Set + pub struct SetReviewState(PhantomData St>); + impl sealed::Sealed for SetReviewState {} + impl State for SetReviewState { + type Id = St::Id; type UpdatedAt = St::UpdatedAt; + type ReviewState = Set; + type CreatedAt = St::CreatedAt; + type Subject = St::Subject; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type ReviewState = St::ReviewState; - type Subject = St::Subject; type Id = St::Id; - type CreatedAt = Set; type UpdatedAt = St::UpdatedAt; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { type ReviewState = St::ReviewState; + type CreatedAt = Set; type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { type Id = St::Id; + type UpdatedAt = St::UpdatedAt; + type ReviewState = St::ReviewState; type CreatedAt = St::CreatedAt; - type UpdatedAt = Set; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `review_state` field - pub struct review_state(()); - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `updated_at` field pub struct updated_at(()); + ///Marker type for the `review_state` field + pub struct review_state(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -11331,11 +11331,11 @@ where impl SubjectStatusViewBuilder where St: subject_status_view_state::State, - St::ReviewState: subject_status_view_state::IsSet, - St::Subject: subject_status_view_state::IsSet, St::Id: subject_status_view_state::IsSet, - St::CreatedAt: subject_status_view_state::IsSet, St::UpdatedAt: subject_status_view_state::IsSet, + St::ReviewState: subject_status_view_state::IsSet, + St::CreatedAt: subject_status_view_state::IsSet, + St::Subject: subject_status_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> SubjectStatusView { @@ -11414,37 +11414,37 @@ pub mod subject_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type Subject; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type Subject = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type Subject = St::Subject; + type Type = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Type = St::Type; type Subject = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Subject = St::Subject; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -11588,8 +11588,8 @@ where impl SubjectViewBuilder where St: subject_view_state::State, - St::Type: subject_view_state::IsSet, St::Subject: subject_view_state::IsSet, + St::Type: subject_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> SubjectView { @@ -11630,51 +11630,51 @@ pub mod video_details_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Length; type Width; type Height; - type Length; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Length = Unset; type Width = Unset; type Height = Unset; - type Length = Unset; + } + ///State transition - sets the `length` field to Set + pub struct SetLength(PhantomData St>); + impl sealed::Sealed for SetLength {} + impl State for SetLength { + type Length = Set; + type Width = St::Width; + type Height = St::Height; } ///State transition - sets the `width` field to Set pub struct SetWidth(PhantomData St>); impl sealed::Sealed for SetWidth {} impl State for SetWidth { + type Length = St::Length; type Width = Set; type Height = St::Height; - type Length = St::Length; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData St>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = St::Width; - type Height = Set; type Length = St::Length; - } - ///State transition - sets the `length` field to Set - pub struct SetLength(PhantomData St>); - impl sealed::Sealed for SetLength {} - impl State for SetLength { type Width = St::Width; - type Height = St::Height; - type Length = Set; + type Height = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `length` field + pub struct length(()); ///Marker type for the `width` field pub struct width(()); ///Marker type for the `height` field pub struct height(()); - ///Marker type for the `length` field - pub struct length(()); } } @@ -11763,9 +11763,9 @@ where impl VideoDetailsBuilder where St: video_details_state::State, + St::Length: video_details_state::IsSet, St::Width: video_details_state::IsSet, St::Height: video_details_state::IsSet, - St::Length: video_details_state::IsSet, { /// Build the final struct. pub fn build(self) -> VideoDetails { diff --git a/crates/jacquard-api/src/tools_ozone/moderation/cancel_scheduled_actions.rs b/crates/jacquard-api/src/tools_ozone/moderation/cancel_scheduled_actions.rs index cec98bfb..abd9d931 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/cancel_scheduled_actions.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/cancel_scheduled_actions.rs @@ -417,37 +417,37 @@ pub mod failed_cancellation_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Error; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Error = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Error = St::Error; + type Did = Unset; } ///State transition - sets the `error` field to Set pub struct SetError(PhantomData St>); impl sealed::Sealed for SetError {} impl State for SetError { - type Did = St::Did; type Error = Set; + type Did = St::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Error = St::Error; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `did` field - pub struct did(()); ///Marker type for the `error` field pub struct error(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -530,8 +530,8 @@ impl FailedCancellationBuilder< impl FailedCancellationBuilder where St: failed_cancellation_state::State, - St::Did: failed_cancellation_state::IsSet, St::Error: failed_cancellation_state::IsSet, + St::Did: failed_cancellation_state::IsSet, { /// Build the final struct. pub fn build(self) -> FailedCancellation { diff --git a/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs b/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs index eaebc36d..d00e8344 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs @@ -231,51 +231,51 @@ pub mod emit_event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedBy; type Event; type Subject; - type CreatedBy; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedBy = Unset; type Event = Unset; type Subject = Unset; - type CreatedBy = Unset; + } + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData St>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { + type CreatedBy = Set; + type Event = St::Event; + type Subject = St::Subject; } ///State transition - sets the `event` field to Set pub struct SetEvent(PhantomData St>); impl sealed::Sealed for SetEvent {} impl State for SetEvent { + type CreatedBy = St::CreatedBy; type Event = Set; type Subject = St::Subject; - type CreatedBy = St::CreatedBy; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Event = St::Event; - type Subject = Set; type CreatedBy = St::CreatedBy; - } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData St>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { type Event = St::Event; - type Subject = St::Subject; - type CreatedBy = Set; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `created_by` field + pub struct created_by(()); ///Marker type for the `event` field pub struct event(()); ///Marker type for the `subject` field pub struct subject(()); - ///Marker type for the `created_by` field - pub struct created_by(()); } } @@ -410,9 +410,9 @@ impl EmitEventBuilder { impl EmitEventBuilder where St: emit_event_state::State, + St::CreatedBy: emit_event_state::IsSet, St::Event: emit_event_state::IsSet, St::Subject: emit_event_state::IsSet, - St::CreatedBy: emit_event_state::IsSet, { /// Build the final struct. pub fn build(self) -> EmitEvent { diff --git a/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs b/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs index f35c872d..68b0260a 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/get_account_timeline.rs @@ -905,49 +905,49 @@ pub mod timeline_item_summary_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type EventSubjectType; type EventType; + type EventSubjectType; type Count; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type EventSubjectType = Unset; type EventType = Unset; + type EventSubjectType = Unset; type Count = Unset; } - ///State transition - sets the `event_subject_type` field to Set - pub struct SetEventSubjectType(PhantomData St>); - impl sealed::Sealed for SetEventSubjectType {} - impl State for SetEventSubjectType { - type EventSubjectType = Set; - type EventType = St::EventType; - type Count = St::Count; - } ///State transition - sets the `event_type` field to Set pub struct SetEventType(PhantomData St>); impl sealed::Sealed for SetEventType {} impl State for SetEventType { - type EventSubjectType = St::EventSubjectType; type EventType = Set; + type EventSubjectType = St::EventSubjectType; + type Count = St::Count; + } + ///State transition - sets the `event_subject_type` field to Set + pub struct SetEventSubjectType(PhantomData St>); + impl sealed::Sealed for SetEventSubjectType {} + impl State for SetEventSubjectType { + type EventType = St::EventType; + type EventSubjectType = Set; type Count = St::Count; } ///State transition - sets the `count` field to Set pub struct SetCount(PhantomData St>); impl sealed::Sealed for SetCount {} impl State for SetCount { - type EventSubjectType = St::EventSubjectType; type EventType = St::EventType; + type EventSubjectType = St::EventSubjectType; type Count = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `event_subject_type` field - pub struct event_subject_type(()); ///Marker type for the `event_type` field pub struct event_type(()); + ///Marker type for the `event_subject_type` field + pub struct event_subject_type(()); ///Marker type for the `count` field pub struct count(()); } @@ -1048,8 +1048,8 @@ where impl TimelineItemSummaryBuilder where St: timeline_item_summary_state::State, - St::EventSubjectType: timeline_item_summary_state::IsSet, St::EventType: timeline_item_summary_state::IsSet, + St::EventSubjectType: timeline_item_summary_state::IsSet, St::Count: timeline_item_summary_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs b/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs index f7173896..40c55fb6 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs @@ -235,37 +235,37 @@ pub mod failed_scheduling_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type Error; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subject = Unset; type Error = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData St>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type Error = St::Error; + type Subject = Unset; } ///State transition - sets the `error` field to Set pub struct SetError(PhantomData St>); impl sealed::Sealed for SetError {} impl State for SetError { - type Subject = St::Subject; type Error = Set; + type Subject = St::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData St>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Error = St::Error; + type Subject = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `error` field pub struct error(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -348,8 +348,8 @@ where impl FailedSchedulingBuilder where St: failed_scheduling_state::State, - St::Subject: failed_scheduling_state::IsSet, St::Error: failed_scheduling_state::IsSet, + St::Subject: failed_scheduling_state::IsSet, { /// Build the final struct. pub fn build(self) -> FailedScheduling { @@ -686,67 +686,67 @@ pub mod schedule_action_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subjects; type Action; - type CreatedBy; + type Subjects; type Scheduling; + type CreatedBy; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Subjects = Unset; type Action = Unset; - type CreatedBy = Unset; + type Subjects = Unset; type Scheduling = Unset; - } - ///State transition - sets the `subjects` field to Set - pub struct SetSubjects(PhantomData St>); - impl sealed::Sealed for SetSubjects {} - impl State for SetSubjects { - type Subjects = Set; - type Action = St::Action; - type CreatedBy = St::CreatedBy; - type Scheduling = St::Scheduling; + type CreatedBy = Unset; } ///State transition - sets the `action` field to Set pub struct SetAction(PhantomData St>); impl sealed::Sealed for SetAction {} impl State for SetAction { - type Subjects = St::Subjects; type Action = Set; - type CreatedBy = St::CreatedBy; + type Subjects = St::Subjects; type Scheduling = St::Scheduling; + type CreatedBy = St::CreatedBy; } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData St>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { - type Subjects = St::Subjects; + ///State transition - sets the `subjects` field to Set + pub struct SetSubjects(PhantomData St>); + impl sealed::Sealed for SetSubjects {} + impl State for SetSubjects { type Action = St::Action; - type CreatedBy = Set; + type Subjects = Set; type Scheduling = St::Scheduling; + type CreatedBy = St::CreatedBy; } ///State transition - sets the `scheduling` field to Set pub struct SetScheduling(PhantomData St>); impl sealed::Sealed for SetScheduling {} impl State for SetScheduling { - type Subjects = St::Subjects; type Action = St::Action; - type CreatedBy = St::CreatedBy; + type Subjects = St::Subjects; type Scheduling = Set; + type CreatedBy = St::CreatedBy; + } + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData St>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { + type Action = St::Action; + type Subjects = St::Subjects; + type Scheduling = St::Scheduling; + type CreatedBy = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `subjects` field - pub struct subjects(()); ///Marker type for the `action` field pub struct action(()); - ///Marker type for the `created_by` field - pub struct created_by(()); + ///Marker type for the `subjects` field + pub struct subjects(()); ///Marker type for the `scheduling` field pub struct scheduling(()); + ///Marker type for the `created_by` field + pub struct created_by(()); } } @@ -873,10 +873,10 @@ where impl ScheduleActionBuilder where St: schedule_action_state::State, - St::Subjects: schedule_action_state::IsSet, St::Action: schedule_action_state::IsSet, - St::CreatedBy: schedule_action_state::IsSet, + St::Subjects: schedule_action_state::IsSet, St::Scheduling: schedule_action_state::IsSet, + St::CreatedBy: schedule_action_state::IsSet, { /// Build the final struct. pub fn build(self) -> ScheduleAction { @@ -915,37 +915,37 @@ pub mod scheduled_action_results_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Succeeded; type Failed; + type Succeeded; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Succeeded = Unset; type Failed = Unset; - } - ///State transition - sets the `succeeded` field to Set - pub struct SetSucceeded(PhantomData St>); - impl sealed::Sealed for SetSucceeded {} - impl State for SetSucceeded { - type Succeeded = Set; - type Failed = St::Failed; + type Succeeded = Unset; } ///State transition - sets the `failed` field to Set pub struct SetFailed(PhantomData St>); impl sealed::Sealed for SetFailed {} impl State for SetFailed { - type Succeeded = St::Succeeded; type Failed = Set; + type Succeeded = St::Succeeded; + } + ///State transition - sets the `succeeded` field to Set + pub struct SetSucceeded(PhantomData St>); + impl sealed::Sealed for SetSucceeded {} + impl State for SetSucceeded { + type Failed = St::Failed; + type Succeeded = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `succeeded` field - pub struct succeeded(()); ///Marker type for the `failed` field pub struct failed(()); + ///Marker type for the `succeeded` field + pub struct succeeded(()); } } @@ -1027,8 +1027,8 @@ where impl ScheduledActionResultsBuilder where St: scheduled_action_results_state::State, - St::Succeeded: scheduled_action_results_state::IsSet, St::Failed: scheduled_action_results_state::IsSet, + St::Succeeded: scheduled_action_results_state::IsSet, { /// Build the final struct. pub fn build(self) -> ScheduledActionResults { diff --git a/crates/jacquard-api/src/tools_ozone/safelink.rs b/crates/jacquard-api/src/tools_ozone/safelink.rs index 9f2a8b26..7df740b6 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink.rs @@ -422,151 +422,151 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Pattern; type Reason; - type EventType; - type CreatedAt; + type Url; type Action; + type CreatedAt; + type EventType; type CreatedBy; - type Url; type Id; + type Pattern; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Pattern = Unset; type Reason = Unset; - type EventType = Unset; - type CreatedAt = Unset; + type Url = Unset; type Action = Unset; + type CreatedAt = Unset; + type EventType = Unset; type CreatedBy = Unset; - type Url = Unset; type Id = Unset; - } - ///State transition - sets the `pattern` field to Set - pub struct SetPattern(PhantomData St>); - impl sealed::Sealed for SetPattern {} - impl State for SetPattern { - type Pattern = Set; - type Reason = St::Reason; - type EventType = St::EventType; - type CreatedAt = St::CreatedAt; - type Action = St::Action; - type CreatedBy = St::CreatedBy; - type Url = St::Url; - type Id = St::Id; + type Pattern = Unset; } ///State transition - sets the `reason` field to Set pub struct SetReason(PhantomData St>); impl sealed::Sealed for SetReason {} impl State for SetReason { - type Pattern = St::Pattern; type Reason = Set; - type EventType = St::EventType; - type CreatedAt = St::CreatedAt; + type Url = St::Url; type Action = St::Action; + type CreatedAt = St::CreatedAt; + type EventType = St::EventType; type CreatedBy = St::CreatedBy; - type Url = St::Url; type Id = St::Id; - } - ///State transition - sets the `event_type` field to Set - pub struct SetEventType(PhantomData St>); - impl sealed::Sealed for SetEventType {} - impl State for SetEventType { type Pattern = St::Pattern; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { type Reason = St::Reason; - type EventType = Set; - type CreatedAt = St::CreatedAt; + type Url = Set; type Action = St::Action; + type CreatedAt = St::CreatedAt; + type EventType = St::EventType; type CreatedBy = St::CreatedBy; + type Id = St::Id; + type Pattern = St::Pattern; + } + ///State transition - sets the `action` field to Set + pub struct SetAction(PhantomData St>); + impl sealed::Sealed for SetAction {} + impl State for SetAction { + type Reason = St::Reason; type Url = St::Url; + type Action = Set; + type CreatedAt = St::CreatedAt; + type EventType = St::EventType; + type CreatedBy = St::CreatedBy; type Id = St::Id; + type Pattern = St::Pattern; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Pattern = St::Pattern; type Reason = St::Reason; - type EventType = St::EventType; - type CreatedAt = Set; + type Url = St::Url; type Action = St::Action; + type CreatedAt = Set; + type EventType = St::EventType; type CreatedBy = St::CreatedBy; - type Url = St::Url; type Id = St::Id; - } - ///State transition - sets the `action` field to Set - pub struct SetAction(PhantomData St>); - impl sealed::Sealed for SetAction {} - impl State for SetAction { type Pattern = St::Pattern; + } + ///State transition - sets the `event_type` field to Set + pub struct SetEventType(PhantomData St>); + impl sealed::Sealed for SetEventType {} + impl State for SetEventType { type Reason = St::Reason; - type EventType = St::EventType; + type Url = St::Url; + type Action = St::Action; type CreatedAt = St::CreatedAt; - type Action = Set; + type EventType = Set; type CreatedBy = St::CreatedBy; - type Url = St::Url; type Id = St::Id; + type Pattern = St::Pattern; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData St>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { - type Pattern = St::Pattern; type Reason = St::Reason; - type EventType = St::EventType; - type CreatedAt = St::CreatedAt; + type Url = St::Url; type Action = St::Action; + type CreatedAt = St::CreatedAt; + type EventType = St::EventType; type CreatedBy = Set; - type Url = St::Url; type Id = St::Id; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { type Pattern = St::Pattern; - type Reason = St::Reason; - type EventType = St::EventType; - type CreatedAt = St::CreatedAt; - type Action = St::Action; - type CreatedBy = St::CreatedBy; - type Url = Set; - type Id = St::Id; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type Pattern = St::Pattern; type Reason = St::Reason; - type EventType = St::EventType; - type CreatedAt = St::CreatedAt; + type Url = St::Url; type Action = St::Action; + type CreatedAt = St::CreatedAt; + type EventType = St::EventType; type CreatedBy = St::CreatedBy; - type Url = St::Url; type Id = Set; + type Pattern = St::Pattern; + } + ///State transition - sets the `pattern` field to Set + pub struct SetPattern(PhantomData St>); + impl sealed::Sealed for SetPattern {} + impl State for SetPattern { + type Reason = St::Reason; + type Url = St::Url; + type Action = St::Action; + type CreatedAt = St::CreatedAt; + type EventType = St::EventType; + type CreatedBy = St::CreatedBy; + type Id = St::Id; + type Pattern = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `pattern` field - pub struct pattern(()); ///Marker type for the `reason` field pub struct reason(()); - ///Marker type for the `event_type` field - pub struct event_type(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `url` field + pub struct url(()); ///Marker type for the `action` field pub struct action(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `event_type` field + pub struct event_type(()); ///Marker type for the `created_by` field pub struct created_by(()); - ///Marker type for the `url` field - pub struct url(()); ///Marker type for the `id` field pub struct id(()); + ///Marker type for the `pattern` field + pub struct pattern(()); } } @@ -773,14 +773,14 @@ where impl EventBuilder where St: event_state::State, - St::Pattern: event_state::IsSet, St::Reason: event_state::IsSet, - St::EventType: event_state::IsSet, - St::CreatedAt: event_state::IsSet, + St::Url: event_state::IsSet, St::Action: event_state::IsSet, + St::CreatedAt: event_state::IsSet, + St::EventType: event_state::IsSet, St::CreatedBy: event_state::IsSet, - St::Url: event_state::IsSet, St::Id: event_state::IsSet, + St::Pattern: event_state::IsSet, { /// Build the final struct. pub fn build(self) -> Event { @@ -1042,127 +1042,127 @@ pub mod url_rule_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Pattern; - type Action; type UpdatedAt; - type Url; + type Reason; + type Action; type CreatedBy; type CreatedAt; - type Reason; + type Pattern; + type Url; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Pattern = Unset; - type Action = Unset; type UpdatedAt = Unset; - type Url = Unset; + type Reason = Unset; + type Action = Unset; type CreatedBy = Unset; type CreatedAt = Unset; - type Reason = Unset; + type Pattern = Unset; + type Url = Unset; } - ///State transition - sets the `pattern` field to Set - pub struct SetPattern(PhantomData St>); - impl sealed::Sealed for SetPattern {} - impl State for SetPattern { - type Pattern = Set; + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type UpdatedAt = Set; + type Reason = St::Reason; type Action = St::Action; - type UpdatedAt = St::UpdatedAt; + type CreatedBy = St::CreatedBy; + type CreatedAt = St::CreatedAt; + type Pattern = St::Pattern; type Url = St::Url; + } + ///State transition - sets the `reason` field to Set + pub struct SetReason(PhantomData St>); + impl sealed::Sealed for SetReason {} + impl State for SetReason { + type UpdatedAt = St::UpdatedAt; + type Reason = Set; + type Action = St::Action; type CreatedBy = St::CreatedBy; type CreatedAt = St::CreatedAt; - type Reason = St::Reason; + type Pattern = St::Pattern; + type Url = St::Url; } ///State transition - sets the `action` field to Set pub struct SetAction(PhantomData St>); impl sealed::Sealed for SetAction {} impl State for SetAction { - type Pattern = St::Pattern; - type Action = Set; type UpdatedAt = St::UpdatedAt; - type Url = St::Url; - type CreatedBy = St::CreatedBy; - type CreatedAt = St::CreatedAt; type Reason = St::Reason; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { - type Pattern = St::Pattern; - type Action = St::Action; - type UpdatedAt = Set; - type Url = St::Url; + type Action = Set; type CreatedBy = St::CreatedBy; type CreatedAt = St::CreatedAt; - type Reason = St::Reason; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { type Pattern = St::Pattern; - type Action = St::Action; - type UpdatedAt = St::UpdatedAt; - type Url = Set; - type CreatedBy = St::CreatedBy; - type CreatedAt = St::CreatedAt; - type Reason = St::Reason; + type Url = St::Url; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData St>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { - type Pattern = St::Pattern; - type Action = St::Action; type UpdatedAt = St::UpdatedAt; - type Url = St::Url; + type Reason = St::Reason; + type Action = St::Action; type CreatedBy = Set; type CreatedAt = St::CreatedAt; - type Reason = St::Reason; + type Pattern = St::Pattern; + type Url = St::Url; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Pattern = St::Pattern; - type Action = St::Action; type UpdatedAt = St::UpdatedAt; - type Url = St::Url; + type Reason = St::Reason; + type Action = St::Action; type CreatedBy = St::CreatedBy; type CreatedAt = Set; - type Reason = St::Reason; - } - ///State transition - sets the `reason` field to Set - pub struct SetReason(PhantomData St>); - impl sealed::Sealed for SetReason {} - impl State for SetReason { type Pattern = St::Pattern; - type Action = St::Action; + type Url = St::Url; + } + ///State transition - sets the `pattern` field to Set + pub struct SetPattern(PhantomData St>); + impl sealed::Sealed for SetPattern {} + impl State for SetPattern { type UpdatedAt = St::UpdatedAt; + type Reason = St::Reason; + type Action = St::Action; + type CreatedBy = St::CreatedBy; + type CreatedAt = St::CreatedAt; + type Pattern = Set; type Url = St::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type UpdatedAt = St::UpdatedAt; + type Reason = St::Reason; + type Action = St::Action; type CreatedBy = St::CreatedBy; type CreatedAt = St::CreatedAt; - type Reason = Set; + type Pattern = St::Pattern; + type Url = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `pattern` field - pub struct pattern(()); - ///Marker type for the `action` field - pub struct action(()); ///Marker type for the `updated_at` field pub struct updated_at(()); - ///Marker type for the `url` field - pub struct url(()); + ///Marker type for the `reason` field + pub struct reason(()); + ///Marker type for the `action` field + pub struct action(()); ///Marker type for the `created_by` field pub struct created_by(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `reason` field - pub struct reason(()); + ///Marker type for the `pattern` field + pub struct pattern(()); + ///Marker type for the `url` field + pub struct url(()); } } @@ -1349,13 +1349,13 @@ where impl UrlRuleBuilder where St: url_rule_state::State, - St::Pattern: url_rule_state::IsSet, - St::Action: url_rule_state::IsSet, St::UpdatedAt: url_rule_state::IsSet, - St::Url: url_rule_state::IsSet, + St::Reason: url_rule_state::IsSet, + St::Action: url_rule_state::IsSet, St::CreatedBy: url_rule_state::IsSet, St::CreatedAt: url_rule_state::IsSet, - St::Reason: url_rule_state::IsSet, + St::Pattern: url_rule_state::IsSet, + St::Url: url_rule_state::IsSet, { /// Build the final struct. pub fn build(self) -> UrlRule { diff --git a/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs index 66f135ee..16d2cfd5 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs @@ -141,66 +141,66 @@ pub mod add_rule_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Action; - type Pattern; - type Url; type Reason; + type Url; + type Pattern; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Action = Unset; - type Pattern = Unset; - type Url = Unset; type Reason = Unset; + type Url = Unset; + type Pattern = Unset; } ///State transition - sets the `action` field to Set pub struct SetAction(PhantomData St>); impl sealed::Sealed for SetAction {} impl State for SetAction { type Action = Set; - type Pattern = St::Pattern; - type Url = St::Url; type Reason = St::Reason; + type Url = St::Url; + type Pattern = St::Pattern; } - ///State transition - sets the `pattern` field to Set - pub struct SetPattern(PhantomData St>); - impl sealed::Sealed for SetPattern {} - impl State for SetPattern { + ///State transition - sets the `reason` field to Set + pub struct SetReason(PhantomData St>); + impl sealed::Sealed for SetReason {} + impl State for SetReason { type Action = St::Action; - type Pattern = Set; + type Reason = Set; type Url = St::Url; - type Reason = St::Reason; + type Pattern = St::Pattern; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { type Action = St::Action; - type Pattern = St::Pattern; - type Url = Set; type Reason = St::Reason; + type Url = Set; + type Pattern = St::Pattern; } - ///State transition - sets the `reason` field to Set - pub struct SetReason(PhantomData St>); - impl sealed::Sealed for SetReason {} - impl State for SetReason { + ///State transition - sets the `pattern` field to Set + pub struct SetPattern(PhantomData St>); + impl sealed::Sealed for SetPattern {} + impl State for SetPattern { type Action = St::Action; - type Pattern = St::Pattern; + type Reason = St::Reason; type Url = St::Url; - type Reason = Set; + type Pattern = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `action` field pub struct action(()); - ///Marker type for the `pattern` field - pub struct pattern(()); - ///Marker type for the `url` field - pub struct url(()); ///Marker type for the `reason` field pub struct reason(()); + ///Marker type for the `url` field + pub struct url(()); + ///Marker type for the `pattern` field + pub struct pattern(()); } } @@ -342,9 +342,9 @@ impl AddRuleBuilder where St: add_rule_state::State, St::Action: add_rule_state::IsSet, - St::Pattern: add_rule_state::IsSet, - St::Url: add_rule_state::IsSet, St::Reason: add_rule_state::IsSet, + St::Url: add_rule_state::IsSet, + St::Pattern: add_rule_state::IsSet, { /// Build the final struct. pub fn build(self) -> AddRule { diff --git a/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs index 9635f79b..2624cad8 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs @@ -126,37 +126,37 @@ pub mod remove_rule_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Pattern; type Url; + type Pattern; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Pattern = Unset; type Url = Unset; - } - ///State transition - sets the `pattern` field to Set - pub struct SetPattern(PhantomData St>); - impl sealed::Sealed for SetPattern {} - impl State for SetPattern { - type Pattern = Set; - type Url = St::Url; + type Pattern = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData St>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Pattern = St::Pattern; type Url = Set; + type Pattern = St::Pattern; + } + ///State transition - sets the `pattern` field to Set + pub struct SetPattern(PhantomData St>); + impl sealed::Sealed for SetPattern {} + impl State for SetPattern { + type Url = St::Url; + type Pattern = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `pattern` field - pub struct pattern(()); ///Marker type for the `url` field pub struct url(()); + ///Marker type for the `pattern` field + pub struct pattern(()); } } @@ -252,8 +252,8 @@ where impl RemoveRuleBuilder where St: remove_rule_state::State, - St::Pattern: remove_rule_state::IsSet, St::Url: remove_rule_state::IsSet, + St::Pattern: remove_rule_state::IsSet, { /// Build the final struct. pub fn build(self) -> RemoveRule { diff --git a/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs b/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs index 35773be2..3aca925c 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs @@ -130,67 +130,67 @@ pub mod update_rule_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Url; - type Pattern; type Reason; type Action; + type Url; + type Pattern; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Url = Unset; - type Pattern = Unset; type Reason = Unset; type Action = Unset; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData St>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Url = Set; - type Pattern = St::Pattern; - type Reason = St::Reason; - type Action = St::Action; - } - ///State transition - sets the `pattern` field to Set - pub struct SetPattern(PhantomData St>); - impl sealed::Sealed for SetPattern {} - impl State for SetPattern { - type Url = St::Url; - type Pattern = Set; - type Reason = St::Reason; - type Action = St::Action; + type Url = Unset; + type Pattern = Unset; } ///State transition - sets the `reason` field to Set pub struct SetReason(PhantomData St>); impl sealed::Sealed for SetReason {} impl State for SetReason { - type Url = St::Url; - type Pattern = St::Pattern; type Reason = Set; type Action = St::Action; + type Url = St::Url; + type Pattern = St::Pattern; } ///State transition - sets the `action` field to Set pub struct SetAction(PhantomData St>); impl sealed::Sealed for SetAction {} impl State for SetAction { + type Reason = St::Reason; + type Action = Set; type Url = St::Url; type Pattern = St::Pattern; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData St>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { type Reason = St::Reason; - type Action = Set; + type Action = St::Action; + type Url = Set; + type Pattern = St::Pattern; + } + ///State transition - sets the `pattern` field to Set + pub struct SetPattern(PhantomData St>); + impl sealed::Sealed for SetPattern {} + impl State for SetPattern { + type Reason = St::Reason; + type Action = St::Action; + type Url = St::Url; + type Pattern = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `url` field - pub struct url(()); - ///Marker type for the `pattern` field - pub struct pattern(()); ///Marker type for the `reason` field pub struct reason(()); ///Marker type for the `action` field pub struct action(()); + ///Marker type for the `url` field + pub struct url(()); + ///Marker type for the `pattern` field + pub struct pattern(()); } } @@ -331,10 +331,10 @@ where impl UpdateRuleBuilder where St: update_rule_state::State, - St::Url: update_rule_state::IsSet, - St::Pattern: update_rule_state::IsSet, St::Reason: update_rule_state::IsSet, St::Action: update_rule_state::IsSet, + St::Url: update_rule_state::IsSet, + St::Pattern: update_rule_state::IsSet, { /// Build the final struct. pub fn build(self) -> UpdateRule { diff --git a/crates/jacquard-api/src/tools_ozone/set.rs b/crates/jacquard-api/src/tools_ozone/set.rs index f7078748..02927b8a 100644 --- a/crates/jacquard-api/src/tools_ozone/set.rs +++ b/crates/jacquard-api/src/tools_ozone/set.rs @@ -283,67 +283,67 @@ pub mod set_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type UpdatedAt; type CreatedAt; - type Name; type SetSize; + type UpdatedAt; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type UpdatedAt = Unset; type CreatedAt = Unset; - type Name = Unset; type SetSize = Unset; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData St>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { - type UpdatedAt = Set; - type CreatedAt = St::CreatedAt; - type Name = St::Name; - type SetSize = St::SetSize; + type UpdatedAt = Unset; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type UpdatedAt = St::UpdatedAt; type CreatedAt = Set; - type Name = St::Name; type SetSize = St::SetSize; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { type UpdatedAt = St::UpdatedAt; - type CreatedAt = St::CreatedAt; - type Name = Set; - type SetSize = St::SetSize; + type Name = St::Name; } ///State transition - sets the `set_size` field to Set pub struct SetSetSize(PhantomData St>); impl sealed::Sealed for SetSetSize {} impl State for SetSetSize { + type CreatedAt = St::CreatedAt; + type SetSize = Set; type UpdatedAt = St::UpdatedAt; + type Name = St::Name; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData St>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { type CreatedAt = St::CreatedAt; + type SetSize = St::SetSize; + type UpdatedAt = Set; type Name = St::Name; - type SetSize = Set; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type SetSize = St::SetSize; + type UpdatedAt = St::UpdatedAt; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `updated_at` field - pub struct updated_at(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `set_size` field pub struct set_size(()); + ///Marker type for the `updated_at` field + pub struct updated_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -464,10 +464,10 @@ where impl SetViewBuilder where St: set_view_state::State, - St::UpdatedAt: set_view_state::IsSet, St::CreatedAt: set_view_state::IsSet, - St::Name: set_view_state::IsSet, St::SetSize: set_view_state::IsSet, + St::UpdatedAt: set_view_state::IsSet, + St::Name: set_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> SetView { diff --git a/crates/jacquard-api/src/tools_ozone/set/add_values.rs b/crates/jacquard-api/src/tools_ozone/set/add_values.rs index 06552ea8..dce34212 100644 --- a/crates/jacquard-api/src/tools_ozone/set/add_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/add_values.rs @@ -65,37 +65,37 @@ pub mod add_values_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Values; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Values = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Values = St::Values; + type Name = Unset; } ///State transition - sets the `values` field to Set pub struct SetValues(PhantomData St>); impl sealed::Sealed for SetValues {} impl State for SetValues { - type Name = St::Name; type Values = Set; + type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Values = St::Values; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `values` field pub struct values(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -165,8 +165,8 @@ where impl AddValuesBuilder where St: add_values_state::State, - St::Name: add_values_state::IsSet, St::Values: add_values_state::IsSet, + St::Name: add_values_state::IsSet, { /// Build the final struct. pub fn build(self) -> AddValues { diff --git a/crates/jacquard-api/src/tools_ozone/set/delete_values.rs b/crates/jacquard-api/src/tools_ozone/set/delete_values.rs index 85f3da40..7831e7ee 100644 --- a/crates/jacquard-api/src/tools_ozone/set/delete_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/delete_values.rs @@ -108,37 +108,37 @@ pub mod delete_values_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Values; type Name; + type Values; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Values = Unset; type Name = Unset; - } - ///State transition - sets the `values` field to Set - pub struct SetValues(PhantomData St>); - impl sealed::Sealed for SetValues {} - impl State for SetValues { - type Values = Set; - type Name = St::Name; + type Values = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Values = St::Values; type Name = Set; + type Values = St::Values; + } + ///State transition - sets the `values` field to Set + pub struct SetValues(PhantomData St>); + impl sealed::Sealed for SetValues {} + impl State for SetValues { + type Name = St::Name; + type Values = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `values` field - pub struct values(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `values` field + pub struct values(()); } } @@ -208,8 +208,8 @@ where impl DeleteValuesBuilder where St: delete_values_state::State, - St::Values: delete_values_state::IsSet, St::Name: delete_values_state::IsSet, + St::Values: delete_values_state::IsSet, { /// Build the final struct. pub fn build(self) -> DeleteValues { diff --git a/crates/jacquard-api/src/tools_ozone/setting.rs b/crates/jacquard-api/src/tools_ozone/setting.rs index 6f02f193..36e95042 100644 --- a/crates/jacquard-api/src/tools_ozone/setting.rs +++ b/crates/jacquard-api/src/tools_ozone/setting.rs @@ -266,10 +266,10 @@ pub mod defs_option_state { pub trait State: sealed::Sealed { type Key; type Value; - type CreatedBy; + type Did; type Scope; type LastUpdatedBy; - type Did; + type CreatedBy; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -277,10 +277,10 @@ pub mod defs_option_state { impl State for Empty { type Key = Unset; type Value = Unset; - type CreatedBy = Unset; + type Did = Unset; type Scope = Unset; type LastUpdatedBy = Unset; - type Did = Unset; + type CreatedBy = Unset; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData St>); @@ -288,10 +288,10 @@ pub mod defs_option_state { impl State for SetKey { type Key = Set; type Value = St::Value; - type CreatedBy = St::CreatedBy; + type Did = St::Did; type Scope = St::Scope; type LastUpdatedBy = St::LastUpdatedBy; - type Did = St::Did; + type CreatedBy = St::CreatedBy; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); @@ -299,21 +299,21 @@ pub mod defs_option_state { impl State for SetValue { type Key = St::Key; type Value = Set; - type CreatedBy = St::CreatedBy; + type Did = St::Did; type Scope = St::Scope; type LastUpdatedBy = St::LastUpdatedBy; - type Did = St::Did; + type CreatedBy = St::CreatedBy; } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData St>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { type Key = St::Key; type Value = St::Value; - type CreatedBy = Set; + type Did = Set; type Scope = St::Scope; type LastUpdatedBy = St::LastUpdatedBy; - type Did = St::Did; + type CreatedBy = St::CreatedBy; } ///State transition - sets the `scope` field to Set pub struct SetScope(PhantomData St>); @@ -321,10 +321,10 @@ pub mod defs_option_state { impl State for SetScope { type Key = St::Key; type Value = St::Value; - type CreatedBy = St::CreatedBy; + type Did = St::Did; type Scope = Set; type LastUpdatedBy = St::LastUpdatedBy; - type Did = St::Did; + type CreatedBy = St::CreatedBy; } ///State transition - sets the `last_updated_by` field to Set pub struct SetLastUpdatedBy(PhantomData St>); @@ -332,21 +332,21 @@ pub mod defs_option_state { impl State for SetLastUpdatedBy { type Key = St::Key; type Value = St::Value; - type CreatedBy = St::CreatedBy; + type Did = St::Did; type Scope = St::Scope; type LastUpdatedBy = Set; - type Did = St::Did; + type CreatedBy = St::CreatedBy; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData St>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { type Key = St::Key; type Value = St::Value; - type CreatedBy = St::CreatedBy; + type Did = St::Did; type Scope = St::Scope; type LastUpdatedBy = St::LastUpdatedBy; - type Did = Set; + type CreatedBy = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -355,14 +355,14 @@ pub mod defs_option_state { pub struct key(()); ///Marker type for the `value` field pub struct value(()); - ///Marker type for the `created_by` field - pub struct created_by(()); + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `scope` field pub struct scope(()); ///Marker type for the `last_updated_by` field pub struct last_updated_by(()); - ///Marker type for the `did` field - pub struct did(()); + ///Marker type for the `created_by` field + pub struct created_by(()); } } @@ -579,10 +579,10 @@ where St: defs_option_state::State, St::Key: defs_option_state::IsSet, St::Value: defs_option_state::IsSet, - St::CreatedBy: defs_option_state::IsSet, + St::Did: defs_option_state::IsSet, St::Scope: defs_option_state::IsSet, St::LastUpdatedBy: defs_option_state::IsSet, - St::Did: defs_option_state::IsSet, + St::CreatedBy: defs_option_state::IsSet, { /// Build the final struct. pub fn build(self) -> DefsOption { diff --git a/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs b/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs index fae6a708..bb6d4922 100644 --- a/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs +++ b/crates/jacquard-api/src/tools_ozone/setting/remove_options.rs @@ -150,37 +150,37 @@ pub mod remove_options_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Keys; type Scope; + type Keys; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Keys = Unset; type Scope = Unset; - } - ///State transition - sets the `keys` field to Set - pub struct SetKeys(PhantomData St>); - impl sealed::Sealed for SetKeys {} - impl State for SetKeys { - type Keys = Set; - type Scope = St::Scope; + type Keys = Unset; } ///State transition - sets the `scope` field to Set pub struct SetScope(PhantomData St>); impl sealed::Sealed for SetScope {} impl State for SetScope { - type Keys = St::Keys; type Scope = Set; + type Keys = St::Keys; + } + ///State transition - sets the `keys` field to Set + pub struct SetKeys(PhantomData St>); + impl sealed::Sealed for SetKeys {} + impl State for SetKeys { + type Scope = St::Scope; + type Keys = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `keys` field - pub struct keys(()); ///Marker type for the `scope` field pub struct scope(()); + ///Marker type for the `keys` field + pub struct keys(()); } } @@ -250,8 +250,8 @@ where impl RemoveOptionsBuilder where St: remove_options_state::State, - St::Keys: remove_options_state::IsSet, St::Scope: remove_options_state::IsSet, + St::Keys: remove_options_state::IsSet, { /// Build the final struct. pub fn build(self) -> RemoveOptions { diff --git a/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs b/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs index eda0d549..51407547 100644 --- a/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs +++ b/crates/jacquard-api/src/tools_ozone/setting/upsert_option.rs @@ -250,50 +250,50 @@ pub mod upsert_option_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Scope; - type Key; type Value; + type Key; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Scope = Unset; - type Key = Unset; type Value = Unset; + type Key = Unset; } ///State transition - sets the `scope` field to Set pub struct SetScope(PhantomData St>); impl sealed::Sealed for SetScope {} impl State for SetScope { type Scope = Set; - type Key = St::Key; - type Value = St::Value; - } - ///State transition - sets the `key` field to Set - pub struct SetKey(PhantomData St>); - impl sealed::Sealed for SetKey {} - impl State for SetKey { - type Scope = St::Scope; - type Key = Set; type Value = St::Value; + type Key = St::Key; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { type Scope = St::Scope; - type Key = St::Key; type Value = Set; + type Key = St::Key; + } + ///State transition - sets the `key` field to Set + pub struct SetKey(PhantomData St>); + impl sealed::Sealed for SetKey {} + impl State for SetKey { + type Scope = St::Scope; + type Value = St::Value; + type Key = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `scope` field pub struct scope(()); - ///Marker type for the `key` field - pub struct key(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `key` field + pub struct key(()); } } @@ -421,8 +421,8 @@ impl UpsertOptionBuilder where St: upsert_option_state::State, St::Scope: upsert_option_state::IsSet, - St::Key: upsert_option_state::IsSet, St::Value: upsert_option_state::IsSet, + St::Key: upsert_option_state::IsSet, { /// Build the final struct. pub fn build(self) -> UpsertOption { diff --git a/crates/jacquard-api/src/tools_ozone/verification.rs b/crates/jacquard-api/src/tools_ozone/verification.rs index 13aebf02..baeae9ec 100644 --- a/crates/jacquard-api/src/tools_ozone/verification.rs +++ b/crates/jacquard-api/src/tools_ozone/verification.rs @@ -116,105 +116,105 @@ pub mod verification_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Issuer; type Uri; type Subject; type Handle; - type CreatedAt; + type Issuer; type DisplayName; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Issuer = Unset; type Uri = Unset; type Subject = Unset; type Handle = Unset; - type CreatedAt = Unset; + type Issuer = Unset; type DisplayName = Unset; - } - ///State transition - sets the `issuer` field to Set - pub struct SetIssuer(PhantomData St>); - impl sealed::Sealed for SetIssuer {} - impl State for SetIssuer { - type Issuer = Set; - type Uri = St::Uri; - type Subject = St::Subject; - type Handle = St::Handle; - type CreatedAt = St::CreatedAt; - type DisplayName = St::DisplayName; + type CreatedAt = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Issuer = St::Issuer; type Uri = Set; type Subject = St::Subject; type Handle = St::Handle; - type CreatedAt = St::CreatedAt; + type Issuer = St::Issuer; type DisplayName = St::DisplayName; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData St>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Issuer = St::Issuer; type Uri = St::Uri; type Subject = Set; type Handle = St::Handle; - type CreatedAt = St::CreatedAt; + type Issuer = St::Issuer; type DisplayName = St::DisplayName; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData St>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Issuer = St::Issuer; type Uri = St::Uri; type Subject = St::Subject; type Handle = Set; - type CreatedAt = St::CreatedAt; + type Issuer = St::Issuer; type DisplayName = St::DisplayName; + type CreatedAt = St::CreatedAt; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Issuer = St::Issuer; + ///State transition - sets the `issuer` field to Set + pub struct SetIssuer(PhantomData St>); + impl sealed::Sealed for SetIssuer {} + impl State for SetIssuer { type Uri = St::Uri; type Subject = St::Subject; type Handle = St::Handle; - type CreatedAt = Set; + type Issuer = Set; type DisplayName = St::DisplayName; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData St>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Issuer = St::Issuer; type Uri = St::Uri; type Subject = St::Subject; type Handle = St::Handle; - type CreatedAt = St::CreatedAt; + type Issuer = St::Issuer; type DisplayName = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Uri = St::Uri; + type Subject = St::Subject; + type Handle = St::Handle; + type Issuer = St::Issuer; + type DisplayName = St::DisplayName; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `issuer` field - pub struct issuer(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `subject` field pub struct subject(()); ///Marker type for the `handle` field pub struct handle(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `issuer` field + pub struct issuer(()); ///Marker type for the `display_name` field pub struct display_name(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -491,12 +491,12 @@ where impl VerificationViewBuilder where St: verification_view_state::State, - St::Issuer: verification_view_state::IsSet, St::Uri: verification_view_state::IsSet, St::Subject: verification_view_state::IsSet, St::Handle: verification_view_state::IsSet, - St::CreatedAt: verification_view_state::IsSet, + St::Issuer: verification_view_state::IsSet, St::DisplayName: verification_view_state::IsSet, + St::CreatedAt: verification_view_state::IsSet, { /// Build the final struct. pub fn build(self) -> VerificationView { diff --git a/crates/jacquard-api/src/uk_ewancroft/kofi/supporter.rs b/crates/jacquard-api/src/uk_ewancroft/kofi/supporter.rs index 47b41719..42416b81 100644 --- a/crates/jacquard-api/src/uk_ewancroft/kofi/supporter.rs +++ b/crates/jacquard-api/src/uk_ewancroft/kofi/supporter.rs @@ -117,37 +117,37 @@ pub mod supporter_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Type; type Name; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Type = Unset; type Name = Unset; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData St>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type Name = St::Name; + type Type = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type Type = St::Type; type Name = Set; + type Type = St::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData St>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Name = St::Name; + type Type = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `type` field - pub struct r#type(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -230,8 +230,8 @@ where impl SupporterBuilder where St: supporter_state::State, - St::Type: supporter_state::IsSet, St::Name: supporter_state::IsSet, + St::Type: supporter_state::IsSet, { /// Build the final struct. pub fn build(self) -> Supporter { diff --git a/crates/jacquard-api/src/uk_skyblur/post.rs b/crates/jacquard-api/src/uk_skyblur/post.rs index 79e6b42a..f02306e2 100644 --- a/crates/jacquard-api/src/uk_skyblur/post.rs +++ b/crates/jacquard-api/src/uk_skyblur/post.rs @@ -202,66 +202,66 @@ pub mod post_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Visibility; + type Uri; type Text; type CreatedAt; - type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Visibility = Unset; + type Uri = Unset; type Text = Unset; type CreatedAt = Unset; - type Uri = Unset; } ///State transition - sets the `visibility` field to Set pub struct SetVisibility(PhantomData St>); impl sealed::Sealed for SetVisibility {} impl State for SetVisibility { type Visibility = Set; + type Uri = St::Uri; + type Text = St::Text; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData St>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Visibility = St::Visibility; + type Uri = Set; type Text = St::Text; type CreatedAt = St::CreatedAt; - type Uri = St::Uri; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { type Visibility = St::Visibility; + type Uri = St::Uri; type Text = Set; type CreatedAt = St::CreatedAt; - type Uri = St::Uri; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Visibility = St::Visibility; - type Text = St::Text; - type CreatedAt = Set; type Uri = St::Uri; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData St>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Visibility = St::Visibility; type Text = St::Text; - type CreatedAt = St::CreatedAt; - type Uri = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `visibility` field pub struct visibility(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `text` field pub struct text(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `uri` field - pub struct uri(()); } } @@ -403,9 +403,9 @@ impl PostBuilder where St: post_state::State, St::Visibility: post_state::IsSet, + St::Uri: post_state::IsSet, St::Text: post_state::IsSet, St::CreatedAt: post_state::IsSet, - St::Uri: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/uk_skyblur/post/decrypt_by_cid.rs b/crates/jacquard-api/src/uk_skyblur/post/decrypt_by_cid.rs index 43796228..c34feb28 100644 --- a/crates/jacquard-api/src/uk_skyblur/post/decrypt_by_cid.rs +++ b/crates/jacquard-api/src/uk_skyblur/post/decrypt_by_cid.rs @@ -80,67 +80,67 @@ pub mod decrypt_by_cid_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Pds; - type Cid; - type Password; type Repo; + type Password; + type Cid; + type Pds; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Pds = Unset; - type Cid = Unset; - type Password = Unset; type Repo = Unset; + type Password = Unset; + type Cid = Unset; + type Pds = Unset; } - ///State transition - sets the `pds` field to Set - pub struct SetPds(PhantomData St>); - impl sealed::Sealed for SetPds {} - impl State for SetPds { - type Pds = Set; - type Cid = St::Cid; + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData St>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Repo = Set; type Password = St::Password; - type Repo = St::Repo; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { + type Cid = St::Cid; type Pds = St::Pds; - type Cid = Set; - type Password = St::Password; - type Repo = St::Repo; } ///State transition - sets the `password` field to Set pub struct SetPassword(PhantomData St>); impl sealed::Sealed for SetPassword {} impl State for SetPassword { - type Pds = St::Pds; - type Cid = St::Cid; - type Password = Set; type Repo = St::Repo; + type Password = Set; + type Cid = St::Cid; + type Pds = St::Pds; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData St>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Repo = St::Repo; + type Password = St::Password; + type Cid = Set; type Pds = St::Pds; - type Cid = St::Cid; + } + ///State transition - sets the `pds` field to Set + pub struct SetPds(PhantomData St>); + impl sealed::Sealed for SetPds {} + impl State for SetPds { + type Repo = St::Repo; type Password = St::Password; - type Repo = Set; + type Cid = St::Cid; + type Pds = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `pds` field - pub struct pds(()); - ///Marker type for the `cid` field - pub struct cid(()); - ///Marker type for the `password` field - pub struct password(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `password` field + pub struct password(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `pds` field + pub struct pds(()); } } @@ -248,10 +248,10 @@ where impl DecryptByCidBuilder where St: decrypt_by_cid_state::State, - St::Pds: decrypt_by_cid_state::IsSet, - St::Cid: decrypt_by_cid_state::IsSet, - St::Password: decrypt_by_cid_state::IsSet, St::Repo: decrypt_by_cid_state::IsSet, + St::Password: decrypt_by_cid_state::IsSet, + St::Cid: decrypt_by_cid_state::IsSet, + St::Pds: decrypt_by_cid_state::IsSet, { /// Build the final struct. pub fn build(self) -> DecryptByCid { diff --git a/crates/jacquard-api/src/uk_skyblur/post/store.rs b/crates/jacquard-api/src/uk_skyblur/post/store.rs index 96a0e70f..036133dd 100644 --- a/crates/jacquard-api/src/uk_skyblur/post/store.rs +++ b/crates/jacquard-api/src/uk_skyblur/post/store.rs @@ -79,51 +79,51 @@ pub mod store_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Text; type Visibility; type Uri; - type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Text = Unset; type Visibility = Unset; type Uri = Unset; - type Text = Unset; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData St>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type Text = Set; + type Visibility = St::Visibility; + type Uri = St::Uri; } ///State transition - sets the `visibility` field to Set pub struct SetVisibility(PhantomData St>); impl sealed::Sealed for SetVisibility {} impl State for SetVisibility { + type Text = St::Text; type Visibility = Set; type Uri = St::Uri; - type Text = St::Text; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Visibility = St::Visibility; - type Uri = Set; type Text = St::Text; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData St>); - impl sealed::Sealed for SetText {} - impl State for SetText { type Visibility = St::Visibility; - type Uri = St::Uri; - type Text = Set; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `text` field + pub struct text(()); ///Marker type for the `visibility` field pub struct visibility(()); ///Marker type for the `uri` field pub struct uri(()); - ///Marker type for the `text` field - pub struct text(()); } } @@ -225,9 +225,9 @@ where impl StoreBuilder where St: store_state::State, + St::Text: store_state::IsSet, St::Visibility: store_state::IsSet, St::Uri: store_state::IsSet, - St::Text: store_state::IsSet, { /// Build the final struct. pub fn build(self) -> Store { diff --git a/crates/jacquard-api/src/us_polhem/blog.rs b/crates/jacquard-api/src/us_polhem/blog.rs index 5213eb8f..49de91ff 100644 --- a/crates/jacquard-api/src/us_polhem/blog.rs +++ b/crates/jacquard-api/src/us_polhem/blog.rs @@ -84,37 +84,37 @@ pub mod aspect_ratio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Width; type Height; + type Width; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Width = Unset; type Height = Unset; - } - ///State transition - sets the `width` field to Set - pub struct SetWidth(PhantomData St>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = St::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData St>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = St::Width; type Height = Set; + type Width = St::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData St>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = St::Height; + type Width = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `width` field - pub struct width(()); ///Marker type for the `height` field pub struct height(()); + ///Marker type for the `width` field + pub struct width(()); } } @@ -184,8 +184,8 @@ where impl AspectRatioBuilder where St: aspect_ratio_state::State, - St::Width: aspect_ratio_state::IsSet, St::Height: aspect_ratio_state::IsSet, + St::Width: aspect_ratio_state::IsSet, { /// Build the final struct. pub fn build(self) -> AspectRatio { diff --git a/crates/jacquard-api/src/us_polhem/blog/content.rs b/crates/jacquard-api/src/us_polhem/blog/content.rs index f23f8964..7fe469e5 100644 --- a/crates/jacquard-api/src/us_polhem/blog/content.rs +++ b/crates/jacquard-api/src/us_polhem/blog/content.rs @@ -138,50 +138,50 @@ pub mod content_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type Slug; type Content; + type Slug; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type Slug = Unset; type Content = Unset; + type Slug = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type Slug = St::Slug; - type Content = St::Content; - } - ///State transition - sets the `slug` field to Set - pub struct SetSlug(PhantomData St>); - impl sealed::Sealed for SetSlug {} - impl State for SetSlug { - type CreatedAt = St::CreatedAt; - type Slug = Set; type Content = St::Content; + type Slug = St::Slug; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData St>); impl sealed::Sealed for SetContent {} impl State for SetContent { type CreatedAt = St::CreatedAt; - type Slug = St::Slug; type Content = Set; + type Slug = St::Slug; + } + ///State transition - sets the `slug` field to Set + pub struct SetSlug(PhantomData St>); + impl sealed::Sealed for SetSlug {} + impl State for SetSlug { + type CreatedAt = St::CreatedAt; + type Content = St::Content; + type Slug = 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 `slug` field - pub struct slug(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `slug` field + pub struct slug(()); } } @@ -284,8 +284,8 @@ impl ContentBuilder where St: content_state::State, St::CreatedAt: content_state::IsSet, - St::Slug: content_state::IsSet, St::Content: content_state::IsSet, + St::Slug: content_state::IsSet, { /// Build the final struct. pub fn build(self) -> Content { diff --git a/crates/jacquard-api/src/us_polhem/blog/post.rs b/crates/jacquard-api/src/us_polhem/blog/post.rs index 42f48da1..12e78fdf 100644 --- a/crates/jacquard-api/src/us_polhem/blog/post.rs +++ b/crates/jacquard-api/src/us_polhem/blog/post.rs @@ -176,8 +176,8 @@ pub mod post_state { pub trait State: sealed::Sealed { type Title; type CreatedAt; - type Content; type Slug; + type Content; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -185,8 +185,8 @@ pub mod post_state { impl State for Empty { type Title = Unset; type CreatedAt = Unset; - type Content = Unset; type Slug = Unset; + type Content = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); @@ -194,8 +194,8 @@ pub mod post_state { impl State for SetTitle { type Title = Set; type CreatedAt = St::CreatedAt; - type Content = St::Content; type Slug = St::Slug; + type Content = St::Content; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); @@ -203,17 +203,8 @@ pub mod post_state { impl State for SetCreatedAt { type Title = St::Title; type CreatedAt = Set; - type Content = St::Content; - type Slug = St::Slug; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData St>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type Title = St::Title; - type CreatedAt = St::CreatedAt; - type Content = Set; type Slug = St::Slug; + type Content = St::Content; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData St>); @@ -221,8 +212,17 @@ pub mod post_state { impl State for SetSlug { type Title = St::Title; type CreatedAt = St::CreatedAt; - type Content = St::Content; type Slug = Set; + type Content = St::Content; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData St>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Title = St::Title; + type CreatedAt = St::CreatedAt; + type Slug = St::Slug; + type Content = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -231,10 +231,10 @@ pub mod post_state { pub struct title(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `content` field - pub struct content(()); ///Marker type for the `slug` field pub struct slug(()); + ///Marker type for the `content` field + pub struct content(()); } } @@ -419,8 +419,8 @@ where St: post_state::State, St::Title: post_state::IsSet, St::CreatedAt: post_state::IsSet, - St::Content: post_state::IsSet, St::Slug: post_state::IsSet, + St::Content: post_state::IsSet, { /// Build the final struct. pub fn build(self) -> Post { diff --git a/crates/jacquard-api/src/us_polhem/blog/tag.rs b/crates/jacquard-api/src/us_polhem/blog/tag.rs index 7b07cd2b..81bc5708 100644 --- a/crates/jacquard-api/src/us_polhem/blog/tag.rs +++ b/crates/jacquard-api/src/us_polhem/blog/tag.rs @@ -147,65 +147,65 @@ pub mod tag_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Description; type Slug; + type Name; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Description = Unset; type Slug = Unset; + type Name = Unset; type CreatedAt = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Description = St::Description; - type Slug = St::Slug; - type CreatedAt = St::CreatedAt; - } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData St>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Name = St::Name; type Description = Set; type Slug = St::Slug; + type Name = St::Name; type CreatedAt = St::CreatedAt; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData St>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { - type Name = St::Name; type Description = St::Description; type Slug = Set; + type Name = St::Name; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Description = St::Description; + type Slug = St::Slug; + type Name = Set; type CreatedAt = St::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type Description = St::Description; type Slug = St::Slug; + type Name = St::Name; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `description` field pub struct description(()); ///Marker type for the `slug` field pub struct slug(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -309,9 +309,9 @@ where impl TagBuilder where St: tag_state::State, - St::Name: tag_state::IsSet, St::Description: tag_state::IsSet, St::Slug: tag_state::IsSet, + St::Name: tag_state::IsSet, St::CreatedAt: tag_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/win_tomo_x/pushat.rs b/crates/jacquard-api/src/win_tomo_x/pushat.rs index fdb152e9..292e3ba9 100644 --- a/crates/jacquard-api/src/win_tomo_x/pushat.rs +++ b/crates/jacquard-api/src/win_tomo_x/pushat.rs @@ -129,49 +129,49 @@ pub mod device_list_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Id; + type Name; type Current; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Id = Unset; + type Name = Unset; type Current = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Id = St::Id; - type Current = St::Current; - } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData St>); impl sealed::Sealed for SetId {} impl State for SetId { - type Name = St::Name; type Id = Set; + type Name = St::Name; + type Current = St::Current; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Id = St::Id; + type Name = Set; type Current = St::Current; } ///State transition - sets the `current` field to Set pub struct SetCurrent(PhantomData St>); impl sealed::Sealed for SetCurrent {} impl State for SetCurrent { - type Name = St::Name; type Id = St::Id; + type Name = St::Name; type Current = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `id` field pub struct id(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `current` field pub struct current(()); } @@ -262,8 +262,8 @@ where impl DeviceListItemBuilder where St: device_list_item_state::State, - St::Name: device_list_item_state::IsSet, St::Id: device_list_item_state::IsSet, + St::Name: device_list_item_state::IsSet, St::Current: device_list_item_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/world_ptah/temp/action.rs b/crates/jacquard-api/src/world_ptah/temp/action.rs index 2a78f274..12a92432 100644 --- a/crates/jacquard-api/src/world_ptah/temp/action.rs +++ b/crates/jacquard-api/src/world_ptah/temp/action.rs @@ -364,51 +364,51 @@ pub mod action_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type ActorDid; type WorldReference; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type ActorDid = Unset; type WorldReference = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type ActorDid = St::ActorDid; + type WorldReference = St::WorldReference; } ///State transition - sets the `actor_did` field to Set pub struct SetActorDid(PhantomData St>); impl sealed::Sealed for SetActorDid {} impl State for SetActorDid { + type CreatedAt = St::CreatedAt; type ActorDid = Set; type WorldReference = St::WorldReference; - type CreatedAt = St::CreatedAt; } ///State transition - sets the `world_reference` field to Set pub struct SetWorldReference(PhantomData St>); impl sealed::Sealed for SetWorldReference {} impl State for SetWorldReference { - type ActorDid = St::ActorDid; - type WorldReference = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type ActorDid = St::ActorDid; - type WorldReference = St::WorldReference; - type CreatedAt = Set; + type WorldReference = 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 `actor_did` field pub struct actor_did(()); ///Marker type for the `world_reference` field pub struct world_reference(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -599,9 +599,9 @@ where impl ActionBuilder where St: action_state::State, + St::CreatedAt: action_state::IsSet, St::ActorDid: action_state::IsSet, St::WorldReference: action_state::IsSet, - St::CreatedAt: action_state::IsSet, { /// Build the final struct. pub fn build(self) -> Action { diff --git a/crates/jacquard-api/src/world_ptah/temp/character.rs b/crates/jacquard-api/src/world_ptah/temp/character.rs index ab6062aa..bd54af9b 100644 --- a/crates/jacquard-api/src/world_ptah/temp/character.rs +++ b/crates/jacquard-api/src/world_ptah/temp/character.rs @@ -876,67 +876,67 @@ pub mod character_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatorDid; - type CreatedAt; type Name; type WorldReference; + type CreatorDid; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatorDid = Unset; - type CreatedAt = Unset; type Name = Unset; type WorldReference = Unset; - } - ///State transition - sets the `creator_did` field to Set - pub struct SetCreatorDid(PhantomData St>); - impl sealed::Sealed for SetCreatorDid {} - impl State for SetCreatorDid { - type CreatorDid = Set; - type CreatedAt = St::CreatedAt; - type Name = St::Name; - type WorldReference = St::WorldReference; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatorDid = St::CreatorDid; - type CreatedAt = Set; - type Name = St::Name; - type WorldReference = St::WorldReference; + type CreatorDid = Unset; + type CreatedAt = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatorDid = St::CreatorDid; - type CreatedAt = St::CreatedAt; type Name = Set; type WorldReference = St::WorldReference; + type CreatorDid = St::CreatorDid; + type CreatedAt = St::CreatedAt; } ///State transition - sets the `world_reference` field to Set pub struct SetWorldReference(PhantomData St>); impl sealed::Sealed for SetWorldReference {} impl State for SetWorldReference { + type Name = St::Name; + type WorldReference = Set; type CreatorDid = St::CreatorDid; type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `creator_did` field to Set + pub struct SetCreatorDid(PhantomData St>); + impl sealed::Sealed for SetCreatorDid {} + impl State for SetCreatorDid { type Name = St::Name; - type WorldReference = Set; + type WorldReference = St::WorldReference; + type CreatorDid = Set; + type CreatedAt = St::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type WorldReference = St::WorldReference; + type CreatorDid = St::CreatorDid; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `creator_did` field - pub struct creator_did(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `world_reference` field pub struct world_reference(()); + ///Marker type for the `creator_did` field + pub struct creator_did(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -1192,10 +1192,10 @@ where impl CharacterBuilder where St: character_state::State, - St::CreatorDid: character_state::IsSet, - St::CreatedAt: character_state::IsSet, St::Name: character_state::IsSet, St::WorldReference: character_state::IsSet, + St::CreatorDid: character_state::IsSet, + St::CreatedAt: character_state::IsSet, { /// Build the final struct. pub fn build(self) -> Character { diff --git a/crates/jacquard-api/src/world_ptah/temp/contribution.rs b/crates/jacquard-api/src/world_ptah/temp/contribution.rs index 1495ebc6..7f54c77d 100644 --- a/crates/jacquard-api/src/world_ptah/temp/contribution.rs +++ b/crates/jacquard-api/src/world_ptah/temp/contribution.rs @@ -455,50 +455,50 @@ pub mod contribution_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type CreatedAt; - type ContributorDid; type WorldReference; + type ContributorDid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type CreatedAt = Unset; - type ContributorDid = Unset; type WorldReference = Unset; + type ContributorDid = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type CreatedAt = Set; - type ContributorDid = St::ContributorDid; - type WorldReference = St::WorldReference; - } - ///State transition - sets the `contributor_did` field to Set - pub struct SetContributorDid(PhantomData St>); - impl sealed::Sealed for SetContributorDid {} - impl State for SetContributorDid { - type CreatedAt = St::CreatedAt; - type ContributorDid = Set; type WorldReference = St::WorldReference; + type ContributorDid = St::ContributorDid; } ///State transition - sets the `world_reference` field to Set pub struct SetWorldReference(PhantomData St>); impl sealed::Sealed for SetWorldReference {} impl State for SetWorldReference { type CreatedAt = St::CreatedAt; - type ContributorDid = St::ContributorDid; type WorldReference = Set; + type ContributorDid = St::ContributorDid; + } + ///State transition - sets the `contributor_did` field to Set + pub struct SetContributorDid(PhantomData St>); + impl sealed::Sealed for SetContributorDid {} + impl State for SetContributorDid { + type CreatedAt = St::CreatedAt; + type WorldReference = St::WorldReference; + type ContributorDid = 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 `contributor_did` field - pub struct contributor_did(()); ///Marker type for the `world_reference` field pub struct world_reference(()); + ///Marker type for the `contributor_did` field + pub struct contributor_did(()); } } @@ -694,8 +694,8 @@ impl ContributionBuilder where St: contribution_state::State, St::CreatedAt: contribution_state::IsSet, - St::ContributorDid: contribution_state::IsSet, St::WorldReference: contribution_state::IsSet, + St::ContributorDid: contribution_state::IsSet, { /// Build the final struct. pub fn build(self) -> Contribution { diff --git a/crates/jacquard-api/src/world_ptah/temp/event.rs b/crates/jacquard-api/src/world_ptah/temp/event.rs index b9c67452..20f60a3f 100644 --- a/crates/jacquard-api/src/world_ptah/temp/event.rs +++ b/crates/jacquard-api/src/world_ptah/temp/event.rs @@ -616,8 +616,8 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type CreatedAt; + type Name; type WorldReference; type CreatorDid; } @@ -625,26 +625,26 @@ pub mod event_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type CreatedAt = Unset; + type Name = Unset; type WorldReference = Unset; type CreatorDid = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = St::CreatedAt; - type WorldReference = St::WorldReference; - type CreatorDid = St::CreatorDid; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = St::Name; type CreatedAt = Set; + type Name = St::Name; + type WorldReference = St::WorldReference; + type CreatorDid = St::CreatorDid; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; + type Name = Set; type WorldReference = St::WorldReference; type CreatorDid = St::CreatorDid; } @@ -652,8 +652,8 @@ pub mod event_state { pub struct SetWorldReference(PhantomData St>); impl sealed::Sealed for SetWorldReference {} impl State for SetWorldReference { - type Name = St::Name; type CreatedAt = St::CreatedAt; + type Name = St::Name; type WorldReference = Set; type CreatorDid = St::CreatorDid; } @@ -661,18 +661,18 @@ pub mod event_state { pub struct SetCreatorDid(PhantomData St>); impl sealed::Sealed for SetCreatorDid {} impl State for SetCreatorDid { - type Name = St::Name; type CreatedAt = St::CreatedAt; + type Name = St::Name; type WorldReference = St::WorldReference; type CreatorDid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `world_reference` field pub struct world_reference(()); ///Marker type for the `creator_did` field @@ -944,8 +944,8 @@ where impl EventBuilder where St: event_state::State, - St::Name: event_state::IsSet, St::CreatedAt: event_state::IsSet, + St::Name: event_state::IsSet, St::WorldReference: event_state::IsSet, St::CreatorDid: event_state::IsSet, { diff --git a/crates/jacquard-api/src/world_ptah/temp/location.rs b/crates/jacquard-api/src/world_ptah/temp/location.rs index a93f2093..289542bb 100644 --- a/crates/jacquard-api/src/world_ptah/temp/location.rs +++ b/crates/jacquard-api/src/world_ptah/temp/location.rs @@ -751,67 +751,67 @@ pub mod location_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatorDid; type Name; - type WorldReference; type CreatedAt; + type WorldReference; + type CreatorDid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatorDid = Unset; type Name = Unset; - type WorldReference = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `creator_did` field to Set - pub struct SetCreatorDid(PhantomData St>); - impl sealed::Sealed for SetCreatorDid {} - impl State for SetCreatorDid { - type CreatorDid = Set; - type Name = St::Name; - type WorldReference = St::WorldReference; - type CreatedAt = St::CreatedAt; + type WorldReference = Unset; + type CreatorDid = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData St>); impl sealed::Sealed for SetName {} impl State for SetName { - type CreatorDid = St::CreatorDid; type Name = Set; - type WorldReference = St::WorldReference; type CreatedAt = St::CreatedAt; + type WorldReference = St::WorldReference; + type CreatorDid = St::CreatorDid; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Name = St::Name; + type CreatedAt = Set; + type WorldReference = St::WorldReference; + type CreatorDid = St::CreatorDid; } ///State transition - sets the `world_reference` field to Set pub struct SetWorldReference(PhantomData St>); impl sealed::Sealed for SetWorldReference {} impl State for SetWorldReference { - type CreatorDid = St::CreatorDid; type Name = St::Name; - type WorldReference = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type WorldReference = Set; type CreatorDid = St::CreatorDid; + } + ///State transition - sets the `creator_did` field to Set + pub struct SetCreatorDid(PhantomData St>); + impl sealed::Sealed for SetCreatorDid {} + impl State for SetCreatorDid { type Name = St::Name; + type CreatedAt = St::CreatedAt; type WorldReference = St::WorldReference; - type CreatedAt = Set; + type CreatorDid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `creator_did` field - pub struct creator_did(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `world_reference` field - pub struct world_reference(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `world_reference` field + pub struct world_reference(()); + ///Marker type for the `creator_did` field + pub struct creator_did(()); } } @@ -1040,10 +1040,10 @@ where impl LocationBuilder where St: location_state::State, - St::CreatorDid: location_state::IsSet, St::Name: location_state::IsSet, - St::WorldReference: location_state::IsSet, St::CreatedAt: location_state::IsSet, + St::WorldReference: location_state::IsSet, + St::CreatorDid: location_state::IsSet, { /// Build the final struct. pub fn build(self) -> Location { diff --git a/crates/jacquard-api/src/world_ptah/temp/lore.rs b/crates/jacquard-api/src/world_ptah/temp/lore.rs index b51f8396..1ddcff8e 100644 --- a/crates/jacquard-api/src/world_ptah/temp/lore.rs +++ b/crates/jacquard-api/src/world_ptah/temp/lore.rs @@ -391,8 +391,8 @@ pub mod lore_state { pub trait State: sealed::Sealed { type Title; type CreatedAt; - type WorldReference; type CreatorDid; + type WorldReference; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -400,8 +400,8 @@ pub mod lore_state { impl State for Empty { type Title = Unset; type CreatedAt = Unset; - type WorldReference = Unset; type CreatorDid = Unset; + type WorldReference = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData St>); @@ -409,8 +409,8 @@ pub mod lore_state { impl State for SetTitle { type Title = Set; type CreatedAt = St::CreatedAt; - type WorldReference = St::WorldReference; type CreatorDid = St::CreatorDid; + type WorldReference = St::WorldReference; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); @@ -418,17 +418,8 @@ pub mod lore_state { impl State for SetCreatedAt { type Title = St::Title; type CreatedAt = Set; - type WorldReference = St::WorldReference; - type CreatorDid = St::CreatorDid; - } - ///State transition - sets the `world_reference` field to Set - pub struct SetWorldReference(PhantomData St>); - impl sealed::Sealed for SetWorldReference {} - impl State for SetWorldReference { - type Title = St::Title; - type CreatedAt = St::CreatedAt; - type WorldReference = Set; type CreatorDid = St::CreatorDid; + type WorldReference = St::WorldReference; } ///State transition - sets the `creator_did` field to Set pub struct SetCreatorDid(PhantomData St>); @@ -436,8 +427,17 @@ pub mod lore_state { impl State for SetCreatorDid { type Title = St::Title; type CreatedAt = St::CreatedAt; - type WorldReference = St::WorldReference; type CreatorDid = Set; + type WorldReference = St::WorldReference; + } + ///State transition - sets the `world_reference` field to Set + pub struct SetWorldReference(PhantomData St>); + impl sealed::Sealed for SetWorldReference {} + impl State for SetWorldReference { + type Title = St::Title; + type CreatedAt = St::CreatedAt; + type CreatorDid = St::CreatorDid; + type WorldReference = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -446,10 +446,10 @@ pub mod lore_state { pub struct title(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `world_reference` field - pub struct world_reference(()); ///Marker type for the `creator_did` field pub struct creator_did(()); + ///Marker type for the `world_reference` field + pub struct world_reference(()); } } @@ -674,8 +674,8 @@ where St: lore_state::State, St::Title: lore_state::IsSet, St::CreatedAt: lore_state::IsSet, - St::WorldReference: lore_state::IsSet, St::CreatorDid: lore_state::IsSet, + St::WorldReference: lore_state::IsSet, { /// Build the final struct. pub fn build(self) -> Lore { diff --git a/crates/jacquard-api/src/world_ptah/temp/world.rs b/crates/jacquard-api/src/world_ptah/temp/world.rs index 6a0aec6f..c214a35b 100644 --- a/crates/jacquard-api/src/world_ptah/temp/world.rs +++ b/crates/jacquard-api/src/world_ptah/temp/world.rs @@ -606,51 +606,51 @@ pub mod world_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type CreatorDid; type CreatedAt; + type CreatorDid; + type Name; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; - type CreatorDid = Unset; type CreatedAt = Unset; + type CreatorDid = Unset; + type Name = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData St>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type CreatorDid = St::CreatorDid; - type CreatedAt = St::CreatedAt; + type Name = St::Name; } ///State transition - sets the `creator_did` field to Set pub struct SetCreatorDid(PhantomData St>); impl sealed::Sealed for SetCreatorDid {} impl State for SetCreatorDid { - type Name = St::Name; - type CreatorDid = Set; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type CreatorDid = Set; type Name = St::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData St>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = St::CreatedAt; type CreatorDid = St::CreatorDid; - type CreatedAt = Set; + type Name = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `creator_did` field - pub struct creator_did(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `creator_did` field + pub struct creator_did(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -845,9 +845,9 @@ impl WorldBuilder { impl WorldBuilder where St: world_state::State, - St::Name: world_state::IsSet, - St::CreatorDid: world_state::IsSet, St::CreatedAt: world_state::IsSet, + St::CreatorDid: world_state::IsSet, + St::Name: world_state::IsSet, { /// Build the final struct. pub fn build(self) -> World { diff --git a/crates/jacquard-api/src/za_co/ciaran/cumulus/market.rs b/crates/jacquard-api/src/za_co/ciaran/cumulus/market.rs index 3ae2ea7f..0dedf145 100644 --- a/crates/jacquard-api/src/za_co/ciaran/cumulus/market.rs +++ b/crates/jacquard-api/src/za_co/ciaran/cumulus/market.rs @@ -125,67 +125,67 @@ pub mod market_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type ClosesAt; - type Question; type Liquidity; - type CreatedAt; + type Question; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type ClosesAt = Unset; - type Question = Unset; type Liquidity = Unset; - type CreatedAt = Unset; + type Question = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type ClosesAt = St::ClosesAt; + type Liquidity = St::Liquidity; + type Question = St::Question; } ///State transition - sets the `closes_at` field to Set pub struct SetClosesAt(PhantomData St>); impl sealed::Sealed for SetClosesAt {} impl State for SetClosesAt { - type ClosesAt = Set; - type Question = St::Question; - type Liquidity = St::Liquidity; type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `question` field to Set - pub struct SetQuestion(PhantomData St>); - impl sealed::Sealed for SetQuestion {} - impl State for SetQuestion { - type ClosesAt = St::ClosesAt; - type Question = Set; + type ClosesAt = Set; type Liquidity = St::Liquidity; - type CreatedAt = St::CreatedAt; + type Question = St::Question; } ///State transition - sets the `liquidity` field to Set pub struct SetLiquidity(PhantomData St>); impl sealed::Sealed for SetLiquidity {} impl State for SetLiquidity { + type CreatedAt = St::CreatedAt; type ClosesAt = St::ClosesAt; - type Question = St::Question; type Liquidity = Set; - type CreatedAt = St::CreatedAt; + type Question = St::Question; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `question` field to Set + pub struct SetQuestion(PhantomData St>); + impl sealed::Sealed for SetQuestion {} + impl State for SetQuestion { + type CreatedAt = St::CreatedAt; type ClosesAt = St::ClosesAt; - type Question = St::Question; type Liquidity = St::Liquidity; - type CreatedAt = Set; + type Question = 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 `closes_at` field pub struct closes_at(()); - ///Marker type for the `question` field - pub struct question(()); ///Marker type for the `liquidity` field pub struct liquidity(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `question` field + pub struct question(()); } } @@ -293,10 +293,10 @@ where impl MarketBuilder where St: market_state::State, + St::CreatedAt: market_state::IsSet, St::ClosesAt: market_state::IsSet, - St::Question: market_state::IsSet, St::Liquidity: market_state::IsSet, - St::CreatedAt: market_state::IsSet, + St::Question: market_state::IsSet, { /// Build the final struct. pub fn build(self) -> Market { diff --git a/crates/jacquard-api/src/za_co/ciaran/cumulus/resolution.rs b/crates/jacquard-api/src/za_co/ciaran/cumulus/resolution.rs index 85bdefc1..ad1e1c37 100644 --- a/crates/jacquard-api/src/za_co/ciaran/cumulus/resolution.rs +++ b/crates/jacquard-api/src/za_co/ciaran/cumulus/resolution.rs @@ -137,51 +137,51 @@ pub mod resolution_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Market; - type CreatedAt; type Answer; + type CreatedAt; + type Market; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Market = Unset; - type CreatedAt = Unset; type Answer = Unset; + type CreatedAt = Unset; + type Market = Unset; } - ///State transition - sets the `market` field to Set - pub struct SetMarket(PhantomData St>); - impl sealed::Sealed for SetMarket {} - impl State for SetMarket { - type Market = Set; + ///State transition - sets the `answer` field to Set + pub struct SetAnswer(PhantomData St>); + impl sealed::Sealed for SetAnswer {} + impl State for SetAnswer { + type Answer = Set; type CreatedAt = St::CreatedAt; - type Answer = St::Answer; + type Market = St::Market; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Market = St::Market; - type CreatedAt = Set; type Answer = St::Answer; - } - ///State transition - sets the `answer` field to Set - pub struct SetAnswer(PhantomData St>); - impl sealed::Sealed for SetAnswer {} - impl State for SetAnswer { + type CreatedAt = Set; type Market = St::Market; + } + ///State transition - sets the `market` field to Set + pub struct SetMarket(PhantomData St>); + impl sealed::Sealed for SetMarket {} + impl State for SetMarket { + type Answer = St::Answer; type CreatedAt = St::CreatedAt; - type Answer = Set; + type Market = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `market` field - pub struct market(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `answer` field pub struct answer(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `market` field + pub struct market(()); } } @@ -270,9 +270,9 @@ where impl ResolutionBuilder where St: resolution_state::State, - St::Market: resolution_state::IsSet, - St::CreatedAt: resolution_state::IsSet, St::Answer: resolution_state::IsSet, + St::CreatedAt: resolution_state::IsSet, + St::Market: resolution_state::IsSet, { /// Build the final struct. pub fn build(self) -> Resolution { diff --git a/crates/jacquard-api/src/zip_viruus/chat/message.rs b/crates/jacquard-api/src/zip_viruus/chat/message.rs index d9d0be3b..c75feabb 100644 --- a/crates/jacquard-api/src/zip_viruus/chat/message.rs +++ b/crates/jacquard-api/src/zip_viruus/chat/message.rs @@ -152,50 +152,50 @@ pub mod message_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Text; - type Channel; type CreatedAt; + type Channel; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Text = Unset; - type Channel = Unset; type CreatedAt = Unset; + type Channel = Unset; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData St>); impl sealed::Sealed for SetText {} impl State for SetText { type Text = Set; - type Channel = St::Channel; - type CreatedAt = St::CreatedAt; - } - ///State transition - sets the `channel` field to Set - pub struct SetChannel(PhantomData St>); - impl sealed::Sealed for SetChannel {} - impl State for SetChannel { - type Text = St::Text; - type Channel = Set; type CreatedAt = St::CreatedAt; + type Channel = St::Channel; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData St>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Text = St::Text; - type Channel = St::Channel; type CreatedAt = Set; + type Channel = St::Channel; + } + ///State transition - sets the `channel` field to Set + pub struct SetChannel(PhantomData St>); + impl sealed::Sealed for SetChannel {} + impl State for SetChannel { + type Text = St::Text; + type CreatedAt = St::CreatedAt; + type Channel = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `text` field pub struct text(()); - ///Marker type for the `channel` field - pub struct channel(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `channel` field + pub struct channel(()); } } @@ -285,8 +285,8 @@ impl MessageBuilder where St: message_state::State, St::Text: message_state::IsSet, - St::Channel: message_state::IsSet, St::CreatedAt: message_state::IsSet, + St::Channel: message_state::IsSet, { /// Build the final struct. pub fn build(self) -> Message { diff --git a/crates/jacquard-api/src/zone_stratos/actor/enrollment.rs b/crates/jacquard-api/src/zone_stratos/actor/enrollment.rs index 549eb14a..8057118f 100644 --- a/crates/jacquard-api/src/zone_stratos/actor/enrollment.rs +++ b/crates/jacquard-api/src/zone_stratos/actor/enrollment.rs @@ -163,65 +163,65 @@ pub mod enrollment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Service; type Attestation; + type CreatedAt; type SigningKey; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; type Service = Unset; type Attestation = Unset; + type CreatedAt = Unset; type SigningKey = Unset; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData St>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Service = St::Service; - type Attestation = St::Attestation; - type SigningKey = St::SigningKey; - } ///State transition - sets the `service` field to Set pub struct SetService(PhantomData St>); impl sealed::Sealed for SetService {} impl State for SetService { - type CreatedAt = St::CreatedAt; type Service = Set; type Attestation = St::Attestation; + type CreatedAt = St::CreatedAt; type SigningKey = St::SigningKey; } ///State transition - sets the `attestation` field to Set pub struct SetAttestation(PhantomData St>); impl sealed::Sealed for SetAttestation {} impl State for SetAttestation { - type CreatedAt = St::CreatedAt; type Service = St::Service; type Attestation = Set; + type CreatedAt = St::CreatedAt; + type SigningKey = St::SigningKey; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData St>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Service = St::Service; + type Attestation = St::Attestation; + type CreatedAt = Set; type SigningKey = St::SigningKey; } ///State transition - sets the `signing_key` field to Set pub struct SetSigningKey(PhantomData St>); impl sealed::Sealed for SetSigningKey {} impl State for SetSigningKey { - type CreatedAt = St::CreatedAt; type Service = St::Service; type Attestation = St::Attestation; + type CreatedAt = St::CreatedAt; type SigningKey = 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 `service` field pub struct service(()); ///Marker type for the `attestation` field pub struct attestation(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `signing_key` field pub struct signing_key(()); } @@ -350,9 +350,9 @@ where impl EnrollmentBuilder where St: enrollment_state::State, - St::CreatedAt: enrollment_state::IsSet, St::Service: enrollment_state::IsSet, St::Attestation: enrollment_state::IsSet, + St::CreatedAt: enrollment_state::IsSet, St::SigningKey: enrollment_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/zone_stratos/repo/hydrate_records.rs b/crates/jacquard-api/src/zone_stratos/repo/hydrate_records.rs index a769366f..065c6417 100644 --- a/crates/jacquard-api/src/zone_stratos/repo/hydrate_records.rs +++ b/crates/jacquard-api/src/zone_stratos/repo/hydrate_records.rs @@ -213,49 +213,49 @@ pub mod record_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Uri; + type Cid; type Value; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Cid = Unset; type Uri = Unset; + type Cid = Unset; type Value = Unset; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData St>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Uri = St::Uri; - type Value = St::Value; - } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData St>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Cid = St::Cid; type Uri = Set; + type Cid = St::Cid; + type Value = St::Value; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData St>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = St::Uri; + type Cid = Set; type Value = St::Value; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData St>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Cid = St::Cid; type Uri = St::Uri; + type Cid = St::Cid; type Value = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `uri` field pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); ///Marker type for the `value` field pub struct value(()); } @@ -346,8 +346,8 @@ where impl RecordViewBuilder where St: record_view_state::State, - St::Cid: record_view_state::IsSet, St::Uri: record_view_state::IsSet, + St::Cid: record_view_state::IsSet, St::Value: record_view_state::IsSet, { /// Build the final struct. diff --git a/crates/jacquard-api/src/zone_stratos/repo/import_repo.rs b/crates/jacquard-api/src/zone_stratos/repo/import_repo.rs index 46ba9324..1fe0f05e 100644 --- a/crates/jacquard-api/src/zone_stratos/repo/import_repo.rs +++ b/crates/jacquard-api/src/zone_stratos/repo/import_repo.rs @@ -103,7 +103,7 @@ impl jacquard_common::xrpc::XrpcRequest for ImportRepo { type Response = ImportRepoResponse; fn encode_body( &self, - buffer: &mut [u8], + buffer: &mut Vec, ) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: Serialize, diff --git a/crates/jacquard-api/src/zone_stratos/sync/subscribe_records.rs b/crates/jacquard-api/src/zone_stratos/sync/subscribe_records.rs index 27b238e2..b444523f 100644 --- a/crates/jacquard-api/src/zone_stratos/sync/subscribe_records.rs +++ b/crates/jacquard-api/src/zone_stratos/sync/subscribe_records.rs @@ -605,84 +605,84 @@ pub mod commit_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Seq; - type Time; type Rev; - type Ops; type Did; + type Ops; + type Time; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Seq = Unset; - type Time = Unset; type Rev = Unset; - type Ops = Unset; type Did = Unset; + type Ops = Unset; + type Time = Unset; } ///State transition - sets the `seq` field to Set pub struct SetSeq(PhantomData St>); impl sealed::Sealed for SetSeq {} impl State for SetSeq { type Seq = Set; - type Time = St::Time; type Rev = St::Rev; - type Ops = St::Ops; type Did = St::Did; - } - ///State transition - sets the `time` field to Set - pub struct SetTime(PhantomData St>); - impl sealed::Sealed for SetTime {} - impl State for SetTime { - type Seq = St::Seq; - type Time = Set; - type Rev = St::Rev; type Ops = St::Ops; - type Did = St::Did; + type Time = St::Time; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData St>); impl sealed::Sealed for SetRev {} impl State for SetRev { type Seq = St::Seq; - type Time = St::Time; type Rev = Set; - type Ops = St::Ops; type Did = St::Did; + type Ops = St::Ops; + type Time = St::Time; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData St>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Seq = St::Seq; + type Rev = St::Rev; + type Did = Set; + type Ops = St::Ops; + type Time = St::Time; } ///State transition - sets the `ops` field to Set pub struct SetOps(PhantomData St>); impl sealed::Sealed for SetOps {} impl State for SetOps { type Seq = St::Seq; - type Time = St::Time; type Rev = St::Rev; - type Ops = Set; type Did = St::Did; + type Ops = Set; + type Time = St::Time; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData St>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { + ///State transition - sets the `time` field to Set + pub struct SetTime(PhantomData St>); + impl sealed::Sealed for SetTime {} + impl State for SetTime { type Seq = St::Seq; - type Time = St::Time; type Rev = St::Rev; + type Did = St::Did; type Ops = St::Ops; - type Did = Set; + type Time = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `seq` field pub struct seq(()); - ///Marker type for the `time` field - pub struct time(()); ///Marker type for the `rev` field pub struct rev(()); - ///Marker type for the `ops` field - pub struct ops(()); ///Marker type for the `did` field pub struct did(()); + ///Marker type for the `ops` field + pub struct ops(()); + ///Marker type for the `time` field + pub struct time(()); } } @@ -816,10 +816,10 @@ impl CommitBuilder where St: commit_state::State, St::Seq: commit_state::IsSet, - St::Time: commit_state::IsSet, St::Rev: commit_state::IsSet, - St::Ops: commit_state::IsSet, St::Did: commit_state::IsSet, + St::Ops: commit_state::IsSet, + St::Time: commit_state::IsSet, { /// Build the final struct. pub fn build(self) -> Commit { @@ -1165,50 +1165,50 @@ pub mod enrollment_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Did; - type Time; type Action; + type Time; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Did = Unset; - type Time = Unset; type Action = Unset; + type Time = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData St>); impl sealed::Sealed for SetDid {} impl State for SetDid { type Did = Set; - type Time = St::Time; - type Action = St::Action; - } - ///State transition - sets the `time` field to Set - pub struct SetTime(PhantomData St>); - impl sealed::Sealed for SetTime {} - impl State for SetTime { - type Did = St::Did; - type Time = Set; type Action = St::Action; + type Time = St::Time; } ///State transition - sets the `action` field to Set pub struct SetAction(PhantomData St>); impl sealed::Sealed for SetAction {} impl State for SetAction { type Did = St::Did; - type Time = St::Time; type Action = Set; + type Time = St::Time; + } + ///State transition - sets the `time` field to Set + pub struct SetTime(PhantomData St>); + impl sealed::Sealed for SetTime {} + impl State for SetTime { + type Did = St::Did; + type Action = St::Action; + type Time = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `did` field pub struct did(()); - ///Marker type for the `time` field - pub struct time(()); ///Marker type for the `action` field pub struct action(()); + ///Marker type for the `time` field + pub struct time(()); } } @@ -1330,8 +1330,8 @@ impl EnrollmentBuilder where St: enrollment_state::State, St::Did: enrollment_state::IsSet, - St::Time: enrollment_state::IsSet, St::Action: enrollment_state::IsSet, + St::Time: enrollment_state::IsSet, { /// Build the final struct. pub fn build(self) -> Enrollment { diff --git a/crates/jacquard-axum/src/lib.rs b/crates/jacquard-axum/src/lib.rs index 455d98cc..3029aaf9 100644 --- a/crates/jacquard-axum/src/lib.rs +++ b/crates/jacquard-axum/src/lib.rs @@ -57,9 +57,10 @@ use axum::{ response::{IntoResponse, Response}, }; use jacquard::{ - BosStr, IntoStatic, + BosStr, CowStr, IntoStatic, xrpc::{XrpcEndpoint, XrpcError, XrpcMethod, XrpcRequest}, }; +use serde::Deserialize; use serde_json::json; /// Axum extractor for XRPC requests @@ -68,18 +69,17 @@ use serde_json::json; /// and returns the owned (`'static`) request type ready for handler logic. pub struct ExtractXrpc(pub E::Request); -impl FromRequest for ExtractXrpc +impl FromRequest> for ExtractXrpc> where - S: BosStr + Send + Sync, - B: BosStr, R: XrpcEndpoint, - R::Request: IntoStatic>, + for<'de> R::Request>: Deserialize<'de>, + for<'a> R::Request>: IntoStatic>>, { type Rejection = Response; fn from_request( req: Request, - state: &S, + state: &CowStr<'_>, ) -> impl Future> + Send { async { match R::METHOD { @@ -89,7 +89,7 @@ where .map_err(IntoResponse::into_response)?; let decoded = R::Request::decode_body(&body); match decoded { - Ok(value) => Ok(ExtractXrpc(*value.into_static())), + Ok(value) => Ok(ExtractXrpc(value.into_static())), Err(err) => Err(( StatusCode::BAD_REQUEST, Json(json!({ @@ -103,17 +103,19 @@ where XrpcMethod::Query => { if let Some(path_query) = req.uri().path_and_query() { let query = path_query.query().unwrap_or(""); - let value: R::Request = - serde_html_form::from_str::>(query).map_err(|e| { - ( - StatusCode::BAD_REQUEST, - Json(json!({ - "error": "InvalidRequest", - "message": format!("failed to decode request: {}", e) - })), - ) - .into_response() - })?; + let value: R::Request> = serde_html_form::from_str::< + R::Request>, + >(query) + .map_err(|e| { + ( + StatusCode::BAD_REQUEST, + Json(json!({ + "error": "InvalidRequest", + "message": format!("failed to decode request: {}", e) + })), + ) + .into_response() + })?; Ok(ExtractXrpc(value.into_static())) } else { Err(( diff --git a/crates/jacquard-axum/src/service_auth.rs b/crates/jacquard-axum/src/service_auth.rs index 6caa9a63..af8f7fbb 100644 --- a/crates/jacquard-axum/src/service_auth.rs +++ b/crates/jacquard-axum/src/service_auth.rs @@ -44,6 +44,7 @@ use axum::{ middleware::Next, response::{IntoResponse, Response}, }; +use jacquard::deps::smol_str::SmolStr; use jacquard_common::{ CowStr, IntoStatic, service_auth::{self, PublicKey}, @@ -527,7 +528,7 @@ where service_auth::verify_signature(&parsed, &signing_key)?; // Now validate claims (audience, expiration, etc.) - claims.validate(state.service_did())?; + claims.validate(&state.service_did())?; // Check method binding if required if state.require_lxm() && claims.lxm.is_none() { @@ -549,7 +550,7 @@ where /// /// This looks for a key with type "atproto" or the first available key /// if no atproto-specific key is found. -fn extract_signing_key(methods: &[VerificationMethod]) -> Option { +fn extract_signing_key(methods: &[VerificationMethod>]) -> Option { // First try to find an atproto-specific key let atproto_method = methods .iter() diff --git a/crates/jacquard-common/src/xrpc.rs b/crates/jacquard-common/src/xrpc.rs index 32d89bb8..0c756e04 100644 --- a/crates/jacquard-common/src/xrpc.rs +++ b/crates/jacquard-common/src/xrpc.rs @@ -146,7 +146,7 @@ pub trait XrpcRequest { /// Encode the request body for procedures. /// /// Default implementation serializes to JSON. Override for non-JSON encodings. - fn encode_body(&self, buffer: &mut [u8]) -> Result<(), EncodeError> + fn encode_body(&self, buffer: &mut Vec) -> Result<(), EncodeError> where Self: Serialize, { diff --git a/crates/jacquard-lexicon/src/codegen/xrpc.rs b/crates/jacquard-lexicon/src/codegen/xrpc.rs index dba08ad1..5545bc19 100644 --- a/crates/jacquard-lexicon/src/codegen/xrpc.rs +++ b/crates/jacquard-lexicon/src/codegen/xrpc.rs @@ -1290,7 +1290,7 @@ impl<'c> CodeGenerator<'c> { // Generate encode_body() method for binary inputs let encode_body_method = if is_binary_input { quote! { - fn encode_body(&self, buffer: &mut [u8]) -> Result<(), jacquard_common::xrpc::EncodeError> + fn encode_body(&self, buffer: &mut Vec) -> Result<(), jacquard_common::xrpc::EncodeError> where Self: #ser_path, { diff --git a/crates/jacquard-lexicon/src/derive_impl/xrpc_request.rs b/crates/jacquard-lexicon/src/derive_impl/xrpc_request.rs index 40a781dd..76f2618e 100644 --- a/crates/jacquard-lexicon/src/derive_impl/xrpc_request.rs +++ b/crates/jacquard-lexicon/src/derive_impl/xrpc_request.rs @@ -24,17 +24,31 @@ fn xrpc_request_impl(input: &DeriveInput) -> syn::Result { let name = &input.ident; let generics = &input.generics; - // Detect if type has lifetime parameter + // Detect if type has any generic parameters (type params or lifetimes). + // BOS-style types use a type parameter `S: BosStr`; legacy types may use a lifetime. + // Either way, the XrpcRequest impl is for `#name` with no explicit args (Rust infers them), + // and the XrpcEndpoint uses `#name` to thread the backing-string type through. + let has_type_params = generics.type_params().next().is_some(); let has_lifetime = generics.lifetimes().next().is_some(); - let lifetime = if has_lifetime { - quote! { <'_> } + let has_generics = has_type_params || has_lifetime; + + // For XrpcRequest impl: use the struct's own generics clause unchanged. + // For XrpcEndpoint's Request GAT: supply `S` as the single type argument if the + // request type is generic; otherwise supply nothing. + let request_in_endpoint = if has_generics { + quote! { #name } } else { - quote! {} + quote! { #name } }; + // For XrpcRequest impl bounds: pass through the full generics. + let (impl_generics, ty_generics, where_clause) = generics.split_for_impl(); + let nsid = &attrs.nsid; let method = method_expr(&attrs.method); let output_ty = &attrs.output; + // Error type is always owned (DeserializeOwned); the BOS migration removed the 'de lifetime + // from XrpcResp::Err. We accept whatever type the user named and use it without a param. let error_ty = attrs .error .as_ref() @@ -52,11 +66,11 @@ fn xrpc_request_impl(input: &DeriveInput) -> syn::Result { impl ::jacquard_common::xrpc::XrpcResp for #response_name { const NSID: &'static str = #nsid; const ENCODING: &'static str = "application/json"; - type Output<'de> = #output_ty<'de>; - type Err<'de> = #error_ty<'de>; + type Output = #output_ty; + type Err = #error_ty; } - impl #generics ::jacquard_common::xrpc::XrpcRequest for #name #lifetime { + impl #impl_generics ::jacquard_common::xrpc::XrpcRequest for #name #ty_generics #where_clause { const NSID: &'static str = #nsid; const METHOD: ::jacquard_common::xrpc::XrpcMethod = #method; type Response = #response_name; @@ -68,13 +82,6 @@ fn xrpc_request_impl(input: &DeriveInput) -> syn::Result { let endpoint_name = format_ident!("{}Endpoint", name); let path = format!("/xrpc/{}", nsid); - // Request type with or without lifetime - let request_type = if has_lifetime { - quote! { #name<'de> } - } else { - quote! { #name } - }; - output.extend(quote! { /// Endpoint marker for #name (server-side) pub struct #endpoint_name; @@ -82,7 +89,7 @@ fn xrpc_request_impl(input: &DeriveInput) -> syn::Result { impl ::jacquard_common::xrpc::XrpcEndpoint for #endpoint_name { const PATH: &'static str = #path; const METHOD: ::jacquard_common::xrpc::XrpcMethod = #method; - type Request<'de> = #request_type; + type Request = #request_in_endpoint; type Response = #response_name; } }); diff --git a/crates/jacquard/tests/agent.rs b/crates/jacquard/tests/agent.rs index a5a277bd..f23e43ce 100644 --- a/crates/jacquard/tests/agent.rs +++ b/crates/jacquard/tests/agent.rs @@ -2,6 +2,7 @@ use std::collections::VecDeque; use std::sync::Arc; use http::{HeaderValue, Response as HttpResponse, StatusCode}; +use jacquard::BosStr; use jacquard::client::credential_session::{CredentialSession, SessionKey}; use jacquard::client::{Agent, AtpSession}; use jacquard::identity::resolver::{DidDocResponse, IdentityResolver, ResolverOptions}; @@ -46,15 +47,15 @@ impl IdentityResolver for MockClient { static OPTS: LazyLock = LazyLock::new(ResolverOptions::default); &OPTS } - async fn resolve_handle( + async fn resolve_handle( &self, - _handle: &Handle<'_>, - ) -> std::result::Result, jacquard::identity::resolver::IdentityError> { + _handle: &Handle, + ) -> std::result::Result { Ok(Did::new_static("did:plc:alice").unwrap()) } - async fn resolve_did_doc( + async fn resolve_did_doc( &self, - _did: &Did<'_>, + _did: &Did, ) -> std::result::Result { let doc = serde_json::json!({ "id": "did:plc:alice", @@ -126,7 +127,7 @@ async fn agent_delegates_to_session_and_refreshes() { let token = agent.refresh().await.expect("refresh ok"); match token { - jacquard::AuthorizationToken::Bearer(s) => assert_eq!(s.as_ref(), "acc2"), + jacquard::AuthorizationToken::Bearer(s) => assert_eq!(s.as_str(), "acc2"), _ => panic!("expected Bearer token"), } diff --git a/crates/jacquard/tests/credential_session.rs b/crates/jacquard/tests/credential_session.rs index 5470a265..d944a550 100644 --- a/crates/jacquard/tests/credential_session.rs +++ b/crates/jacquard/tests/credential_session.rs @@ -3,6 +3,7 @@ use std::sync::Arc; use bytes::Bytes; use http::{HeaderValue, Method, Response as HttpResponse, StatusCode}; +use jacquard::BosStr; use jacquard::client::AtpSession; use jacquard::client::credential_session::{CredentialSession, SessionKey}; use jacquard::identity::resolver::{DidDocResponse, IdentityResolver, ResolverOptions}; @@ -11,6 +12,7 @@ use jacquard::types::string::Handle; use jacquard::xrpc::XrpcClient; use jacquard_common::http_client::HttpClient; use jacquard_common::session::{MemorySessionStore, SessionStore}; +use smol_str::SmolStr; use tokio::sync::{Mutex, RwLock}; #[derive(Clone, Default)] @@ -60,18 +62,18 @@ impl IdentityResolver for MockClient { &OPTS } - async fn resolve_handle( + async fn resolve_handle( &self, - handle: &Handle<'_>, - ) -> std::result::Result, jacquard::identity::resolver::IdentityError> { + handle: &Handle, + ) -> std::result::Result { // Return a fixed DID for any handle assert!(handle.as_str().contains('.')); Ok(Did::new_static("did:plc:alice").unwrap()) } - async fn resolve_did_doc( + async fn resolve_did_doc( &self, - did: &Did<'_>, + did: &Did, ) -> std::result::Result { // Track calls and return a minimal DID doc with a PDS endpoint *self.did_doc_calls.write().await += 1; @@ -193,7 +195,9 @@ async fn credential_login_and_auto_refresh() { .await .expect("xrpc send ok"); assert_eq!(resp.status(), StatusCode::OK); - let out = resp + let out: jacquard::api::com_atproto::server::get_session::GetSessionOutput< + jacquard::CowStr<'_>, + > = resp .parse() .expect("parse ok after refresh (GetSession output)"); assert_eq!(out.handle.as_str(), "alice.bsky.social"); @@ -250,9 +254,9 @@ async fn credential_login_and_auto_refresh() { // Verify store updated with refreshed tokens let key = SessionKey( Did::new_static("did:plc:alice").unwrap(), - jacquard::CowStr::from("session"), + SmolStr::from("session"), ); let updated = store.get(&key).await.expect("session present"); - assert_eq!(updated.access_jwt.as_ref(), "acc2"); - assert_eq!(updated.refresh_jwt.as_ref(), "ref2"); + assert_eq!(updated.access_jwt.as_str(), "acc2"); + assert_eq!(updated.refresh_jwt.as_str(), "ref2"); } diff --git a/crates/jacquard/tests/oauth_auto_refresh.rs b/crates/jacquard/tests/oauth_auto_refresh.rs index 0e1447b9..25c3c831 100644 --- a/crates/jacquard/tests/oauth_auto_refresh.rs +++ b/crates/jacquard/tests/oauth_auto_refresh.rs @@ -97,15 +97,14 @@ impl OAuthResolver for MockClient { md.pushed_authorization_request_endpoint = Some(SmolStr::from(format!("{}/par", issuer))); md.token_endpoint_auth_methods_supported = Some(vec![SmolStr::from("none")]); md.dpop_signing_alg_values_supported = Some(vec![SmolStr::from("ES256")]); - use jacquard::IntoStatic; - Ok(md.into_static()) + Ok(md) } async fn get_resource_server_metadata( &self, _pds: &str, ) -> Result { - // Return metadata pointing to the same issuer as above + // Return metadata pointing to the same issuer as above. let mut md = OAuthAuthorizationServerMetadata::default(); md.issuer = SmolStr::from("https://issuer"); md.token_endpoint = SmolStr::from("https://issuer/token"); @@ -114,10 +113,10 @@ impl OAuthResolver for MockClient { md.pushed_authorization_request_endpoint = Some(SmolStr::from("https://issuer/par")); md.token_endpoint_auth_methods_supported = Some(vec![SmolStr::from("none")]); md.dpop_signing_alg_values_supported = Some(vec![SmolStr::from("ES256")]); - Ok(md.into_static()) + Ok(md) } - async fn verify_issuer( + async fn verify_issuer( &self, _server_metadata: &OAuthAuthorizationServerMetadata, _sub: &Did, diff --git a/crates/jacquard/tests/oauth_flow.rs b/crates/jacquard/tests/oauth_flow.rs index 21660101..0d236545 100644 --- a/crates/jacquard/tests/oauth_flow.rs +++ b/crates/jacquard/tests/oauth_flow.rs @@ -3,11 +3,9 @@ use std::sync::Arc; use bytes::Bytes; use http::{Response as HttpResponse, StatusCode}; +use jacquard::BosStr; use jacquard::client::Agent; use jacquard::xrpc::XrpcClient; -use jacquard::BosStr; -use jacquard::IntoStatic; -use smol_str::SmolStr; use jacquard_common::http_client::HttpClient; use jacquard_oauth::atproto::AtprotoClientMetadata; use jacquard_oauth::authstore::ClientAuthStore; @@ -15,6 +13,7 @@ use jacquard_oauth::client::OAuthClient; use jacquard_oauth::resolver::OAuthResolver; use jacquard_oauth::scopes::Scope; use jacquard_oauth::session::ClientData; +use smol_str::SmolStr; #[derive(Clone, Default)] struct MockClient { @@ -50,10 +49,8 @@ impl jacquard::identity::resolver::IdentityResolver for MockClient { async fn resolve_handle( &self, _handle: &jacquard::types::string::Handle, - ) -> std::result::Result< - jacquard::types::did::Did, - jacquard::identity::resolver::IdentityError, - > { + ) -> std::result::Result + { Ok(jacquard::types::did::Did::new_static("did:plc:alice").unwrap()) } async fn resolve_did_doc( @@ -85,20 +82,19 @@ impl OAuthResolver for MockClient { _input: &str, ) -> Result< ( - jacquard_oauth::types::OAuthAuthorizationServerMetadata<'static>, - Option>, + jacquard_oauth::types::OAuthAuthorizationServerMetadata, + Option, ), jacquard_oauth::resolver::ResolverError, > { let mut md = jacquard_oauth::types::OAuthAuthorizationServerMetadata::default(); - md.issuer = jacquard::CowStr::from("https://issuer"); - md.authorization_endpoint = jacquard::CowStr::from("https://issuer/authorize"); - md.token_endpoint = jacquard::CowStr::from("https://issuer/token"); + md.issuer = SmolStr::from("https://issuer"); + md.authorization_endpoint = SmolStr::from("https://issuer/authorize"); + md.token_endpoint = SmolStr::from("https://issuer/token"); md.require_pushed_authorization_requests = Some(true); - md.pushed_authorization_request_endpoint = - Some(jacquard::CowStr::from("https://issuer/par")); - md.token_endpoint_auth_methods_supported = Some(vec![jacquard::CowStr::from("none")]); - md.dpop_signing_alg_values_supported = Some(vec![jacquard::CowStr::from("ES256")]); + md.pushed_authorization_request_endpoint = Some(SmolStr::from("https://issuer/par")); + md.token_endpoint_auth_methods_supported = Some(vec![SmolStr::from("none")]); + md.dpop_signing_alg_values_supported = Some(vec![SmolStr::from("ES256")]); // Simple DID doc pointing to https://pds let doc = serde_json::json!({ @@ -110,47 +106,45 @@ impl OAuthResolver for MockClient { }] }); let buf = Bytes::from(serde_json::to_vec(&doc).unwrap()); - let did_doc_b: jacquard_common::types::did_doc::DidDocument<'_> = + let did_doc: jacquard_common::types::did_doc::DidDocument = serde_json::from_slice(&buf).unwrap(); - let did_doc = did_doc_b.into_static(); - Ok((md.into_static(), Some(did_doc))) + Ok((md, Some(did_doc))) } + async fn get_authorization_server_metadata( &self, - issuer: &CowStr<'_>, + issuer: &str, ) -> Result< - jacquard_oauth::types::OAuthAuthorizationServerMetadata<'static>, + jacquard_oauth::types::OAuthAuthorizationServerMetadata, jacquard_oauth::resolver::ResolverError, > { let mut md = jacquard_oauth::types::OAuthAuthorizationServerMetadata::default(); - md.issuer = jacquard::CowStr::from(issuer.as_str()); - md.authorization_endpoint = jacquard::CowStr::from(format!("{}/authorize", issuer)); - md.token_endpoint = jacquard::CowStr::from(format!("{}/token", issuer)); + md.issuer = SmolStr::from(issuer); + md.authorization_endpoint = SmolStr::from(format!("{}/authorize", issuer)); + md.token_endpoint = SmolStr::from(format!("{}/token", issuer)); md.require_pushed_authorization_requests = Some(true); - md.pushed_authorization_request_endpoint = - Some(jacquard::CowStr::from(format!("{}/par", issuer))); - md.token_endpoint_auth_methods_supported = Some(vec![jacquard::CowStr::from("none")]); - md.dpop_signing_alg_values_supported = Some(vec![jacquard::CowStr::from("ES256")]); - Ok(md.into_static()) + md.pushed_authorization_request_endpoint = Some(SmolStr::from(format!("{}/par", issuer))); + md.token_endpoint_auth_methods_supported = Some(vec![SmolStr::from("none")]); + md.dpop_signing_alg_values_supported = Some(vec![SmolStr::from("ES256")]); + Ok(md) } async fn get_resource_server_metadata( &self, - _pds: &CowStr<'_>, + _pds: &str, ) -> Result< - jacquard_oauth::types::OAuthAuthorizationServerMetadata<'static>, + jacquard_oauth::types::OAuthAuthorizationServerMetadata, jacquard_oauth::resolver::ResolverError, > { let mut md = jacquard_oauth::types::OAuthAuthorizationServerMetadata::default(); - md.issuer = jacquard::CowStr::from("https://issuer"); - md.authorization_endpoint = jacquard::CowStr::from("https://issuer/authorize"); - md.token_endpoint = jacquard::CowStr::from("https://issuer/token"); + md.issuer = SmolStr::from("https://issuer"); + md.authorization_endpoint = SmolStr::from("https://issuer/authorize"); + md.token_endpoint = SmolStr::from("https://issuer/token"); md.require_pushed_authorization_requests = Some(true); - md.pushed_authorization_request_endpoint = - Some(jacquard::CowStr::from("https://issuer/par")); - md.token_endpoint_auth_methods_supported = Some(vec![jacquard::CowStr::from("none")]); - md.dpop_signing_alg_values_supported = Some(vec![jacquard::CowStr::from("ES256")]); - Ok(md.into_static()) + md.pushed_authorization_request_endpoint = Some(SmolStr::from("https://issuer/par")); + md.token_endpoint_auth_methods_supported = Some(vec![SmolStr::from("none")]); + md.dpop_signing_alg_values_supported = Some(vec![SmolStr::from("ES256")]); + Ok(md) } } @@ -228,33 +222,32 @@ async fn oauth_end_to_end_mock_flow() { // Build metadata and call PAR to get an AuthRequestData, then save in store let (server_metadata, identity) = client.resolve_oauth("alice.bsky.social").await.unwrap(); - let metadata = jacquard_oauth::request::OAuthMetadata { + let mut metadata = jacquard_oauth::request::OAuthMetadata { server_metadata, client_metadata: jacquard_oauth::atproto::atproto_client_metadata( - AtprotoClientMetadata::new_localhost(None, Some(vec![Scope::Atproto])), + &AtprotoClientMetadata::new_localhost(None, Some(vec![Scope::Atproto])), &None, ) - .unwrap() - .into_static(), + .unwrap(), keyset: None, }; - let login_hint = identity.map(|_| jacquard::CowStr::from("alice.bsky.social")); + let login_hint = identity.map(|_| SmolStr::from("alice.bsky.social")); let auth_req = jacquard_oauth::request::par(client.as_ref(), login_hint, None, &mut metadata, None) .await .unwrap(); // Construct authorization URL as OAuthClient::start_auth would do #[derive(serde::Serialize)] - struct Parameters<'s> { - client_id: CowStr<'s>, - request_uri: jacquard::CowStr<'s>, + struct Parameters { + client_id: SmolStr, + request_uri: SmolStr, } let auth_url = format!( "{}?{}", metadata.server_metadata.authorization_endpoint, serde_html_form::to_string(Parameters { client_id: metadata.client_metadata.client_id.clone(), - request_uri: jacquard::CowStr::Owned(auth_req.request_uri.clone()), + request_uri: auth_req.request_uri.clone(), }) .unwrap() ); diff --git a/crates/jacquard/tests/restore_pds_cache.rs b/crates/jacquard/tests/restore_pds_cache.rs index 4967f45a..aa282eae 100644 --- a/crates/jacquard/tests/restore_pds_cache.rs +++ b/crates/jacquard/tests/restore_pds_cache.rs @@ -2,6 +2,7 @@ use std::sync::Arc; use bytes::Bytes; use http::{Response as HttpResponse, StatusCode}; +use jacquard::BosStr; use jacquard::client::credential_session::{CredentialSession, SessionKey}; use jacquard::client::{AtpSession, FileAuthStore}; use jacquard::identity::resolver::{DidDocResponse, IdentityResolver, ResolverOptions}; @@ -44,15 +45,15 @@ impl IdentityResolver for MockResolver { static OPTS: LazyLock = LazyLock::new(ResolverOptions::default); &OPTS } - async fn resolve_handle( + async fn resolve_handle( &self, - _handle: &Handle<'_>, - ) -> std::result::Result, jacquard::identity::resolver::IdentityError> { + _handle: &Handle, + ) -> std::result::Result { Ok(Did::new_static("did:plc:alice").unwrap()) } - async fn resolve_did_doc( + async fn resolve_did_doc( &self, - _did: &Did<'_>, + _did: &Did, ) -> std::result::Result { *self.did_doc_calls.write().await += 1; let doc = serde_json::json!({ diff --git a/crates/jacquard/tests/xrpc_derive.rs b/crates/jacquard/tests/xrpc_derive.rs index f3b5e9e0..b4ae211e 100644 --- a/crates/jacquard/tests/xrpc_derive.rs +++ b/crates/jacquard/tests/xrpc_derive.rs @@ -1,27 +1,28 @@ -use jacquard::{CowStr, IntoStatic}; +use jacquard::{BosStr, DefaultStr, IntoStatic}; use jacquard_derive::XrpcRequest; use serde::{Deserialize, Serialize}; +use smol_str::SmolStr; -// Test output type +// Test output type — uses BOS type parameter so it can borrow from the response buffer or own +// the data via the default `DefaultStr = SmolStr` backend. #[derive(Serialize, Deserialize, IntoStatic)] -pub struct GetThingOutput<'a> { - #[serde(borrow)] - pub result: CowStr<'a>, +#[serde(bound(deserialize = "S: Deserialize<'de> + BosStr"))] +pub struct GetThingOutput { + pub result: S, } // Test basic query endpoint #[derive(Serialize, Deserialize, XrpcRequest)] #[xrpc(nsid = "com.example.getThing", method = Query, output = GetThingOutput)] -pub struct GetThing<'a> { - #[serde(borrow)] - pub id: CowStr<'a>, +pub struct GetThing { + pub id: S, } // Test procedure endpoint #[derive(Serialize, Deserialize, IntoStatic)] -pub struct CreateThingOutput<'a> { - #[serde(borrow)] - pub id: CowStr<'a>, +#[serde(bound(deserialize = "S: Deserialize<'de> + BosStr"))] +pub struct CreateThingOutput { + pub id: S, } #[derive(Serialize, Deserialize, XrpcRequest)] @@ -30,32 +31,29 @@ pub struct CreateThingOutput<'a> { method = Procedure, output = CreateThingOutput )] -pub struct CreateThing<'a> { - #[serde(borrow)] - pub name: CowStr<'a>, +pub struct CreateThing { + pub name: S, } -// Test with custom error type +// Test with custom error type — errors must be DeserializeOwned (no borrowing), so they use SmolStr +// directly rather than a BOS type parameter. #[derive(Serialize, Deserialize, Debug, thiserror::Error)] -#[error("Custom error")] -pub struct CustomError<'a> { - #[serde(borrow)] - pub message: CowStr<'a>, +#[error("Custom error: {message}")] +pub struct CustomError { + pub message: SmolStr, } -impl jacquard::IntoStatic for CustomError<'_> { - type Output = CustomError<'static>; +impl jacquard::IntoStatic for CustomError { + type Output = CustomError; fn into_static(self) -> Self::Output { - CustomError { - message: self.message.into_static(), - } + self } } #[derive(Serialize, Deserialize, IntoStatic)] -pub struct DoThingOutput<'a> { - #[serde(borrow)] - pub status: CowStr<'a>, +#[serde(bound(deserialize = "S: Deserialize<'de> + BosStr"))] +pub struct DoThingOutput { + pub status: S, } #[derive(Serialize, Deserialize, XrpcRequest)] @@ -65,16 +63,15 @@ pub struct DoThingOutput<'a> { output = DoThingOutput, error = CustomError )] -pub struct DoThing<'a> { - #[serde(borrow)] - pub param: CowStr<'a>, +pub struct DoThing { + pub param: S, } // Test server-side endpoint generation #[derive(Serialize, Deserialize, IntoStatic)] -pub struct ServerThingOutput<'a> { - #[serde(borrow)] - pub status: CowStr<'a>, +#[serde(bound(deserialize = "S: Deserialize<'de> + BosStr"))] +pub struct ServerThingOutput { + pub status: S, } #[derive(Serialize, Deserialize, IntoStatic, XrpcRequest)] @@ -84,9 +81,9 @@ pub struct ServerThingOutput<'a> { output = ServerThingOutput, server )] -pub struct ServerThing<'a> { - #[serde(borrow)] - pub query: CowStr<'a>, +#[serde(bound(deserialize = "S: Deserialize<'de> + BosStr"))] +pub struct ServerThing { + pub query: S, } #[test] @@ -103,13 +100,13 @@ fn test_xrpc_request_impl() { use jacquard::xrpc::{XrpcMethod, XrpcRequest}; // Query endpoint - assert_eq!(GetThing::NSID, "com.example.getThing"); - assert!(matches!(GetThing::METHOD, XrpcMethod::Query)); + assert_eq!(GetThing::<&str>::NSID, "com.example.getThing"); + assert!(matches!(GetThing::<&str>::METHOD, XrpcMethod::Query)); // Procedure endpoint - assert_eq!(CreateThing::NSID, "com.example.createThing"); + assert_eq!(CreateThing::<&str>::NSID, "com.example.createThing"); assert!(matches!( - CreateThing::METHOD, + CreateThing::<&str>::METHOD, XrpcMethod::Procedure("application/json") )); } diff --git a/examples/app_password_create_post.rs b/examples/app_password_create_post.rs index 2728cca1..6a33898f 100644 --- a/examples/app_password_create_post.rs +++ b/examples/app_password_create_post.rs @@ -3,6 +3,7 @@ use jacquard::CowStr; use jacquard::api::app_bsky::feed::post::Post; use jacquard::client::{Agent, AgentSessionExt, MemoryCredentialSession}; use jacquard::types::string::Datetime; +use smol_str::SmolStr; #[derive(Parser, Debug)] #[command(author, version, about = "Create a simple post")] diff --git a/examples/axum_server.rs b/examples/axum_server.rs index 5da3cee7..2e5aea27 100644 --- a/examples/axum_server.rs +++ b/examples/axum_server.rs @@ -2,6 +2,7 @@ use std::sync::Arc; use axum::{Json, Router, extract::State, http::StatusCode, response::IntoResponse}; use jacquard::{ + CowStr, api::com_atproto::identity::resolve_did::{ResolveDidOutput, ResolveDidRequest}, identity::{JacquardResolver, resolver::IdentityResolver}, types::value::to_data, @@ -13,8 +14,8 @@ use tracing_subscriber::EnvFilter; #[axum_macros::debug_handler] async fn resolve_did( State(state): State>, - ExtractXrpc(args): ExtractXrpc, -) -> Result>, XrpcErrorResponse> { + ExtractXrpc(args): ExtractXrpc>, +) -> Result>>, XrpcErrorResponse> { let doc = state .resolver .resolve_did_doc_owned(&args.did) diff --git a/examples/create_whitewind_post.rs b/examples/create_whitewind_post.rs index c873b76c..0fe63b73 100644 --- a/examples/create_whitewind_post.rs +++ b/examples/create_whitewind_post.rs @@ -62,7 +62,11 @@ async fn main() -> miette::Result<()> { let url_str = format!( "https://whtwnd.nat.vg/{}/{}", output.uri.authority(), - output.uri.rkey().map(|r| r.as_ref()).unwrap_or("") + output + .uri + .rkey() + .map(|r| r.to_string()) + .unwrap_or("".to_string()) ); let url = Uri::parse(url_str.as_str()).into_diagnostic()?; println!("View at: {}", url); diff --git a/examples/moderated_timeline.rs b/examples/moderated_timeline.rs index 304a0a64..b16677dd 100644 --- a/examples/moderated_timeline.rs +++ b/examples/moderated_timeline.rs @@ -42,7 +42,7 @@ async fn main() -> miette::Result<()> { let args = Args::parse(); // Extract labeler DIDs from the static JSON (used for testing) - let services: GetServicesOutput<'static> = + let services: GetServicesOutput = serde_json::from_str(LABELER_SERVICES_JSON).expect("failed to parse labeler services"); let mut accepted_labelers = Vec::new(); diff --git a/examples/oauth_timeline.rs b/examples/oauth_timeline.rs index ae21fa6b..c258e149 100644 --- a/examples/oauth_timeline.rs +++ b/examples/oauth_timeline.rs @@ -10,6 +10,7 @@ use jacquard::xrpc::XrpcClient; #[cfg(not(feature = "loopback"))] use jacquard_oauth::types::AuthorizeOptions; use miette::IntoDiagnostic; +use smol_str::SmolStr; #[derive(Parser, Debug)] #[command(author, version, about = "Jacquard - OAuth (DPoP) loopback demo")] diff --git a/examples/post_with_image.rs b/examples/post_with_image.rs index 7933201a..70b96b93 100644 --- a/examples/post_with_image.rs +++ b/examples/post_with_image.rs @@ -8,6 +8,7 @@ use jacquard::oauth::loopback::LoopbackConfig; use jacquard::types::blob::MimeType; use jacquard::types::string::Datetime; use miette::IntoDiagnostic; +use smol_str::SmolStr; use std::path::PathBuf; #[derive(Parser, Debug)] @@ -55,18 +56,18 @@ async fn main() -> miette::Result<()> { Some("webp") => "image/webp", _ => "image/jpeg", // default }; - let mime_type = MimeType::new_static(mime_str); + let mime_type = MimeType::new(mime_str); println!("Uploading image..."); let blob = agent.upload_blob(image_data, mime_type).await?; // Create post with image embed let post = Post { - text: CowStr::from(args.text), + text: SmolStr::from(args.text), created_at: Datetime::now(), embed: Some(PostEmbed::Images(Box::new(Images { images: vec![Image { - alt: CowStr::from(args.alt.unwrap_or_default()), + alt: SmolStr::from(args.alt.unwrap_or_default()), image: blob.into(), aspect_ratio: None, extra_data: Default::default(), diff --git a/examples/public_atproto_feed.rs b/examples/public_atproto_feed.rs index 85695ec1..9983778e 100644 --- a/examples/public_atproto_feed.rs +++ b/examples/public_atproto_feed.rs @@ -21,7 +21,7 @@ async fn main() -> miette::Result<()> { let request = GetFeed::new().feed(feed_uri).limit(10).build(); - let response = http.xrpc(base).send(&request).await?; + let response = http.xrpc(&base.borrow()).send(&request).await?; let output = response.into_output()?; println!("Latest posts from the AT Protocol feed:\n"); diff --git a/examples/read_tangled_repo.rs b/examples/read_tangled_repo.rs index 76711b7f..45509e9f 100644 --- a/examples/read_tangled_repo.rs +++ b/examples/read_tangled_repo.rs @@ -23,7 +23,7 @@ async fn main() -> miette::Result<()> { let agent = BasicClient::unauthenticated(); // Use Agent's fetch_record helper with typed record URI - let output: Repo<'_> = agent.fetch_record(&uri).await?.into(); + let output: Repo = agent.fetch_record(&uri).await?.into(); println!("Tangled Repository\n"); println!("URI: {}", uri);