From 63dda887ff376677f0665a2fe487f23b2237d162 Mon Sep 17 00:00:00 2001 From: Orual Date: Fri, 5 Dec 2025 14:27:16 -0500 Subject: [PATCH] api regen after builder fixes --- crates/jacquard-api/src/app_bsky/actor.rs | 230 ++-- crates/jacquard-api/src/app_bsky/bookmark.rs | 26 +- crates/jacquard-api/src/app_bsky/embed.rs | 26 +- .../src/app_bsky/embed/external.rs | 30 +- .../jacquard-api/src/app_bsky/embed/images.rs | 30 +- .../jacquard-api/src/app_bsky/embed/record.rs | 98 +- .../src/app_bsky/embed/record_with_media.rs | 52 +- .../jacquard-api/src/app_bsky/embed/video.rs | 26 +- crates/jacquard-api/src/app_bsky/feed.rs | 198 +-- .../src/app_bsky/feed/generator.rs | 30 +- crates/jacquard-api/src/app_bsky/feed/post.rs | 56 +- .../src/app_bsky/feed/threadgate.rs | 26 +- crates/jacquard-api/src/app_bsky/graph.rs | 360 +++--- .../jacquard-api/src/app_bsky/graph/follow.rs | 26 +- .../src/app_bsky/graph/listitem.rs | 30 +- .../src/app_bsky/graph/verification.rs | 34 +- crates/jacquard-api/src/app_bsky/labeler.rs | 98 +- .../src/app_bsky/labeler/service.rs | 26 +- .../jacquard-api/src/app_bsky/notification.rs | 444 +++---- .../notification/list_notifications.rs | 136 +- .../app_bsky/notification/register_push.rs | 34 +- .../app_bsky/notification/unregister_push.rs | 34 +- .../src/app_bsky/richtext/facet.rs | 26 +- crates/jacquard-api/src/app_bsky/unspecced.rs | 330 ++--- .../unspecced/get_post_thread_other_v2.rs | 30 +- .../unspecced/get_tagged_suggestions.rs | 30 +- crates/jacquard-api/src/app_bsky/video.rs | 30 +- crates/jacquard-api/src/app_ocho/auth.rs | 34 +- .../src/app_ocho/auth/at_proto_callback.rs | 30 +- .../src/app_ocho/auth/github_callback.rs | 26 +- .../src/app_ocho/edu/google_callback.rs | 26 +- .../src/app_ocho/edu/verification.rs | 48 +- crates/jacquard-api/src/app_ocho/plugin.rs | 100 +- .../src/app_ocho/plugin/get_manifest.rs | 26 +- crates/jacquard-api/src/app_rocksky/artist.rs | 26 +- crates/jacquard-api/src/app_rocksky/like.rs | 26 +- .../jacquard-api/src/app_rocksky/playlist.rs | 26 +- crates/jacquard-api/src/app_rocksky/radio.rs | 30 +- .../jacquard-api/src/app_rocksky/scrobble.rs | 104 +- crates/jacquard-api/src/app_rocksky/song.rs | 76 +- .../beauty_cybernetic/trustcow/transaction.rs | 34 +- .../src/blog_pckt/block/task_item.rs | 26 +- crates/jacquard-api/src/blog_pckt/document.rs | 60 +- crates/jacquard-api/src/blog_pckt/post.rs | 34 +- .../jacquard-api/src/blog_pckt/publication.rs | 26 +- crates/jacquard-api/src/blog_pckt/theme.rs | 26 +- crates/jacquard-api/src/blue__2048.rs | 34 +- crates/jacquard-api/src/blue__2048/game.rs | 96 +- .../src/blue__2048/key/player/stats.rs | 26 +- .../src/blue__2048/player/profile.rs | 30 +- .../src/blue__2048/player/stats.rs | 142 +-- .../src/blue__2048/verification.rs | 64 +- .../jacquard-api/src/blue_rito/feed/like.rs | 26 +- crates/jacquard-api/src/buzz_bookhive.rs | 250 ++-- crates/jacquard-api/src/buzz_bookhive/buzz.rs | 34 +- .../src/buzz_bookhive/hive_book.rs | 76 +- crates/jacquard-api/src/chat_bsky/actor.rs | 26 +- crates/jacquard-api/src/chat_bsky/convo.rs | 376 +++--- .../src/chat_bsky/convo/send_message_batch.rs | 26 +- .../moderation/update_actor_access.rs | 26 +- .../src/club_stellz/evm/address_control.rs | 180 +-- crates/jacquard-api/src/com_atproto/admin.rs | 30 +- .../src/com_atproto/admin/send_email.rs | 30 +- .../com_atproto/admin/update_account_email.rs | 26 +- .../admin/update_account_handle.rs | 26 +- .../admin/update_account_signing_key.rs | 26 +- .../jacquard-api/src/com_atproto/identity.rs | 30 +- crates/jacquard-api/src/com_atproto/label.rs | 122 +- .../src/com_atproto/repo/apply_writes.rs | 26 +- .../src/com_atproto/repo/create_record.rs | 30 +- .../src/com_atproto/repo/get_record.rs | 30 +- .../com_atproto/repo/list_missing_blobs.rs | 26 +- .../src/com_atproto/repo/list_records.rs | 56 +- .../src/com_atproto/repo/put_record.rs | 34 +- .../src/com_atproto/repo/strong_ref.rs | 26 +- crates/jacquard-api/src/com_atproto/server.rs | 134 +- .../com_atproto/server/create_app_password.rs | 48 +- .../com_atproto/server/create_invite_codes.rs | 26 +- .../com_atproto/server/list_app_passwords.rs | 26 +- .../src/com_atproto/sync/get_blob.rs | 26 +- .../src/com_atproto/sync/get_record.rs | 30 +- .../src/com_atproto/sync/list_repos.rs | 48 +- .../src/com_atproto/sync/subscribe_repos.rs | 500 ++++---- .../src/com_crabdance/nandi/post.rs | 30 +- .../com_shinolabs/pinksea/app_view_defs.rs | 132 +- .../src/com_shinolabs/pinksea/get_oekaki.rs | 26 +- .../pinksea/get_parent_for_reply.rs | 26 +- .../src/com_shinolabs/pinksea/oekaki.rs | 26 +- .../blog/get_entry_metadata_by_name.rs | 26 +- .../community_lexicon/bookmarks/bookmark.rs | 26 +- .../src/computer_aesthetic/kidlisp.rs | 56 +- .../src/computer_aesthetic/mood.rs | 30 +- .../src/computer_aesthetic/painting.rs | 90 +- .../src/computer_aesthetic/piece.rs | 30 +- .../src/computer_aesthetic/tape.rs | 30 +- .../src/dev_baileytownsend/health/calories.rs | 30 +- .../src/dev_baileytownsend/health/rings.rs | 118 +- .../src/dev_baileytownsend/health/steps.rs | 26 +- .../src/dev_baileytownsend/health/workout.rs | 78 +- .../experimental/atforumv1/feed/post.rs | 42 +- .../experimental/atforumv1/feed/question.rs | 42 +- .../atforumv1/forum/announcement.rs | 60 +- .../experimental/atforumv1/forum/category.rs | 30 +- .../src/dev_ocbwoy3/blueboard/board.rs | 64 +- .../src/dev_ocbwoy3/blueboard/post.rs | 30 +- crates/jacquard-api/src/fm_teal/alpha/feed.rs | 26 +- .../jacquard-api/src/fm_teal/alpha/stats.rs | 60 +- .../src/fyi_frontpage/feed/comment.rs | 30 +- .../src/fyi_frontpage/feed/post.rs | 26 +- .../src/fyi_unravel/frontpage/comment.rs | 30 +- .../src/fyi_unravel/frontpage/vote.rs | 26 +- .../src/my_skylights/list_item.rs | 30 +- crates/jacquard-api/src/my_skylights/rel.rs | 56 +- crates/jacquard-api/src/net_altq/aqfile.rs | 56 +- .../src/net_anisota/beta/game/collection.rs | 34 +- .../src/net_anisota/beta/game/inventory.rs | 34 +- .../src/net_anisota/beta/game/log.rs | 30 +- .../src/net_anisota/beta/game/pack.rs | 58 +- .../src/net_anisota/beta/game/progress.rs | 38 +- .../src/net_anisota/beta/game/session.rs | 56 +- .../src/net_anisota/feed/draft.rs | 52 +- .../jacquard-api/src/net_anisota/feed/post.rs | 52 +- .../src/net_anisota/feed/repost.rs | 26 +- .../src/net_anisota/graph/list_mute.rs | 26 +- .../src/net_anisota/graph/mute.rs | 26 +- .../jacquard-api/src/net_anisota/settings.rs | 48 +- .../jacquard-api/src/net_mmatt/right/now.rs | 26 +- .../jacquard-api/src/net_mmatt/vitals/car.rs | 68 +- .../jacquard-api/src/network_slices/slice.rs | 136 +- .../slice/create_o_auth_client.rs | 30 +- .../src/network_slices/slice/get_actors.rs | 30 +- .../src/network_slices/slice/get_job_logs.rs | 72 +- .../network_slices/slice/get_job_status.rs | 120 +- .../slice/get_o_auth_clients.rs | 140 +-- .../network_slices/slice/get_slice_records.rs | 68 +- .../network_slices/slice/get_sync_summary.rs | 30 +- .../src/network_slices/waitlist.rs | 30 +- .../src/network_slices/waitlist/request.rs | 26 +- .../jacquard-api/src/org_devcon/event/test.rs | 30 +- .../org_farmapps/temp/agroconnect/cl022.rs | 26 +- .../src/place_atwork/endorsement.rs | 58 +- .../src/place_atwork/get_listing.rs | 26 +- .../jacquard-api/src/place_atwork/listing.rs | 64 +- .../src/place_atwork/search_listings.rs | 26 +- crates/jacquard-api/src/place_stream.rs | 86 +- .../src/place_stream/broadcast.rs | 58 +- .../src/place_stream/broadcast/origin.rs | 30 +- .../src/place_stream/broadcast/syndication.rs | 30 +- crates/jacquard-api/src/place_stream/chat.rs | 70 +- .../src/place_stream/chat/message.rs | 30 +- .../src/place_stream/chat/profile.rs | 30 +- .../place_stream/graph/get_following_user.rs | 26 +- crates/jacquard-api/src/place_stream/key.rs | 26 +- .../src/place_stream/livestream.rs | 64 +- .../src/place_stream/richtext/facet.rs | 26 +- .../jacquard-api/src/place_stream/segment.rs | 144 +-- .../jacquard-api/src/place_stream/server.rs | 62 +- crates/jacquard-api/src/place_wisp/fs.rs | 30 +- .../src/pub_leaflet/blocks/button.rs | 26 +- .../src/pub_leaflet/blocks/image.rs | 26 +- .../jacquard-api/src/pub_leaflet/comment.rs | 30 +- .../jacquard-api/src/pub_leaflet/document.rs | 34 +- .../src/pub_leaflet/pages/canvas.rs | 26 +- .../src/pub_leaflet/poll/definition.rs | 26 +- .../jacquard-api/src/pub_leaflet/poll/vote.rs | 26 +- .../src/pub_leaflet/theme/color.rs | 60 +- .../src/sh_tangled/feed/reaction.rs | 30 +- .../jacquard-api/src/sh_tangled/feed/star.rs | 26 +- .../src/sh_tangled/git/ref_update.rs | 164 +-- .../src/sh_tangled/graph/follow.rs | 26 +- .../src/sh_tangled/knot/list_keys.rs | 30 +- .../src/sh_tangled/knot/member.rs | 30 +- .../jacquard-api/src/sh_tangled/label/op.rs | 52 +- .../jacquard-api/src/sh_tangled/pipeline.rs | 122 +- .../src/sh_tangled/pipeline/status.rs | 34 +- .../jacquard-api/src/sh_tangled/public_key.rs | 48 +- .../src/sh_tangled/repo/add_secret.rs | 30 +- .../src/sh_tangled/repo/artifact.rs | 68 +- .../jacquard-api/src/sh_tangled/repo/blob.rs | 90 +- .../src/sh_tangled/repo/branch.rs | 48 +- .../src/sh_tangled/repo/fork_status.rs | 84 +- .../src/sh_tangled/repo/fork_sync.rs | 60 +- .../src/sh_tangled/repo/get_default_branch.rs | 30 +- .../jacquard-api/src/sh_tangled/repo/issue.rs | 30 +- .../src/sh_tangled/repo/languages.rs | 30 +- .../src/sh_tangled/repo/list_secrets.rs | 34 +- .../jacquard-api/src/sh_tangled/repo/merge.rs | 34 +- .../src/sh_tangled/repo/merge_check.rs | 34 +- .../jacquard-api/src/sh_tangled/repo/pull.rs | 84 +- .../src/sh_tangled/repo/pull/comment.rs | 30 +- .../jacquard-api/src/sh_tangled/repo/tree.rs | 126 +- .../src/sh_tangled/spindle/member.rs | 30 +- crates/jacquard-api/src/sh_tangled/string.rs | 62 +- crates/jacquard-api/src/sh_weaver/actor.rs | 26 +- .../jacquard-api/src/sh_weaver/edit/cursor.rs | 26 +- .../jacquard-api/src/sh_weaver/edit/diff.rs | 30 +- crates/jacquard-api/src/sh_weaver/embed.rs | 26 +- .../src/sh_weaver/embed/external.rs | 60 +- .../src/sh_weaver/embed/images.rs | 30 +- .../src/sh_weaver/embed/records.rs | 94 +- crates/jacquard-api/src/sh_weaver/notebook.rs | 102 +- .../src/sh_weaver/notebook/book.rs | 26 +- .../src/sh_weaver/notebook/chapter.rs | 30 +- .../src/sh_weaver/notebook/colour_scheme.rs | 30 +- .../src/sh_weaver/notebook/entry.rs | 30 +- .../src/sh_weaver/notebook/page.rs | 30 +- .../src/sh_weaver/notebook/theme.rs | 136 +- .../jacquard-api/src/social_clippr/actor.rs | 30 +- .../src/social_clippr/actor/profile.rs | 26 +- crates/jacquard-api/src/social_clippr/feed.rs | 68 +- .../src/social_clippr/feed/clip.rs | 38 +- crates/jacquard-api/src/social_grain.rs | 26 +- crates/jacquard-api/src/social_grain/actor.rs | 26 +- .../jacquard-api/src/social_grain/gallery.rs | 70 +- .../src/social_grain/gallery/item.rs | 30 +- crates/jacquard-api/src/social_grain/photo.rs | 26 +- .../jacquard-api/src/social_pmsky/proposal.rs | 56 +- crates/jacquard-api/src/social_pmsky/vote.rs | 34 +- .../src/tech_manos/twmirror/post.rs | 34 +- .../src/tools_ozone/communication.rs | 112 +- .../hosting/get_account_history.rs | 30 +- .../src/tools_ozone/moderation.rs | 1118 ++++++++--------- .../moderation/cancel_scheduled_actions.rs | 26 +- .../src/tools_ozone/moderation/emit_event.rs | 30 +- .../moderation/get_account_timeline.rs | 30 +- .../tools_ozone/moderation/schedule_action.rs | 82 +- .../jacquard-api/src/tools_ozone/safelink.rs | 250 ++-- .../src/tools_ozone/safelink/add_rule.rs | 34 +- .../src/tools_ozone/safelink/remove_rule.rs | 26 +- .../src/tools_ozone/safelink/update_rule.rs | 58 +- .../src/tools_ozone/set/add_values.rs | 26 +- .../src/tools_ozone/set/delete_values.rs | 26 +- .../jacquard-api/src/tools_ozone/setting.rs | 60 +- .../src/tools_ozone/verification.rs | 94 +- .../verification/grant_verifications.rs | 56 +- crates/jacquard-api/src/uk_skyblur/post.rs | 34 +- .../src/uk_skyblur/post/decrypt_by_cid.rs | 56 +- .../src/us_polhem/blog/content.rs | 30 +- .../jacquard-api/src/us_polhem/blog/post.rs | 34 +- crates/jacquard-api/src/us_polhem/blog/tag.rs | 34 +- crates/jacquard-api/src/win_tomo_x/pushat.rs | 30 +- crates/jacquard-identity/src/resolver.rs | 4 +- .../src/codegen/builder_gen.rs | 7 + .../src/codegen/builder_gen/state_mod.rs | 21 +- 244 files changed, 7386 insertions(+), 7416 deletions(-) diff --git a/crates/jacquard-api/src/app_bsky/actor.rs b/crates/jacquard-api/src/app_bsky/actor.rs index 8abc794a..294eb643 100644 --- a/crates/jacquard-api/src/app_bsky/actor.rs +++ b/crates/jacquard-api/src/app_bsky/actor.rs @@ -4016,37 +4016,37 @@ pub mod nux_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; type Completed; + 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 Completed = Unset; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type Completed = S::Completed; + type Id = Unset; } ///State transition - sets the `completed` field to Set pub struct SetCompleted(PhantomData S>); impl sealed::Sealed for SetCompleted {} impl State for SetCompleted { - type Id = S::Id; type Completed = Set; + type Id = S::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Completed = S::Completed; + 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 `completed` field pub struct completed(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -4156,8 +4156,8 @@ where impl<'a, S> NuxBuilder<'a, S> where S: nux_state::State, - S::Id: nux_state::IsSet, S::Completed: nux_state::IsSet, + S::Id: nux_state::IsSet, { /// Build the final struct pub fn build(self) -> Nux<'a> { @@ -4600,37 +4600,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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; type Handle = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = S::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(()); } } @@ -4955,8 +4955,8 @@ impl<'a, S: profile_view_state::State> ProfileViewBuilder<'a, S> { impl<'a, S> ProfileViewBuilder<'a, S> where S: profile_view_state::State, - S::Did: profile_view_state::IsSet, S::Handle: profile_view_state::IsSet, + S::Did: profile_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ProfileView<'a> { @@ -5633,37 +5633,37 @@ pub mod profile_view_detailed_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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; type Handle = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = S::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(()); } } @@ -6117,8 +6117,8 @@ impl<'a, S: profile_view_detailed_state::State> ProfileViewDetailedBuilder<'a, S impl<'a, S> ProfileViewDetailedBuilder<'a, S> where S: profile_view_detailed_state::State, - S::Did: profile_view_detailed_state::IsSet, S::Handle: profile_view_detailed_state::IsSet, + S::Did: profile_view_detailed_state::IsSet, { /// Build the final struct pub fn build(self) -> ProfileViewDetailed<'a> { @@ -6290,65 +6290,65 @@ pub mod saved_feed_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; - type Type; type Value; + type Type; + type Id; type Pinned; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Id = Unset; - type Type = Unset; type Value = Unset; + type Type = Unset; + type Id = Unset; type Pinned = Unset; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData S>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type Value = Set; type Type = S::Type; - type Value = S::Value; + type Id = S::Id; type Pinned = S::Pinned; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData S>); impl sealed::Sealed for SetType {} impl State for SetType { - type Id = S::Id; - type Type = Set; type Value = S::Value; + type Type = Set; + type Id = S::Id; type Pinned = S::Pinned; } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData S>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { - type Id = S::Id; + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Value = S::Value; type Type = S::Type; - type Value = Set; + type Id = Set; type Pinned = S::Pinned; } ///State transition - sets the `pinned` field to Set pub struct SetPinned(PhantomData S>); impl sealed::Sealed for SetPinned {} impl State for SetPinned { - type Id = S::Id; - type Type = S::Type; type Value = S::Value; + type Type = S::Type; + type Id = S::Id; type Pinned = 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 `type` field - pub struct r#type(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `type` field + pub struct r#type(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `pinned` field pub struct pinned(()); } @@ -6463,9 +6463,9 @@ where impl<'a, S> SavedFeedBuilder<'a, S> where S: saved_feed_state::State, - S::Id: saved_feed_state::IsSet, - S::Type: saved_feed_state::IsSet, S::Value: saved_feed_state::IsSet, + S::Type: saved_feed_state::IsSet, + S::Id: saved_feed_state::IsSet, S::Pinned: saved_feed_state::IsSet, { /// Build the final struct @@ -7196,51 +7196,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 VerifiedStatus; + 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 VerifiedStatus = Unset; + type Verifications = Unset; } - ///State transition - sets the `verifications` field to Set - pub struct SetVerifications(PhantomData S>); - impl sealed::Sealed for SetVerifications {} - impl State for SetVerifications { - type Verifications = Set; + ///State transition - sets the `trusted_verifier_status` field to Set + pub struct SetTrustedVerifierStatus(PhantomData S>); + impl sealed::Sealed for SetTrustedVerifierStatus {} + impl State for SetTrustedVerifierStatus { + type TrustedVerifierStatus = Set; type VerifiedStatus = S::VerifiedStatus; - type TrustedVerifierStatus = S::TrustedVerifierStatus; + type Verifications = S::Verifications; } ///State transition - sets the `verified_status` field to Set pub struct SetVerifiedStatus(PhantomData S>); impl sealed::Sealed for SetVerifiedStatus {} impl State for SetVerifiedStatus { - type Verifications = S::Verifications; - type VerifiedStatus = Set; type TrustedVerifierStatus = S::TrustedVerifierStatus; - } - ///State transition - sets the `trusted_verifier_status` field to Set - pub struct SetTrustedVerifierStatus(PhantomData S>); - impl sealed::Sealed for SetTrustedVerifierStatus {} - impl State for SetTrustedVerifierStatus { + type VerifiedStatus = Set; type Verifications = S::Verifications; + } + ///State transition - sets the `verifications` field to Set + pub struct SetVerifications(PhantomData S>); + impl sealed::Sealed for SetVerifications {} + impl State for SetVerifications { + type TrustedVerifierStatus = S::TrustedVerifierStatus; type VerifiedStatus = S::VerifiedStatus; - type TrustedVerifierStatus = Set; + type Verifications = 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 `verified_status` field + pub struct verified_status(()); + ///Marker type for the `verifications` field + pub struct verifications(()); } } @@ -7336,9 +7336,9 @@ where impl<'a, S> VerificationStateBuilder<'a, S> where S: verification_state_state::State, - S::Verifications: verification_state_state::IsSet, - S::VerifiedStatus: verification_state_state::IsSet, S::TrustedVerifierStatus: verification_state_state::IsSet, + S::VerifiedStatus: verification_state_state::IsSet, + S::Verifications: verification_state_state::IsSet, { /// Build the final struct pub fn build(self) -> VerificationState<'a> { @@ -7418,65 +7418,65 @@ pub mod verification_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Issuer; - type Uri; type IsValid; + type Uri; + type Issuer; 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 IsValid = Unset; + type Uri = Unset; + type Issuer = Unset; type CreatedAt = Unset; } - ///State transition - sets the `issuer` field to Set - pub struct SetIssuer(PhantomData S>); - impl sealed::Sealed for SetIssuer {} - impl State for SetIssuer { - type Issuer = Set; + ///State transition - sets the `is_valid` field to Set + pub struct SetIsValid(PhantomData S>); + impl sealed::Sealed for SetIsValid {} + impl State for SetIsValid { + type IsValid = Set; type Uri = S::Uri; - type IsValid = S::IsValid; + type Issuer = S::Issuer; type CreatedAt = S::CreatedAt; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Issuer = S::Issuer; - type Uri = Set; type IsValid = S::IsValid; + type Uri = Set; + type Issuer = S::Issuer; type CreatedAt = S::CreatedAt; } - ///State transition - sets the `is_valid` field to Set - pub struct SetIsValid(PhantomData S>); - impl sealed::Sealed for SetIsValid {} - impl State for SetIsValid { - type Issuer = S::Issuer; + ///State transition - sets the `issuer` field to Set + pub struct SetIssuer(PhantomData S>); + impl sealed::Sealed for SetIssuer {} + impl State for SetIssuer { + type IsValid = S::IsValid; type Uri = S::Uri; - type IsValid = Set; + type Issuer = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Issuer = S::Issuer; - type Uri = S::Uri; type IsValid = S::IsValid; + type Uri = S::Uri; + type Issuer = S::Issuer; 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 `is_valid` field pub struct is_valid(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `issuer` field + pub struct issuer(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -7591,9 +7591,9 @@ where impl<'a, S> VerificationViewBuilder<'a, S> where S: verification_view_state::State, - S::Issuer: verification_view_state::IsSet, - S::Uri: verification_view_state::IsSet, S::IsValid: verification_view_state::IsSet, + S::Uri: verification_view_state::IsSet, + S::Issuer: verification_view_state::IsSet, S::CreatedAt: verification_view_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/app_bsky/bookmark.rs b/crates/jacquard-api/src/app_bsky/bookmark.rs index 626984fc..8d79fdae 100644 --- a/crates/jacquard-api/src/app_bsky/bookmark.rs +++ b/crates/jacquard-api/src/app_bsky/bookmark.rs @@ -281,37 +281,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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type Item = S::Item; + type Subject = Unset; } ///State transition - sets the `item` field to Set pub struct SetItem(PhantomData S>); impl sealed::Sealed for SetItem {} impl State for SetItem { - type Subject = S::Subject; type Item = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Item = S::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(()); } } @@ -404,8 +404,8 @@ where impl<'a, S> BookmarkViewBuilder<'a, S> where S: bookmark_view_state::State, - S::Subject: bookmark_view_state::IsSet, S::Item: bookmark_view_state::IsSet, + S::Subject: bookmark_view_state::IsSet, { /// Build the final struct pub fn build(self) -> BookmarkView<'a> { diff --git a/crates/jacquard-api/src/app_bsky/embed.rs b/crates/jacquard-api/src/app_bsky/embed.rs index edfa136b..27ec2889 100644 --- a/crates/jacquard-api/src/app_bsky/embed.rs +++ b/crates/jacquard-api/src/app_bsky/embed.rs @@ -38,37 +38,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 S>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = S::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData S>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = S::Width; type Height = Set; + type Width = S::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData S>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = S::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(()); } } @@ -138,8 +138,8 @@ where impl<'a, S> AspectRatioBuilder<'a, S> where S: aspect_ratio_state::State, - S::Width: aspect_ratio_state::IsSet, S::Height: aspect_ratio_state::IsSet, + S::Width: aspect_ratio_state::IsSet, { /// Build the final struct pub fn build(self) -> AspectRatio<'a> { diff --git a/crates/jacquard-api/src/app_bsky/embed/external.rs b/crates/jacquard-api/src/app_bsky/embed/external.rs index 7b5f686d..e6a66cd6 100644 --- a/crates/jacquard-api/src/app_bsky/embed/external.rs +++ b/crates/jacquard-api/src/app_bsky/embed/external.rs @@ -784,51 +784,51 @@ pub mod view_external_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Title; type Description; + 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; type Description = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Title = S::Title; - type Description = S::Description; + type Uri = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Uri = S::Uri; type Title = Set; type Description = S::Description; + type Uri = S::Uri; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData S>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Uri = S::Uri; type Title = S::Title; type Description = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Title = S::Title; + type Description = S::Description; + 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 `description` field pub struct description(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -941,9 +941,9 @@ where impl<'a, S> ViewExternalBuilder<'a, S> where S: view_external_state::State, - S::Uri: view_external_state::IsSet, S::Title: view_external_state::IsSet, S::Description: view_external_state::IsSet, + S::Uri: view_external_state::IsSet, { /// Build the final struct pub fn build(self) -> ViewExternal<'a> { diff --git a/crates/jacquard-api/src/app_bsky/embed/images.rs b/crates/jacquard-api/src/app_bsky/embed/images.rs index 700418dd..38edf27f 100644 --- a/crates/jacquard-api/src/app_bsky/embed/images.rs +++ b/crates/jacquard-api/src/app_bsky/embed/images.rs @@ -760,51 +760,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 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 Alt = Unset; + } + ///State transition - sets the `alt` field to Set + pub struct SetAlt(PhantomData S>); + impl sealed::Sealed for SetAlt {} + impl State for SetAlt { + type Alt = Set; + type Thumb = S::Thumb; + type Fullsize = S::Fullsize; } ///State transition - sets the `thumb` field to Set pub struct SetThumb(PhantomData S>); impl sealed::Sealed for SetThumb {} impl State for SetThumb { + type Alt = S::Alt; type Thumb = Set; type Fullsize = S::Fullsize; - type Alt = S::Alt; } ///State transition - sets the `fullsize` field to Set pub struct SetFullsize(PhantomData S>); impl sealed::Sealed for SetFullsize {} impl State for SetFullsize { - type Thumb = S::Thumb; - type Fullsize = Set; type Alt = S::Alt; - } - ///State transition - sets the `alt` field to Set - pub struct SetAlt(PhantomData S>); - impl sealed::Sealed for SetAlt {} - impl State for SetAlt { type Thumb = S::Thumb; - type Fullsize = S::Fullsize; - type Alt = Set; + type Fullsize = 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 `alt` field - pub struct alt(()); } } @@ -917,9 +917,9 @@ where impl<'a, S> ViewImageBuilder<'a, S> where S: view_image_state::State, + S::Alt: view_image_state::IsSet, S::Thumb: view_image_state::IsSet, S::Fullsize: view_image_state::IsSet, - S::Alt: view_image_state::IsSet, { /// Build the final struct pub fn build(self) -> ViewImage<'a> { diff --git a/crates/jacquard-api/src/app_bsky/embed/record.rs b/crates/jacquard-api/src/app_bsky/embed/record.rs index a936c521..c68e2209 100644 --- a/crates/jacquard-api/src/app_bsky/embed/record.rs +++ b/crates/jacquard-api/src/app_bsky/embed/record.rs @@ -723,51 +723,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 S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Blocked = S::Blocked; - type Author = S::Author; + type Uri = Unset; } ///State transition - sets the `blocked` field to Set pub struct SetBlocked(PhantomData S>); impl sealed::Sealed for SetBlocked {} impl State for SetBlocked { - type Uri = S::Uri; type Blocked = Set; type Author = S::Author; + type Uri = S::Uri; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData S>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Uri = S::Uri; type Blocked = S::Blocked; type Author = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Blocked = S::Blocked; + type Author = S::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(()); } } @@ -860,9 +860,9 @@ where impl<'a, S> ViewBlockedBuilder<'a, S> where S: view_blocked_state::State, - S::Uri: view_blocked_state::IsSet, S::Blocked: view_blocked_state::IsSet, S::Author: view_blocked_state::IsSet, + S::Uri: view_blocked_state::IsSet, { /// Build the final struct pub fn build(self) -> ViewBlocked<'a> { @@ -1303,83 +1303,83 @@ pub mod view_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; - type Author; type Value; + type Uri; + type Author; 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 Cid = Unset; - type Author = Unset; type Value = Unset; + type Uri = Unset; + type Author = Unset; type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Author = S::Author; - type Value = S::Value; - type IndexedAt = S::IndexedAt; - } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; - type Author = S::Author; type Value = S::Value; - type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData S>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { type Uri = S::Uri; - type Cid = S::Cid; - type Author = Set; - type Value = S::Value; + type Author = S::Author; type IndexedAt = S::IndexedAt; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { + type Cid = S::Cid; + type Value = Set; type Uri = S::Uri; + type Author = S::Author; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type Cid = S::Cid; + type Value = S::Value; + type Uri = Set; type Author = S::Author; - type Value = Set; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData S>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Cid = S::Cid; + type Value = S::Value; + type Uri = S::Uri; + type Author = Set; type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; type Cid = S::Cid; - type Author = S::Author; type Value = S::Value; + type Uri = S::Uri; + type Author = S::Author; type IndexedAt = 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 `author` field - pub struct author(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `author` field + pub struct author(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); } @@ -1619,10 +1619,10 @@ where impl<'a, S> ViewRecordBuilder<'a, S> where S: view_record_state::State, - S::Uri: view_record_state::IsSet, S::Cid: view_record_state::IsSet, - S::Author: view_record_state::IsSet, S::Value: view_record_state::IsSet, + S::Uri: view_record_state::IsSet, + S::Author: view_record_state::IsSet, S::IndexedAt: view_record_state::IsSet, { /// Build the final struct 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 11a250f4..edebb001 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 @@ -33,37 +33,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 S>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Record = Set; - type Media = S::Media; + type Record = Unset; } ///State transition - sets the `media` field to Set pub struct SetMedia(PhantomData S>); impl sealed::Sealed for SetMedia {} impl State for SetMedia { - type Record = S::Record; type Media = Set; + type Record = S::Record; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData S>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Media = S::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(()); } } @@ -136,8 +136,8 @@ where impl<'a, S> RecordWithMediaBuilder<'a, S> where S: record_with_media_state::State, - S::Record: record_with_media_state::IsSet, S::Media: record_with_media_state::IsSet, + S::Record: record_with_media_state::IsSet, { /// Build the final struct pub fn build(self) -> RecordWithMedia<'a> { @@ -322,37 +322,37 @@ pub mod view_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 S>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Record = Set; - type Media = S::Media; + type Record = Unset; } ///State transition - sets the `media` field to Set pub struct SetMedia(PhantomData S>); impl sealed::Sealed for SetMedia {} impl State for SetMedia { - type Record = S::Record; type Media = Set; + type Record = S::Record; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData S>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Media = S::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(()); } } @@ -425,8 +425,8 @@ where impl<'a, S> ViewBuilder<'a, S> where S: view_state::State, - S::Record: view_state::IsSet, S::Media: view_state::IsSet, + S::Record: view_state::IsSet, { /// Build the final struct pub fn build(self) -> View<'a> { diff --git a/crates/jacquard-api/src/app_bsky/embed/video.rs b/crates/jacquard-api/src/app_bsky/embed/video.rs index 73ef658f..a4169e3d 100644 --- a/crates/jacquard-api/src/app_bsky/embed/video.rs +++ b/crates/jacquard-api/src/app_bsky/embed/video.rs @@ -32,37 +32,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 S>); - impl sealed::Sealed for SetLang {} - impl State for SetLang { - type Lang = Set; - type File = S::File; + type Lang = Unset; } ///State transition - sets the `file` field to Set pub struct SetFile(PhantomData S>); impl sealed::Sealed for SetFile {} impl State for SetFile { - type Lang = S::Lang; type File = Set; + type Lang = S::Lang; + } + ///State transition - sets the `lang` field to Set + pub struct SetLang(PhantomData S>); + impl sealed::Sealed for SetLang {} + impl State for SetLang { + type File = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> CaptionBuilder<'a, S> where S: caption_state::State, - S::Lang: caption_state::IsSet, S::File: caption_state::IsSet, + S::Lang: caption_state::IsSet, { /// Build the final struct pub fn build(self) -> Caption<'a> { diff --git a/crates/jacquard-api/src/app_bsky/feed.rs b/crates/jacquard-api/src/app_bsky/feed.rs index 2b23ffdb..9f1826b5 100644 --- a/crates/jacquard-api/src/app_bsky/feed.rs +++ b/crates/jacquard-api/src/app_bsky/feed.rs @@ -2234,105 +2234,105 @@ pub mod generator_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type IndexedAt; + type Creator; + type Did; type Uri; type Cid; - type Did; - type Creator; type DisplayName; - 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 Creator = Unset; + type Did = Unset; type Uri = Unset; type Cid = Unset; - type Did = Unset; - type Creator = Unset; type DisplayName = Unset; - type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Did = S::Did; + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData S>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type IndexedAt = Set; type Creator = S::Creator; + type Did = S::Did; + type Uri = S::Uri; + type Cid = S::Cid; type DisplayName = S::DisplayName; - type IndexedAt = S::IndexedAt; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; + ///State transition - sets the `creator` field to Set + pub struct SetCreator(PhantomData S>); + impl sealed::Sealed for SetCreator {} + impl State for SetCreator { + type IndexedAt = S::IndexedAt; + type Creator = Set; type Did = S::Did; - type Creator = S::Creator; + type Uri = S::Uri; + type Cid = S::Cid; type DisplayName = S::DisplayName; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { + type IndexedAt = S::IndexedAt; + type Creator = S::Creator; + type Did = Set; type Uri = S::Uri; type Cid = S::Cid; - type Did = Set; - type Creator = S::Creator; type DisplayName = S::DisplayName; - type IndexedAt = S::IndexedAt; } - ///State transition - sets the `creator` field to Set - pub struct SetCreator(PhantomData S>); - impl sealed::Sealed for SetCreator {} - impl State for SetCreator { - type Uri = S::Uri; - type Cid = S::Cid; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type IndexedAt = S::IndexedAt; + type Creator = S::Creator; type Did = S::Did; - type Creator = Set; + type Uri = Set; + type Cid = S::Cid; type DisplayName = S::DisplayName; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { type IndexedAt = S::IndexedAt; + type Creator = S::Creator; + type Did = S::Did; + type Uri = S::Uri; + type Cid = Set; + type DisplayName = S::DisplayName; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData S>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Uri = S::Uri; - type Cid = S::Cid; - type Did = S::Did; - type Creator = S::Creator; - type DisplayName = Set; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData S>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { + type Creator = S::Creator; + type Did = S::Did; type Uri = S::Uri; type Cid = S::Cid; - type Did = S::Did; - type Creator = S::Creator; - type DisplayName = S::DisplayName; - type IndexedAt = Set; + type DisplayName = 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 `creator` field + pub struct creator(()); + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `cid` field pub struct cid(()); - ///Marker type for the `did` field - pub struct did(()); - ///Marker type for the `creator` field - pub struct creator(()); ///Marker type for the `display_name` field pub struct display_name(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); } } @@ -2648,12 +2648,12 @@ impl<'a, S: generator_view_state::State> GeneratorViewBuilder<'a, S> { impl<'a, S> GeneratorViewBuilder<'a, S> where S: generator_view_state::State, + S::IndexedAt: generator_view_state::IsSet, + S::Creator: generator_view_state::IsSet, + S::Did: generator_view_state::IsSet, S::Uri: generator_view_state::IsSet, S::Cid: generator_view_state::IsSet, - S::Did: generator_view_state::IsSet, - S::Creator: generator_view_state::IsSet, S::DisplayName: generator_view_state::IsSet, - S::IndexedAt: generator_view_state::IsSet, { /// Build the final struct pub fn build(self) -> GeneratorView<'a> { @@ -3001,37 +3001,37 @@ pub mod not_found_post_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 S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type NotFound = S::NotFound; + type Uri = Unset; } ///State transition - sets the `not_found` field to Set pub struct SetNotFound(PhantomData S>); impl sealed::Sealed for SetNotFound {} impl State for SetNotFound { - type Uri = S::Uri; type NotFound = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type NotFound = S::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(()); } } @@ -3104,8 +3104,8 @@ where impl<'a, S> NotFoundPostBuilder<'a, S> where S: not_found_post_state::State, - S::Uri: not_found_post_state::IsSet, S::NotFound: not_found_post_state::IsSet, + S::Uri: not_found_post_state::IsSet, { /// Build the final struct pub fn build(self) -> NotFoundPost<'a> { @@ -3207,83 +3207,83 @@ pub mod post_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Cid; type Author; + type Cid; type Record; + 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 Cid = Unset; type Author = Unset; + type Cid = Unset; type Record = Unset; + type Uri = Unset; type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData S>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Author = Set; type Cid = S::Cid; - type Author = S::Author; type Record = S::Record; + type Uri = S::Uri; type IndexedAt = S::IndexedAt; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; type Author = S::Author; + type Cid = Set; type Record = S::Record; - type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData S>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { type Uri = S::Uri; - type Cid = S::Cid; - type Author = Set; - type Record = S::Record; type IndexedAt = S::IndexedAt; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Uri = S::Uri; - type Cid = S::Cid; type Author = S::Author; + type Cid = S::Cid; type Record = Set; + type Uri = S::Uri; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Author = S::Author; + type Cid = S::Cid; + type Record = S::Record; + type Uri = Set; type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; - type Cid = S::Cid; type Author = S::Author; + type Cid = S::Cid; type Record = S::Record; + type Uri = S::Uri; type IndexedAt = 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 `author` field pub struct author(()); + ///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(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); } @@ -3598,10 +3598,10 @@ impl<'a, S: post_view_state::State> PostViewBuilder<'a, S> { impl<'a, S> PostViewBuilder<'a, S> where S: post_view_state::State, - S::Uri: post_view_state::IsSet, - S::Cid: post_view_state::IsSet, S::Author: post_view_state::IsSet, + S::Cid: post_view_state::IsSet, S::Record: post_view_state::IsSet, + S::Uri: post_view_state::IsSet, S::IndexedAt: post_view_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/app_bsky/feed/generator.rs b/crates/jacquard-api/src/app_bsky/feed/generator.rs index 113990d7..26c10e8c 100644 --- a/crates/jacquard-api/src/app_bsky/feed/generator.rs +++ b/crates/jacquard-api/src/app_bsky/feed/generator.rs @@ -56,51 +56,51 @@ pub mod generator_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type DisplayName; 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 DisplayName = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type DisplayName = S::DisplayName; - type CreatedAt = S::CreatedAt; + type Did = Unset; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData S>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Did = S::Did; type DisplayName = Set; type CreatedAt = S::CreatedAt; + type Did = S::Did; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Did = S::Did; type DisplayName = S::DisplayName; type CreatedAt = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type DisplayName = S::DisplayName; + type CreatedAt = S::CreatedAt; + 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 `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(()); } } @@ -317,9 +317,9 @@ impl<'a, S: generator_state::State> GeneratorBuilder<'a, S> { impl<'a, S> GeneratorBuilder<'a, S> where S: generator_state::State, - S::Did: generator_state::IsSet, S::DisplayName: generator_state::IsSet, S::CreatedAt: generator_state::IsSet, + S::Did: generator_state::IsSet, { /// Build the final struct pub fn build(self) -> Generator<'a> { diff --git a/crates/jacquard-api/src/app_bsky/feed/post.rs b/crates/jacquard-api/src/app_bsky/feed/post.rs index 2112aa49..486cb2dc 100644 --- a/crates/jacquard-api/src/app_bsky/feed/post.rs +++ b/crates/jacquard-api/src/app_bsky/feed/post.rs @@ -38,50 +38,50 @@ pub mod entity_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Index; - type Type; type Value; + type Type; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Index = Unset; - type Type = Unset; type Value = Unset; + type Type = Unset; } ///State transition - sets the `index` field to Set pub struct SetIndex(PhantomData S>); impl sealed::Sealed for SetIndex {} impl State for SetIndex { type Index = Set; - type Type = S::Type; - type Value = S::Value; - } - ///State transition - sets the `type` field to Set - pub struct SetType(PhantomData S>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Index = S::Index; - type Type = Set; type Value = S::Value; + type Type = S::Type; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { type Index = S::Index; - type Type = S::Type; type Value = Set; + type Type = S::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData S>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Index = S::Index; + type Value = S::Value; + type Type = 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 `type` field - pub struct r#type(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `type` field + pub struct r#type(()); } } @@ -175,8 +175,8 @@ impl<'a, S> EntityBuilder<'a, S> where S: entity_state::State, S::Index: entity_state::IsSet, - S::Type: entity_state::IsSet, S::Value: entity_state::IsSet, + S::Type: entity_state::IsSet, { /// Build the final struct pub fn build(self) -> Entity<'a> { @@ -622,37 +622,37 @@ pub mod post_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 S>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type CreatedAt = S::CreatedAt; + type Text = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = S::Text; type CreatedAt = Set; + type Text = S::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData S>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = S::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(()); } } @@ -869,8 +869,8 @@ where impl<'a, S> PostBuilder<'a, S> where S: post_state::State, - S::Text: post_state::IsSet, S::CreatedAt: post_state::IsSet, + S::Text: post_state::IsSet, { /// Build the final struct pub fn build(self) -> Post<'a> { diff --git a/crates/jacquard-api/src/app_bsky/feed/threadgate.rs b/crates/jacquard-api/src/app_bsky/feed/threadgate.rs index e68990fd..6384dabe 100644 --- a/crates/jacquard-api/src/app_bsky/feed/threadgate.rs +++ b/crates/jacquard-api/src/app_bsky/feed/threadgate.rs @@ -463,37 +463,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 S>); - impl sealed::Sealed for SetPost {} - impl State for SetPost { - type Post = Set; - type CreatedAt = S::CreatedAt; + type Post = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Post = S::Post; type CreatedAt = Set; + type Post = S::Post; + } + ///State transition - sets the `post` field to Set + pub struct SetPost(PhantomData S>); + impl sealed::Sealed for SetPost {} + impl State for SetPost { + type CreatedAt = S::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(()); } } @@ -603,8 +603,8 @@ where impl<'a, S> ThreadgateBuilder<'a, S> where S: threadgate_state::State, - S::Post: threadgate_state::IsSet, S::CreatedAt: threadgate_state::IsSet, + S::Post: threadgate_state::IsSet, { /// Build the final struct pub fn build(self) -> Threadgate<'a> { diff --git a/crates/jacquard-api/src/app_bsky/graph.rs b/crates/jacquard-api/src/app_bsky/graph.rs index f2e3fbd0..59dec6f9 100644 --- a/crates/jacquard-api/src/app_bsky/graph.rs +++ b/crates/jacquard-api/src/app_bsky/graph.rs @@ -82,37 +82,37 @@ pub mod list_item_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Subject; + 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 Subject = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Subject = S::Subject; + type Uri = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Uri = S::Uri; type Subject = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Subject = S::Subject; + 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 `subject` field pub struct subject(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -185,8 +185,8 @@ where impl<'a, S> ListItemViewBuilder<'a, S> where S: list_item_view_state::State, - S::Uri: list_item_view_state::IsSet, S::Subject: list_item_view_state::IsSet, + S::Uri: list_item_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ListItemView<'a> { @@ -1277,105 +1277,105 @@ pub mod list_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Cid; - type Creator; - type Name; type Purpose; + type Creator; type IndexedAt; + type Name; + type Uri; + 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 Cid = Unset; - type Creator = Unset; - type Name = Unset; type Purpose = Unset; + type Creator = Unset; type IndexedAt = Unset; + type Name = Unset; + type Uri = Unset; + type Cid = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; + ///State transition - sets the `purpose` field to Set + pub struct SetPurpose(PhantomData S>); + impl sealed::Sealed for SetPurpose {} + impl State for SetPurpose { + type Purpose = Set; type Creator = S::Creator; - type Name = S::Name; - type Purpose = S::Purpose; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; - type Creator = S::Creator; type Name = S::Name; - type Purpose = S::Purpose; - type IndexedAt = S::IndexedAt; + type Uri = S::Uri; + type Cid = S::Cid; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData S>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Uri = S::Uri; - type Cid = S::Cid; + type Purpose = S::Purpose; type Creator = Set; + type IndexedAt = S::IndexedAt; type Name = S::Name; + type Uri = S::Uri; + type Cid = S::Cid; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData S>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { type Purpose = S::Purpose; - type IndexedAt = S::IndexedAt; + type Creator = S::Creator; + type IndexedAt = Set; + type Name = S::Name; + type Uri = S::Uri; + type Cid = S::Cid; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { - type Uri = S::Uri; - type Cid = S::Cid; - type Creator = S::Creator; - type Name = Set; type Purpose = S::Purpose; + type Creator = S::Creator; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `purpose` field to Set - pub struct SetPurpose(PhantomData S>); - impl sealed::Sealed for SetPurpose {} - impl State for SetPurpose { + type Name = Set; type Uri = S::Uri; type Cid = S::Cid; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Purpose = S::Purpose; type Creator = S::Creator; - type Name = S::Name; - type Purpose = Set; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData S>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type Uri = S::Uri; + type Name = S::Name; + type Uri = Set; type Cid = S::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Purpose = S::Purpose; type Creator = S::Creator; + type IndexedAt = S::IndexedAt; type Name = S::Name; - type Purpose = S::Purpose; - type IndexedAt = Set; + type Uri = S::Uri; + 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 `cid` field - pub struct cid(()); - ///Marker type for the `creator` field - pub struct creator(()); - ///Marker type for the `name` field - pub struct name(()); ///Marker type for the `purpose` field pub struct purpose(()); + ///Marker type for the `creator` field + pub struct creator(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); + ///Marker type for the `name` field + pub struct name(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -1655,12 +1655,12 @@ impl<'a, S: list_view_state::State> ListViewBuilder<'a, S> { impl<'a, S> ListViewBuilder<'a, S> where S: list_view_state::State, - S::Uri: list_view_state::IsSet, - S::Cid: list_view_state::IsSet, - S::Creator: list_view_state::IsSet, - S::Name: list_view_state::IsSet, S::Purpose: list_view_state::IsSet, + S::Creator: list_view_state::IsSet, S::IndexedAt: list_view_state::IsSet, + S::Name: list_view_state::IsSet, + S::Uri: list_view_state::IsSet, + S::Cid: list_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ListView<'a> { @@ -1835,67 +1835,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 Cid; - type Name; - type Purpose; } /// 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 Cid = Unset; - type Name = Unset; - type Purpose = Unset; + } + ///State transition - sets the `purpose` field to Set + pub struct SetPurpose(PhantomData S>); + impl sealed::Sealed for SetPurpose {} + impl State for SetPurpose { + type Purpose = Set; + type Name = S::Name; + type Uri = S::Uri; + type Cid = S::Cid; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Purpose = S::Purpose; + type Name = Set; + type Uri = S::Uri; + type Cid = S::Cid; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { + type Purpose = S::Purpose; + type Name = S::Name; type Uri = Set; type Cid = S::Cid; - type Name = S::Name; - type Purpose = S::Purpose; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; - type Name = S::Name; - type Purpose = S::Purpose; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Uri = S::Uri; - type Cid = S::Cid; - type Name = Set; type Purpose = S::Purpose; - } - ///State transition - sets the `purpose` field to Set - pub struct SetPurpose(PhantomData S>); - impl sealed::Sealed for SetPurpose {} - impl State for SetPurpose { - type Uri = S::Uri; - type Cid = S::Cid; type Name = S::Name; - type Purpose = Set; + type Uri = S::Uri; + 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 `cid` field pub struct cid(()); - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `purpose` field - pub struct purpose(()); } } @@ -2112,10 +2112,10 @@ impl<'a, S: list_view_basic_state::State> ListViewBasicBuilder<'a, S> { impl<'a, S> ListViewBasicBuilder<'a, S> where S: list_view_basic_state::State, + S::Purpose: list_view_basic_state::IsSet, + S::Name: list_view_basic_state::IsSet, S::Uri: list_view_basic_state::IsSet, S::Cid: list_view_basic_state::IsSet, - S::Name: list_view_basic_state::IsSet, - S::Purpose: list_view_basic_state::IsSet, { /// Build the final struct pub fn build(self) -> ListViewBasic<'a> { @@ -2292,37 +2292,37 @@ pub mod not_found_actor_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Actor; type NotFound; + 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 NotFound = Unset; - } - ///State transition - sets the `actor` field to Set - pub struct SetActor(PhantomData S>); - impl sealed::Sealed for SetActor {} - impl State for SetActor { - type Actor = Set; - type NotFound = S::NotFound; + type Actor = Unset; } ///State transition - sets the `not_found` field to Set pub struct SetNotFound(PhantomData S>); impl sealed::Sealed for SetNotFound {} impl State for SetNotFound { - type Actor = S::Actor; type NotFound = Set; + type Actor = S::Actor; + } + ///State transition - sets the `actor` field to Set + pub struct SetActor(PhantomData S>); + impl sealed::Sealed for SetActor {} + impl State for SetActor { + type NotFound = S::NotFound; + 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 `not_found` field pub struct not_found(()); + ///Marker type for the `actor` field + pub struct actor(()); } } @@ -2395,8 +2395,8 @@ where impl<'a, S> NotFoundActorBuilder<'a, S> where S: not_found_actor_state::State, - S::Actor: not_found_actor_state::IsSet, S::NotFound: not_found_actor_state::IsSet, + S::Actor: not_found_actor_state::IsSet, { /// Build the final struct pub fn build(self) -> NotFoundActor<'a> { @@ -2699,85 +2699,85 @@ pub mod starter_pack_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; + type IndexedAt; type Cid; type Record; + type Uri; type Creator; - 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 IndexedAt = Unset; type Cid = Unset; type Record = Unset; + type Uri = Unset; type Creator = Unset; - type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData S>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type IndexedAt = Set; type Cid = S::Cid; type Record = S::Record; + type Uri = S::Uri; type Creator = S::Creator; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; + type IndexedAt = S::IndexedAt; type Cid = Set; type Record = S::Record; + type Uri = S::Uri; type Creator = S::Creator; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Uri = S::Uri; + type IndexedAt = S::IndexedAt; type Cid = S::Cid; type Record = Set; + type Uri = S::Uri; type Creator = S::Creator; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type IndexedAt = S::IndexedAt; + type Cid = S::Cid; + type Record = S::Record; + type Uri = Set; + type Creator = S::Creator; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData S>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Uri = S::Uri; - type Cid = S::Cid; - type Record = S::Record; - type Creator = Set; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData S>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { - type Uri = S::Uri; type Cid = S::Cid; type Record = S::Record; - type Creator = S::Creator; - type IndexedAt = Set; + type Uri = S::Uri; + 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 `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(()); ///Marker type for the `creator` field pub struct creator(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); } } @@ -3030,11 +3030,11 @@ where impl<'a, S> StarterPackViewBuilder<'a, S> where S: starter_pack_view_state::State, - S::Uri: starter_pack_view_state::IsSet, + S::IndexedAt: starter_pack_view_state::IsSet, S::Cid: starter_pack_view_state::IsSet, S::Record: starter_pack_view_state::IsSet, + S::Uri: starter_pack_view_state::IsSet, S::Creator: starter_pack_view_state::IsSet, - S::IndexedAt: starter_pack_view_state::IsSet, { /// Build the final struct pub fn build(self) -> StarterPackView<'a> { @@ -3184,84 +3184,84 @@ pub mod starter_pack_view_basic_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Uri; - type Cid; - type Record; type Creator; + type Record; type IndexedAt; + 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 Cid = Unset; - type Record = Unset; type Creator = Unset; + type Record = Unset; type IndexedAt = Unset; + type Cid = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Uri = Set; - type Cid = S::Cid; - type Record = S::Record; type Creator = S::Creator; + type Record = S::Record; type IndexedAt = S::IndexedAt; + type Cid = S::Cid; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { + ///State transition - sets the `creator` field to Set + pub struct SetCreator(PhantomData S>); + impl sealed::Sealed for SetCreator {} + impl State for SetCreator { type Uri = S::Uri; - type Cid = Set; + type Creator = Set; type Record = S::Record; - type Creator = S::Creator; type IndexedAt = S::IndexedAt; + type Cid = S::Cid; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { type Uri = S::Uri; - type Cid = S::Cid; - type Record = Set; type Creator = S::Creator; + type Record = Set; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `creator` field to Set - pub struct SetCreator(PhantomData S>); - impl sealed::Sealed for SetCreator {} - impl State for SetCreator { - type Uri = S::Uri; type Cid = S::Cid; - type Record = S::Record; - type Creator = Set; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { type Uri = S::Uri; - type Cid = S::Cid; - type Record = S::Record; type Creator = S::Creator; + type Record = S::Record; type IndexedAt = Set; + type Cid = S::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = S::Uri; + type Creator = S::Creator; + type Record = S::Record; + type IndexedAt = S::IndexedAt; + 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 `cid` field - pub struct cid(()); - ///Marker type for the `record` field - pub struct record(()); ///Marker type for the `creator` field pub struct creator(()); + ///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(()); } } @@ -3473,10 +3473,10 @@ impl<'a, S> StarterPackViewBasicBuilder<'a, S> where S: starter_pack_view_basic_state::State, S::Uri: starter_pack_view_basic_state::IsSet, - S::Cid: starter_pack_view_basic_state::IsSet, - S::Record: starter_pack_view_basic_state::IsSet, S::Creator: starter_pack_view_basic_state::IsSet, + S::Record: starter_pack_view_basic_state::IsSet, S::IndexedAt: starter_pack_view_basic_state::IsSet, + S::Cid: starter_pack_view_basic_state::IsSet, { /// Build the final struct pub fn build(self) -> StarterPackViewBasic<'a> { diff --git a/crates/jacquard-api/src/app_bsky/graph/follow.rs b/crates/jacquard-api/src/app_bsky/graph/follow.rs index d21ea03d..0fa2f296 100644 --- a/crates/jacquard-api/src/app_bsky/graph/follow.rs +++ b/crates/jacquard-api/src/app_bsky/graph/follow.rs @@ -36,37 +36,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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -159,8 +159,8 @@ impl<'a, S: follow_state::State> FollowBuilder<'a, S> { impl<'a, S> FollowBuilder<'a, S> where S: follow_state::State, - S::Subject: follow_state::IsSet, S::CreatedAt: follow_state::IsSet, + S::Subject: follow_state::IsSet, { /// Build the final struct pub fn build(self) -> Follow<'a> { diff --git a/crates/jacquard-api/src/app_bsky/graph/listitem.rs b/crates/jacquard-api/src/app_bsky/graph/listitem.rs index fa585a6f..4455bad9 100644 --- a/crates/jacquard-api/src/app_bsky/graph/listitem.rs +++ b/crates/jacquard-api/src/app_bsky/graph/listitem.rs @@ -38,50 +38,50 @@ 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 List; } /// 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 List = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type Subject = Set; - type List = S::List; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `list` field to Set - pub struct SetList(PhantomData S>); - impl sealed::Sealed for SetList {} - impl State for SetList { - type Subject = S::Subject; - type List = Set; type CreatedAt = S::CreatedAt; + type List = S::List; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Subject = S::Subject; - type List = S::List; type CreatedAt = Set; + type List = S::List; + } + ///State transition - sets the `list` field to Set + pub struct SetList(PhantomData S>); + impl sealed::Sealed for SetList {} + impl State for SetList { + type Subject = S::Subject; + type CreatedAt = S::CreatedAt; + type List = 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 `list` field + pub struct list(()); } } @@ -175,8 +175,8 @@ impl<'a, S> ListitemBuilder<'a, S> where S: listitem_state::State, S::Subject: listitem_state::IsSet, - S::List: listitem_state::IsSet, S::CreatedAt: listitem_state::IsSet, + S::List: listitem_state::IsSet, { /// Build the final struct pub fn build(self) -> Listitem<'a> { diff --git a/crates/jacquard-api/src/app_bsky/graph/verification.rs b/crates/jacquard-api/src/app_bsky/graph/verification.rs index 55ad99d3..42af8a3f 100644 --- a/crates/jacquard-api/src/app_bsky/graph/verification.rs +++ b/crates/jacquard-api/src/app_bsky/graph/verification.rs @@ -41,65 +41,65 @@ pub mod verification_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type DisplayName; 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 Subject = Unset; type Handle = Unset; - type DisplayName = Unset; type CreatedAt = Unset; } + ///State transition - sets the `display_name` field to Set + pub struct SetDisplayName(PhantomData S>); + impl sealed::Sealed for SetDisplayName {} + impl State for SetDisplayName { + type DisplayName = Set; + type Subject = S::Subject; + type Handle = S::Handle; + type CreatedAt = S::CreatedAt; + } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { + type DisplayName = S::DisplayName; type Subject = Set; type Handle = S::Handle; - type DisplayName = S::DisplayName; type CreatedAt = S::CreatedAt; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Subject = S::Subject; - type Handle = Set; type DisplayName = S::DisplayName; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `display_name` field to Set - pub struct SetDisplayName(PhantomData S>); - impl sealed::Sealed for SetDisplayName {} - impl State for SetDisplayName { type Subject = S::Subject; - type Handle = S::Handle; - type DisplayName = Set; + type Handle = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type DisplayName = S::DisplayName; type Subject = S::Subject; type Handle = S::Handle; - type DisplayName = S::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 `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(()); } @@ -214,9 +214,9 @@ where impl<'a, S> VerificationBuilder<'a, S> where S: verification_state::State, + S::DisplayName: verification_state::IsSet, S::Subject: verification_state::IsSet, S::Handle: verification_state::IsSet, - S::DisplayName: verification_state::IsSet, S::CreatedAt: verification_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/app_bsky/labeler.rs b/crates/jacquard-api/src/app_bsky/labeler.rs index 311608e4..7297a992 100644 --- a/crates/jacquard-api/src/app_bsky/labeler.rs +++ b/crates/jacquard-api/src/app_bsky/labeler.rs @@ -632,65 +632,65 @@ pub mod labeler_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; type Creator; + 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 Cid = Unset; type Creator = Unset; + type Uri = Unset; type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Creator = S::Creator; - type IndexedAt = S::IndexedAt; - } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; type Creator = S::Creator; + type Uri = S::Uri; type IndexedAt = S::IndexedAt; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData S>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Uri = S::Uri; type Cid = S::Cid; type Creator = Set; + type Uri = S::Uri; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = S::Cid; + type Creator = S::Creator; + type Uri = Set; type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; type Cid = S::Cid; type Creator = S::Creator; + type Uri = S::Uri; type IndexedAt = 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 `creator` field pub struct creator(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); } @@ -859,9 +859,9 @@ impl<'a, S: labeler_view_state::State> LabelerViewBuilder<'a, S> { impl<'a, S> LabelerViewBuilder<'a, S> where S: labeler_view_state::State, - S::Uri: labeler_view_state::IsSet, S::Cid: labeler_view_state::IsSet, S::Creator: labeler_view_state::IsSet, + S::Uri: labeler_view_state::IsSet, S::IndexedAt: labeler_view_state::IsSet, { /// Build the final struct @@ -985,83 +985,83 @@ pub mod labeler_view_detailed_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; - type Creator; + type Uri; type Policies; + type Creator; 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 Cid = Unset; - type Creator = Unset; + type Uri = Unset; type Policies = Unset; + type Creator = Unset; type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Creator = S::Creator; - type Policies = S::Policies; - type IndexedAt = S::IndexedAt; - } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; - type Creator = S::Creator; + type Uri = S::Uri; type Policies = S::Policies; + type Creator = S::Creator; type IndexedAt = S::IndexedAt; } - ///State transition - sets the `creator` field to Set - pub struct SetCreator(PhantomData S>); - impl sealed::Sealed for SetCreator {} - impl State for SetCreator { - type Uri = S::Uri; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type Cid = S::Cid; - type Creator = Set; + type Uri = Set; type Policies = S::Policies; + type Creator = S::Creator; type IndexedAt = S::IndexedAt; } ///State transition - sets the `policies` field to Set pub struct SetPolicies(PhantomData S>); impl sealed::Sealed for SetPolicies {} impl State for SetPolicies { - type Uri = S::Uri; type Cid = S::Cid; - type Creator = S::Creator; + type Uri = S::Uri; type Policies = Set; + type Creator = S::Creator; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `creator` field to Set + pub struct SetCreator(PhantomData S>); + impl sealed::Sealed for SetCreator {} + impl State for SetCreator { + type Cid = S::Cid; + type Uri = S::Uri; + type Policies = S::Policies; + type Creator = Set; type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; type Cid = S::Cid; - type Creator = S::Creator; + type Uri = S::Uri; type Policies = S::Policies; + type Creator = S::Creator; type IndexedAt = 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 `creator` field - pub struct creator(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `policies` field pub struct policies(()); + ///Marker type for the `creator` field + pub struct creator(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); } @@ -1322,10 +1322,10 @@ impl<'a, S: labeler_view_detailed_state::State> LabelerViewDetailedBuilder<'a, S impl<'a, S> LabelerViewDetailedBuilder<'a, S> where S: labeler_view_detailed_state::State, - S::Uri: labeler_view_detailed_state::IsSet, S::Cid: labeler_view_detailed_state::IsSet, - S::Creator: labeler_view_detailed_state::IsSet, + S::Uri: labeler_view_detailed_state::IsSet, S::Policies: labeler_view_detailed_state::IsSet, + S::Creator: labeler_view_detailed_state::IsSet, S::IndexedAt: labeler_view_detailed_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/app_bsky/labeler/service.rs b/crates/jacquard-api/src/app_bsky/labeler/service.rs index c9ccb614..24e33952 100644 --- a/crates/jacquard-api/src/app_bsky/labeler/service.rs +++ b/crates/jacquard-api/src/app_bsky/labeler/service.rs @@ -54,37 +54,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 S>); - impl sealed::Sealed for SetPolicies {} - impl State for SetPolicies { - type Policies = Set; - type CreatedAt = S::CreatedAt; + type Policies = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Policies = S::Policies; type CreatedAt = Set; + type Policies = S::Policies; + } + ///State transition - sets the `policies` field to Set + pub struct SetPolicies(PhantomData S>); + impl sealed::Sealed for SetPolicies {} + impl State for SetPolicies { + type CreatedAt = S::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(()); } } @@ -237,8 +237,8 @@ impl<'a, S: service_state::State> ServiceBuilder<'a, S> { impl<'a, S> ServiceBuilder<'a, S> where S: service_state::State, - S::Policies: service_state::IsSet, S::CreatedAt: service_state::IsSet, + S::Policies: service_state::IsSet, { /// Build the final struct pub fn build(self) -> Service<'a> { diff --git a/crates/jacquard-api/src/app_bsky/notification.rs b/crates/jacquard-api/src/app_bsky/notification.rs index 908c18ba..d0b26e21 100644 --- a/crates/jacquard-api/src/app_bsky/notification.rs +++ b/crates/jacquard-api/src/app_bsky/notification.rs @@ -43,37 +43,37 @@ pub mod activity_subscription_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Post; type Reply; + 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 Reply = Unset; - } - ///State transition - sets the `post` field to Set - pub struct SetPost(PhantomData S>); - impl sealed::Sealed for SetPost {} - impl State for SetPost { - type Post = Set; - type Reply = S::Reply; + type Post = Unset; } ///State transition - sets the `reply` field to Set pub struct SetReply(PhantomData S>); impl sealed::Sealed for SetReply {} impl State for SetReply { - type Post = S::Post; type Reply = Set; + type Post = S::Post; + } + ///State transition - sets the `post` field to Set + pub struct SetPost(PhantomData S>); + impl sealed::Sealed for SetPost {} + impl State for SetPost { + type Reply = S::Reply; + 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 `reply` field pub struct reply(()); + ///Marker type for the `post` field + pub struct post(()); } } @@ -143,8 +143,8 @@ where impl<'a, S> ActivitySubscriptionBuilder<'a, S> where S: activity_subscription_state::State, - S::Post: activity_subscription_state::IsSet, S::Reply: activity_subscription_state::IsSet, + S::Post: activity_subscription_state::IsSet, { /// Build the final struct pub fn build(self) -> ActivitySubscription<'a> { @@ -776,51 +776,51 @@ pub mod filterable_preference_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Push; type Include; type List; - type Push; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Push = Unset; type Include = Unset; type List = Unset; - type Push = Unset; + } + ///State transition - sets the `push` field to Set + pub struct SetPush(PhantomData S>); + impl sealed::Sealed for SetPush {} + impl State for SetPush { + type Push = Set; + type Include = S::Include; + type List = S::List; } ///State transition - sets the `include` field to Set pub struct SetInclude(PhantomData S>); impl sealed::Sealed for SetInclude {} impl State for SetInclude { + type Push = S::Push; type Include = Set; type List = S::List; - type Push = S::Push; } ///State transition - sets the `list` field to Set pub struct SetList(PhantomData S>); impl sealed::Sealed for SetList {} impl State for SetList { - type Include = S::Include; - type List = Set; type Push = S::Push; - } - ///State transition - sets the `push` field to Set - pub struct SetPush(PhantomData S>); - impl sealed::Sealed for SetPush {} - impl State for SetPush { type Include = S::Include; - type List = S::List; - type Push = Set; + type List = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `push` field + pub struct push(()); ///Marker type for the `include` field pub struct include(()); ///Marker type for the `list` field pub struct list(()); - ///Marker type for the `push` field - pub struct push(()); } } @@ -913,9 +913,9 @@ where impl<'a, S> FilterablePreferenceBuilder<'a, S> where S: filterable_preference_state::State, + S::Push: filterable_preference_state::IsSet, S::Include: filterable_preference_state::IsSet, S::List: filterable_preference_state::IsSet, - S::Push: filterable_preference_state::IsSet, { /// Build the final struct pub fn build(self) -> FilterablePreference<'a> { @@ -1180,301 +1180,301 @@ pub mod preferences_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Chat; - type Follow; - type Like; - type LikeViaRepost; - type Mention; - type Quote; + type Unverified; type Reply; + type Quote; type Repost; + type LikeViaRepost; + type Mention; + type Verified; + type Like; + type Follow; + type Chat; type RepostViaRepost; type StarterpackJoined; type SubscribedPost; - type Unverified; - type Verified; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Chat = Unset; - type Follow = Unset; - type Like = Unset; - type LikeViaRepost = Unset; - type Mention = Unset; - type Quote = Unset; + type Unverified = Unset; type Reply = Unset; + type Quote = Unset; type Repost = Unset; + type LikeViaRepost = Unset; + type Mention = Unset; + type Verified = Unset; + type Like = Unset; + type Follow = Unset; + type Chat = Unset; type RepostViaRepost = Unset; type StarterpackJoined = Unset; type SubscribedPost = Unset; - type Unverified = Unset; - type Verified = Unset; } - ///State transition - sets the `chat` field to Set - pub struct SetChat(PhantomData S>); - impl sealed::Sealed for SetChat {} - impl State for SetChat { - type Chat = Set; - type Follow = S::Follow; - type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; - type Quote = S::Quote; + ///State transition - sets the `unverified` field to Set + pub struct SetUnverified(PhantomData S>); + impl sealed::Sealed for SetUnverified {} + impl State for SetUnverified { + type Unverified = Set; type Reply = S::Reply; + type Quote = S::Quote; type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; + type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = S::Verified; } - ///State transition - sets the `follow` field to Set - pub struct SetFollow(PhantomData S>); - impl sealed::Sealed for SetFollow {} - impl State for SetFollow { - type Chat = S::Chat; - type Follow = Set; - type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; + ///State transition - sets the `reply` field to Set + pub struct SetReply(PhantomData S>); + impl sealed::Sealed for SetReply {} + impl State for SetReply { + type Unverified = S::Unverified; + type Reply = Set; type Quote = S::Quote; - type Reply = S::Reply; type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; + type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = S::Verified; } - ///State transition - sets the `like` field to Set - pub struct SetLike(PhantomData S>); - impl sealed::Sealed for SetLike {} - impl State for SetLike { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = Set; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; - type Quote = S::Quote; + ///State transition - sets the `quote` field to Set + pub struct SetQuote(PhantomData S>); + impl sealed::Sealed for SetQuote {} + impl State for SetQuote { + type Unverified = S::Unverified; type Reply = S::Reply; + type Quote = Set; type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; + type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; + } + ///State transition - sets the `repost` field to Set + pub struct SetRepost(PhantomData S>); + impl sealed::Sealed for SetRepost {} + impl State for SetRepost { type Unverified = S::Unverified; + type Reply = S::Reply; + type Quote = S::Quote; + type Repost = Set; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; + type RepostViaRepost = S::RepostViaRepost; + type StarterpackJoined = S::StarterpackJoined; + type SubscribedPost = S::SubscribedPost; } ///State transition - sets the `like_via_repost` field to Set pub struct SetLikeViaRepost(PhantomData S>); impl sealed::Sealed for SetLikeViaRepost {} impl State for SetLikeViaRepost { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; - type LikeViaRepost = Set; - type Mention = S::Mention; - type Quote = S::Quote; + type Unverified = S::Unverified; type Reply = S::Reply; + type Quote = S::Quote; type Repost = S::Repost; + type LikeViaRepost = Set; + type Mention = S::Mention; + type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = S::Verified; } ///State transition - sets the `mention` field to Set pub struct SetMention(PhantomData S>); impl sealed::Sealed for SetMention {} impl State for SetMention { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = Set; - type Quote = S::Quote; + type Unverified = S::Unverified; type Reply = S::Reply; + type Quote = S::Quote; type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = Set; + type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = S::Verified; } - ///State transition - sets the `quote` field to Set - pub struct SetQuote(PhantomData S>); - impl sealed::Sealed for SetQuote {} - impl State for SetQuote { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; - type Quote = Set; + ///State transition - sets the `verified` field to Set + pub struct SetVerified(PhantomData S>); + impl sealed::Sealed for SetVerified {} + impl State for SetVerified { + type Unverified = S::Unverified; type Reply = S::Reply; + type Quote = S::Quote; type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; + type Verified = Set; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = S::Verified; } - ///State transition - sets the `reply` field to Set - pub struct SetReply(PhantomData S>); - impl sealed::Sealed for SetReply {} - impl State for SetReply { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; + ///State transition - sets the `like` field to Set + pub struct SetLike(PhantomData S>); + impl sealed::Sealed for SetLike {} + impl State for SetLike { + type Unverified = S::Unverified; + type Reply = S::Reply; type Quote = S::Quote; - type Reply = Set; type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; + type Verified = S::Verified; + type Like = Set; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = S::Verified; } - ///State transition - sets the `repost` field to Set - pub struct SetRepost(PhantomData S>); - impl sealed::Sealed for SetRepost {} - impl State for SetRepost { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; + ///State transition - sets the `follow` field to Set + pub struct SetFollow(PhantomData S>); + impl sealed::Sealed for SetFollow {} + impl State for SetFollow { + type Unverified = S::Unverified; + type Reply = S::Reply; + type Quote = S::Quote; + type Repost = S::Repost; type LikeViaRepost = S::LikeViaRepost; type Mention = S::Mention; - type Quote = S::Quote; - type Reply = S::Reply; - type Repost = Set; + type Verified = S::Verified; + type Like = S::Like; + type Follow = Set; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; + } + ///State transition - sets the `chat` field to Set + pub struct SetChat(PhantomData S>); + impl sealed::Sealed for SetChat {} + impl State for SetChat { type Unverified = S::Unverified; + type Reply = S::Reply; + type Quote = S::Quote; + type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = Set; + type RepostViaRepost = S::RepostViaRepost; + type StarterpackJoined = S::StarterpackJoined; + type SubscribedPost = S::SubscribedPost; } ///State transition - sets the `repost_via_repost` field to Set pub struct SetRepostViaRepost(PhantomData S>); impl sealed::Sealed for SetRepostViaRepost {} impl State for SetRepostViaRepost { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; - type Quote = S::Quote; + type Unverified = S::Unverified; type Reply = S::Reply; + type Quote = S::Quote; type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; + type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = Set; type StarterpackJoined = S::StarterpackJoined; type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = S::Verified; } ///State transition - sets the `starterpack_joined` field to Set pub struct SetStarterpackJoined(PhantomData S>); impl sealed::Sealed for SetStarterpackJoined {} impl State for SetStarterpackJoined { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; - type Quote = S::Quote; + type Unverified = S::Unverified; type Reply = S::Reply; + type Quote = S::Quote; type Repost = S::Repost; + type LikeViaRepost = S::LikeViaRepost; + type Mention = S::Mention; + type Verified = S::Verified; + type Like = S::Like; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = Set; type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = S::Verified; } ///State transition - sets the `subscribed_post` field to Set pub struct SetSubscribedPost(PhantomData S>); impl sealed::Sealed for SetSubscribedPost {} impl State for SetSubscribedPost { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; - type Quote = S::Quote; + type Unverified = S::Unverified; type Reply = S::Reply; + type Quote = S::Quote; type Repost = S::Repost; - type RepostViaRepost = S::RepostViaRepost; - type StarterpackJoined = S::StarterpackJoined; - type SubscribedPost = Set; - type Unverified = S::Unverified; - type Verified = S::Verified; - } - ///State transition - sets the `unverified` field to Set - pub struct SetUnverified(PhantomData S>); - impl sealed::Sealed for SetUnverified {} - impl State for SetUnverified { - type Chat = S::Chat; - type Follow = S::Follow; - type Like = S::Like; type LikeViaRepost = S::LikeViaRepost; type Mention = S::Mention; - type Quote = S::Quote; - type Reply = S::Reply; - type Repost = S::Repost; - type RepostViaRepost = S::RepostViaRepost; - type StarterpackJoined = S::StarterpackJoined; - type SubscribedPost = S::SubscribedPost; - type Unverified = Set; type Verified = S::Verified; - } - ///State transition - sets the `verified` field to Set - pub struct SetVerified(PhantomData S>); - impl sealed::Sealed for SetVerified {} - impl State for SetVerified { - type Chat = S::Chat; - type Follow = S::Follow; type Like = S::Like; - type LikeViaRepost = S::LikeViaRepost; - type Mention = S::Mention; - type Quote = S::Quote; - type Reply = S::Reply; - type Repost = S::Repost; + type Follow = S::Follow; + type Chat = S::Chat; type RepostViaRepost = S::RepostViaRepost; type StarterpackJoined = S::StarterpackJoined; - type SubscribedPost = S::SubscribedPost; - type Unverified = S::Unverified; - type Verified = Set; + type SubscribedPost = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `chat` field - pub struct chat(()); - ///Marker type for the `follow` field - pub struct follow(()); - ///Marker type for the `like` field - pub struct like(()); - ///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 `quote` field - pub struct quote(()); + ///Marker type for the `unverified` field + pub struct unverified(()); ///Marker type for the `reply` field pub struct reply(()); + ///Marker type for the `quote` field + pub struct quote(()); ///Marker type for the `repost` field pub struct repost(()); + ///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 `like` field + pub struct like(()); + ///Marker type for the `follow` field + pub struct follow(()); + ///Marker type for the `chat` field + pub struct chat(()); ///Marker type for the `repost_via_repost` field pub struct repost_via_repost(()); ///Marker type for the `starterpack_joined` field pub struct starterpack_joined(()); ///Marker type for the `subscribed_post` field pub struct subscribed_post(()); - ///Marker type for the `unverified` field - pub struct unverified(()); - ///Marker type for the `verified` field - pub struct verified(()); } } @@ -1781,19 +1781,19 @@ where impl<'a, S> PreferencesBuilder<'a, S> where S: preferences_state::State, - S::Chat: preferences_state::IsSet, - S::Follow: preferences_state::IsSet, - S::Like: preferences_state::IsSet, - S::LikeViaRepost: preferences_state::IsSet, - S::Mention: preferences_state::IsSet, - S::Quote: preferences_state::IsSet, + S::Unverified: preferences_state::IsSet, S::Reply: preferences_state::IsSet, + S::Quote: preferences_state::IsSet, S::Repost: preferences_state::IsSet, + S::LikeViaRepost: preferences_state::IsSet, + S::Mention: preferences_state::IsSet, + S::Verified: preferences_state::IsSet, + S::Like: preferences_state::IsSet, + S::Follow: preferences_state::IsSet, + S::Chat: preferences_state::IsSet, S::RepostViaRepost: preferences_state::IsSet, S::StarterpackJoined: preferences_state::IsSet, S::SubscribedPost: preferences_state::IsSet, - S::Unverified: preferences_state::IsSet, - S::Verified: preferences_state::IsSet, { /// Build the final struct pub fn build(self) -> Preferences<'a> { @@ -1917,37 +1917,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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type ActivitySubscription = S::ActivitySubscription; + type Subject = Unset; } ///State transition - sets the `activity_subscription` field to Set pub struct SetActivitySubscription(PhantomData S>); impl sealed::Sealed for SetActivitySubscription {} impl State for SetActivitySubscription { - type Subject = S::Subject; type ActivitySubscription = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type ActivitySubscription = S::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(()); } } @@ -2034,8 +2034,8 @@ where impl<'a, S> SubjectActivitySubscriptionBuilder<'a, S> where S: subject_activity_subscription_state::State, - S::Subject: subject_activity_subscription_state::IsSet, S::ActivitySubscription: subject_activity_subscription_state::IsSet, + S::Subject: subject_activity_subscription_state::IsSet, { /// Build the final struct pub fn build(self) -> SubjectActivitySubscription<'a> { 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 cd004390..d5bb17e4 100644 --- a/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs +++ b/crates/jacquard-api/src/app_bsky/notification/list_notifications.rs @@ -272,126 +272,126 @@ pub mod notification_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Uri; - type Cid; - type Author; - type Reason; - type Record; type IsRead; + type Record; type IndexedAt; + type Cid; + type Reason; + 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 Cid = Unset; - type Author = Unset; - type Reason = Unset; - type Record = Unset; type IsRead = Unset; + type Record = Unset; type IndexedAt = Unset; + type Cid = Unset; + type Reason = Unset; + type Author = Unset; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Uri = Set; - type Cid = S::Cid; - type Author = S::Author; - type Reason = S::Reason; - type Record = S::Record; type IsRead = S::IsRead; - type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; - type Author = S::Author; - type Reason = S::Reason; type Record = S::Record; - type IsRead = S::IsRead; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData S>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Uri = S::Uri; type Cid = S::Cid; - type Author = Set; type Reason = S::Reason; - type Record = S::Record; - type IsRead = S::IsRead; - type IndexedAt = S::IndexedAt; + type Author = S::Author; } - ///State transition - sets the `reason` field to Set - pub struct SetReason(PhantomData S>); - impl sealed::Sealed for SetReason {} - impl State for SetReason { + ///State transition - sets the `is_read` field to Set + pub struct SetIsRead(PhantomData S>); + impl sealed::Sealed for SetIsRead {} + impl State for SetIsRead { type Uri = S::Uri; - type Cid = S::Cid; - type Author = S::Author; - type Reason = Set; + type IsRead = Set; type Record = S::Record; - type IsRead = S::IsRead; type IndexedAt = S::IndexedAt; + type Cid = S::Cid; + type Reason = S::Reason; + type Author = S::Author; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { type Uri = S::Uri; - type Cid = S::Cid; - type Author = S::Author; - type Reason = S::Reason; - type Record = Set; type IsRead = S::IsRead; + type Record = Set; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `is_read` field to Set - pub struct SetIsRead(PhantomData S>); - impl sealed::Sealed for SetIsRead {} - impl State for SetIsRead { - type Uri = S::Uri; type Cid = S::Cid; - type Author = S::Author; type Reason = S::Reason; - type Record = S::Record; - type IsRead = Set; - type IndexedAt = S::IndexedAt; + type Author = S::Author; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { type Uri = S::Uri; + type IsRead = S::IsRead; + type Record = S::Record; + type IndexedAt = Set; type Cid = S::Cid; + type Reason = S::Reason; type Author = S::Author; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Uri = S::Uri; + type IsRead = S::IsRead; + type Record = S::Record; + type IndexedAt = S::IndexedAt; + type Cid = Set; type Reason = S::Reason; + type Author = S::Author; + } + ///State transition - sets the `reason` field to Set + pub struct SetReason(PhantomData S>); + impl sealed::Sealed for SetReason {} + impl State for SetReason { + type Uri = S::Uri; + type IsRead = S::IsRead; type Record = S::Record; + type IndexedAt = S::IndexedAt; + type Cid = S::Cid; + type Reason = Set; + type Author = S::Author; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData S>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Uri = S::Uri; type IsRead = S::IsRead; - type IndexedAt = Set; + type Record = S::Record; + type IndexedAt = S::IndexedAt; + type Cid = S::Cid; + type Reason = S::Reason; + 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 `cid` field - pub struct cid(()); - ///Marker type for the `author` field - pub struct author(()); - ///Marker type for the `reason` field - pub struct reason(()); - ///Marker type for the `record` field - pub struct record(()); ///Marker type for the `is_read` field pub struct is_read(()); + ///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 `reason` field + pub struct reason(()); + ///Marker type for the `author` field + pub struct author(()); } } @@ -615,12 +615,12 @@ impl<'a, S> NotificationBuilder<'a, S> where S: notification_state::State, S::Uri: notification_state::IsSet, - S::Cid: notification_state::IsSet, - S::Author: notification_state::IsSet, - S::Reason: notification_state::IsSet, - S::Record: notification_state::IsSet, S::IsRead: notification_state::IsSet, + S::Record: notification_state::IsSet, S::IndexedAt: notification_state::IsSet, + S::Cid: notification_state::IsSet, + S::Reason: notification_state::IsSet, + S::Author: notification_state::IsSet, { /// Build the final struct pub fn build(self) -> Notification<'a> { 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 be751032..59309d0c 100644 --- a/crates/jacquard-api/src/app_bsky/notification/register_push.rs +++ b/crates/jacquard-api/src/app_bsky/notification/register_push.rs @@ -40,67 +40,67 @@ pub mod register_push_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type AppId; type ServiceDid; type Token; type Platform; - type AppId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type AppId = Unset; type ServiceDid = Unset; type Token = Unset; type Platform = Unset; - type AppId = Unset; + } + ///State transition - sets the `app_id` field to Set + pub struct SetAppId(PhantomData S>); + impl sealed::Sealed for SetAppId {} + impl State for SetAppId { + type AppId = Set; + type ServiceDid = S::ServiceDid; + type Token = S::Token; + type Platform = S::Platform; } ///State transition - sets the `service_did` field to Set pub struct SetServiceDid(PhantomData S>); impl sealed::Sealed for SetServiceDid {} impl State for SetServiceDid { + type AppId = S::AppId; type ServiceDid = Set; type Token = S::Token; type Platform = S::Platform; - type AppId = S::AppId; } ///State transition - sets the `token` field to Set pub struct SetToken(PhantomData S>); impl sealed::Sealed for SetToken {} impl State for SetToken { + type AppId = S::AppId; type ServiceDid = S::ServiceDid; type Token = Set; type Platform = S::Platform; - type AppId = S::AppId; } ///State transition - sets the `platform` field to Set pub struct SetPlatform(PhantomData S>); impl sealed::Sealed for SetPlatform {} impl State for SetPlatform { - type ServiceDid = S::ServiceDid; - type Token = S::Token; - type Platform = Set; type AppId = S::AppId; - } - ///State transition - sets the `app_id` field to Set - pub struct SetAppId(PhantomData S>); - impl sealed::Sealed for SetAppId {} - impl State for SetAppId { type ServiceDid = S::ServiceDid; type Token = S::Token; - type Platform = S::Platform; - type AppId = Set; + type Platform = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///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(()); ///Marker type for the `platform` field pub struct platform(()); - ///Marker type for the `app_id` field - pub struct app_id(()); } } @@ -227,10 +227,10 @@ where impl<'a, S> RegisterPushBuilder<'a, S> where S: register_push_state::State, + S::AppId: register_push_state::IsSet, S::ServiceDid: register_push_state::IsSet, S::Token: register_push_state::IsSet, S::Platform: register_push_state::IsSet, - S::AppId: register_push_state::IsSet, { /// Build the final struct pub fn build(self) -> RegisterPush<'a> { 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 75f5382c..75c37f4f 100644 --- a/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs +++ b/crates/jacquard-api/src/app_bsky/notification/unregister_push.rs @@ -39,8 +39,8 @@ pub mod unregister_push_state { pub trait State: sealed::Sealed { type ServiceDid; type Token; - type Platform; type AppId; + type Platform; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -48,8 +48,8 @@ pub mod unregister_push_state { impl State for Empty { type ServiceDid = Unset; type Token = Unset; - type Platform = Unset; type AppId = Unset; + type Platform = Unset; } ///State transition - sets the `service_did` field to Set pub struct SetServiceDid(PhantomData S>); @@ -57,8 +57,8 @@ pub mod unregister_push_state { impl State for SetServiceDid { type ServiceDid = Set; type Token = S::Token; - type Platform = S::Platform; type AppId = S::AppId; + type Platform = S::Platform; } ///State transition - sets the `token` field to Set pub struct SetToken(PhantomData S>); @@ -66,17 +66,8 @@ pub mod unregister_push_state { impl State for SetToken { type ServiceDid = S::ServiceDid; type Token = Set; - type Platform = S::Platform; - type AppId = S::AppId; - } - ///State transition - sets the `platform` field to Set - pub struct SetPlatform(PhantomData S>); - impl sealed::Sealed for SetPlatform {} - impl State for SetPlatform { - type ServiceDid = S::ServiceDid; - type Token = S::Token; - type Platform = Set; type AppId = S::AppId; + type Platform = S::Platform; } ///State transition - sets the `app_id` field to Set pub struct SetAppId(PhantomData S>); @@ -84,8 +75,17 @@ pub mod unregister_push_state { impl State for SetAppId { type ServiceDid = S::ServiceDid; type Token = S::Token; - type Platform = S::Platform; type AppId = Set; + type Platform = S::Platform; + } + ///State transition - sets the `platform` field to Set + pub struct SetPlatform(PhantomData S>); + impl sealed::Sealed for SetPlatform {} + impl State for SetPlatform { + type ServiceDid = S::ServiceDid; + type Token = S::Token; + type AppId = S::AppId; + type Platform = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -94,10 +94,10 @@ pub mod unregister_push_state { pub struct service_did(()); ///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 `platform` field + pub struct platform(()); } } @@ -212,8 +212,8 @@ where S: unregister_push_state::State, S::ServiceDid: unregister_push_state::IsSet, S::Token: unregister_push_state::IsSet, - S::Platform: unregister_push_state::IsSet, S::AppId: unregister_push_state::IsSet, + S::Platform: unregister_push_state::IsSet, { /// Build the final struct pub fn build(self) -> UnregisterPush<'a> { diff --git a/crates/jacquard-api/src/app_bsky/richtext/facet.rs b/crates/jacquard-api/src/app_bsky/richtext/facet.rs index 46a73376..aeae106e 100644 --- a/crates/jacquard-api/src/app_bsky/richtext/facet.rs +++ b/crates/jacquard-api/src/app_bsky/richtext/facet.rs @@ -32,37 +32,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 S>); - impl sealed::Sealed for SetByteStart {} - impl State for SetByteStart { - type ByteStart = Set; - type ByteEnd = S::ByteEnd; + type ByteStart = Unset; } ///State transition - sets the `byte_end` field to Set pub struct SetByteEnd(PhantomData S>); impl sealed::Sealed for SetByteEnd {} impl State for SetByteEnd { - type ByteStart = S::ByteStart; type ByteEnd = Set; + type ByteStart = S::ByteStart; + } + ///State transition - sets the `byte_start` field to Set + pub struct SetByteStart(PhantomData S>); + impl sealed::Sealed for SetByteStart {} + impl State for SetByteStart { + type ByteEnd = S::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(()); } } @@ -132,8 +132,8 @@ where impl<'a, S> ByteSliceBuilder<'a, S> where S: byte_slice_state::State, - S::ByteStart: byte_slice_state::IsSet, S::ByteEnd: byte_slice_state::IsSet, + S::ByteStart: byte_slice_state::IsSet, { /// Build the final struct pub fn build(self) -> ByteSlice<'a> { diff --git a/crates/jacquard-api/src/app_bsky/unspecced.rs b/crates/jacquard-api/src/app_bsky/unspecced.rs index 86542a1f..735bf1f0 100644 --- a/crates/jacquard-api/src/app_bsky/unspecced.rs +++ b/crates/jacquard-api/src/app_bsky/unspecced.rs @@ -81,51 +81,51 @@ pub mod age_assurance_event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Status; type AttemptId; + 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 AttemptId = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Status = S::Status; - type AttemptId = S::AttemptId; + type CreatedAt = Unset; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData S>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type CreatedAt = S::CreatedAt; type Status = Set; type AttemptId = S::AttemptId; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `attempt_id` field to Set pub struct SetAttemptId(PhantomData S>); impl sealed::Sealed for SetAttemptId {} impl State for SetAttemptId { - type CreatedAt = S::CreatedAt; type Status = S::Status; type AttemptId = Set; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Status = S::Status; + type AttemptId = S::AttemptId; + 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 `attempt_id` field pub struct attempt_id(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -309,9 +309,9 @@ where impl<'a, S> AgeAssuranceEventBuilder<'a, S> where S: age_assurance_event_state::State, - S::CreatedAt: age_assurance_event_state::IsSet, S::Status: age_assurance_event_state::IsSet, S::AttemptId: age_assurance_event_state::IsSet, + S::CreatedAt: age_assurance_event_state::IsSet, { /// Build the final struct pub fn build(self) -> AgeAssuranceEvent<'a> { @@ -1743,105 +1743,105 @@ pub mod skeleton_trend_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Topic; + type StartedAt; type DisplayName; type Link; - type StartedAt; - type PostCount; + type Topic; type Dids; + type PostCount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Topic = Unset; + type StartedAt = Unset; type DisplayName = Unset; type Link = Unset; - type StartedAt = Unset; - type PostCount = Unset; + type Topic = Unset; type Dids = Unset; + type PostCount = Unset; } - ///State transition - sets the `topic` field to Set - pub struct SetTopic(PhantomData S>); - impl sealed::Sealed for SetTopic {} - impl State for SetTopic { - type Topic = Set; + ///State transition - sets the `started_at` field to Set + pub struct SetStartedAt(PhantomData S>); + impl sealed::Sealed for SetStartedAt {} + impl State for SetStartedAt { + type StartedAt = Set; type DisplayName = S::DisplayName; type Link = S::Link; - type StartedAt = S::StartedAt; - type PostCount = S::PostCount; + type Topic = S::Topic; type Dids = S::Dids; + type PostCount = S::PostCount; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData S>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Topic = S::Topic; + type StartedAt = S::StartedAt; type DisplayName = Set; type Link = S::Link; - type StartedAt = S::StartedAt; - type PostCount = S::PostCount; + type Topic = S::Topic; type Dids = S::Dids; + type PostCount = S::PostCount; } ///State transition - sets the `link` field to Set pub struct SetLink(PhantomData S>); impl sealed::Sealed for SetLink {} impl State for SetLink { - type Topic = S::Topic; + type StartedAt = S::StartedAt; type DisplayName = S::DisplayName; type Link = Set; - type StartedAt = S::StartedAt; - type PostCount = S::PostCount; - type Dids = S::Dids; - } - ///State transition - sets the `started_at` field to Set - pub struct SetStartedAt(PhantomData S>); - impl sealed::Sealed for SetStartedAt {} - impl State for SetStartedAt { type Topic = S::Topic; - type DisplayName = S::DisplayName; - type Link = S::Link; - type StartedAt = Set; - type PostCount = S::PostCount; type Dids = S::Dids; + type PostCount = S::PostCount; } - ///State transition - sets the `post_count` field to Set - pub struct SetPostCount(PhantomData S>); - impl sealed::Sealed for SetPostCount {} - impl State for SetPostCount { - type Topic = S::Topic; + ///State transition - sets the `topic` field to Set + pub struct SetTopic(PhantomData S>); + impl sealed::Sealed for SetTopic {} + impl State for SetTopic { + type StartedAt = S::StartedAt; type DisplayName = S::DisplayName; type Link = S::Link; - type StartedAt = S::StartedAt; - type PostCount = Set; + type Topic = Set; type Dids = S::Dids; + type PostCount = S::PostCount; } ///State transition - sets the `dids` field to Set pub struct SetDids(PhantomData S>); impl sealed::Sealed for SetDids {} impl State for SetDids { - type Topic = S::Topic; + type StartedAt = S::StartedAt; type DisplayName = S::DisplayName; type Link = S::Link; - type StartedAt = S::StartedAt; - type PostCount = S::PostCount; + type Topic = S::Topic; type Dids = Set; + type PostCount = S::PostCount; + } + ///State transition - sets the `post_count` field to Set + pub struct SetPostCount(PhantomData S>); + impl sealed::Sealed for SetPostCount {} + impl State for SetPostCount { + type StartedAt = S::StartedAt; + type DisplayName = S::DisplayName; + type Link = S::Link; + type Topic = S::Topic; + type Dids = S::Dids; + type PostCount = 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 `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 `started_at` field - pub struct started_at(()); - ///Marker type for the `post_count` field - pub struct post_count(()); + ///Marker type for the `topic` field + pub struct topic(()); ///Marker type for the `dids` field pub struct dids(()); + ///Marker type for the `post_count` field + pub struct post_count(()); } } @@ -2028,12 +2028,12 @@ where impl<'a, S> SkeletonTrendBuilder<'a, S> where S: skeleton_trend_state::State, - S::Topic: skeleton_trend_state::IsSet, + S::StartedAt: skeleton_trend_state::IsSet, S::DisplayName: skeleton_trend_state::IsSet, S::Link: skeleton_trend_state::IsSet, - S::StartedAt: skeleton_trend_state::IsSet, - S::PostCount: skeleton_trend_state::IsSet, + S::Topic: skeleton_trend_state::IsSet, S::Dids: skeleton_trend_state::IsSet, + S::PostCount: skeleton_trend_state::IsSet, { /// Build the final struct pub fn build(self) -> SkeletonTrend<'a> { @@ -2322,105 +2322,105 @@ pub mod thread_item_post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type MutedByViewer; type Post; - type MoreParents; - type MoreReplies; type OpThread; type HiddenByThreadgate; - 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 MutedByViewer = Unset; type Post = Unset; - type MoreParents = Unset; - type MoreReplies = Unset; type OpThread = Unset; type HiddenByThreadgate = Unset; - type MutedByViewer = Unset; + type MoreReplies = Unset; + type MoreParents = Unset; + } + ///State transition - sets the `muted_by_viewer` field to Set + pub struct SetMutedByViewer(PhantomData S>); + impl sealed::Sealed for SetMutedByViewer {} + impl State for SetMutedByViewer { + type MutedByViewer = Set; + type Post = S::Post; + type OpThread = S::OpThread; + type HiddenByThreadgate = S::HiddenByThreadgate; + type MoreReplies = S::MoreReplies; + type MoreParents = S::MoreParents; } ///State transition - sets the `post` field to Set pub struct SetPost(PhantomData S>); impl sealed::Sealed for SetPost {} impl State for SetPost { + type MutedByViewer = S::MutedByViewer; type Post = Set; - type MoreParents = S::MoreParents; - type MoreReplies = S::MoreReplies; type OpThread = S::OpThread; type HiddenByThreadgate = S::HiddenByThreadgate; - type MutedByViewer = S::MutedByViewer; - } - ///State transition - sets the `more_parents` field to Set - pub struct SetMoreParents(PhantomData S>); - impl sealed::Sealed for SetMoreParents {} - impl State for SetMoreParents { - type Post = S::Post; - type MoreParents = Set; type MoreReplies = S::MoreReplies; - type OpThread = S::OpThread; - type HiddenByThreadgate = S::HiddenByThreadgate; - type MutedByViewer = S::MutedByViewer; - } - ///State transition - sets the `more_replies` field to Set - pub struct SetMoreReplies(PhantomData S>); - impl sealed::Sealed for SetMoreReplies {} - impl State for SetMoreReplies { - type Post = S::Post; type MoreParents = S::MoreParents; - type MoreReplies = Set; - type OpThread = S::OpThread; - type HiddenByThreadgate = S::HiddenByThreadgate; - type MutedByViewer = S::MutedByViewer; } ///State transition - sets the `op_thread` field to Set pub struct SetOpThread(PhantomData S>); impl sealed::Sealed for SetOpThread {} impl State for SetOpThread { + type MutedByViewer = S::MutedByViewer; type Post = S::Post; - type MoreParents = S::MoreParents; - type MoreReplies = S::MoreReplies; type OpThread = Set; type HiddenByThreadgate = S::HiddenByThreadgate; - type MutedByViewer = S::MutedByViewer; + type MoreReplies = S::MoreReplies; + type MoreParents = S::MoreParents; } ///State transition - sets the `hidden_by_threadgate` field to Set pub struct SetHiddenByThreadgate(PhantomData S>); impl sealed::Sealed for SetHiddenByThreadgate {} impl State for SetHiddenByThreadgate { + type MutedByViewer = S::MutedByViewer; type Post = S::Post; - type MoreParents = S::MoreParents; - type MoreReplies = S::MoreReplies; type OpThread = S::OpThread; type HiddenByThreadgate = Set; - type MutedByViewer = S::MutedByViewer; + type MoreReplies = S::MoreReplies; + type MoreParents = S::MoreParents; } - ///State transition - sets the `muted_by_viewer` field to Set - pub struct SetMutedByViewer(PhantomData S>); - impl sealed::Sealed for SetMutedByViewer {} - impl State for SetMutedByViewer { + ///State transition - sets the `more_replies` field to Set + pub struct SetMoreReplies(PhantomData S>); + impl sealed::Sealed for SetMoreReplies {} + impl State for SetMoreReplies { + type MutedByViewer = S::MutedByViewer; type Post = S::Post; + type OpThread = S::OpThread; + type HiddenByThreadgate = S::HiddenByThreadgate; + type MoreReplies = Set; type MoreParents = S::MoreParents; - type MoreReplies = S::MoreReplies; + } + ///State transition - sets the `more_parents` field to Set + pub struct SetMoreParents(PhantomData S>); + impl sealed::Sealed for SetMoreParents {} + impl State for SetMoreParents { + type MutedByViewer = S::MutedByViewer; + type Post = S::Post; type OpThread = S::OpThread; type HiddenByThreadgate = S::HiddenByThreadgate; - type MutedByViewer = Set; + type MoreReplies = S::MoreReplies; + type MoreParents = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `muted_by_viewer` field + pub struct muted_by_viewer(()); ///Marker type for the `post` field pub struct post(()); - ///Marker type for the `more_parents` field - pub struct more_parents(()); - ///Marker type for the `more_replies` field - pub struct more_replies(()); ///Marker type for the `op_thread` field pub struct op_thread(()); ///Marker type for the `hidden_by_threadgate` field pub struct hidden_by_threadgate(()); - ///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(()); } } @@ -2573,12 +2573,12 @@ where impl<'a, S> ThreadItemPostBuilder<'a, S> where S: thread_item_post_state::State, + S::MutedByViewer: thread_item_post_state::IsSet, S::Post: thread_item_post_state::IsSet, - S::MoreParents: thread_item_post_state::IsSet, - S::MoreReplies: thread_item_post_state::IsSet, S::OpThread: thread_item_post_state::IsSet, S::HiddenByThreadgate: thread_item_post_state::IsSet, - S::MutedByViewer: thread_item_post_state::IsSet, + S::MoreReplies: thread_item_post_state::IsSet, + S::MoreParents: thread_item_post_state::IsSet, { /// Build the final struct pub fn build(self) -> ThreadItemPost<'a> { @@ -2669,105 +2669,105 @@ pub mod trend_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Topic; type DisplayName; - type Link; - type StartedAt; type PostCount; type Actors; + type StartedAt; + type Topic; + type Link; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Topic = Unset; type DisplayName = Unset; - type Link = Unset; - type StartedAt = Unset; type PostCount = Unset; type Actors = Unset; - } - ///State transition - sets the `topic` field to Set - pub struct SetTopic(PhantomData S>); - impl sealed::Sealed for SetTopic {} - impl State for SetTopic { - type Topic = Set; - type DisplayName = S::DisplayName; - type Link = S::Link; - type StartedAt = S::StartedAt; - type PostCount = S::PostCount; - type Actors = S::Actors; + type StartedAt = Unset; + type Topic = Unset; + type Link = Unset; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData S>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Topic = S::Topic; type DisplayName = Set; - type Link = S::Link; - type StartedAt = S::StartedAt; type PostCount = S::PostCount; type Actors = S::Actors; - } - ///State transition - sets the `link` field to Set - pub struct SetLink(PhantomData S>); - impl sealed::Sealed for SetLink {} - impl State for SetLink { - type Topic = S::Topic; - type DisplayName = S::DisplayName; - type Link = Set; type StartedAt = S::StartedAt; - type PostCount = S::PostCount; - type Actors = S::Actors; - } - ///State transition - sets the `started_at` field to Set - pub struct SetStartedAt(PhantomData S>); - impl sealed::Sealed for SetStartedAt {} - impl State for SetStartedAt { type Topic = S::Topic; - type DisplayName = S::DisplayName; type Link = S::Link; - type StartedAt = Set; - type PostCount = S::PostCount; - type Actors = S::Actors; } ///State transition - sets the `post_count` field to Set pub struct SetPostCount(PhantomData S>); impl sealed::Sealed for SetPostCount {} impl State for SetPostCount { - type Topic = S::Topic; type DisplayName = S::DisplayName; - type Link = S::Link; - type StartedAt = S::StartedAt; type PostCount = Set; type Actors = S::Actors; + type StartedAt = S::StartedAt; + type Topic = S::Topic; + type Link = S::Link; } ///State transition - sets the `actors` field to Set pub struct SetActors(PhantomData S>); impl sealed::Sealed for SetActors {} impl State for SetActors { + type DisplayName = S::DisplayName; + type PostCount = S::PostCount; + type Actors = Set; + type StartedAt = S::StartedAt; type Topic = S::Topic; + type Link = S::Link; + } + ///State transition - sets the `started_at` field to Set + pub struct SetStartedAt(PhantomData S>); + impl sealed::Sealed for SetStartedAt {} + impl State for SetStartedAt { type DisplayName = S::DisplayName; + type PostCount = S::PostCount; + type Actors = S::Actors; + type StartedAt = Set; + type Topic = S::Topic; type Link = S::Link; + } + ///State transition - sets the `topic` field to Set + pub struct SetTopic(PhantomData S>); + impl sealed::Sealed for SetTopic {} + impl State for SetTopic { + type DisplayName = S::DisplayName; + type PostCount = S::PostCount; + type Actors = S::Actors; type StartedAt = S::StartedAt; + type Topic = Set; + type Link = S::Link; + } + ///State transition - sets the `link` field to Set + pub struct SetLink(PhantomData S>); + impl sealed::Sealed for SetLink {} + impl State for SetLink { + type DisplayName = S::DisplayName; type PostCount = S::PostCount; - type Actors = Set; + type Actors = S::Actors; + type StartedAt = S::StartedAt; + type Topic = S::Topic; + type Link = 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 `display_name` field pub struct display_name(()); - ///Marker type for the `link` field - pub struct link(()); - ///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 `started_at` field + pub struct started_at(()); + ///Marker type for the `topic` field + pub struct topic(()); + ///Marker type for the `link` field + pub struct link(()); } } @@ -2954,12 +2954,12 @@ where impl<'a, S> TrendViewBuilder<'a, S> where S: trend_view_state::State, - S::Topic: trend_view_state::IsSet, S::DisplayName: trend_view_state::IsSet, - S::Link: trend_view_state::IsSet, - S::StartedAt: trend_view_state::IsSet, S::PostCount: trend_view_state::IsSet, S::Actors: trend_view_state::IsSet, + S::StartedAt: trend_view_state::IsSet, + S::Topic: trend_view_state::IsSet, + S::Link: trend_view_state::IsSet, { /// Build the final struct pub fn build(self) -> TrendView<'a> { 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 691dc9b6..acc76f56 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 @@ -189,51 +189,51 @@ pub mod thread_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Depth; type Value; + 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 Depth = Unset; type Value = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Depth = S::Depth; - type Value = S::Value; + type Uri = Unset; } ///State transition - sets the `depth` field to Set pub struct SetDepth(PhantomData S>); impl sealed::Sealed for SetDepth {} impl State for SetDepth { - type Uri = S::Uri; type Depth = Set; type Value = S::Value; + type Uri = S::Uri; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Uri = S::Uri; type Depth = S::Depth; type Value = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Depth = S::Depth; + type Value = S::Value; + 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 `depth` field pub struct depth(()); ///Marker type for the `value` field pub struct value(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -326,9 +326,9 @@ where impl<'a, S> ThreadItemBuilder<'a, S> where S: thread_item_state::State, - S::Uri: thread_item_state::IsSet, S::Depth: thread_item_state::IsSet, S::Value: thread_item_state::IsSet, + S::Uri: thread_item_state::IsSet, { /// Build the final struct pub fn build(self) -> ThreadItem<'a> { 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 3bceb81e..e8fa2835 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 @@ -91,50 +91,50 @@ pub mod suggestion_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Tag; - type SubjectType; type Subject; + type SubjectType; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Tag = Unset; - type SubjectType = Unset; type Subject = Unset; + type SubjectType = Unset; } ///State transition - sets the `tag` field to Set pub struct SetTag(PhantomData S>); impl sealed::Sealed for SetTag {} impl State for SetTag { type Tag = Set; - type SubjectType = S::SubjectType; - type Subject = S::Subject; - } - ///State transition - sets the `subject_type` field to Set - pub struct SetSubjectType(PhantomData S>); - impl sealed::Sealed for SetSubjectType {} - impl State for SetSubjectType { - type Tag = S::Tag; - type SubjectType = Set; type Subject = S::Subject; + type SubjectType = S::SubjectType; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type Tag = S::Tag; - type SubjectType = S::SubjectType; type Subject = Set; + type SubjectType = S::SubjectType; + } + ///State transition - sets the `subject_type` field to Set + pub struct SetSubjectType(PhantomData S>); + impl sealed::Sealed for SetSubjectType {} + impl State for SetSubjectType { + type Tag = S::Tag; + type Subject = S::Subject; + type SubjectType = 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 `subject_type` field - pub struct subject_type(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `subject_type` field + pub struct subject_type(()); } } @@ -228,8 +228,8 @@ impl<'a, S> SuggestionBuilder<'a, S> where S: suggestion_state::State, S::Tag: suggestion_state::IsSet, - S::SubjectType: suggestion_state::IsSet, S::Subject: suggestion_state::IsSet, + S::SubjectType: suggestion_state::IsSet, { /// Build the final struct pub fn build(self) -> Suggestion<'a> { diff --git a/crates/jacquard-api/src/app_bsky/video.rs b/crates/jacquard-api/src/app_bsky/video.rs index 582ebf2f..ab4ef2e2 100644 --- a/crates/jacquard-api/src/app_bsky/video.rs +++ b/crates/jacquard-api/src/app_bsky/video.rs @@ -53,50 +53,50 @@ 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 Did; } /// 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; + type Did = Unset; } ///State transition - sets the `job_id` field to Set pub struct SetJobId(PhantomData S>); impl sealed::Sealed for SetJobId {} impl State for SetJobId { type JobId = Set; - type Did = S::Did; - type State = S::State; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type JobId = S::JobId; - type Did = Set; type State = S::State; + type Did = S::Did; } ///State transition - sets the `state` field to Set pub struct SetState(PhantomData S>); impl sealed::Sealed for SetState {} impl State for SetState { type JobId = S::JobId; - type Did = S::Did; type State = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type JobId = S::JobId; + type State = S::State; + type Did = 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 `did` field + pub struct did(()); } } @@ -258,8 +258,8 @@ impl<'a, S> JobStatusBuilder<'a, S> where S: job_status_state::State, S::JobId: job_status_state::IsSet, - S::Did: job_status_state::IsSet, S::State: job_status_state::IsSet, + S::Did: job_status_state::IsSet, { /// Build the final struct pub fn build(self) -> JobStatus<'a> { diff --git a/crates/jacquard-api/src/app_ocho/auth.rs b/crates/jacquard-api/src/app_ocho/auth.rs index a5ae53dd..d88f4d78 100644 --- a/crates/jacquard-api/src/app_ocho/auth.rs +++ b/crates/jacquard-api/src/app_ocho/auth.rs @@ -48,8 +48,8 @@ pub mod auth_callback_state { pub trait State: sealed::Sealed { type RefreshJwt; type AccessJwt; - type Handle; type Did; + type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -57,8 +57,8 @@ pub mod auth_callback_state { impl State for Empty { type RefreshJwt = Unset; type AccessJwt = Unset; - type Handle = Unset; type Did = Unset; + type Handle = Unset; } ///State transition - sets the `refresh_jwt` field to Set pub struct SetRefreshJwt(PhantomData S>); @@ -66,8 +66,8 @@ pub mod auth_callback_state { impl State for SetRefreshJwt { type RefreshJwt = Set; type AccessJwt = S::AccessJwt; - type Handle = S::Handle; type Did = S::Did; + type Handle = S::Handle; } ///State transition - sets the `access_jwt` field to Set pub struct SetAccessJwt(PhantomData S>); @@ -75,17 +75,8 @@ pub mod auth_callback_state { impl State for SetAccessJwt { type RefreshJwt = S::RefreshJwt; type AccessJwt = Set; - type Handle = S::Handle; - type Did = S::Did; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData S>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type RefreshJwt = S::RefreshJwt; - type AccessJwt = S::AccessJwt; - type Handle = Set; type Did = S::Did; + type Handle = S::Handle; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); @@ -93,8 +84,17 @@ pub mod auth_callback_state { impl State for SetDid { type RefreshJwt = S::RefreshJwt; type AccessJwt = S::AccessJwt; - type Handle = S::Handle; type Did = Set; + type Handle = S::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData S>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type RefreshJwt = S::RefreshJwt; + type AccessJwt = S::AccessJwt; + type Did = S::Did; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -103,10 +103,10 @@ pub mod auth_callback_state { pub struct refresh_jwt(()); ///Marker type for the `access_jwt` field pub struct access_jwt(()); - ///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(()); } } @@ -221,8 +221,8 @@ where S: auth_callback_state::State, S::RefreshJwt: auth_callback_state::IsSet, S::AccessJwt: auth_callback_state::IsSet, - S::Handle: auth_callback_state::IsSet, S::Did: auth_callback_state::IsSet, + S::Handle: auth_callback_state::IsSet, { /// Build the final struct pub fn build(self) -> AuthCallback<'a> { 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 cd2d032b..7036e838 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 @@ -34,49 +34,49 @@ pub mod at_proto_callback_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Code; type State; + type Code; type Iss; } /// 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; + type Code = Unset; type Iss = Unset; } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData S>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type Code = Set; - type State = S::State; - type Iss = S::Iss; - } ///State transition - sets the `state` field to Set pub struct SetState(PhantomData S>); impl sealed::Sealed for SetState {} impl State for SetState { - type Code = S::Code; type State = Set; + type Code = S::Code; + type Iss = S::Iss; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData S>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type State = S::State; + type Code = Set; type Iss = S::Iss; } ///State transition - sets the `iss` field to Set pub struct SetIss(PhantomData S>); impl sealed::Sealed for SetIss {} impl State for SetIss { - type Code = S::Code; type State = S::State; + type Code = S::Code; type Iss = 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(()); ///Marker type for the `iss` field pub struct iss(()); } @@ -171,8 +171,8 @@ where impl<'a, S> AtProtoCallbackBuilder<'a, S> where S: at_proto_callback_state::State, - S::Code: at_proto_callback_state::IsSet, S::State: at_proto_callback_state::IsSet, + S::Code: at_proto_callback_state::IsSet, S::Iss: at_proto_callback_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/app_ocho/auth/github_callback.rs b/crates/jacquard-api/src/app_ocho/auth/github_callback.rs index 920da361..e6a09165 100644 --- a/crates/jacquard-api/src/app_ocho/auth/github_callback.rs +++ b/crates/jacquard-api/src/app_ocho/auth/github_callback.rs @@ -32,37 +32,37 @@ pub mod github_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 S>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type Code = Set; - type State = S::State; + type Code = Unset; } ///State transition - sets the `state` field to Set pub struct SetState(PhantomData S>); impl sealed::Sealed for SetState {} impl State for SetState { - type Code = S::Code; type State = Set; + type Code = S::Code; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData S>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type State = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> GithubCallbackBuilder<'a, S> where S: github_callback_state::State, - S::Code: github_callback_state::IsSet, S::State: github_callback_state::IsSet, + S::Code: github_callback_state::IsSet, { /// Build the final struct pub fn build(self) -> GithubCallback<'a> { 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 e53283f9..0bb8d022 100644 --- a/crates/jacquard-api/src/app_ocho/edu/google_callback.rs +++ b/crates/jacquard-api/src/app_ocho/edu/google_callback.rs @@ -32,37 +32,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 S>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type Code = Set; - type State = S::State; + type Code = Unset; } ///State transition - sets the `state` field to Set pub struct SetState(PhantomData S>); impl sealed::Sealed for SetState {} impl State for SetState { - type Code = S::Code; type State = Set; + type Code = S::Code; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData S>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type State = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> GoogleCallbackBuilder<'a, S> where S: google_callback_state::State, - S::Code: google_callback_state::IsSet, S::State: google_callback_state::IsSet, + S::Code: google_callback_state::IsSet, { /// Build the final struct pub fn build(self) -> GoogleCallback<'a> { diff --git a/crates/jacquard-api/src/app_ocho/edu/verification.rs b/crates/jacquard-api/src/app_ocho/edu/verification.rs index eaf533e7..fed9723e 100644 --- a/crates/jacquard-api/src/app_ocho/edu/verification.rs +++ b/crates/jacquard-api/src/app_ocho/edu/verification.rs @@ -38,51 +38,51 @@ pub mod verification_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; - type Domain; type CreatedAt; + type Domain; + 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 Domain = Unset; type CreatedAt = Unset; + type Domain = Unset; + type Subject = Unset; } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Domain = S::Domain; - type CreatedAt = S::CreatedAt; + type Subject = S::Subject; } ///State transition - sets the `domain` field to Set pub struct SetDomain(PhantomData S>); impl sealed::Sealed for SetDomain {} impl State for SetDomain { - type Subject = S::Subject; - type Domain = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Domain = Set; type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::CreatedAt; type Domain = S::Domain; - type CreatedAt = 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 `domain` field - pub struct domain(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `domain` field + pub struct domain(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -175,9 +175,9 @@ where impl<'a, S> VerificationBuilder<'a, S> where S: verification_state::State, - S::Subject: verification_state::IsSet, - S::Domain: verification_state::IsSet, S::CreatedAt: verification_state::IsSet, + S::Domain: verification_state::IsSet, + S::Subject: verification_state::IsSet, { /// Build the final struct pub fn build(self) -> Verification<'a> { diff --git a/crates/jacquard-api/src/app_ocho/plugin.rs b/crates/jacquard-api/src/app_ocho/plugin.rs index 958b5532..c222ee1a 100644 --- a/crates/jacquard-api/src/app_ocho/plugin.rs +++ b/crates/jacquard-api/src/app_ocho/plugin.rs @@ -1726,49 +1726,49 @@ pub mod launch_asset_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Key; type ContentType; + type Key; type Url; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Key = Unset; type ContentType = Unset; + type Key = Unset; type Url = Unset; } - ///State transition - sets the `key` field to Set - pub struct SetKey(PhantomData S>); - impl sealed::Sealed for SetKey {} - impl State for SetKey { - type Key = Set; - type ContentType = S::ContentType; - type Url = S::Url; - } ///State transition - sets the `content_type` field to Set pub struct SetContentType(PhantomData S>); impl sealed::Sealed for SetContentType {} impl State for SetContentType { - type Key = S::Key; type ContentType = Set; + type Key = S::Key; + type Url = S::Url; + } + ///State transition - sets the `key` field to Set + pub struct SetKey(PhantomData S>); + impl sealed::Sealed for SetKey {} + impl State for SetKey { + type ContentType = S::ContentType; + type Key = Set; type Url = S::Url; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Key = S::Key; type ContentType = S::ContentType; + type Key = S::Key; type Url = 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 `content_type` field pub struct content_type(()); + ///Marker type for the `key` field + pub struct key(()); ///Marker type for the `url` field pub struct url(()); } @@ -1863,8 +1863,8 @@ where impl<'a, S> LaunchAssetBuilder<'a, S> where S: launch_asset_state::State, - S::Key: launch_asset_state::IsSet, S::ContentType: launch_asset_state::IsSet, + S::Key: launch_asset_state::IsSet, S::Url: launch_asset_state::IsSet, { /// Build the final struct @@ -1950,10 +1950,10 @@ pub mod manifest_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type LaunchAsset; type Id; - type CreatedAt; type RuntimeVersion; - type LaunchAsset; + type CreatedAt; type Metadata; type Extra; } @@ -1961,32 +1961,32 @@ pub mod manifest_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type LaunchAsset = Unset; type Id = Unset; - type CreatedAt = Unset; type RuntimeVersion = Unset; - type LaunchAsset = Unset; + type CreatedAt = Unset; type Metadata = Unset; type Extra = Unset; } + ///State transition - sets the `launch_asset` field to Set + pub struct SetLaunchAsset(PhantomData S>); + impl sealed::Sealed for SetLaunchAsset {} + impl State for SetLaunchAsset { + type LaunchAsset = Set; + type Id = S::Id; + type RuntimeVersion = S::RuntimeVersion; + type CreatedAt = S::CreatedAt; + type Metadata = S::Metadata; + type Extra = S::Extra; + } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData S>); impl sealed::Sealed for SetId {} impl State for SetId { - type Id = Set; - type CreatedAt = S::CreatedAt; - type RuntimeVersion = S::RuntimeVersion; type LaunchAsset = S::LaunchAsset; - type Metadata = S::Metadata; - type Extra = S::Extra; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Id = S::Id; - type CreatedAt = Set; + type Id = Set; type RuntimeVersion = S::RuntimeVersion; - type LaunchAsset = S::LaunchAsset; + type CreatedAt = S::CreatedAt; type Metadata = S::Metadata; type Extra = S::Extra; } @@ -1994,21 +1994,21 @@ pub mod manifest_state { pub struct SetRuntimeVersion(PhantomData S>); impl sealed::Sealed for SetRuntimeVersion {} impl State for SetRuntimeVersion { + type LaunchAsset = S::LaunchAsset; type Id = S::Id; - type CreatedAt = S::CreatedAt; type RuntimeVersion = Set; - type LaunchAsset = S::LaunchAsset; + type CreatedAt = S::CreatedAt; type Metadata = S::Metadata; type Extra = S::Extra; } - ///State transition - sets the `launch_asset` field to Set - pub struct SetLaunchAsset(PhantomData S>); - impl sealed::Sealed for SetLaunchAsset {} - impl State for SetLaunchAsset { + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type LaunchAsset = S::LaunchAsset; type Id = S::Id; - type CreatedAt = S::CreatedAt; type RuntimeVersion = S::RuntimeVersion; - type LaunchAsset = Set; + type CreatedAt = Set; type Metadata = S::Metadata; type Extra = S::Extra; } @@ -2016,10 +2016,10 @@ pub mod manifest_state { pub struct SetMetadata(PhantomData S>); impl sealed::Sealed for SetMetadata {} impl State for SetMetadata { + type LaunchAsset = S::LaunchAsset; type Id = S::Id; - type CreatedAt = S::CreatedAt; type RuntimeVersion = S::RuntimeVersion; - type LaunchAsset = S::LaunchAsset; + type CreatedAt = S::CreatedAt; type Metadata = Set; type Extra = S::Extra; } @@ -2027,24 +2027,24 @@ pub mod manifest_state { pub struct SetExtra(PhantomData S>); impl sealed::Sealed for SetExtra {} impl State for SetExtra { + type LaunchAsset = S::LaunchAsset; type Id = S::Id; - type CreatedAt = S::CreatedAt; type RuntimeVersion = S::RuntimeVersion; - type LaunchAsset = S::LaunchAsset; + type CreatedAt = S::CreatedAt; type Metadata = S::Metadata; type Extra = 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 `id` field pub struct id(()); - ///Marker type for the `created_at` field - pub struct created_at(()); ///Marker type for the `runtime_version` field pub struct runtime_version(()); - ///Marker type for the `launch_asset` field - pub struct launch_asset(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `metadata` field pub struct metadata(()); ///Marker type for the `extra` field @@ -2201,10 +2201,10 @@ where impl<'a, S> ManifestBuilder<'a, S> where S: manifest_state::State, + S::LaunchAsset: manifest_state::IsSet, S::Id: manifest_state::IsSet, - S::CreatedAt: manifest_state::IsSet, S::RuntimeVersion: manifest_state::IsSet, - S::LaunchAsset: manifest_state::IsSet, + S::CreatedAt: manifest_state::IsSet, S::Metadata: manifest_state::IsSet, S::Extra: manifest_state::IsSet, { diff --git a/crates/jacquard-api/src/app_ocho/plugin/get_manifest.rs b/crates/jacquard-api/src/app_ocho/plugin/get_manifest.rs index 8bb5fe6c..b142fb6c 100644 --- a/crates/jacquard-api/src/app_ocho/plugin/get_manifest.rs +++ b/crates/jacquard-api/src/app_ocho/plugin/get_manifest.rs @@ -32,37 +32,37 @@ pub mod get_manifest_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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Platform = S::Platform; + type Did = Unset; } ///State transition - sets the `platform` field to Set pub struct SetPlatform(PhantomData S>); impl sealed::Sealed for SetPlatform {} impl State for SetPlatform { - type Did = S::Did; type Platform = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Platform = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> GetManifestBuilder<'a, S> where S: get_manifest_state::State, - S::Did: get_manifest_state::IsSet, S::Platform: get_manifest_state::IsSet, + S::Did: get_manifest_state::IsSet, { /// Build the final struct pub fn build(self) -> GetManifest<'a> { diff --git a/crates/jacquard-api/src/app_rocksky/artist.rs b/crates/jacquard-api/src/app_rocksky/artist.rs index 134807df..9fa4b239 100644 --- a/crates/jacquard-api/src/app_rocksky/artist.rs +++ b/crates/jacquard-api/src/app_rocksky/artist.rs @@ -62,37 +62,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 S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = S::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = S::Name; type CreatedAt = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = S::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(()); } } @@ -276,8 +276,8 @@ impl<'a, S: artist_state::State> ArtistBuilder<'a, S> { impl<'a, S> ArtistBuilder<'a, S> where S: artist_state::State, - S::Name: artist_state::IsSet, S::CreatedAt: artist_state::IsSet, + S::Name: artist_state::IsSet, { /// Build the final struct pub fn build(self) -> Artist<'a> { diff --git a/crates/jacquard-api/src/app_rocksky/like.rs b/crates/jacquard-api/src/app_rocksky/like.rs index 40470b28..13115623 100644 --- a/crates/jacquard-api/src/app_rocksky/like.rs +++ b/crates/jacquard-api/src/app_rocksky/like.rs @@ -39,37 +39,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 S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Subject = S::Subject; + type CreatedAt = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type CreatedAt = S::CreatedAt; type Subject = Set; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Subject = S::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(()); } } @@ -142,8 +142,8 @@ where impl<'a, S> LikeBuilder<'a, S> where S: like_state::State, - S::CreatedAt: like_state::IsSet, S::Subject: like_state::IsSet, + S::CreatedAt: like_state::IsSet, { /// Build the final struct pub fn build(self) -> Like<'a> { diff --git a/crates/jacquard-api/src/app_rocksky/playlist.rs b/crates/jacquard-api/src/app_rocksky/playlist.rs index 3e254832..0736a1f2 100644 --- a/crates/jacquard-api/src/app_rocksky/playlist.rs +++ b/crates/jacquard-api/src/app_rocksky/playlist.rs @@ -66,37 +66,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 S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = S::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = S::Name; type CreatedAt = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = S::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(()); } } @@ -319,8 +319,8 @@ impl<'a, S: playlist_state::State> PlaylistBuilder<'a, S> { impl<'a, S> PlaylistBuilder<'a, S> where S: playlist_state::State, - S::Name: playlist_state::IsSet, S::CreatedAt: playlist_state::IsSet, + S::Name: playlist_state::IsSet, { /// Build the final struct pub fn build(self) -> Playlist<'a> { diff --git a/crates/jacquard-api/src/app_rocksky/radio.rs b/crates/jacquard-api/src/app_rocksky/radio.rs index 5bae8c21..23e0366d 100644 --- a/crates/jacquard-api/src/app_rocksky/radio.rs +++ b/crates/jacquard-api/src/app_rocksky/radio.rs @@ -54,51 +54,51 @@ pub mod radio_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; 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 Name = Unset; type Url = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Url = S::Url; - type CreatedAt = S::CreatedAt; + type Name = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Name = S::Name; type Url = Set; type CreatedAt = S::CreatedAt; + type Name = S::Name; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = S::Name; type Url = S::Url; type CreatedAt = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Url = S::Url; + type CreatedAt = S::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 `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(()); } } @@ -268,9 +268,9 @@ impl<'a, S: radio_state::State> RadioBuilder<'a, S> { impl<'a, S> RadioBuilder<'a, S> where S: radio_state::State, - S::Name: radio_state::IsSet, S::Url: radio_state::IsSet, S::CreatedAt: radio_state::IsSet, + S::Name: radio_state::IsSet, { /// Build the final struct pub fn build(self) -> Radio<'a> { diff --git a/crates/jacquard-api/src/app_rocksky/scrobble.rs b/crates/jacquard-api/src/app_rocksky/scrobble.rs index aa01c2d2..3b2ff129 100644 --- a/crates/jacquard-api/src/app_rocksky/scrobble.rs +++ b/crates/jacquard-api/src/app_rocksky/scrobble.rs @@ -114,105 +114,105 @@ pub mod scrobble_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; - type Artist; type Album; - type AlbumArtist; + type Artist; type Duration; + type Title; type CreatedAt; + type AlbumArtist; } /// 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 Album = Unset; - type AlbumArtist = Unset; + type Artist = Unset; type Duration = Unset; + type Title = Unset; type CreatedAt = Unset; + type AlbumArtist = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; + ///State transition - sets the `album` field to Set + pub struct SetAlbum(PhantomData S>); + impl sealed::Sealed for SetAlbum {} + impl State for SetAlbum { + type Album = Set; type Artist = S::Artist; - type Album = S::Album; - type AlbumArtist = S::AlbumArtist; type Duration = S::Duration; + type Title = S::Title; type CreatedAt = S::CreatedAt; + type AlbumArtist = S::AlbumArtist; } ///State transition - sets the `artist` field to Set pub struct SetArtist(PhantomData S>); impl sealed::Sealed for SetArtist {} impl State for SetArtist { - type Title = S::Title; - type Artist = Set; type Album = S::Album; - type AlbumArtist = S::AlbumArtist; - type Duration = S::Duration; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `album` field to Set - pub struct SetAlbum(PhantomData S>); - impl sealed::Sealed for SetAlbum {} - impl State for SetAlbum { - type Title = S::Title; - type Artist = S::Artist; - type Album = Set; - type AlbumArtist = S::AlbumArtist; + type Artist = Set; type Duration = S::Duration; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `album_artist` field to Set - pub struct SetAlbumArtist(PhantomData S>); - impl sealed::Sealed for SetAlbumArtist {} - impl State for SetAlbumArtist { type Title = S::Title; - type Artist = S::Artist; - type Album = S::Album; - type AlbumArtist = Set; - type Duration = S::Duration; type CreatedAt = S::CreatedAt; + type AlbumArtist = S::AlbumArtist; } ///State transition - sets the `duration` field to Set pub struct SetDuration(PhantomData S>); impl sealed::Sealed for SetDuration {} impl State for SetDuration { - type Title = S::Title; - type Artist = S::Artist; type Album = S::Album; - type AlbumArtist = S::AlbumArtist; + type Artist = S::Artist; type Duration = Set; + type Title = S::Title; + type CreatedAt = S::CreatedAt; + type AlbumArtist = S::AlbumArtist; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Album = S::Album; + type Artist = S::Artist; + type Duration = S::Duration; + type Title = Set; type CreatedAt = S::CreatedAt; + type AlbumArtist = S::AlbumArtist; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Title = S::Title; - type Artist = S::Artist; type Album = S::Album; - type AlbumArtist = S::AlbumArtist; + type Artist = S::Artist; type Duration = S::Duration; + type Title = S::Title; type CreatedAt = Set; + type AlbumArtist = S::AlbumArtist; + } + ///State transition - sets the `album_artist` field to Set + pub struct SetAlbumArtist(PhantomData S>); + impl sealed::Sealed for SetAlbumArtist {} + impl State for SetAlbumArtist { + type Album = S::Album; + type Artist = S::Artist; + type Duration = S::Duration; + type Title = S::Title; + type CreatedAt = S::CreatedAt; + type AlbumArtist = 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 `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 `duration` field pub struct duration(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `album_artist` field + pub struct album_artist(()); } } @@ -693,12 +693,12 @@ impl<'a, S: scrobble_state::State> ScrobbleBuilder<'a, S> { impl<'a, S> ScrobbleBuilder<'a, S> where S: scrobble_state::State, - S::Title: scrobble_state::IsSet, - S::Artist: scrobble_state::IsSet, S::Album: scrobble_state::IsSet, - S::AlbumArtist: scrobble_state::IsSet, + S::Artist: scrobble_state::IsSet, S::Duration: scrobble_state::IsSet, + S::Title: scrobble_state::IsSet, S::CreatedAt: scrobble_state::IsSet, + S::AlbumArtist: scrobble_state::IsSet, { /// Build the final struct pub fn build(self) -> Scrobble<'a> { diff --git a/crates/jacquard-api/src/app_rocksky/song.rs b/crates/jacquard-api/src/app_rocksky/song.rs index 010bdab3..ed659685 100644 --- a/crates/jacquard-api/src/app_rocksky/song.rs +++ b/crates/jacquard-api/src/app_rocksky/song.rs @@ -116,10 +116,10 @@ pub mod song_state { pub trait State: sealed::Sealed { type Title; type Artist; + type CreatedAt; + type Duration; type Album; type AlbumArtist; - type Duration; - type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -127,10 +127,10 @@ pub mod song_state { impl State for Empty { type Title = Unset; type Artist = Unset; + type CreatedAt = Unset; + type Duration = Unset; type Album = Unset; type AlbumArtist = Unset; - type Duration = Unset; - type CreatedAt = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); @@ -138,10 +138,10 @@ pub mod song_state { impl State for SetTitle { type Title = Set; type Artist = S::Artist; + type CreatedAt = S::CreatedAt; + type Duration = S::Duration; type Album = S::Album; type AlbumArtist = S::AlbumArtist; - type Duration = S::Duration; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `artist` field to Set pub struct SetArtist(PhantomData S>); @@ -149,10 +149,32 @@ pub mod song_state { impl State for SetArtist { type Title = S::Title; type Artist = Set; + type CreatedAt = S::CreatedAt; + type Duration = S::Duration; type Album = S::Album; type AlbumArtist = S::AlbumArtist; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Title = S::Title; + type Artist = S::Artist; + type CreatedAt = Set; type Duration = S::Duration; + type Album = S::Album; + type AlbumArtist = S::AlbumArtist; + } + ///State transition - sets the `duration` field to Set + pub struct SetDuration(PhantomData S>); + impl sealed::Sealed for SetDuration {} + impl State for SetDuration { + type Title = S::Title; + type Artist = S::Artist; type CreatedAt = S::CreatedAt; + type Duration = Set; + type Album = S::Album; + type AlbumArtist = S::AlbumArtist; } ///State transition - sets the `album` field to Set pub struct SetAlbum(PhantomData S>); @@ -160,10 +182,10 @@ pub mod song_state { impl State for SetAlbum { type Title = S::Title; type Artist = S::Artist; + type CreatedAt = S::CreatedAt; + type Duration = S::Duration; type Album = Set; type AlbumArtist = S::AlbumArtist; - type Duration = S::Duration; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `album_artist` field to Set pub struct SetAlbumArtist(PhantomData S>); @@ -171,32 +193,10 @@ pub mod song_state { impl State for SetAlbumArtist { type Title = S::Title; type Artist = S::Artist; - type Album = S::Album; - type AlbumArtist = Set; - type Duration = S::Duration; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `duration` field to Set - pub struct SetDuration(PhantomData S>); - impl sealed::Sealed for SetDuration {} - impl State for SetDuration { - type Title = S::Title; - type Artist = S::Artist; - type Album = S::Album; - type AlbumArtist = S::AlbumArtist; - type Duration = Set; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Title = S::Title; - type Artist = S::Artist; - type Album = S::Album; - type AlbumArtist = S::AlbumArtist; type Duration = S::Duration; - type CreatedAt = Set; + type Album = S::Album; + type AlbumArtist = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -205,14 +205,14 @@ pub mod song_state { 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 `duration` field + pub struct duration(()); ///Marker type for the `album` field pub struct album(()); ///Marker type for the `album_artist` field pub struct album_artist(()); - ///Marker type for the `duration` field - pub struct duration(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -695,10 +695,10 @@ where S: song_state::State, S::Title: song_state::IsSet, S::Artist: song_state::IsSet, + S::CreatedAt: song_state::IsSet, + S::Duration: song_state::IsSet, S::Album: song_state::IsSet, S::AlbumArtist: song_state::IsSet, - S::Duration: song_state::IsSet, - S::CreatedAt: song_state::IsSet, { /// Build the final struct pub fn build(self) -> Song<'a> { diff --git a/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs b/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs index 9d2d213e..a384408a 100644 --- a/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs +++ b/crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs @@ -55,8 +55,8 @@ pub mod transaction_state { pub trait State: sealed::Sealed { type ServiceProvider; type ServiceConsumer; - type TransactionId; type CreatedAt; + type TransactionId; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -64,8 +64,8 @@ pub mod transaction_state { impl State for Empty { type ServiceProvider = Unset; type ServiceConsumer = Unset; - type TransactionId = Unset; type CreatedAt = Unset; + type TransactionId = Unset; } ///State transition - sets the `service_provider` field to Set pub struct SetServiceProvider(PhantomData S>); @@ -73,8 +73,8 @@ pub mod transaction_state { impl State for SetServiceProvider { type ServiceProvider = Set; type ServiceConsumer = S::ServiceConsumer; - type TransactionId = S::TransactionId; type CreatedAt = S::CreatedAt; + type TransactionId = S::TransactionId; } ///State transition - sets the `service_consumer` field to Set pub struct SetServiceConsumer(PhantomData S>); @@ -82,17 +82,8 @@ pub mod transaction_state { impl State for SetServiceConsumer { type ServiceProvider = S::ServiceProvider; type ServiceConsumer = Set; - type TransactionId = S::TransactionId; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `transaction_id` field to Set - pub struct SetTransactionId(PhantomData S>); - impl sealed::Sealed for SetTransactionId {} - impl State for SetTransactionId { - type ServiceProvider = S::ServiceProvider; - type ServiceConsumer = S::ServiceConsumer; - type TransactionId = Set; type CreatedAt = S::CreatedAt; + type TransactionId = S::TransactionId; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); @@ -100,8 +91,17 @@ pub mod transaction_state { impl State for SetCreatedAt { type ServiceProvider = S::ServiceProvider; type ServiceConsumer = S::ServiceConsumer; - type TransactionId = S::TransactionId; type CreatedAt = Set; + type TransactionId = S::TransactionId; + } + ///State transition - sets the `transaction_id` field to Set + pub struct SetTransactionId(PhantomData S>); + impl sealed::Sealed for SetTransactionId {} + impl State for SetTransactionId { + type ServiceProvider = S::ServiceProvider; + type ServiceConsumer = S::ServiceConsumer; + type CreatedAt = S::CreatedAt; + type TransactionId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -110,10 +110,10 @@ pub mod transaction_state { pub struct service_provider(()); ///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 `created_at` field pub struct created_at(()); + ///Marker type for the `transaction_id` field + pub struct transaction_id(()); } } @@ -282,8 +282,8 @@ where S: transaction_state::State, S::ServiceProvider: transaction_state::IsSet, S::ServiceConsumer: transaction_state::IsSet, - S::TransactionId: transaction_state::IsSet, S::CreatedAt: transaction_state::IsSet, + S::TransactionId: transaction_state::IsSet, { /// Build the final struct pub fn build(self) -> Transaction<'a> { 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 a60c1d10..f1857247 100644 --- a/crates/jacquard-api/src/blog_pckt/block/task_item.rs +++ b/crates/jacquard-api/src/blog_pckt/block/task_item.rs @@ -35,37 +35,37 @@ pub mod task_item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Attrs; type Content; + type Attrs; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Attrs = Unset; type Content = Unset; - } - ///State transition - sets the `attrs` field to Set - pub struct SetAttrs(PhantomData S>); - impl sealed::Sealed for SetAttrs {} - impl State for SetAttrs { - type Attrs = Set; - type Content = S::Content; + type Attrs = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData S>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Attrs = S::Attrs; type Content = Set; + type Attrs = S::Attrs; + } + ///State transition - sets the `attrs` field to Set + pub struct SetAttrs(PhantomData S>); + impl sealed::Sealed for SetAttrs {} + impl State for SetAttrs { + type Content = S::Content; + type Attrs = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `attrs` field - pub struct attrs(()); ///Marker type for the `content` field pub struct content(()); + ///Marker type for the `attrs` field + pub struct attrs(()); } } @@ -138,8 +138,8 @@ where impl<'a, S> TaskItemBuilder<'a, S> where S: task_item_state::State, - S::Attrs: task_item_state::IsSet, S::Content: task_item_state::IsSet, + S::Attrs: task_item_state::IsSet, { /// Build the final struct pub fn build(self) -> TaskItem<'a> { diff --git a/crates/jacquard-api/src/blog_pckt/document.rs b/crates/jacquard-api/src/blog_pckt/document.rs index f5cea272..e72f67ca 100644 --- a/crates/jacquard-api/src/blog_pckt/document.rs +++ b/crates/jacquard-api/src/blog_pckt/document.rs @@ -63,67 +63,67 @@ pub mod document_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; - type Blocks; type Url; + type Title; type Blog; + type Blocks; } /// 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 Url = Unset; + type Title = Unset; type Blog = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Blocks = S::Blocks; - type Url = S::Url; - type Blog = S::Blog; - } - ///State transition - sets the `blocks` field to Set - pub struct SetBlocks(PhantomData S>); - impl sealed::Sealed for SetBlocks {} - impl State for SetBlocks { - type Title = S::Title; - type Blocks = Set; - type Url = S::Url; - type Blog = S::Blog; + type Blocks = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { + type Url = Set; type Title = S::Title; + type Blog = S::Blog; type Blocks = S::Blocks; - type Url = Set; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Url = S::Url; + type Title = Set; type Blog = S::Blog; + type Blocks = S::Blocks; } ///State transition - sets the `blog` field to Set pub struct SetBlog(PhantomData S>); impl sealed::Sealed for SetBlog {} impl State for SetBlog { + type Url = S::Url; type Title = S::Title; + type Blog = Set; type Blocks = S::Blocks; + } + ///State transition - sets the `blocks` field to Set + pub struct SetBlocks(PhantomData S>); + impl sealed::Sealed for SetBlocks {} + impl State for SetBlocks { type Url = S::Url; - type Blog = Set; + type Title = S::Title; + type Blog = S::Blog; + type Blocks = 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 `url` field pub struct url(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `blog` field pub struct blog(()); + ///Marker type for the `blocks` field + pub struct blocks(()); } } @@ -367,10 +367,10 @@ where impl<'a, S> DocumentBuilder<'a, S> where S: document_state::State, - S::Title: document_state::IsSet, - S::Blocks: document_state::IsSet, S::Url: document_state::IsSet, + S::Title: document_state::IsSet, S::Blog: document_state::IsSet, + S::Blocks: document_state::IsSet, { /// Build the final struct pub fn build(self) -> Document<'a> { diff --git a/crates/jacquard-api/src/blog_pckt/post.rs b/crates/jacquard-api/src/blog_pckt/post.rs index be8236ce..1ebc1a42 100644 --- a/crates/jacquard-api/src/blog_pckt/post.rs +++ b/crates/jacquard-api/src/blog_pckt/post.rs @@ -53,8 +53,8 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Blocks; + type Title; type Url; type Blog; } @@ -62,26 +62,26 @@ pub mod post_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; type Blocks = Unset; + type Title = Unset; type Url = Unset; type Blog = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Blocks = S::Blocks; - type Url = S::Url; - type Blog = S::Blog; - } ///State transition - sets the `blocks` field to Set pub struct SetBlocks(PhantomData S>); impl sealed::Sealed for SetBlocks {} impl State for SetBlocks { - type Title = S::Title; type Blocks = Set; + type Title = S::Title; + type Url = S::Url; + type Blog = S::Blog; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Blocks = S::Blocks; + type Title = Set; type Url = S::Url; type Blog = S::Blog; } @@ -89,8 +89,8 @@ pub mod post_state { pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Title = S::Title; type Blocks = S::Blocks; + type Title = S::Title; type Url = Set; type Blog = S::Blog; } @@ -98,18 +98,18 @@ pub mod post_state { pub struct SetBlog(PhantomData S>); impl sealed::Sealed for SetBlog {} impl State for SetBlog { - type Title = S::Title; type Blocks = S::Blocks; + type Title = S::Title; type Url = S::Url; type Blog = 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 `title` field + pub struct title(()); ///Marker type for the `url` field pub struct url(()); ///Marker type for the `blog` field @@ -357,8 +357,8 @@ where impl<'a, S> PostBuilder<'a, S> where S: post_state::State, - S::Title: post_state::IsSet, S::Blocks: post_state::IsSet, + S::Title: post_state::IsSet, S::Url: post_state::IsSet, S::Blog: post_state::IsSet, { diff --git a/crates/jacquard-api/src/blog_pckt/publication.rs b/crates/jacquard-api/src/blog_pckt/publication.rs index a13aef2d..38dbab30 100644 --- a/crates/jacquard-api/src/blog_pckt/publication.rs +++ b/crates/jacquard-api/src/blog_pckt/publication.rs @@ -58,37 +58,37 @@ pub mod publication_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 S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = S::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = S::Name; type CreatedAt = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = S::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(()); } } @@ -281,8 +281,8 @@ impl<'a, S: publication_state::State> PublicationBuilder<'a, S> { impl<'a, S> PublicationBuilder<'a, S> where S: publication_state::State, - S::Name: publication_state::IsSet, S::CreatedAt: publication_state::IsSet, + S::Name: publication_state::IsSet, { /// Build the final struct pub fn build(self) -> Publication<'a> { diff --git a/crates/jacquard-api/src/blog_pckt/theme.rs b/crates/jacquard-api/src/blog_pckt/theme.rs index 0a762ebb..c75b80bf 100644 --- a/crates/jacquard-api/src/blog_pckt/theme.rs +++ b/crates/jacquard-api/src/blog_pckt/theme.rs @@ -40,37 +40,37 @@ pub mod theme_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Light; type Dark; + type Light; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Light = Unset; type Dark = Unset; - } - ///State transition - sets the `light` field to Set - pub struct SetLight(PhantomData S>); - impl sealed::Sealed for SetLight {} - impl State for SetLight { - type Light = Set; - type Dark = S::Dark; + type Light = Unset; } ///State transition - sets the `dark` field to Set pub struct SetDark(PhantomData S>); impl sealed::Sealed for SetDark {} impl State for SetDark { - type Light = S::Light; type Dark = Set; + type Light = S::Light; + } + ///State transition - sets the `light` field to Set + pub struct SetLight(PhantomData S>); + impl sealed::Sealed for SetLight {} + impl State for SetLight { + type Dark = S::Dark; + type Light = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `light` field - pub struct light(()); ///Marker type for the `dark` field pub struct dark(()); + ///Marker type for the `light` field + pub struct light(()); } } @@ -160,8 +160,8 @@ where impl<'a, S> ThemeBuilder<'a, S> where S: theme_state::State, - S::Light: theme_state::IsSet, S::Dark: theme_state::IsSet, + S::Light: theme_state::IsSet, { /// Build the final struct pub fn build(self) -> Theme<'a> { diff --git a/crates/jacquard-api/src/blue__2048.rs b/crates/jacquard-api/src/blue__2048.rs index f3c4b451..35643be0 100644 --- a/crates/jacquard-api/src/blue__2048.rs +++ b/crates/jacquard-api/src/blue__2048.rs @@ -42,67 +42,67 @@ pub mod sync_status_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type SyncedWithAtRepo; 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 SyncedWithAtRepo = Unset; type Hash = Unset; type UpdatedAt = Unset; type CreatedAt = Unset; - type SyncedWithAtRepo = Unset; + } + ///State transition - sets the `synced_with_at_repo` field to Set + pub struct SetSyncedWithAtRepo(PhantomData S>); + impl sealed::Sealed for SetSyncedWithAtRepo {} + impl State for SetSyncedWithAtRepo { + type SyncedWithAtRepo = Set; + type Hash = S::Hash; + type UpdatedAt = S::UpdatedAt; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `hash` field to Set pub struct SetHash(PhantomData S>); impl sealed::Sealed for SetHash {} impl State for SetHash { + type SyncedWithAtRepo = S::SyncedWithAtRepo; type Hash = Set; type UpdatedAt = S::UpdatedAt; type CreatedAt = S::CreatedAt; - type SyncedWithAtRepo = S::SyncedWithAtRepo; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData S>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { + type SyncedWithAtRepo = S::SyncedWithAtRepo; type Hash = S::Hash; type UpdatedAt = Set; type CreatedAt = S::CreatedAt; - type SyncedWithAtRepo = S::SyncedWithAtRepo; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Hash = S::Hash; - type UpdatedAt = S::UpdatedAt; - type CreatedAt = Set; type SyncedWithAtRepo = S::SyncedWithAtRepo; - } - ///State transition - sets the `synced_with_at_repo` field to Set - pub struct SetSyncedWithAtRepo(PhantomData S>); - impl sealed::Sealed for SetSyncedWithAtRepo {} - impl State for SetSyncedWithAtRepo { type Hash = S::Hash; type UpdatedAt = S::UpdatedAt; - type CreatedAt = S::CreatedAt; - type SyncedWithAtRepo = Set; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `synced_with_at_repo` field + pub struct synced_with_at_repo(()); ///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(()); } } @@ -215,10 +215,10 @@ where impl<'a, S> SyncStatusBuilder<'a, S> where S: sync_status_state::State, + S::SyncedWithAtRepo: sync_status_state::IsSet, S::Hash: sync_status_state::IsSet, S::UpdatedAt: sync_status_state::IsSet, S::CreatedAt: sync_status_state::IsSet, - S::SyncedWithAtRepo: sync_status_state::IsSet, { /// Build the final struct pub fn build(self) -> SyncStatus<'a> { diff --git a/crates/jacquard-api/src/blue__2048/game.rs b/crates/jacquard-api/src/blue__2048/game.rs index a32a3610..e2f148b8 100644 --- a/crates/jacquard-api/src/blue__2048/game.rs +++ b/crates/jacquard-api/src/blue__2048/game.rs @@ -43,105 +43,105 @@ pub mod game_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type SeededRecording; type CurrentScore; - type Won; + type CreatedAt; type Completed; - type SeededRecording; type SyncStatus; - type CreatedAt; + type Won; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type SeededRecording = Unset; type CurrentScore = Unset; - type Won = Unset; + type CreatedAt = Unset; type Completed = Unset; - type SeededRecording = Unset; type SyncStatus = Unset; - type CreatedAt = Unset; + type Won = Unset; + } + ///State transition - sets the `seeded_recording` field to Set + pub struct SetSeededRecording(PhantomData S>); + impl sealed::Sealed for SetSeededRecording {} + impl State for SetSeededRecording { + type SeededRecording = Set; + type CurrentScore = S::CurrentScore; + type CreatedAt = S::CreatedAt; + type Completed = S::Completed; + type SyncStatus = S::SyncStatus; + type Won = S::Won; } ///State transition - sets the `current_score` field to Set pub struct SetCurrentScore(PhantomData S>); impl sealed::Sealed for SetCurrentScore {} impl State for SetCurrentScore { + type SeededRecording = S::SeededRecording; type CurrentScore = Set; - type Won = S::Won; + type CreatedAt = S::CreatedAt; type Completed = S::Completed; - type SeededRecording = S::SeededRecording; type SyncStatus = S::SyncStatus; - type CreatedAt = S::CreatedAt; + type Won = S::Won; } - ///State transition - sets the `won` field to Set - pub struct SetWon(PhantomData S>); - impl sealed::Sealed for SetWon {} - impl State for SetWon { + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type SeededRecording = S::SeededRecording; type CurrentScore = S::CurrentScore; - type Won = Set; + type CreatedAt = Set; type Completed = S::Completed; - type SeededRecording = S::SeededRecording; type SyncStatus = S::SyncStatus; - type CreatedAt = S::CreatedAt; + type Won = S::Won; } ///State transition - sets the `completed` field to Set pub struct SetCompleted(PhantomData S>); impl sealed::Sealed for SetCompleted {} impl State for SetCompleted { + type SeededRecording = S::SeededRecording; type CurrentScore = S::CurrentScore; - type Won = S::Won; + type CreatedAt = S::CreatedAt; type Completed = Set; - type SeededRecording = S::SeededRecording; type SyncStatus = S::SyncStatus; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `seeded_recording` field to Set - pub struct SetSeededRecording(PhantomData S>); - impl sealed::Sealed for SetSeededRecording {} - impl State for SetSeededRecording { - type CurrentScore = S::CurrentScore; type Won = S::Won; - type Completed = S::Completed; - type SeededRecording = Set; - type SyncStatus = S::SyncStatus; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `sync_status` field to Set pub struct SetSyncStatus(PhantomData S>); impl sealed::Sealed for SetSyncStatus {} impl State for SetSyncStatus { + type SeededRecording = S::SeededRecording; type CurrentScore = S::CurrentScore; - type Won = S::Won; + type CreatedAt = S::CreatedAt; type Completed = S::Completed; - type SeededRecording = S::SeededRecording; type SyncStatus = Set; - type CreatedAt = S::CreatedAt; + type Won = S::Won; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `won` field to Set + pub struct SetWon(PhantomData S>); + impl sealed::Sealed for SetWon {} + impl State for SetWon { + type SeededRecording = S::SeededRecording; type CurrentScore = S::CurrentScore; - type Won = S::Won; + type CreatedAt = S::CreatedAt; type Completed = S::Completed; - type SeededRecording = S::SeededRecording; type SyncStatus = S::SyncStatus; - type CreatedAt = Set; + type Won = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///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 `created_at` field + pub struct created_at(()); ///Marker type for the `completed` field pub struct completed(()); - ///Marker type for the `seeded_recording` field - pub struct seeded_recording(()); ///Marker type for the `sync_status` field pub struct sync_status(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `won` field + pub struct won(()); } } @@ -294,12 +294,12 @@ where impl<'a, S> GameBuilder<'a, S> where S: game_state::State, + S::SeededRecording: game_state::IsSet, S::CurrentScore: game_state::IsSet, - S::Won: game_state::IsSet, + S::CreatedAt: game_state::IsSet, S::Completed: game_state::IsSet, - S::SeededRecording: game_state::IsSet, S::SyncStatus: game_state::IsSet, - S::CreatedAt: game_state::IsSet, + S::Won: game_state::IsSet, { /// Build the final struct pub fn build(self) -> Game<'a> { diff --git a/crates/jacquard-api/src/blue__2048/key/player/stats.rs b/crates/jacquard-api/src/blue__2048/key/player/stats.rs index ef291828..4e6f047a 100644 --- a/crates/jacquard-api/src/blue__2048/key/player/stats.rs +++ b/crates/jacquard-api/src/blue__2048/key/player/stats.rs @@ -34,37 +34,37 @@ pub mod stats_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Key; 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 CreatedAt = Unset; - } - ///State transition - sets the `key` field to Set - pub struct SetKey(PhantomData S>); - impl sealed::Sealed for SetKey {} - impl State for SetKey { - type Key = Set; - type CreatedAt = S::CreatedAt; + type Key = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Key = S::Key; type CreatedAt = Set; + type Key = S::Key; + } + ///State transition - sets the `key` field to Set + pub struct SetKey(PhantomData S>); + impl sealed::Sealed for SetKey {} + impl State for SetKey { + type CreatedAt = S::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 `created_at` field pub struct created_at(()); + ///Marker type for the `key` field + pub struct key(()); } } @@ -137,8 +137,8 @@ where impl<'a, S> StatsBuilder<'a, S> where S: stats_state::State, - S::Key: stats_state::IsSet, S::CreatedAt: stats_state::IsSet, + S::Key: stats_state::IsSet, { /// Build the final struct pub fn build(self) -> Stats<'a> { diff --git a/crates/jacquard-api/src/blue__2048/player/profile.rs b/crates/jacquard-api/src/blue__2048/player/profile.rs index 346755d1..64ea6340 100644 --- a/crates/jacquard-api/src/blue__2048/player/profile.rs +++ b/crates/jacquard-api/src/blue__2048/player/profile.rs @@ -36,51 +36,51 @@ pub mod profile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type SoloPlay; type SyncStatus; - 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 SoloPlay = Unset; type SyncStatus = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type SoloPlay = S::SoloPlay; + type SyncStatus = S::SyncStatus; } ///State transition - sets the `solo_play` field to Set pub struct SetSoloPlay(PhantomData S>); impl sealed::Sealed for SetSoloPlay {} impl State for SetSoloPlay { + type CreatedAt = S::CreatedAt; type SoloPlay = Set; type SyncStatus = S::SyncStatus; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `sync_status` field to Set pub struct SetSyncStatus(PhantomData S>); impl sealed::Sealed for SetSyncStatus {} impl State for SetSyncStatus { - type SoloPlay = S::SoloPlay; - type SyncStatus = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type SoloPlay = S::SoloPlay; - type SyncStatus = S::SyncStatus; - type CreatedAt = Set; + type SyncStatus = 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 `solo_play` field pub struct solo_play(()); ///Marker type for the `sync_status` field pub struct sync_status(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -173,9 +173,9 @@ where impl<'a, S> ProfileBuilder<'a, S> where S: profile_state::State, + S::CreatedAt: profile_state::IsSet, S::SoloPlay: profile_state::IsSet, S::SyncStatus: profile_state::IsSet, - S::CreatedAt: profile_state::IsSet, { /// Build the final struct pub fn build(self) -> Profile<'a> { diff --git a/crates/jacquard-api/src/blue__2048/player/stats.rs b/crates/jacquard-api/src/blue__2048/player/stats.rs index 0e7e9243..5b73ff3c 100644 --- a/crates/jacquard-api/src/blue__2048/player/stats.rs +++ b/crates/jacquard-api/src/blue__2048/player/stats.rs @@ -48,85 +48,43 @@ pub mod stats_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type HighestScore; type GamesPlayed; - type TotalScore; - type HighestNumberBlock; type TimesTwentyFortyEightBeenFound; type LeastMovesToFindTwentyFortyEight; + type HighestNumberBlock; type AverageScore; type SyncStatus; type CreatedAt; + type HighestScore; + type TotalScore; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type HighestScore = Unset; type GamesPlayed = Unset; - type TotalScore = Unset; - type HighestNumberBlock = Unset; type TimesTwentyFortyEightBeenFound = Unset; type LeastMovesToFindTwentyFortyEight = Unset; + type HighestNumberBlock = Unset; type AverageScore = Unset; type SyncStatus = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `highest_score` field to Set - pub struct SetHighestScore(PhantomData S>); - impl sealed::Sealed for SetHighestScore {} - impl State for SetHighestScore { - type HighestScore = Set; - type GamesPlayed = S::GamesPlayed; - type TotalScore = S::TotalScore; - type HighestNumberBlock = S::HighestNumberBlock; - type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; - type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; - type AverageScore = S::AverageScore; - type SyncStatus = S::SyncStatus; - type CreatedAt = S::CreatedAt; + type HighestScore = Unset; + type TotalScore = Unset; } ///State transition - sets the `games_played` field to Set pub struct SetGamesPlayed(PhantomData S>); impl sealed::Sealed for SetGamesPlayed {} impl State for SetGamesPlayed { - type HighestScore = S::HighestScore; type GamesPlayed = Set; - type TotalScore = S::TotalScore; - type HighestNumberBlock = S::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; - type AverageScore = S::AverageScore; - type SyncStatus = S::SyncStatus; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `total_score` field to Set - pub struct SetTotalScore(PhantomData S>); - impl sealed::Sealed for SetTotalScore {} - impl State for SetTotalScore { - type HighestScore = S::HighestScore; - type GamesPlayed = S::GamesPlayed; - type TotalScore = Set; type HighestNumberBlock = S::HighestNumberBlock; - type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; - type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; type AverageScore = S::AverageScore; type SyncStatus = S::SyncStatus; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `highest_number_block` field to Set - pub struct SetHighestNumberBlock(PhantomData S>); - impl sealed::Sealed for SetHighestNumberBlock {} - impl State for SetHighestNumberBlock { type HighestScore = S::HighestScore; - type GamesPlayed = S::GamesPlayed; type TotalScore = S::TotalScore; - type HighestNumberBlock = Set; - type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; - type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; - type AverageScore = S::AverageScore; - type SyncStatus = S::SyncStatus; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `times_twenty_forty_eight_been_found` field to Set pub struct SetTimesTwentyFortyEightBeenFound( @@ -134,17 +92,17 @@ pub mod stats_state { ); impl sealed::Sealed for SetTimesTwentyFortyEightBeenFound {} impl State for SetTimesTwentyFortyEightBeenFound { - type HighestScore = S::HighestScore; type GamesPlayed = S::GamesPlayed; - type TotalScore = S::TotalScore; - type HighestNumberBlock = S::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = Set< members::times_twenty_forty_eight_been_found, >; type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; + type HighestNumberBlock = S::HighestNumberBlock; type AverageScore = S::AverageScore; type SyncStatus = S::SyncStatus; type CreatedAt = S::CreatedAt; + type HighestScore = S::HighestScore; + type TotalScore = S::TotalScore; } ///State transition - sets the `least_moves_to_find_twenty_forty_eight` field to Set pub struct SetLeastMovesToFindTwentyFortyEight( @@ -152,81 +110,123 @@ pub mod stats_state { ); impl sealed::Sealed for SetLeastMovesToFindTwentyFortyEight {} impl State for SetLeastMovesToFindTwentyFortyEight { - type HighestScore = S::HighestScore; type GamesPlayed = S::GamesPlayed; - type TotalScore = S::TotalScore; - type HighestNumberBlock = S::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; type LeastMovesToFindTwentyFortyEight = Set< members::least_moves_to_find_twenty_forty_eight, >; + type HighestNumberBlock = S::HighestNumberBlock; + type AverageScore = S::AverageScore; + type SyncStatus = S::SyncStatus; + type CreatedAt = S::CreatedAt; + type HighestScore = S::HighestScore; + type TotalScore = S::TotalScore; + } + ///State transition - sets the `highest_number_block` field to Set + pub struct SetHighestNumberBlock(PhantomData S>); + impl sealed::Sealed for SetHighestNumberBlock {} + impl State for SetHighestNumberBlock { + type GamesPlayed = S::GamesPlayed; + type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; + type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; + type HighestNumberBlock = Set; type AverageScore = S::AverageScore; type SyncStatus = S::SyncStatus; type CreatedAt = S::CreatedAt; + type HighestScore = S::HighestScore; + type TotalScore = S::TotalScore; } ///State transition - sets the `average_score` field to Set pub struct SetAverageScore(PhantomData S>); impl sealed::Sealed for SetAverageScore {} impl State for SetAverageScore { - type HighestScore = S::HighestScore; type GamesPlayed = S::GamesPlayed; - type TotalScore = S::TotalScore; - type HighestNumberBlock = S::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; + type HighestNumberBlock = S::HighestNumberBlock; type AverageScore = Set; type SyncStatus = S::SyncStatus; type CreatedAt = S::CreatedAt; + type HighestScore = S::HighestScore; + type TotalScore = S::TotalScore; } ///State transition - sets the `sync_status` field to Set pub struct SetSyncStatus(PhantomData S>); impl sealed::Sealed for SetSyncStatus {} impl State for SetSyncStatus { - type HighestScore = S::HighestScore; type GamesPlayed = S::GamesPlayed; - type TotalScore = S::TotalScore; - type HighestNumberBlock = S::HighestNumberBlock; type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; + type HighestNumberBlock = S::HighestNumberBlock; type AverageScore = S::AverageScore; type SyncStatus = Set; type CreatedAt = S::CreatedAt; + type HighestScore = S::HighestScore; + type TotalScore = S::TotalScore; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type HighestScore = S::HighestScore; type GamesPlayed = S::GamesPlayed; + type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; + type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; + type HighestNumberBlock = S::HighestNumberBlock; + type AverageScore = S::AverageScore; + type SyncStatus = S::SyncStatus; + type CreatedAt = Set; + type HighestScore = S::HighestScore; type TotalScore = S::TotalScore; + } + ///State transition - sets the `highest_score` field to Set + pub struct SetHighestScore(PhantomData S>); + impl sealed::Sealed for SetHighestScore {} + impl State for SetHighestScore { + type GamesPlayed = S::GamesPlayed; + type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; + type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; type HighestNumberBlock = S::HighestNumberBlock; + type AverageScore = S::AverageScore; + type SyncStatus = S::SyncStatus; + type CreatedAt = S::CreatedAt; + type HighestScore = Set; + type TotalScore = S::TotalScore; + } + ///State transition - sets the `total_score` field to Set + pub struct SetTotalScore(PhantomData S>); + impl sealed::Sealed for SetTotalScore {} + impl State for SetTotalScore { + type GamesPlayed = S::GamesPlayed; type TimesTwentyFortyEightBeenFound = S::TimesTwentyFortyEightBeenFound; type LeastMovesToFindTwentyFortyEight = S::LeastMovesToFindTwentyFortyEight; + type HighestNumberBlock = S::HighestNumberBlock; type AverageScore = S::AverageScore; type SyncStatus = S::SyncStatus; - type CreatedAt = Set; + type CreatedAt = S::CreatedAt; + type HighestScore = S::HighestScore; + type TotalScore = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `highest_score` field - pub struct highest_score(()); ///Marker type for the `games_played` field pub struct games_played(()); - ///Marker type for the `total_score` field - pub struct total_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 `least_moves_to_find_twenty_forty_eight` field pub struct least_moves_to_find_twenty_forty_eight(()); + ///Marker type for the `highest_number_block` field + pub struct highest_number_block(()); ///Marker type for the `average_score` field pub struct average_score(()); ///Marker type for the `sync_status` field pub struct sync_status(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `highest_score` field + pub struct highest_score(()); + ///Marker type for the `total_score` field + pub struct total_score(()); } } @@ -449,15 +449,15 @@ where impl<'a, S> StatsBuilder<'a, S> where S: stats_state::State, - S::HighestScore: stats_state::IsSet, S::GamesPlayed: stats_state::IsSet, - S::TotalScore: stats_state::IsSet, - S::HighestNumberBlock: stats_state::IsSet, S::TimesTwentyFortyEightBeenFound: stats_state::IsSet, S::LeastMovesToFindTwentyFortyEight: stats_state::IsSet, + S::HighestNumberBlock: stats_state::IsSet, S::AverageScore: stats_state::IsSet, S::SyncStatus: stats_state::IsSet, S::CreatedAt: stats_state::IsSet, + S::HighestScore: stats_state::IsSet, + S::TotalScore: stats_state::IsSet, { /// Build the final struct pub fn build(self) -> Stats<'a> { diff --git a/crates/jacquard-api/src/blue__2048/verification.rs b/crates/jacquard-api/src/blue__2048/verification.rs index cf55788e..e7b8f41e 100644 --- a/crates/jacquard-api/src/blue__2048/verification.rs +++ b/crates/jacquard-api/src/blue__2048/verification.rs @@ -46,85 +46,85 @@ pub mod verification_ref_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type KeyRef; type RecordRef; - type Subject; type Signature; - type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type CreatedAt = Unset; type KeyRef = Unset; type RecordRef = Unset; - type Subject = Unset; type Signature = Unset; - type CreatedAt = Unset; + type Subject = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type KeyRef = S::KeyRef; + type RecordRef = S::RecordRef; + type Signature = S::Signature; + type Subject = S::Subject; } ///State transition - sets the `key_ref` field to Set pub struct SetKeyRef(PhantomData S>); impl sealed::Sealed for SetKeyRef {} impl State for SetKeyRef { + type CreatedAt = S::CreatedAt; type KeyRef = Set; type RecordRef = S::RecordRef; - type Subject = S::Subject; type Signature = S::Signature; - type CreatedAt = S::CreatedAt; + type Subject = S::Subject; } ///State transition - sets the `record_ref` field to Set pub struct SetRecordRef(PhantomData S>); impl sealed::Sealed for SetRecordRef {} impl State for SetRecordRef { - type KeyRef = S::KeyRef; - type RecordRef = Set; - type Subject = S::Subject; - type Signature = S::Signature; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { type KeyRef = S::KeyRef; - type RecordRef = S::RecordRef; - type Subject = Set; + type RecordRef = Set; type Signature = S::Signature; - type CreatedAt = S::CreatedAt; + type Subject = S::Subject; } ///State transition - sets the `signature` field to Set pub struct SetSignature(PhantomData S>); impl sealed::Sealed for SetSignature {} impl State for SetSignature { + type CreatedAt = S::CreatedAt; type KeyRef = S::KeyRef; type RecordRef = S::RecordRef; - type Subject = S::Subject; type Signature = Set; - type CreatedAt = S::CreatedAt; + type Subject = S::Subject; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::CreatedAt; type KeyRef = S::KeyRef; type RecordRef = S::RecordRef; - type Subject = S::Subject; type Signature = S::Signature; - 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 `key_ref` field pub struct key_ref(()); ///Marker type for the `record_ref` field pub struct record_ref(()); - ///Marker type for the `subject` field - pub struct subject(()); ///Marker type for the `signature` field pub struct signature(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -257,11 +257,11 @@ where impl<'a, S> VerificationRefBuilder<'a, S> where S: verification_ref_state::State, + S::CreatedAt: verification_ref_state::IsSet, S::KeyRef: verification_ref_state::IsSet, S::RecordRef: verification_ref_state::IsSet, - S::Subject: verification_ref_state::IsSet, S::Signature: verification_ref_state::IsSet, - S::CreatedAt: verification_ref_state::IsSet, + S::Subject: verification_ref_state::IsSet, { /// Build the final struct pub fn build(self) -> VerificationRef<'a> { diff --git a/crates/jacquard-api/src/blue_rito/feed/like.rs b/crates/jacquard-api/src/blue_rito/feed/like.rs index 3b3b07ca..8856588a 100644 --- a/crates/jacquard-api/src/blue_rito/feed/like.rs +++ b/crates/jacquard-api/src/blue_rito/feed/like.rs @@ -33,37 +33,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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -136,8 +136,8 @@ where impl<'a, S> LikeBuilder<'a, S> where S: like_state::State, - S::Subject: like_state::IsSet, S::CreatedAt: like_state::IsSet, + S::Subject: like_state::IsSet, { /// Build the final struct pub fn build(self) -> Like<'a> { diff --git a/crates/jacquard-api/src/buzz_bookhive.rs b/crates/jacquard-api/src/buzz_bookhive.rs index 975a8aab..1b4998c7 100644 --- a/crates/jacquard-api/src/buzz_bookhive.rs +++ b/crates/jacquard-api/src/buzz_bookhive.rs @@ -63,67 +63,67 @@ pub mod activity_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Title; type Type; type CreatedAt; type HiveId; - 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 Type = Unset; type CreatedAt = Unset; type HiveId = Unset; - type Title = Unset; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Title = Set; + type Type = S::Type; + type CreatedAt = S::CreatedAt; + type HiveId = S::HiveId; } ///State transition - sets the `type` field to Set pub struct SetType(PhantomData S>); impl sealed::Sealed for SetType {} impl State for SetType { + type Title = S::Title; type Type = Set; type CreatedAt = S::CreatedAt; type HiveId = S::HiveId; - type Title = S::Title; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Title = S::Title; type Type = S::Type; type CreatedAt = Set; type HiveId = S::HiveId; - type Title = S::Title; } ///State transition - sets the `hive_id` field to Set pub struct SetHiveId(PhantomData S>); impl sealed::Sealed for SetHiveId {} impl State for SetHiveId { - type Type = S::Type; - type CreatedAt = S::CreatedAt; - type HiveId = Set; type Title = S::Title; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { type Type = S::Type; type CreatedAt = S::CreatedAt; - type HiveId = S::HiveId; - type Title = Set; + type HiveId = 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 `type` field pub struct r#type(()); ///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(()); } } @@ -236,10 +236,10 @@ where impl<'a, S> ActivityBuilder<'a, S> where S: activity_state::State, + S::Title: activity_state::IsSet, S::Type: activity_state::IsSet, S::CreatedAt: activity_state::IsSet, S::HiveId: activity_state::IsSet, - S::Title: activity_state::IsSet, { /// Build the final struct pub fn build(self) -> Activity<'a> { @@ -1055,105 +1055,105 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Did; + type Parent; + type Handle; type Comment; type CreatedAt; type Book; - type Parent; - type Did; - type Handle; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Did = Unset; + type Parent = Unset; + type Handle = Unset; type Comment = Unset; type CreatedAt = Unset; type Book = Unset; - type Parent = Unset; - type Did = Unset; - type Handle = Unset; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Did = Set; + type Parent = S::Parent; + type Handle = S::Handle; + type Comment = S::Comment; + type CreatedAt = S::CreatedAt; + type Book = S::Book; + } + ///State transition - sets the `parent` field to Set + pub struct SetParent(PhantomData S>); + impl sealed::Sealed for SetParent {} + impl State for SetParent { + type Did = S::Did; + type Parent = Set; + type Handle = S::Handle; + type Comment = S::Comment; + type CreatedAt = S::CreatedAt; + type Book = S::Book; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData S>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type Did = S::Did; + type Parent = S::Parent; + type Handle = Set; + type Comment = S::Comment; + type CreatedAt = S::CreatedAt; + type Book = S::Book; } ///State transition - sets the `comment` field to Set pub struct SetComment(PhantomData S>); impl sealed::Sealed for SetComment {} impl State for SetComment { + type Did = S::Did; + type Parent = S::Parent; + type Handle = S::Handle; type Comment = Set; type CreatedAt = S::CreatedAt; type Book = S::Book; - type Parent = S::Parent; - type Did = S::Did; - type Handle = S::Handle; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Did = S::Did; + type Parent = S::Parent; + type Handle = S::Handle; type Comment = S::Comment; type CreatedAt = Set; type Book = S::Book; - type Parent = S::Parent; - type Did = S::Did; - type Handle = S::Handle; } ///State transition - sets the `book` field to Set pub struct SetBook(PhantomData S>); impl sealed::Sealed for SetBook {} impl State for SetBook { - type Comment = S::Comment; - type CreatedAt = S::CreatedAt; - type Book = Set; - type Parent = S::Parent; - type Did = S::Did; - type Handle = S::Handle; - } - ///State transition - sets the `parent` field to Set - pub struct SetParent(PhantomData S>); - impl sealed::Sealed for SetParent {} - impl State for SetParent { - type Comment = S::Comment; - type CreatedAt = S::CreatedAt; - type Book = S::Book; - type Parent = Set; type Did = S::Did; - type Handle = S::Handle; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Comment = S::Comment; - type CreatedAt = S::CreatedAt; - type Book = S::Book; type Parent = S::Parent; - type Did = Set; type Handle = S::Handle; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData S>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { type Comment = S::Comment; type CreatedAt = S::CreatedAt; - type Book = S::Book; - type Parent = S::Parent; - type Did = S::Did; - type Handle = Set; + type Book = 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 `parent` field + pub struct parent(()); + ///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(()); } } @@ -1306,12 +1306,12 @@ where impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, + S::Did: comment_state::IsSet, + S::Parent: comment_state::IsSet, + S::Handle: comment_state::IsSet, S::Comment: comment_state::IsSet, S::CreatedAt: comment_state::IsSet, S::Book: comment_state::IsSet, - S::Parent: comment_state::IsSet, - S::Did: comment_state::IsSet, - S::Handle: comment_state::IsSet, { /// Build the final struct pub fn build(self) -> Comment<'a> { @@ -1466,65 +1466,65 @@ pub mod profile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type DisplayName; type Handle; type BooksRead; + type DisplayName; type Reviews; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type DisplayName = Unset; type Handle = Unset; type BooksRead = Unset; + type DisplayName = Unset; type Reviews = Unset; } - ///State transition - sets the `display_name` field to Set - pub struct SetDisplayName(PhantomData S>); - impl sealed::Sealed for SetDisplayName {} - impl State for SetDisplayName { - type DisplayName = Set; - type Handle = S::Handle; - type BooksRead = S::BooksRead; - type Reviews = S::Reviews; - } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type DisplayName = S::DisplayName; type Handle = Set; type BooksRead = S::BooksRead; + type DisplayName = S::DisplayName; type Reviews = S::Reviews; } ///State transition - sets the `books_read` field to Set pub struct SetBooksRead(PhantomData S>); impl sealed::Sealed for SetBooksRead {} impl State for SetBooksRead { - type DisplayName = S::DisplayName; type Handle = S::Handle; type BooksRead = Set; + type DisplayName = S::DisplayName; + type Reviews = S::Reviews; + } + ///State transition - sets the `display_name` field to Set + pub struct SetDisplayName(PhantomData S>); + impl sealed::Sealed for SetDisplayName {} + impl State for SetDisplayName { + type Handle = S::Handle; + type BooksRead = S::BooksRead; + type DisplayName = Set; type Reviews = S::Reviews; } ///State transition - sets the `reviews` field to Set pub struct SetReviews(PhantomData S>); impl sealed::Sealed for SetReviews {} impl State for SetReviews { - type DisplayName = S::DisplayName; type Handle = S::Handle; type BooksRead = S::BooksRead; + type DisplayName = S::DisplayName; type Reviews = 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 `handle` field pub struct handle(()); ///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 `reviews` field pub struct reviews(()); } @@ -1676,9 +1676,9 @@ where impl<'a, S> ProfileBuilder<'a, S> where S: profile_state::State, - S::DisplayName: profile_state::IsSet, S::Handle: profile_state::IsSet, S::BooksRead: profile_state::IsSet, + S::DisplayName: profile_state::IsSet, S::Reviews: profile_state::IsSet, { /// Build the final struct @@ -1812,8 +1812,8 @@ pub mod review_state { pub trait State: sealed::Sealed { type Review; type CreatedAt; - type Did; type Handle; + type Did; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -1821,8 +1821,8 @@ pub mod review_state { impl State for Empty { type Review = Unset; type CreatedAt = Unset; - type Did = Unset; type Handle = Unset; + type Did = Unset; } ///State transition - sets the `review` field to Set pub struct SetReview(PhantomData S>); @@ -1830,8 +1830,8 @@ pub mod review_state { impl State for SetReview { type Review = Set; type CreatedAt = S::CreatedAt; - type Did = S::Did; type Handle = S::Handle; + type Did = S::Did; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); @@ -1839,17 +1839,8 @@ pub mod review_state { impl State for SetCreatedAt { type Review = S::Review; type CreatedAt = Set; - type Did = S::Did; - type Handle = S::Handle; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Review = S::Review; - type CreatedAt = S::CreatedAt; - type Did = Set; type Handle = S::Handle; + type Did = S::Did; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); @@ -1857,8 +1848,17 @@ pub mod review_state { impl State for SetHandle { type Review = S::Review; type CreatedAt = S::CreatedAt; - type Did = S::Did; type Handle = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Review = S::Review; + type CreatedAt = S::CreatedAt; + type Handle = S::Handle; + type Did = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -1867,10 +1867,10 @@ pub mod review_state { pub struct review(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///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(()); } } @@ -1999,8 +1999,8 @@ where S: review_state::State, S::Review: review_state::IsSet, S::CreatedAt: review_state::IsSet, - S::Did: review_state::IsSet, S::Handle: review_state::IsSet, + S::Did: review_state::IsSet, { /// Build the final struct pub fn build(self) -> Review<'a> { @@ -2115,9 +2115,9 @@ pub mod user_book_state { pub trait State: sealed::Sealed { type Title; type Authors; - type HiveId; type CreatedAt; type Thumbnail; + type HiveId; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -2125,9 +2125,9 @@ pub mod user_book_state { impl State for Empty { type Title = Unset; type Authors = Unset; - type HiveId = Unset; type CreatedAt = Unset; type Thumbnail = Unset; + type HiveId = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); @@ -2135,9 +2135,9 @@ pub mod user_book_state { impl State for SetTitle { type Title = Set; type Authors = S::Authors; - type HiveId = S::HiveId; type CreatedAt = S::CreatedAt; type Thumbnail = S::Thumbnail; + type HiveId = S::HiveId; } ///State transition - sets the `authors` field to Set pub struct SetAuthors(PhantomData S>); @@ -2145,19 +2145,9 @@ pub mod user_book_state { impl State for SetAuthors { type Title = S::Title; type Authors = Set; - type HiveId = S::HiveId; - type CreatedAt = S::CreatedAt; - type Thumbnail = S::Thumbnail; - } - ///State transition - sets the `hive_id` field to Set - pub struct SetHiveId(PhantomData S>); - impl sealed::Sealed for SetHiveId {} - impl State for SetHiveId { - type Title = S::Title; - type Authors = S::Authors; - type HiveId = Set; type CreatedAt = S::CreatedAt; type Thumbnail = S::Thumbnail; + type HiveId = S::HiveId; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); @@ -2165,9 +2155,9 @@ pub mod user_book_state { impl State for SetCreatedAt { type Title = S::Title; type Authors = S::Authors; - type HiveId = S::HiveId; type CreatedAt = Set; type Thumbnail = S::Thumbnail; + type HiveId = S::HiveId; } ///State transition - sets the `thumbnail` field to Set pub struct SetThumbnail(PhantomData S>); @@ -2175,9 +2165,19 @@ pub mod user_book_state { impl State for SetThumbnail { type Title = S::Title; type Authors = S::Authors; - type HiveId = S::HiveId; type CreatedAt = S::CreatedAt; type Thumbnail = Set; + type HiveId = S::HiveId; + } + ///State transition - sets the `hive_id` field to Set + pub struct SetHiveId(PhantomData S>); + impl sealed::Sealed for SetHiveId {} + impl State for SetHiveId { + type Title = S::Title; + type Authors = S::Authors; + type CreatedAt = S::CreatedAt; + type Thumbnail = S::Thumbnail; + type HiveId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -2186,12 +2186,12 @@ pub mod user_book_state { pub struct title(()); ///Marker type for the `authors` field pub struct authors(()); - ///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 `thumbnail` field pub struct thumbnail(()); + ///Marker type for the `hive_id` field + pub struct hive_id(()); } } @@ -2479,9 +2479,9 @@ where S: user_book_state::State, S::Title: user_book_state::IsSet, S::Authors: user_book_state::IsSet, - S::HiveId: user_book_state::IsSet, S::CreatedAt: user_book_state::IsSet, S::Thumbnail: user_book_state::IsSet, + S::HiveId: user_book_state::IsSet, { /// Build the final struct pub fn build(self) -> UserBook<'a> { diff --git a/crates/jacquard-api/src/buzz_bookhive/buzz.rs b/crates/jacquard-api/src/buzz_bookhive/buzz.rs index 0be1ff62..af977ff7 100644 --- a/crates/jacquard-api/src/buzz_bookhive/buzz.rs +++ b/crates/jacquard-api/src/buzz_bookhive/buzz.rs @@ -39,67 +39,67 @@ pub mod buzz_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Comment; type CreatedAt; type Book; type Parent; + type Comment; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Comment = Unset; type CreatedAt = Unset; type Book = Unset; type Parent = Unset; - } - ///State transition - sets the `comment` field to Set - pub struct SetComment(PhantomData S>); - impl sealed::Sealed for SetComment {} - impl State for SetComment { - type Comment = Set; - type CreatedAt = S::CreatedAt; - type Book = S::Book; - type Parent = S::Parent; + type Comment = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Comment = S::Comment; type CreatedAt = Set; type Book = S::Book; type Parent = S::Parent; + type Comment = S::Comment; } ///State transition - sets the `book` field to Set pub struct SetBook(PhantomData S>); impl sealed::Sealed for SetBook {} impl State for SetBook { - type Comment = S::Comment; type CreatedAt = S::CreatedAt; type Book = Set; type Parent = S::Parent; + type Comment = S::Comment; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData S>); impl sealed::Sealed for SetParent {} impl State for SetParent { - type Comment = S::Comment; type CreatedAt = S::CreatedAt; type Book = S::Book; type Parent = Set; + type Comment = S::Comment; + } + ///State transition - sets the `comment` field to Set + pub struct SetComment(PhantomData S>); + impl sealed::Sealed for SetComment {} + impl State for SetComment { + type CreatedAt = S::CreatedAt; + type Book = S::Book; + type Parent = S::Parent; + type Comment = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///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 `comment` field + pub struct comment(()); } } @@ -212,10 +212,10 @@ where impl<'a, S> BuzzBuilder<'a, S> where S: buzz_state::State, - S::Comment: buzz_state::IsSet, S::CreatedAt: buzz_state::IsSet, S::Book: buzz_state::IsSet, S::Parent: buzz_state::IsSet, + S::Comment: buzz_state::IsSet, { /// Build the final struct pub fn build(self) -> Buzz<'a> { diff --git a/crates/jacquard-api/src/buzz_bookhive/hive_book.rs b/crates/jacquard-api/src/buzz_bookhive/hive_book.rs index c1300535..0f87341f 100644 --- a/crates/jacquard-api/src/buzz_bookhive/hive_book.rs +++ b/crates/jacquard-api/src/buzz_bookhive/hive_book.rs @@ -72,10 +72,10 @@ pub mod hive_book_state { pub trait State: sealed::Sealed { type Id; type Title; - type Authors; - type CreatedAt; type UpdatedAt; type Thumbnail; + type Authors; + type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -83,10 +83,10 @@ pub mod hive_book_state { impl State for Empty { type Id = Unset; type Title = Unset; - type Authors = Unset; - type CreatedAt = Unset; type UpdatedAt = Unset; type Thumbnail = Unset; + type Authors = Unset; + type CreatedAt = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData S>); @@ -94,10 +94,10 @@ pub mod hive_book_state { impl State for SetId { type Id = Set; type Title = S::Title; - type Authors = S::Authors; - type CreatedAt = S::CreatedAt; type UpdatedAt = S::UpdatedAt; type Thumbnail = S::Thumbnail; + type Authors = S::Authors; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); @@ -105,32 +105,10 @@ pub mod hive_book_state { impl State for SetTitle { type Id = S::Id; type Title = Set; - type Authors = S::Authors; - type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; - type Thumbnail = S::Thumbnail; - } - ///State transition - sets the `authors` field to Set - pub struct SetAuthors(PhantomData S>); - impl sealed::Sealed for SetAuthors {} - impl State for SetAuthors { - type Id = S::Id; - type Title = S::Title; - type Authors = Set; - type CreatedAt = S::CreatedAt; type UpdatedAt = S::UpdatedAt; type Thumbnail = S::Thumbnail; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Id = S::Id; - type Title = S::Title; type Authors = S::Authors; - type CreatedAt = Set; - type UpdatedAt = S::UpdatedAt; - type Thumbnail = S::Thumbnail; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData S>); @@ -138,10 +116,10 @@ pub mod hive_book_state { impl State for SetUpdatedAt { type Id = S::Id; type Title = S::Title; - type Authors = S::Authors; - type CreatedAt = S::CreatedAt; type UpdatedAt = Set; type Thumbnail = S::Thumbnail; + type Authors = S::Authors; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `thumbnail` field to Set pub struct SetThumbnail(PhantomData S>); @@ -149,10 +127,32 @@ pub mod hive_book_state { impl State for SetThumbnail { type Id = S::Id; type Title = S::Title; + type UpdatedAt = S::UpdatedAt; + type Thumbnail = Set; type Authors = S::Authors; type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `authors` field to Set + pub struct SetAuthors(PhantomData S>); + impl sealed::Sealed for SetAuthors {} + impl State for SetAuthors { + type Id = S::Id; + type Title = S::Title; type UpdatedAt = S::UpdatedAt; - type Thumbnail = Set; + type Thumbnail = S::Thumbnail; + type Authors = Set; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Id = S::Id; + type Title = S::Title; + type UpdatedAt = S::UpdatedAt; + type Thumbnail = S::Thumbnail; + type Authors = S::Authors; + type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -161,14 +161,14 @@ pub mod hive_book_state { pub struct id(()); ///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(()); ///Marker type for the `updated_at` field pub struct updated_at(()); ///Marker type for the `thumbnail` field pub struct thumbnail(()); + ///Marker type for the `authors` field + pub struct authors(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -459,10 +459,10 @@ where S: hive_book_state::State, S::Id: hive_book_state::IsSet, S::Title: hive_book_state::IsSet, - S::Authors: hive_book_state::IsSet, - S::CreatedAt: hive_book_state::IsSet, S::UpdatedAt: hive_book_state::IsSet, S::Thumbnail: hive_book_state::IsSet, + S::Authors: hive_book_state::IsSet, + S::CreatedAt: hive_book_state::IsSet, { /// Build the final struct pub fn build(self) -> HiveBook<'a> { diff --git a/crates/jacquard-api/src/chat_bsky/actor.rs b/crates/jacquard-api/src/chat_bsky/actor.rs index ced6c004..0f2ca239 100644 --- a/crates/jacquard-api/src/chat_bsky/actor.rs +++ b/crates/jacquard-api/src/chat_bsky/actor.rs @@ -58,37 +58,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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; type Handle = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = S::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(()); } } @@ -305,8 +305,8 @@ impl<'a, S: profile_view_basic_state::State> ProfileViewBasicBuilder<'a, S> { impl<'a, S> ProfileViewBasicBuilder<'a, S> where S: profile_view_basic_state::State, - S::Did: profile_view_basic_state::IsSet, S::Handle: profile_view_basic_state::IsSet, + S::Did: profile_view_basic_state::IsSet, { /// Build the final struct pub fn build(self) -> ProfileViewBasic<'a> { diff --git a/crates/jacquard-api/src/chat_bsky/convo.rs b/crates/jacquard-api/src/chat_bsky/convo.rs index 811a3047..9e2c1974 100644 --- a/crates/jacquard-api/src/chat_bsky/convo.rs +++ b/crates/jacquard-api/src/chat_bsky/convo.rs @@ -67,84 +67,84 @@ pub mod convo_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Id; - type Rev; type Members; - type Muted; type UnreadCount; + type Rev; + type Muted; } /// 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 Members = Unset; - type Muted = Unset; type UnreadCount = Unset; + type Rev = Unset; + type Muted = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData S>); impl sealed::Sealed for SetId {} impl State for SetId { type Id = Set; - type Rev = S::Rev; type Members = S::Members; - type Muted = S::Muted; type UnreadCount = S::UnreadCount; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData S>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { - type Id = S::Id; - type Rev = Set; - type Members = S::Members; + type Rev = S::Rev; type Muted = S::Muted; - type UnreadCount = S::UnreadCount; } ///State transition - sets the `members` field to Set pub struct SetMembers(PhantomData S>); impl sealed::Sealed for SetMembers {} impl State for SetMembers { type Id = S::Id; - type Rev = S::Rev; type Members = Set; - type Muted = S::Muted; type UnreadCount = S::UnreadCount; - } - ///State transition - sets the `muted` field to Set - pub struct SetMuted(PhantomData S>); - impl sealed::Sealed for SetMuted {} - impl State for SetMuted { - type Id = S::Id; type Rev = S::Rev; - type Members = S::Members; - type Muted = Set; - type UnreadCount = S::UnreadCount; + type Muted = S::Muted; } ///State transition - sets the `unread_count` field to Set pub struct SetUnreadCount(PhantomData S>); impl sealed::Sealed for SetUnreadCount {} impl State for SetUnreadCount { type Id = S::Id; + type Members = S::Members; + type UnreadCount = Set; type Rev = S::Rev; + type Muted = S::Muted; + } + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData S>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Id = S::Id; type Members = S::Members; + type UnreadCount = S::UnreadCount; + type Rev = Set; type Muted = S::Muted; - type UnreadCount = Set; + } + ///State transition - sets the `muted` field to Set + pub struct SetMuted(PhantomData S>); + impl sealed::Sealed for SetMuted {} + impl State for SetMuted { + type Id = S::Id; + type Members = S::Members; + type UnreadCount = S::UnreadCount; + type Rev = S::Rev; + type Muted = 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 `members` field pub struct members(()); - ///Marker type for the `muted` field - pub struct muted(()); ///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(()); } } @@ -335,10 +335,10 @@ impl<'a, S> ConvoViewBuilder<'a, S> where S: convo_view_state::State, S::Id: convo_view_state::IsSet, - S::Rev: convo_view_state::IsSet, S::Members: convo_view_state::IsSet, - S::Muted: convo_view_state::IsSet, S::UnreadCount: convo_view_state::IsSet, + S::Rev: convo_view_state::IsSet, + S::Muted: convo_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ConvoView<'a> { @@ -1648,67 +1648,67 @@ pub mod deleted_message_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; + type SentAt; type Rev; type Sender; - type SentAt; + 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 SentAt = Unset; type Rev = Unset; type Sender = Unset; - type SentAt = Unset; + type Id = Unset; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; + ///State transition - sets the `sent_at` field to Set + pub struct SetSentAt(PhantomData S>); + impl sealed::Sealed for SetSentAt {} + impl State for SetSentAt { + type SentAt = Set; type Rev = S::Rev; type Sender = S::Sender; - type SentAt = S::SentAt; + type Id = S::Id; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData S>); impl sealed::Sealed for SetRev {} impl State for SetRev { - type Id = S::Id; + type SentAt = S::SentAt; type Rev = Set; type Sender = S::Sender; - type SentAt = S::SentAt; + type Id = S::Id; } ///State transition - sets the `sender` field to Set pub struct SetSender(PhantomData S>); impl sealed::Sealed for SetSender {} impl State for SetSender { - type Id = S::Id; + type SentAt = S::SentAt; type Rev = S::Rev; type Sender = Set; - type SentAt = S::SentAt; - } - ///State transition - sets the `sent_at` field to Set - pub struct SetSentAt(PhantomData S>); - impl sealed::Sealed for SetSentAt {} - impl State for SetSentAt { type Id = S::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type SentAt = S::SentAt; type Rev = S::Rev; type Sender = S::Sender; - type SentAt = 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 `sent_at` field + pub struct sent_at(()); ///Marker type for the `rev` field pub struct rev(()); ///Marker type for the `sender` field pub struct sender(()); - ///Marker type for the `sent_at` field - pub struct sent_at(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -1821,10 +1821,10 @@ where impl<'a, S> DeletedMessageViewBuilder<'a, S> where S: deleted_message_view_state::State, - S::Id: deleted_message_view_state::IsSet, + S::SentAt: deleted_message_view_state::IsSet, S::Rev: deleted_message_view_state::IsSet, S::Sender: deleted_message_view_state::IsSet, - S::SentAt: deleted_message_view_state::IsSet, + S::Id: deleted_message_view_state::IsSet, { /// Build the final struct pub fn build(self) -> DeletedMessageView<'a> { @@ -2247,51 +2247,51 @@ pub mod log_create_message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Message; type Rev; type ConvoId; - 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 Rev = Unset; type ConvoId = Unset; - type Message = Unset; + } + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData S>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; + type Rev = S::Rev; + type ConvoId = S::ConvoId; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData S>); impl sealed::Sealed for SetRev {} impl State for SetRev { + type Message = S::Message; type Rev = Set; type ConvoId = S::ConvoId; - type Message = S::Message; } ///State transition - sets the `convo_id` field to Set pub struct SetConvoId(PhantomData S>); impl sealed::Sealed for SetConvoId {} impl State for SetConvoId { - type Rev = S::Rev; - type ConvoId = Set; type Message = S::Message; - } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData S>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { type Rev = S::Rev; - type ConvoId = S::ConvoId; - type Message = Set; + type ConvoId = 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 `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(()); } } @@ -2384,9 +2384,9 @@ where impl<'a, S> LogCreateMessageBuilder<'a, S> where S: log_create_message_state::State, + S::Message: log_create_message_state::IsSet, S::Rev: log_create_message_state::IsSet, S::ConvoId: log_create_message_state::IsSet, - S::Message: log_create_message_state::IsSet, { /// Build the final struct pub fn build(self) -> LogCreateMessage<'a> { @@ -2480,51 +2480,51 @@ pub mod log_delete_message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Message; type Rev; type ConvoId; - 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 Rev = Unset; type ConvoId = Unset; - type Message = Unset; + } + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData S>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; + type Rev = S::Rev; + type ConvoId = S::ConvoId; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData S>); impl sealed::Sealed for SetRev {} impl State for SetRev { + type Message = S::Message; type Rev = Set; type ConvoId = S::ConvoId; - type Message = S::Message; } ///State transition - sets the `convo_id` field to Set pub struct SetConvoId(PhantomData S>); impl sealed::Sealed for SetConvoId {} impl State for SetConvoId { - type Rev = S::Rev; - type ConvoId = Set; type Message = S::Message; - } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData S>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { type Rev = S::Rev; - type ConvoId = S::ConvoId; - type Message = Set; + type ConvoId = 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 `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(()); } } @@ -2617,9 +2617,9 @@ where impl<'a, S> LogDeleteMessageBuilder<'a, S> where S: log_delete_message_state::State, + S::Message: log_delete_message_state::IsSet, S::Rev: log_delete_message_state::IsSet, S::ConvoId: log_delete_message_state::IsSet, - S::Message: log_delete_message_state::IsSet, { /// Build the final struct pub fn build(self) -> LogDeleteMessage<'a> { @@ -2785,51 +2785,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 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 S>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { - type Rev = Set; + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData S>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; type ConvoId = S::ConvoId; - type Message = S::Message; + type Rev = S::Rev; } ///State transition - sets the `convo_id` field to Set pub struct SetConvoId(PhantomData S>); impl sealed::Sealed for SetConvoId {} impl State for SetConvoId { - type Rev = S::Rev; - type ConvoId = Set; type Message = S::Message; - } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData S>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { + type ConvoId = Set; type Rev = S::Rev; + } + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData S>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Message = S::Message; type ConvoId = S::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(()); } } @@ -2922,9 +2922,9 @@ where impl<'a, S> LogReadMessageBuilder<'a, S> where S: log_read_message_state::State, - S::Rev: log_read_message_state::IsSet, - S::ConvoId: log_read_message_state::IsSet, S::Message: log_read_message_state::IsSet, + S::ConvoId: log_read_message_state::IsSet, + S::Rev: log_read_message_state::IsSet, { /// Build the final struct pub fn build(self) -> LogReadMessage<'a> { @@ -3020,67 +3020,67 @@ pub mod log_remove_reaction_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Reaction; type Rev; type ConvoId; type Message; - type Reaction; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Reaction = Unset; type Rev = Unset; type ConvoId = Unset; type Message = Unset; - type Reaction = Unset; + } + ///State transition - sets the `reaction` field to Set + pub struct SetReaction(PhantomData S>); + impl sealed::Sealed for SetReaction {} + impl State for SetReaction { + type Reaction = Set; + type Rev = S::Rev; + type ConvoId = S::ConvoId; + type Message = S::Message; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData S>); impl sealed::Sealed for SetRev {} impl State for SetRev { + type Reaction = S::Reaction; type Rev = Set; type ConvoId = S::ConvoId; type Message = S::Message; - type Reaction = S::Reaction; } ///State transition - sets the `convo_id` field to Set pub struct SetConvoId(PhantomData S>); impl sealed::Sealed for SetConvoId {} impl State for SetConvoId { + type Reaction = S::Reaction; type Rev = S::Rev; type ConvoId = Set; type Message = S::Message; - type Reaction = S::Reaction; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData S>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type Rev = S::Rev; - type ConvoId = S::ConvoId; - type Message = Set; type Reaction = S::Reaction; - } - ///State transition - sets the `reaction` field to Set - pub struct SetReaction(PhantomData S>); - impl sealed::Sealed for SetReaction {} - impl State for SetReaction { type Rev = S::Rev; type ConvoId = S::ConvoId; - type Message = S::Message; - type Reaction = Set; + type Message = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///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(()); ///Marker type for the `message` field pub struct message(()); - ///Marker type for the `reaction` field - pub struct reaction(()); } } @@ -3193,10 +3193,10 @@ where impl<'a, S> LogRemoveReactionBuilder<'a, S> where S: log_remove_reaction_state::State, + S::Reaction: log_remove_reaction_state::IsSet, S::Rev: log_remove_reaction_state::IsSet, S::ConvoId: log_remove_reaction_state::IsSet, S::Message: log_remove_reaction_state::IsSet, - S::Reaction: log_remove_reaction_state::IsSet, { /// Build the final struct pub fn build(self) -> LogRemoveReaction<'a> { @@ -3586,50 +3586,50 @@ 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 MessageId; } /// 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; + type MessageId = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { type Did = Set; - type MessageId = S::MessageId; - type ConvoId = S::ConvoId; - } - ///State transition - sets the `message_id` field to Set - pub struct SetMessageId(PhantomData S>); - impl sealed::Sealed for SetMessageId {} - impl State for SetMessageId { - type Did = S::Did; - type MessageId = Set; type ConvoId = S::ConvoId; + type MessageId = S::MessageId; } ///State transition - sets the `convo_id` field to Set pub struct SetConvoId(PhantomData S>); impl sealed::Sealed for SetConvoId {} impl State for SetConvoId { type Did = S::Did; - type MessageId = S::MessageId; type ConvoId = Set; + type MessageId = S::MessageId; + } + ///State transition - sets the `message_id` field to Set + pub struct SetMessageId(PhantomData S>); + impl sealed::Sealed for SetMessageId {} + impl State for SetMessageId { + type Did = S::Did; + type ConvoId = S::ConvoId; + type MessageId = 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 `message_id` field + pub struct message_id(()); } } @@ -3723,8 +3723,8 @@ impl<'a, S> MessageRefBuilder<'a, S> where S: message_ref_state::State, S::Did: message_ref_state::IsSet, - S::MessageId: message_ref_state::IsSet, S::ConvoId: message_ref_state::IsSet, + S::MessageId: message_ref_state::IsSet, { /// Build the final struct pub fn build(self) -> MessageRef<'a> { @@ -3813,85 +3813,85 @@ pub mod message_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; - type Rev; + type SentAt; type Text; + type Id; type Sender; - type SentAt; + type Rev; } /// 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 Text = Unset; + type Id = Unset; type Sender = Unset; - type SentAt = Unset; + type Rev = Unset; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type Rev = S::Rev; + ///State transition - sets the `sent_at` field to Set + pub struct SetSentAt(PhantomData S>); + impl sealed::Sealed for SetSentAt {} + impl State for SetSentAt { + type SentAt = Set; type Text = S::Text; - type Sender = S::Sender; - type SentAt = S::SentAt; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData S>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { type Id = S::Id; - type Rev = Set; - type Text = S::Text; type Sender = S::Sender; - type SentAt = S::SentAt; + type Rev = S::Rev; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData S>); impl sealed::Sealed for SetText {} impl State for SetText { - type Id = S::Id; - type Rev = S::Rev; + type SentAt = S::SentAt; type Text = Set; + type Id = S::Id; type Sender = S::Sender; + type Rev = S::Rev; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { type SentAt = S::SentAt; + type Text = S::Text; + type Id = Set; + type Sender = S::Sender; + type Rev = S::Rev; } ///State transition - sets the `sender` field to Set pub struct SetSender(PhantomData S>); impl sealed::Sealed for SetSender {} impl State for SetSender { - type Id = S::Id; - type Rev = S::Rev; - type Text = S::Text; - type Sender = Set; type SentAt = S::SentAt; - } - ///State transition - sets the `sent_at` field to Set - pub struct SetSentAt(PhantomData S>); - impl sealed::Sealed for SetSentAt {} - impl State for SetSentAt { + type Text = S::Text; type Id = S::Id; + type Sender = Set; type Rev = S::Rev; + } + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData S>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type SentAt = S::SentAt; type Text = S::Text; + type Id = S::Id; type Sender = S::Sender; - type SentAt = Set; + type Rev = 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 `text` field pub struct text(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `sender` field pub struct sender(()); - ///Marker type for the `sent_at` field - pub struct sent_at(()); + ///Marker type for the `rev` field + pub struct rev(()); } } @@ -4084,11 +4084,11 @@ where impl<'a, S> MessageViewBuilder<'a, S> where S: message_view_state::State, - S::Id: message_view_state::IsSet, - S::Rev: message_view_state::IsSet, + S::SentAt: message_view_state::IsSet, S::Text: message_view_state::IsSet, + S::Id: message_view_state::IsSet, S::Sender: message_view_state::IsSet, - S::SentAt: message_view_state::IsSet, + S::Rev: message_view_state::IsSet, { /// Build the final struct pub fn build(self) -> MessageView<'a> { diff --git a/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs b/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs index 0cc7b4bf..4b541df5 100644 --- a/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs +++ b/crates/jacquard-api/src/chat_bsky/convo/send_message_batch.rs @@ -33,37 +33,37 @@ pub mod batch_item_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 S>); - impl sealed::Sealed for SetConvoId {} - impl State for SetConvoId { - type ConvoId = Set; - type Message = S::Message; + type ConvoId = Unset; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData S>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type ConvoId = S::ConvoId; type Message = Set; + type ConvoId = S::ConvoId; + } + ///State transition - sets the `convo_id` field to Set + pub struct SetConvoId(PhantomData S>); + impl sealed::Sealed for SetConvoId {} + impl State for SetConvoId { + type Message = S::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(()); } } @@ -136,8 +136,8 @@ where impl<'a, S> BatchItemBuilder<'a, S> where S: batch_item_state::State, - S::ConvoId: batch_item_state::IsSet, S::Message: batch_item_state::IsSet, + S::ConvoId: batch_item_state::IsSet, { /// Build the final struct pub fn build(self) -> BatchItem<'a> { diff --git a/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs b/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs index ebdd92b2..b93c5d19 100644 --- a/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs +++ b/crates/jacquard-api/src/chat_bsky/moderation/update_actor_access.rs @@ -35,37 +35,37 @@ pub mod update_actor_access_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Actor; type AllowAccess; + 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 AllowAccess = Unset; - } - ///State transition - sets the `actor` field to Set - pub struct SetActor(PhantomData S>); - impl sealed::Sealed for SetActor {} - impl State for SetActor { - type Actor = Set; - type AllowAccess = S::AllowAccess; + type Actor = Unset; } ///State transition - sets the `allow_access` field to Set pub struct SetAllowAccess(PhantomData S>); impl sealed::Sealed for SetAllowAccess {} impl State for SetAllowAccess { - type Actor = S::Actor; type AllowAccess = Set; + type Actor = S::Actor; + } + ///State transition - sets the `actor` field to Set + pub struct SetActor(PhantomData S>); + impl sealed::Sealed for SetActor {} + impl State for SetActor { + type AllowAccess = S::AllowAccess; + 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 `allow_access` field pub struct allow_access(()); + ///Marker type for the `actor` field + pub struct actor(()); } } @@ -155,8 +155,8 @@ impl<'a, S: update_actor_access_state::State> UpdateActorAccessBuilder<'a, S> { impl<'a, S> UpdateActorAccessBuilder<'a, S> where S: update_actor_access_state::State, - S::Actor: update_actor_access_state::IsSet, S::AllowAccess: update_actor_access_state::IsSet, + S::Actor: update_actor_access_state::IsSet, { /// Build the final struct pub fn build(self) -> UpdateActorAccess<'a> { 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 f85a1201..35ac3566 100644 --- a/crates/jacquard-api/src/club_stellz/evm/address_control.rs +++ b/crates/jacquard-api/src/club_stellz/evm/address_control.rs @@ -539,151 +539,151 @@ pub mod siwe_message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Domain; + type ChainId; + type Version; + type Uri; + type IssuedAt; type Address; type Statement; - type Uri; - type Version; - type ChainId; + type Domain; type Nonce; - type IssuedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Domain = Unset; + type ChainId = Unset; + type Version = Unset; + type Uri = Unset; + type IssuedAt = Unset; type Address = Unset; type Statement = Unset; - type Uri = Unset; - type Version = Unset; - type ChainId = Unset; + type Domain = Unset; type Nonce = Unset; - type IssuedAt = Unset; } - ///State transition - sets the `domain` field to Set - pub struct SetDomain(PhantomData S>); - impl sealed::Sealed for SetDomain {} - impl State for SetDomain { - type Domain = Set; + ///State transition - sets the `chain_id` field to Set + pub struct SetChainId(PhantomData S>); + impl sealed::Sealed for SetChainId {} + impl State for SetChainId { + type ChainId = Set; + type Version = S::Version; + type Uri = S::Uri; + type IssuedAt = S::IssuedAt; type Address = S::Address; type Statement = S::Statement; + type Domain = S::Domain; + type Nonce = S::Nonce; + } + ///State transition - sets the `version` field to Set + pub struct SetVersion(PhantomData S>); + impl sealed::Sealed for SetVersion {} + impl State for SetVersion { + type ChainId = S::ChainId; + type Version = Set; type Uri = S::Uri; + type IssuedAt = S::IssuedAt; + type Address = S::Address; + type Statement = S::Statement; + type Domain = S::Domain; + type Nonce = S::Nonce; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type ChainId = S::ChainId; type Version = S::Version; + type Uri = Set; + type IssuedAt = S::IssuedAt; + type Address = S::Address; + type Statement = S::Statement; + type Domain = S::Domain; + type Nonce = S::Nonce; + } + ///State transition - sets the `issued_at` field to Set + pub struct SetIssuedAt(PhantomData S>); + impl sealed::Sealed for SetIssuedAt {} + impl State for SetIssuedAt { type ChainId = S::ChainId; + type Version = S::Version; + type Uri = S::Uri; + type IssuedAt = Set; + type Address = S::Address; + type Statement = S::Statement; + type Domain = S::Domain; type Nonce = S::Nonce; - type IssuedAt = S::IssuedAt; } ///State transition - sets the `address` field to Set pub struct SetAddress(PhantomData S>); impl sealed::Sealed for SetAddress {} impl State for SetAddress { - type Domain = S::Domain; + type ChainId = S::ChainId; + type Version = S::Version; + type Uri = S::Uri; + type IssuedAt = S::IssuedAt; type Address = Set; type Statement = S::Statement; - type Uri = S::Uri; - type Version = S::Version; - type ChainId = S::ChainId; + type Domain = S::Domain; type Nonce = S::Nonce; - type IssuedAt = S::IssuedAt; } ///State transition - sets the `statement` field to Set pub struct SetStatement(PhantomData S>); impl sealed::Sealed for SetStatement {} impl State for SetStatement { - type Domain = S::Domain; - type Address = S::Address; - type Statement = Set; - type Uri = S::Uri; - type Version = S::Version; type ChainId = S::ChainId; - type Nonce = S::Nonce; + type Version = S::Version; + type Uri = S::Uri; type IssuedAt = S::IssuedAt; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Domain = S::Domain; type Address = S::Address; - type Statement = S::Statement; - type Uri = Set; - type Version = S::Version; - type ChainId = S::ChainId; + type Statement = Set; + type Domain = S::Domain; type Nonce = S::Nonce; - type IssuedAt = S::IssuedAt; } - ///State transition - sets the `version` field to Set - pub struct SetVersion(PhantomData S>); - impl sealed::Sealed for SetVersion {} - impl State for SetVersion { - type Domain = S::Domain; - type Address = S::Address; - type Statement = S::Statement; - type Uri = S::Uri; - type Version = Set; + ///State transition - sets the `domain` field to Set + pub struct SetDomain(PhantomData S>); + impl sealed::Sealed for SetDomain {} + impl State for SetDomain { type ChainId = S::ChainId; - type Nonce = S::Nonce; + type Version = S::Version; + type Uri = S::Uri; type IssuedAt = S::IssuedAt; - } - ///State transition - sets the `chain_id` field to Set - pub struct SetChainId(PhantomData S>); - impl sealed::Sealed for SetChainId {} - impl State for SetChainId { - type Domain = S::Domain; type Address = S::Address; type Statement = S::Statement; - type Uri = S::Uri; - type Version = S::Version; - type ChainId = Set; + type Domain = Set; type Nonce = S::Nonce; - type IssuedAt = S::IssuedAt; } ///State transition - sets the `nonce` field to Set pub struct SetNonce(PhantomData S>); impl sealed::Sealed for SetNonce {} impl State for SetNonce { - type Domain = S::Domain; - type Address = S::Address; - type Statement = S::Statement; - type Uri = S::Uri; - type Version = S::Version; type ChainId = S::ChainId; - type Nonce = Set; + type Version = S::Version; + type Uri = S::Uri; type IssuedAt = S::IssuedAt; - } - ///State transition - sets the `issued_at` field to Set - pub struct SetIssuedAt(PhantomData S>); - impl sealed::Sealed for SetIssuedAt {} - impl State for SetIssuedAt { - type Domain = S::Domain; type Address = S::Address; type Statement = S::Statement; - type Uri = S::Uri; - type Version = S::Version; - type ChainId = S::ChainId; - type Nonce = S::Nonce; - type IssuedAt = Set; + type Domain = S::Domain; + type Nonce = 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 `chain_id` field + pub struct chain_id(()); + ///Marker type for the `version` field + pub struct version(()); + ///Marker type for the `uri` field + pub struct uri(()); + ///Marker type for the `issued_at` field + pub struct issued_at(()); ///Marker type for the `address` field pub struct address(()); ///Marker type for the `statement` field pub struct statement(()); - ///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 `domain` field + pub struct domain(()); ///Marker type for the `nonce` field pub struct nonce(()); - ///Marker type for the `issued_at` field - pub struct issued_at(()); } } @@ -876,14 +876,14 @@ where impl<'a, S> SiweMessageBuilder<'a, S> where S: siwe_message_state::State, - S::Domain: siwe_message_state::IsSet, + S::ChainId: siwe_message_state::IsSet, + S::Version: siwe_message_state::IsSet, + S::Uri: siwe_message_state::IsSet, + S::IssuedAt: siwe_message_state::IsSet, S::Address: siwe_message_state::IsSet, S::Statement: siwe_message_state::IsSet, - S::Uri: siwe_message_state::IsSet, - S::Version: siwe_message_state::IsSet, - S::ChainId: siwe_message_state::IsSet, + S::Domain: siwe_message_state::IsSet, S::Nonce: siwe_message_state::IsSet, - S::IssuedAt: siwe_message_state::IsSet, { /// Build the final struct pub fn build(self) -> SiweMessage<'a> { diff --git a/crates/jacquard-api/src/com_atproto/admin.rs b/crates/jacquard-api/src/com_atproto/admin.rs index 722a3612..36d9db84 100644 --- a/crates/jacquard-api/src/com_atproto/admin.rs +++ b/crates/jacquard-api/src/com_atproto/admin.rs @@ -80,49 +80,49 @@ pub mod account_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Handle; + type Did; type IndexedAt; } /// 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 IndexedAt = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; - type IndexedAt = S::IndexedAt; - } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; type Handle = Set; + type Did = S::Did; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = S::Handle; + type Did = Set; type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Did = S::Did; type Handle = S::Handle; + type Did = S::Did; type IndexedAt = 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 `indexed_at` field pub struct indexed_at(()); } @@ -401,8 +401,8 @@ impl<'a, S: account_view_state::State> AccountViewBuilder<'a, S> { impl<'a, S> AccountViewBuilder<'a, S> where S: account_view_state::State, - S::Did: account_view_state::IsSet, S::Handle: account_view_state::IsSet, + S::Did: account_view_state::IsSet, S::IndexedAt: account_view_state::IsSet, { /// Build the final struct 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 47b3dfeb..b3862214 100644 --- a/crates/jacquard-api/src/com_atproto/admin/send_email.rs +++ b/crates/jacquard-api/src/com_atproto/admin/send_email.rs @@ -42,51 +42,51 @@ 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 SenderDid; } /// 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 SenderDid = Unset; + } + ///State transition - sets the `sender_did` field to Set + pub struct SetSenderDid(PhantomData S>); + impl sealed::Sealed for SetSenderDid {} + impl State for SetSenderDid { + type SenderDid = Set; + type RecipientDid = S::RecipientDid; + type Content = S::Content; } ///State transition - sets the `recipient_did` field to Set pub struct SetRecipientDid(PhantomData S>); impl sealed::Sealed for SetRecipientDid {} impl State for SetRecipientDid { + type SenderDid = S::SenderDid; type RecipientDid = Set; type Content = S::Content; - type SenderDid = S::SenderDid; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData S>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type RecipientDid = S::RecipientDid; - type Content = Set; type SenderDid = S::SenderDid; - } - ///State transition - sets the `sender_did` field to Set - pub struct SetSenderDid(PhantomData S>); - impl sealed::Sealed for SetSenderDid {} - impl State for SetSenderDid { type RecipientDid = S::RecipientDid; - type Content = S::Content; - type SenderDid = Set; + type Content = 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 `sender_did` field - pub struct sender_did(()); } } @@ -213,9 +213,9 @@ impl<'a, S: send_email_state::State> SendEmailBuilder<'a, S> { impl<'a, S> SendEmailBuilder<'a, S> where S: send_email_state::State, + S::SenderDid: send_email_state::IsSet, S::RecipientDid: send_email_state::IsSet, S::Content: send_email_state::IsSet, - S::SenderDid: send_email_state::IsSet, { /// Build the final struct pub fn build(self) -> SendEmail<'a> { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs index cf27c636..24aebdcd 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_email.rs @@ -34,37 +34,37 @@ pub mod update_account_email_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Account; type Email; + type Account; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Account = Unset; type Email = Unset; - } - ///State transition - sets the `account` field to Set - pub struct SetAccount(PhantomData S>); - impl sealed::Sealed for SetAccount {} - impl State for SetAccount { - type Account = Set; - type Email = S::Email; + type Account = Unset; } ///State transition - sets the `email` field to Set pub struct SetEmail(PhantomData S>); impl sealed::Sealed for SetEmail {} impl State for SetEmail { - type Account = S::Account; type Email = Set; + type Account = S::Account; + } + ///State transition - sets the `account` field to Set + pub struct SetAccount(PhantomData S>); + impl sealed::Sealed for SetAccount {} + impl State for SetAccount { + type Email = S::Email; + type Account = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `account` field - pub struct account(()); ///Marker type for the `email` field pub struct email(()); + ///Marker type for the `account` field + pub struct account(()); } } @@ -137,8 +137,8 @@ where impl<'a, S> UpdateAccountEmailBuilder<'a, S> where S: update_account_email_state::State, - S::Account: update_account_email_state::IsSet, S::Email: update_account_email_state::IsSet, + S::Account: update_account_email_state::IsSet, { /// Build the final struct pub fn build(self) -> UpdateAccountEmail<'a> { diff --git a/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs b/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs index 021ff619..edb89719 100644 --- a/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs +++ b/crates/jacquard-api/src/com_atproto/admin/update_account_handle.rs @@ -33,37 +33,37 @@ pub mod update_account_handle_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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; type Handle = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = S::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(()); } } @@ -136,8 +136,8 @@ where impl<'a, S> UpdateAccountHandleBuilder<'a, S> where S: update_account_handle_state::State, - S::Did: update_account_handle_state::IsSet, S::Handle: update_account_handle_state::IsSet, + S::Did: update_account_handle_state::IsSet, { /// Build the final struct pub fn build(self) -> UpdateAccountHandle<'a> { 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 aae15746..e0cf07f9 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 @@ -34,37 +34,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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type SigningKey = S::SigningKey; + type Did = Unset; } ///State transition - sets the `signing_key` field to Set pub struct SetSigningKey(PhantomData S>); impl sealed::Sealed for SetSigningKey {} impl State for SetSigningKey { - type Did = S::Did; type SigningKey = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type SigningKey = S::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(()); } } @@ -149,8 +149,8 @@ where impl<'a, S> UpdateAccountSigningKeyBuilder<'a, S> where S: update_account_signing_key_state::State, - S::Did: update_account_signing_key_state::IsSet, S::SigningKey: update_account_signing_key_state::IsSet, + S::Did: update_account_signing_key_state::IsSet, { /// Build the final struct pub fn build(self) -> UpdateAccountSigningKey<'a> { diff --git a/crates/jacquard-api/src/com_atproto/identity.rs b/crates/jacquard-api/src/com_atproto/identity.rs index 6e752d07..c24ac7d3 100644 --- a/crates/jacquard-api/src/com_atproto/identity.rs +++ b/crates/jacquard-api/src/com_atproto/identity.rs @@ -47,51 +47,51 @@ pub mod identity_info_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type DidDoc; type Did; type Handle; - type DidDoc; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type DidDoc = Unset; type Did = Unset; type Handle = Unset; - type DidDoc = Unset; + } + ///State transition - sets the `did_doc` field to Set + pub struct SetDidDoc(PhantomData S>); + impl sealed::Sealed for SetDidDoc {} + impl State for SetDidDoc { + type DidDoc = Set; + type Did = S::Did; + type Handle = S::Handle; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { + type DidDoc = S::DidDoc; type Did = Set; type Handle = S::Handle; - type DidDoc = S::DidDoc; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; - type Handle = Set; type DidDoc = S::DidDoc; - } - ///State transition - sets the `did_doc` field to Set - pub struct SetDidDoc(PhantomData S>); - impl sealed::Sealed for SetDidDoc {} - impl State for SetDidDoc { type Did = S::Did; - type Handle = S::Handle; - type DidDoc = Set; + type Handle = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `did_doc` field + pub struct did_doc(()); ///Marker type for the `did` field pub struct did(()); ///Marker type for the `handle` field pub struct handle(()); - ///Marker type for the `did_doc` field - pub struct did_doc(()); } } @@ -184,9 +184,9 @@ where impl<'a, S> IdentityInfoBuilder<'a, S> where S: identity_info_state::State, + S::DidDoc: identity_info_state::IsSet, S::Did: identity_info_state::IsSet, S::Handle: identity_info_state::IsSet, - S::DidDoc: identity_info_state::IsSet, { /// Build the final struct pub fn build(self) -> IdentityInfo<'a> { diff --git a/crates/jacquard-api/src/com_atproto/label.rs b/crates/jacquard-api/src/com_atproto/label.rs index 4ffbbb32..c7e294da 100644 --- a/crates/jacquard-api/src/com_atproto/label.rs +++ b/crates/jacquard-api/src/com_atproto/label.rs @@ -63,67 +63,67 @@ pub mod label_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Cts; type Src; - type Uri; type Val; - type Cts; + type Uri; } /// 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 Val = Unset; - type Cts = Unset; + type Uri = Unset; + } + ///State transition - sets the `cts` field to Set + pub struct SetCts(PhantomData S>); + impl sealed::Sealed for SetCts {} + impl State for SetCts { + type Cts = Set; + type Src = S::Src; + type Val = S::Val; + type Uri = S::Uri; } ///State transition - sets the `src` field to Set pub struct SetSrc(PhantomData S>); impl sealed::Sealed for SetSrc {} impl State for SetSrc { - type Src = Set; - type Uri = S::Uri; - type Val = S::Val; type Cts = S::Cts; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Src = S::Src; - type Uri = Set; + type Src = Set; type Val = S::Val; - type Cts = S::Cts; + type Uri = S::Uri; } ///State transition - sets the `val` field to Set pub struct SetVal(PhantomData S>); impl sealed::Sealed for SetVal {} impl State for SetVal { + type Cts = S::Cts; type Src = S::Src; - type Uri = S::Uri; type Val = Set; - type Cts = S::Cts; + type Uri = S::Uri; } - ///State transition - sets the `cts` field to Set - pub struct SetCts(PhantomData S>); - impl sealed::Sealed for SetCts {} - impl State for SetCts { + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cts = S::Cts; type Src = S::Src; - type Uri = S::Uri; type Val = S::Val; - type Cts = Set; + type Uri = 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 `val` field pub struct val(()); - ///Marker type for the `cts` field - pub struct cts(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -328,10 +328,10 @@ impl<'a, S: label_state::State> LabelBuilder<'a, S> { impl<'a, S> LabelBuilder<'a, S> where S: label_state::State, + S::Cts: label_state::IsSet, S::Src: label_state::IsSet, - S::Uri: label_state::IsSet, S::Val: label_state::IsSet, - S::Cts: label_state::IsSet, + S::Uri: label_state::IsSet, { /// Build the final struct pub fn build(self) -> Label<'a> { @@ -1053,67 +1053,67 @@ pub mod label_value_definition_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Locales; + type Blurs; type Identifier; type Severity; - type Blurs; - type Locales; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Locales = Unset; + type Blurs = Unset; type Identifier = Unset; type Severity = Unset; - type Blurs = Unset; - type Locales = Unset; + } + ///State transition - sets the `locales` field to Set + pub struct SetLocales(PhantomData S>); + impl sealed::Sealed for SetLocales {} + impl State for SetLocales { + type Locales = Set; + type Blurs = S::Blurs; + type Identifier = S::Identifier; + type Severity = S::Severity; + } + ///State transition - sets the `blurs` field to Set + pub struct SetBlurs(PhantomData S>); + impl sealed::Sealed for SetBlurs {} + impl State for SetBlurs { + type Locales = S::Locales; + type Blurs = Set; + type Identifier = S::Identifier; + type Severity = S::Severity; } ///State transition - sets the `identifier` field to Set pub struct SetIdentifier(PhantomData S>); impl sealed::Sealed for SetIdentifier {} impl State for SetIdentifier { + type Locales = S::Locales; + type Blurs = S::Blurs; type Identifier = Set; type Severity = S::Severity; - type Blurs = S::Blurs; - type Locales = S::Locales; } ///State transition - sets the `severity` field to Set pub struct SetSeverity(PhantomData S>); impl sealed::Sealed for SetSeverity {} impl State for SetSeverity { - type Identifier = S::Identifier; - type Severity = Set; - type Blurs = S::Blurs; type Locales = S::Locales; - } - ///State transition - sets the `blurs` field to Set - pub struct SetBlurs(PhantomData S>); - impl sealed::Sealed for SetBlurs {} - impl State for SetBlurs { - type Identifier = S::Identifier; - type Severity = S::Severity; - type Blurs = Set; - type Locales = S::Locales; - } - ///State transition - sets the `locales` field to Set - pub struct SetLocales(PhantomData S>); - impl sealed::Sealed for SetLocales {} - impl State for SetLocales { - type Identifier = S::Identifier; - type Severity = S::Severity; type Blurs = S::Blurs; - type Locales = Set; + type Identifier = S::Identifier; + type Severity = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `locales` field + pub struct locales(()); + ///Marker type for the `blurs` field + pub struct blurs(()); ///Marker type for the `identifier` field pub struct identifier(()); ///Marker type for the `severity` field pub struct severity(()); - ///Marker type for the `blurs` field - pub struct blurs(()); - ///Marker type for the `locales` field - pub struct locales(()); } } @@ -1268,10 +1268,10 @@ where impl<'a, S> LabelValueDefinitionBuilder<'a, S> where S: label_value_definition_state::State, + S::Locales: label_value_definition_state::IsSet, + S::Blurs: label_value_definition_state::IsSet, S::Identifier: label_value_definition_state::IsSet, S::Severity: label_value_definition_state::IsSet, - S::Blurs: label_value_definition_state::IsSet, - S::Locales: label_value_definition_state::IsSet, { /// Build the final struct pub fn build(self) -> LabelValueDefinition<'a> { 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 16632c82..09b45a15 100644 --- a/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs +++ b/crates/jacquard-api/src/com_atproto/repo/apply_writes.rs @@ -42,37 +42,37 @@ pub mod create_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Collection; type Value; + 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 Value = Unset; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData S>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Collection = Set; - type Value = S::Value; + type Collection = Unset; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Collection = S::Collection; type Value = Set; + type Collection = S::Collection; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData S>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type Value = S::Value; + 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 `value` field pub struct value(()); + ///Marker type for the `collection` field + pub struct collection(()); } } @@ -179,8 +179,8 @@ where impl<'a, S> CreateBuilder<'a, S> where S: create_state::State, - S::Collection: create_state::IsSet, S::Value: create_state::IsSet, + S::Collection: create_state::IsSet, { /// Build the final struct pub fn build(self) -> Create<'a> { 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 6e91b26a..e0abb999 100644 --- a/crates/jacquard-api/src/com_atproto/repo/create_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/create_record.rs @@ -53,49 +53,49 @@ pub mod create_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Collection; + type Repo; type Record; } /// 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 Repo = Unset; type Record = Unset; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Collection = S::Collection; - type Record = S::Record; - } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData S>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Repo = S::Repo; type Collection = Set; + type Repo = S::Repo; + type Record = S::Record; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Collection = S::Collection; + type Repo = Set; type Record = S::Record; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Repo = S::Repo; type Collection = S::Collection; + type Repo = S::Repo; type Record = 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 `repo` field + pub struct repo(()); ///Marker type for the `record` field pub struct record(()); } @@ -258,8 +258,8 @@ impl<'a, S: create_record_state::State> CreateRecordBuilder<'a, S> { impl<'a, S> CreateRecordBuilder<'a, S> where S: create_record_state::State, - S::Repo: create_record_state::IsSet, S::Collection: create_record_state::IsSet, + S::Repo: create_record_state::IsSet, S::Record: create_record_state::IsSet, { /// Build the final struct 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 827955a7..7cc233f1 100644 --- a/crates/jacquard-api/src/com_atproto/repo/get_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/get_record.rs @@ -39,49 +39,49 @@ pub mod get_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Collection; + 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 Repo = Unset; type Rkey = Unset; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Collection = S::Collection; - type Rkey = S::Rkey; - } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData S>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Repo = S::Repo; type Collection = Set; + type Repo = S::Repo; + type Rkey = S::Rkey; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Collection = S::Collection; + type Repo = Set; type Rkey = S::Rkey; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData S>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Repo = S::Repo; type Collection = S::Collection; + type Repo = S::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 `repo` field + pub struct repo(()); ///Marker type for the `rkey` field pub struct rkey(()); } @@ -204,8 +204,8 @@ where impl<'a, S> GetRecordBuilder<'a, S> where S: get_record_state::State, - S::Repo: get_record_state::IsSet, S::Collection: get_record_state::IsSet, + S::Repo: get_record_state::IsSet, S::Rkey: get_record_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs b/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs index 32956749..62c775ec 100644 --- a/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs +++ b/crates/jacquard-api/src/com_atproto/repo/list_missing_blobs.rs @@ -186,37 +186,37 @@ pub mod record_blob_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type RecordUri; + 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 RecordUri = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type RecordUri = S::RecordUri; + type Cid = Unset; } ///State transition - sets the `record_uri` field to Set pub struct SetRecordUri(PhantomData S>); impl sealed::Sealed for SetRecordUri {} impl State for SetRecordUri { - type Cid = S::Cid; type RecordUri = Set; + type Cid = S::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type RecordUri = S::RecordUri; + 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 `record_uri` field pub struct record_uri(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -289,8 +289,8 @@ where impl<'a, S> RecordBlobBuilder<'a, S> where S: record_blob_state::State, - S::Cid: record_blob_state::IsSet, S::RecordUri: record_blob_state::IsSet, + S::Cid: record_blob_state::IsSet, { /// Build the final struct pub fn build(self) -> RecordBlob<'a> { 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 9bed0018..16572ca3 100644 --- a/crates/jacquard-api/src/com_atproto/repo/list_records.rs +++ b/crates/jacquard-api/src/com_atproto/repo/list_records.rs @@ -40,37 +40,37 @@ pub mod list_records_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Collection; + 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 Collection = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Collection = S::Collection; + type Repo = Unset; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData S>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Repo = S::Repo; type Collection = Set; + type Repo = S::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Collection = S::Collection; + 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 `collection` field pub struct collection(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -188,8 +188,8 @@ impl<'a, S: list_records_state::State> ListRecordsBuilder<'a, S> { impl<'a, S> ListRecordsBuilder<'a, S> where S: list_records_state::State, - S::Repo: list_records_state::IsSet, S::Collection: list_records_state::IsSet, + S::Repo: list_records_state::IsSet, { /// Build the final struct pub fn build(self) -> ListRecords<'a> { @@ -278,49 +278,49 @@ pub mod record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; + 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 Cid = Unset; + type Uri = Unset; type Value = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Value = S::Value; - } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; + type Uri = S::Uri; + type Value = S::Value; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = S::Cid; + type Uri = Set; type Value = S::Value; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Uri = S::Uri; type Cid = S::Cid; + type Uri = S::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 `cid` field pub struct cid(()); + ///Marker type for the `uri` field + pub struct uri(()); ///Marker type for the `value` field pub struct value(()); } @@ -415,8 +415,8 @@ where impl<'a, S> RecordBuilder<'a, S> where S: record_state::State, - S::Uri: record_state::IsSet, S::Cid: record_state::IsSet, + S::Uri: record_state::IsSet, S::Value: record_state::IsSet, { /// Build the final struct 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 318e40e4..5caf93b0 100644 --- a/crates/jacquard-api/src/com_atproto/repo/put_record.rs +++ b/crates/jacquard-api/src/com_atproto/repo/put_record.rs @@ -54,65 +54,65 @@ pub mod put_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Rkey; type Repo; type Collection; - type Rkey; type Record; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Rkey = Unset; type Repo = Unset; type Collection = Unset; - type Rkey = Unset; type Record = Unset; } + ///State transition - sets the `rkey` field to Set + pub struct SetRkey(PhantomData S>); + impl sealed::Sealed for SetRkey {} + impl State for SetRkey { + type Rkey = Set; + type Repo = S::Repo; + type Collection = S::Collection; + type Record = S::Record; + } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData S>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { + type Rkey = S::Rkey; type Repo = Set; type Collection = S::Collection; - type Rkey = S::Rkey; type Record = S::Record; } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData S>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Repo = S::Repo; - type Collection = Set; type Rkey = S::Rkey; - type Record = S::Record; - } - ///State transition - sets the `rkey` field to Set - pub struct SetRkey(PhantomData S>); - impl sealed::Sealed for SetRkey {} - impl State for SetRkey { type Repo = S::Repo; - type Collection = S::Collection; - type Rkey = Set; + type Collection = Set; type Record = S::Record; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { + type Rkey = S::Rkey; type Repo = S::Repo; type Collection = S::Collection; - type Rkey = S::Rkey; type Record = 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 `repo` field pub struct repo(()); ///Marker type for the `collection` field pub struct collection(()); - ///Marker type for the `rkey` field - pub struct rkey(()); ///Marker type for the `record` field pub struct record(()); } @@ -289,9 +289,9 @@ impl<'a, S: put_record_state::State> PutRecordBuilder<'a, S> { impl<'a, S> PutRecordBuilder<'a, S> where S: put_record_state::State, + S::Rkey: put_record_state::IsSet, S::Repo: put_record_state::IsSet, S::Collection: put_record_state::IsSet, - S::Rkey: put_record_state::IsSet, S::Record: put_record_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/com_atproto/repo/strong_ref.rs b/crates/jacquard-api/src/com_atproto/repo/strong_ref.rs index dc0555cb..9a034c18 100644 --- a/crates/jacquard-api/src/com_atproto/repo/strong_ref.rs +++ b/crates/jacquard-api/src/com_atproto/repo/strong_ref.rs @@ -33,37 +33,37 @@ pub mod strong_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 S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; + type Uri = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = S::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(()); } } @@ -136,8 +136,8 @@ where impl<'a, S> StrongRefBuilder<'a, S> where S: strong_ref_state::State, - S::Uri: strong_ref_state::IsSet, S::Cid: strong_ref_state::IsSet, + S::Uri: strong_ref_state::IsSet, { /// Build the final struct pub fn build(self) -> StrongRef<'a> { diff --git a/crates/jacquard-api/src/com_atproto/server.rs b/crates/jacquard-api/src/com_atproto/server.rs index 06656034..ba64654b 100644 --- a/crates/jacquard-api/src/com_atproto/server.rs +++ b/crates/jacquard-api/src/com_atproto/server.rs @@ -66,127 +66,127 @@ pub mod invite_code_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Code; type Available; - type Disabled; - type ForAccount; - type CreatedBy; type CreatedAt; type Uses; + type Code; + type ForAccount; + type CreatedBy; + type Disabled; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Code = Unset; type Available = Unset; - type Disabled = Unset; - type ForAccount = Unset; - type CreatedBy = Unset; type CreatedAt = Unset; type Uses = Unset; - } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData S>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type Code = Set; - type Available = S::Available; - type Disabled = S::Disabled; - type ForAccount = S::ForAccount; - type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; - type Uses = S::Uses; + type Code = Unset; + type ForAccount = Unset; + type CreatedBy = Unset; + type Disabled = Unset; } ///State transition - sets the `available` field to Set pub struct SetAvailable(PhantomData S>); impl sealed::Sealed for SetAvailable {} impl State for SetAvailable { - type Code = S::Code; type Available = Set; - type Disabled = S::Disabled; - type ForAccount = S::ForAccount; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; type Uses = S::Uses; + type Code = S::Code; + type ForAccount = S::ForAccount; + type CreatedBy = S::CreatedBy; + type Disabled = S::Disabled; } - ///State transition - sets the `disabled` field to Set - pub struct SetDisabled(PhantomData S>); - impl sealed::Sealed for SetDisabled {} - impl State for SetDisabled { + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Available = S::Available; + type CreatedAt = Set; + type Uses = S::Uses; type Code = S::Code; + type ForAccount = S::ForAccount; + type CreatedBy = S::CreatedBy; + type Disabled = S::Disabled; + } + ///State transition - sets the `uses` field to Set + pub struct SetUses(PhantomData S>); + impl sealed::Sealed for SetUses {} + impl State for SetUses { type Available = S::Available; - type Disabled = Set; + type CreatedAt = S::CreatedAt; + type Uses = Set; + type Code = S::Code; type ForAccount = S::ForAccount; type CreatedBy = S::CreatedBy; + type Disabled = S::Disabled; + } + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData S>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type Available = S::Available; type CreatedAt = S::CreatedAt; type Uses = S::Uses; + type Code = Set; + type ForAccount = S::ForAccount; + type CreatedBy = S::CreatedBy; + type Disabled = S::Disabled; } ///State transition - sets the `for_account` field to Set pub struct SetForAccount(PhantomData S>); impl sealed::Sealed for SetForAccount {} impl State for SetForAccount { - type Code = S::Code; type Available = S::Available; - type Disabled = S::Disabled; - type ForAccount = Set; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; type Uses = S::Uses; + type Code = S::Code; + type ForAccount = Set; + type CreatedBy = S::CreatedBy; + type Disabled = S::Disabled; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData S>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { - type Code = S::Code; type Available = S::Available; - type Disabled = S::Disabled; - type ForAccount = S::ForAccount; - type CreatedBy = Set; type CreatedAt = S::CreatedAt; type Uses = S::Uses; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Code = S::Code; - type Available = S::Available; - type Disabled = S::Disabled; type ForAccount = S::ForAccount; - type CreatedBy = S::CreatedBy; - type CreatedAt = Set; - type Uses = S::Uses; + type CreatedBy = Set; + type Disabled = S::Disabled; } - ///State transition - sets the `uses` field to Set - pub struct SetUses(PhantomData S>); - impl sealed::Sealed for SetUses {} - impl State for SetUses { - type Code = S::Code; + ///State transition - sets the `disabled` field to Set + pub struct SetDisabled(PhantomData S>); + impl sealed::Sealed for SetDisabled {} + impl State for SetDisabled { type Available = S::Available; - type Disabled = S::Disabled; + type CreatedAt = S::CreatedAt; + type Uses = S::Uses; + type Code = S::Code; type ForAccount = S::ForAccount; type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; - type Uses = Set; + type Disabled = 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 `available` field pub struct available(()); - ///Marker type for the `disabled` field - pub struct disabled(()); - ///Marker type for the `for_account` field - pub struct for_account(()); - ///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 `uses` field pub struct uses(()); + ///Marker type for the `code` field + pub struct code(()); + ///Marker type for the `for_account` field + pub struct for_account(()); + ///Marker type for the `created_by` field + pub struct created_by(()); + ///Marker type for the `disabled` field + pub struct disabled(()); } } @@ -359,13 +359,13 @@ where impl<'a, S> InviteCodeBuilder<'a, S> where S: invite_code_state::State, - S::Code: invite_code_state::IsSet, S::Available: invite_code_state::IsSet, - S::Disabled: invite_code_state::IsSet, - S::ForAccount: invite_code_state::IsSet, - S::CreatedBy: invite_code_state::IsSet, S::CreatedAt: invite_code_state::IsSet, S::Uses: invite_code_state::IsSet, + S::Code: invite_code_state::IsSet, + S::ForAccount: invite_code_state::IsSet, + S::CreatedBy: invite_code_state::IsSet, + S::Disabled: invite_code_state::IsSet, { /// Build the final struct pub fn build(self) -> InviteCode<'a> { 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 5c2d7aa4..4dd3a4e1 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 @@ -36,51 +36,51 @@ pub mod app_password_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - type Password; type CreatedAt; + type Password; + 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 Password = Unset; type CreatedAt = Unset; + type Password = Unset; + type Name = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - 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 S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Password = S::Password; - type CreatedAt = S::CreatedAt; + type Name = S::Name; } ///State transition - sets the `password` field to Set pub struct SetPassword(PhantomData S>); impl sealed::Sealed for SetPassword {} impl State for SetPassword { - type Name = S::Name; - type Password = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Password = Set; type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = S::CreatedAt; type Password = S::Password; - 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 `password` field - pub struct password(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `password` field + pub struct password(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -187,9 +187,9 @@ impl<'a, S: app_password_state::State> AppPasswordBuilder<'a, S> { impl<'a, S> AppPasswordBuilder<'a, S> where S: app_password_state::State, - S::Name: app_password_state::IsSet, - S::Password: app_password_state::IsSet, S::CreatedAt: app_password_state::IsSet, + S::Password: app_password_state::IsSet, + S::Name: app_password_state::IsSet, { /// Build the final struct pub fn build(self) -> AppPassword<'a> { diff --git a/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs b/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs index 4eb96515..829d5452 100644 --- a/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs +++ b/crates/jacquard-api/src/com_atproto/server/create_invite_codes.rs @@ -361,37 +361,37 @@ pub mod create_invite_codes_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CodeCount; type UseCount; + type CodeCount; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CodeCount = Unset; type UseCount = Unset; - } - ///State transition - sets the `code_count` field to Set - pub struct SetCodeCount(PhantomData S>); - impl sealed::Sealed for SetCodeCount {} - impl State for SetCodeCount { - type CodeCount = Set; - type UseCount = S::UseCount; + type CodeCount = Unset; } ///State transition - sets the `use_count` field to Set pub struct SetUseCount(PhantomData S>); impl sealed::Sealed for SetUseCount {} impl State for SetUseCount { - type CodeCount = S::CodeCount; type UseCount = Set; + type CodeCount = S::CodeCount; + } + ///State transition - sets the `code_count` field to Set + pub struct SetCodeCount(PhantomData S>); + impl sealed::Sealed for SetCodeCount {} + impl State for SetCodeCount { + type UseCount = S::UseCount; + type CodeCount = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `code_count` field - pub struct code_count(()); ///Marker type for the `use_count` field pub struct use_count(()); + ///Marker type for the `code_count` field + pub struct code_count(()); } } @@ -484,8 +484,8 @@ where impl<'a, S> CreateInviteCodesBuilder<'a, S> where S: create_invite_codes_state::State, - S::CodeCount: create_invite_codes_state::IsSet, S::UseCount: create_invite_codes_state::IsSet, + S::CodeCount: create_invite_codes_state::IsSet, { /// Build the final struct pub fn build(self) -> CreateInviteCodes<'a> { 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 0500c916..905d8642 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 @@ -34,37 +34,37 @@ pub mod app_password_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 S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type CreatedAt = S::CreatedAt; + type Name = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = S::Name; type CreatedAt = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type CreatedAt = S::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(()); } } @@ -151,8 +151,8 @@ impl<'a, S: app_password_state::State> AppPasswordBuilder<'a, S> { impl<'a, S> AppPasswordBuilder<'a, S> where S: app_password_state::State, - S::Name: app_password_state::IsSet, S::CreatedAt: app_password_state::IsSet, + S::Name: app_password_state::IsSet, { /// Build the final struct pub fn build(self) -> AppPassword<'a> { diff --git a/crates/jacquard-api/src/com_atproto/sync/get_blob.rs b/crates/jacquard-api/src/com_atproto/sync/get_blob.rs index 549b7a1c..e7c670db 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_blob.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_blob.rs @@ -32,37 +32,37 @@ pub mod get_blob_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Cid; + 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 Cid = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Cid = S::Cid; + type Did = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Did = S::Did; type Cid = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Cid = S::Cid; + 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 `cid` field pub struct cid(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> GetBlobBuilder<'a, S> where S: get_blob_state::State, - S::Did: get_blob_state::IsSet, S::Cid: get_blob_state::IsSet, + S::Did: get_blob_state::IsSet, { /// Build the final struct pub fn build(self) -> GetBlob<'a> { 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 6706fc9e..de101605 100644 --- a/crates/jacquard-api/src/com_atproto/sync/get_record.rs +++ b/crates/jacquard-api/src/com_atproto/sync/get_record.rs @@ -36,49 +36,49 @@ pub mod get_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Collection; + type Did; type Rkey; } /// 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 Did = Unset; type Rkey = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Collection = S::Collection; - type Rkey = S::Rkey; - } ///State transition - sets the `collection` field to Set pub struct SetCollection(PhantomData S>); impl sealed::Sealed for SetCollection {} impl State for SetCollection { - type Did = S::Did; type Collection = Set; + type Did = S::Did; + type Rkey = S::Rkey; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Collection = S::Collection; + type Did = Set; type Rkey = S::Rkey; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData S>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Did = S::Did; type Collection = S::Collection; + type Did = S::Did; type Rkey = 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 `did` field + pub struct did(()); ///Marker type for the `rkey` field pub struct rkey(()); } @@ -181,8 +181,8 @@ where impl<'a, S> GetRecordBuilder<'a, S> where S: get_record_state::State, - S::Did: get_record_state::IsSet, S::Collection: get_record_state::IsSet, + S::Did: get_record_state::IsSet, S::Rkey: get_record_state::IsSet, { /// Build the final struct 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 a6ef3859..cf4ec29b 100644 --- a/crates/jacquard-api/src/com_atproto/sync/list_repos.rs +++ b/crates/jacquard-api/src/com_atproto/sync/list_repos.rs @@ -194,51 +194,51 @@ pub mod repo_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; - type Head; type Rev; + type Head; + 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 Head = Unset; type Rev = Unset; + type Head = Unset; + type Did = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData S>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Rev = Set; type Head = S::Head; - type Rev = S::Rev; + type Did = S::Did; } ///State transition - sets the `head` field to Set pub struct SetHead(PhantomData S>); impl sealed::Sealed for SetHead {} impl State for SetHead { - type Did = S::Did; - type Head = Set; type Rev = S::Rev; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData S>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { + type Head = Set; type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Rev = S::Rev; type Head = S::Head; - type Rev = 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 `head` field - pub struct head(()); ///Marker type for the `rev` field pub struct rev(()); + ///Marker type for the `head` field + pub struct head(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -362,9 +362,9 @@ impl<'a, S: repo_state::State> RepoBuilder<'a, S> { impl<'a, S> RepoBuilder<'a, S> where S: repo_state::State, - S::Did: repo_state::IsSet, - S::Head: repo_state::IsSet, S::Rev: repo_state::IsSet, + S::Head: repo_state::IsSet, + S::Did: repo_state::IsSet, { /// Build the final struct pub fn build(self) -> Repo<'a> { 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 53d003e2..6983f16f 100644 --- a/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs +++ b/crates/jacquard-api/src/com_atproto/sync/subscribe_repos.rs @@ -41,66 +41,66 @@ 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 Time; + type Did; } /// 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 Time = Unset; + type Did = Unset; } ///State transition - sets the `seq` field to Set pub struct SetSeq(PhantomData S>); impl sealed::Sealed for SetSeq {} impl State for SetSeq { type Seq = Set; - type Did = S::Did; - type Time = S::Time; type Active = S::Active; + type Time = S::Time; + type Did = S::Did; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { + ///State transition - sets the `active` field to Set + pub struct SetActive(PhantomData S>); + impl sealed::Sealed for SetActive {} + impl State for SetActive { type Seq = S::Seq; - type Did = Set; + type Active = Set; type Time = S::Time; - type Active = S::Active; + type Did = S::Did; } ///State transition - sets the `time` field to Set pub struct SetTime(PhantomData S>); impl sealed::Sealed for SetTime {} impl State for SetTime { type Seq = S::Seq; - type Did = S::Did; - type Time = Set; type Active = S::Active; + type Time = Set; + type Did = S::Did; } - ///State transition - sets the `active` field to Set - pub struct SetActive(PhantomData S>); - impl sealed::Sealed for SetActive {} - impl State for SetActive { + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { type Seq = S::Seq; - type Did = S::Did; + type Active = S::Active; type Time = S::Time; - type Active = Set; + type Did = 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 `time` field + pub struct time(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -231,9 +231,9 @@ impl<'a, S> AccountBuilder<'a, S> where S: account_state::State, S::Seq: account_state::IsSet, - S::Did: account_state::IsSet, - S::Time: account_state::IsSet, S::Active: account_state::IsSet, + S::Time: account_state::IsSet, + S::Did: account_state::IsSet, { /// Build the final struct pub fn build(self) -> Account<'a> { @@ -967,235 +967,205 @@ pub mod commit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Seq; + type Rev; + type Blobs; + type Time; + type Ops; type Rebase; - type TooBig; type Repo; type Commit; - type Rev; - type Since; + type TooBig; type Blocks; - type Ops; - type Blobs; - type Time; + type Seq; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Seq = Unset; + type Rev = Unset; + type Blobs = Unset; + type Time = Unset; + type Ops = Unset; type Rebase = Unset; - type TooBig = Unset; type Repo = Unset; type Commit = Unset; - type Rev = Unset; - type Since = Unset; + type TooBig = Unset; type Blocks = Unset; - type Ops = Unset; - type Blobs = Unset; - type Time = Unset; + type Seq = Unset; } - ///State transition - sets the `seq` field to Set - pub struct SetSeq(PhantomData S>); - impl sealed::Sealed for SetSeq {} - impl State for SetSeq { - type Seq = Set; + ///State transition - sets the `rev` field to Set + pub struct SetRev(PhantomData S>); + impl sealed::Sealed for SetRev {} + impl State for SetRev { + type Rev = Set; + type Blobs = S::Blobs; + type Time = S::Time; + type Ops = S::Ops; type Rebase = S::Rebase; - type TooBig = S::TooBig; type Repo = S::Repo; type Commit = S::Commit; + type TooBig = S::TooBig; + type Blocks = S::Blocks; + type Seq = S::Seq; + } + ///State transition - sets the `blobs` field to Set + pub struct SetBlobs(PhantomData S>); + impl sealed::Sealed for SetBlobs {} + impl State for SetBlobs { type Rev = S::Rev; - type Since = S::Since; + type Blobs = Set; + type Time = S::Time; + type Ops = S::Ops; + type Rebase = S::Rebase; + type Repo = S::Repo; + type Commit = S::Commit; + type TooBig = S::TooBig; type Blocks = S::Blocks; + type Seq = S::Seq; + } + ///State transition - sets the `time` field to Set + pub struct SetTime(PhantomData S>); + impl sealed::Sealed for SetTime {} + impl State for SetTime { + type Rev = S::Rev; + type Blobs = S::Blobs; + type Time = Set; type Ops = S::Ops; + type Rebase = S::Rebase; + type Repo = S::Repo; + type Commit = S::Commit; + type TooBig = S::TooBig; + type Blocks = S::Blocks; + type Seq = S::Seq; + } + ///State transition - sets the `ops` field to Set + pub struct SetOps(PhantomData S>); + impl sealed::Sealed for SetOps {} + impl State for SetOps { + type Rev = S::Rev; type Blobs = S::Blobs; type Time = S::Time; + type Ops = Set; + type Rebase = S::Rebase; + type Repo = S::Repo; + type Commit = S::Commit; + type TooBig = S::TooBig; + type Blocks = S::Blocks; + type Seq = S::Seq; } ///State transition - sets the `rebase` field to Set pub struct SetRebase(PhantomData S>); impl sealed::Sealed for SetRebase {} impl State for SetRebase { - type Seq = S::Seq; - type Rebase = Set; - type TooBig = S::TooBig; - type Repo = S::Repo; - type Commit = S::Commit; type Rev = S::Rev; - type Since = S::Since; - type Blocks = S::Blocks; - type Ops = S::Ops; type Blobs = S::Blobs; type Time = S::Time; - } - ///State transition - sets the `too_big` field to Set - pub struct SetTooBig(PhantomData S>); - impl sealed::Sealed for SetTooBig {} - impl State for SetTooBig { - type Seq = S::Seq; - type Rebase = S::Rebase; - type TooBig = Set; + type Ops = S::Ops; + type Rebase = Set; type Repo = S::Repo; type Commit = S::Commit; - type Rev = S::Rev; - type Since = S::Since; + type TooBig = S::TooBig; type Blocks = S::Blocks; - type Ops = S::Ops; - type Blobs = S::Blobs; - type Time = S::Time; + type Seq = S::Seq; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData S>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Seq = S::Seq; + type Rev = S::Rev; + type Blobs = S::Blobs; + type Time = S::Time; + type Ops = S::Ops; type Rebase = S::Rebase; - type TooBig = S::TooBig; type Repo = Set; type Commit = S::Commit; - type Rev = S::Rev; - type Since = S::Since; + type TooBig = S::TooBig; type Blocks = S::Blocks; - type Ops = S::Ops; - type Blobs = S::Blobs; - type Time = S::Time; + type Seq = S::Seq; } ///State transition - sets the `commit` field to Set pub struct SetCommit(PhantomData S>); impl sealed::Sealed for SetCommit {} impl State for SetCommit { - type Seq = S::Seq; - type Rebase = S::Rebase; - type TooBig = S::TooBig; - type Repo = S::Repo; - type Commit = Set; type Rev = S::Rev; - type Since = S::Since; - type Blocks = S::Blocks; - type Ops = S::Ops; type Blobs = S::Blobs; type Time = S::Time; - } - ///State transition - sets the `rev` field to Set - pub struct SetRev(PhantomData S>); - impl sealed::Sealed for SetRev {} - impl State for SetRev { - type Seq = S::Seq; + type Ops = S::Ops; type Rebase = S::Rebase; - type TooBig = S::TooBig; type Repo = S::Repo; - type Commit = S::Commit; - type Rev = Set; - type Since = S::Since; + type Commit = Set; + type TooBig = S::TooBig; type Blocks = S::Blocks; - type Ops = S::Ops; + type Seq = S::Seq; + } + ///State transition - sets the `too_big` field to Set + pub struct SetTooBig(PhantomData S>); + impl sealed::Sealed for SetTooBig {} + impl State for SetTooBig { + type Rev = S::Rev; type Blobs = S::Blobs; type Time = S::Time; - } - ///State transition - sets the `since` field to Set - pub struct SetSince(PhantomData S>); - impl sealed::Sealed for SetSince {} - impl State for SetSince { - type Seq = S::Seq; + type Ops = S::Ops; type Rebase = S::Rebase; - type TooBig = S::TooBig; type Repo = S::Repo; type Commit = S::Commit; - type Rev = S::Rev; - type Since = Set; + type TooBig = Set; type Blocks = S::Blocks; - type Ops = S::Ops; - type Blobs = S::Blobs; - type Time = S::Time; + type Seq = S::Seq; } ///State transition - sets the `blocks` field to Set pub struct SetBlocks(PhantomData S>); impl sealed::Sealed for SetBlocks {} impl State for SetBlocks { - type Seq = S::Seq; - type Rebase = S::Rebase; - type TooBig = S::TooBig; - type Repo = S::Repo; - type Commit = S::Commit; type Rev = S::Rev; - type Since = S::Since; - type Blocks = Set; - type Ops = S::Ops; type Blobs = S::Blobs; type Time = S::Time; - } - ///State transition - sets the `ops` field to Set - pub struct SetOps(PhantomData S>); - impl sealed::Sealed for SetOps {} - impl State for SetOps { - type Seq = S::Seq; + type Ops = S::Ops; type Rebase = S::Rebase; - type TooBig = S::TooBig; type Repo = S::Repo; type Commit = S::Commit; + type TooBig = S::TooBig; + type Blocks = Set; + type Seq = S::Seq; + } + ///State transition - sets the `seq` field to Set + pub struct SetSeq(PhantomData S>); + impl sealed::Sealed for SetSeq {} + impl State for SetSeq { type Rev = S::Rev; - type Since = S::Since; - type Blocks = S::Blocks; - type Ops = Set; type Blobs = S::Blobs; type Time = S::Time; - } - ///State transition - sets the `blobs` field to Set - pub struct SetBlobs(PhantomData S>); - impl sealed::Sealed for SetBlobs {} - impl State for SetBlobs { - type Seq = S::Seq; - type Rebase = S::Rebase; - type TooBig = S::TooBig; - type Repo = S::Repo; - type Commit = S::Commit; - type Rev = S::Rev; - type Since = S::Since; - type Blocks = S::Blocks; type Ops = S::Ops; - type Blobs = Set; - type Time = S::Time; - } - ///State transition - sets the `time` field to Set - pub struct SetTime(PhantomData S>); - impl sealed::Sealed for SetTime {} - impl State for SetTime { - type Seq = S::Seq; type Rebase = S::Rebase; - type TooBig = S::TooBig; type Repo = S::Repo; type Commit = S::Commit; - type Rev = S::Rev; - type Since = S::Since; + type TooBig = S::TooBig; type Blocks = S::Blocks; - type Ops = S::Ops; - type Blobs = S::Blobs; - type Time = Set; + type Seq = 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 `rev` field + pub struct rev(()); + ///Marker type for the `blobs` field + pub struct blobs(()); + ///Marker type for the `time` field + pub struct time(()); + ///Marker type for the `ops` field + pub struct ops(()); ///Marker type for the `rebase` field pub struct rebase(()); - ///Marker type for the `too_big` field - pub struct too_big(()); ///Marker type for the `repo` field pub struct repo(()); ///Marker type for the `commit` field pub struct commit(()); - ///Marker type for the `rev` field - pub struct rev(()); - ///Marker type for the `since` field - pub struct since(()); + ///Marker type for the `too_big` field + pub struct too_big(()); ///Marker type for the `blocks` field pub struct blocks(()); - ///Marker type for the `ops` field - pub struct ops(()); - ///Marker type for the `blobs` field - pub struct blobs(()); - ///Marker type for the `time` field - pub struct time(()); + ///Marker type for the `seq` field + pub struct seq(()); } } @@ -1423,22 +1393,22 @@ where } } -impl<'a, S> CommitBuilder<'a, S> -where - S: commit_state::State, - S::Since: commit_state::IsUnset, -{ - /// Set the `since` field (required) +impl<'a, S: commit_state::State> CommitBuilder<'a, S> { + /// Set the `since` field (optional) pub fn since( mut self, - value: impl Into, - ) -> CommitBuilder<'a, commit_state::SetSince> { - self.__unsafe_private_named.9 = ::core::option::Option::Some(value.into()); - CommitBuilder { - _phantom_state: ::core::marker::PhantomData, - __unsafe_private_named: self.__unsafe_private_named, - _phantom: ::core::marker::PhantomData, - } + value: impl Into>, + ) -> Self { + self.__unsafe_private_named.9 = value.into(); + self + } + /// Set the `since` field to an Option value (optional) + pub fn maybe_since( + mut self, + value: Option, + ) -> Self { + self.__unsafe_private_named.9 = value; + self } } @@ -1483,17 +1453,16 @@ where impl<'a, S> CommitBuilder<'a, S> where S: commit_state::State, - S::Seq: commit_state::IsSet, + S::Rev: commit_state::IsSet, + S::Blobs: commit_state::IsSet, + S::Time: commit_state::IsSet, + S::Ops: commit_state::IsSet, S::Rebase: commit_state::IsSet, - S::TooBig: commit_state::IsSet, S::Repo: commit_state::IsSet, S::Commit: commit_state::IsSet, - S::Rev: commit_state::IsSet, - S::Since: commit_state::IsSet, + S::TooBig: commit_state::IsSet, S::Blocks: commit_state::IsSet, - S::Ops: commit_state::IsSet, - S::Blobs: commit_state::IsSet, - S::Time: commit_state::IsSet, + S::Seq: commit_state::IsSet, { /// Build the final struct pub fn build(self) -> Commit<'a> { @@ -1507,7 +1476,7 @@ where repo: self.__unsafe_private_named.6.unwrap(), rev: self.__unsafe_private_named.7.unwrap(), seq: self.__unsafe_private_named.8.unwrap(), - since: self.__unsafe_private_named.9.unwrap(), + since: self.__unsafe_private_named.9, time: self.__unsafe_private_named.10.unwrap(), too_big: self.__unsafe_private_named.11.unwrap(), extra_data: Default::default(), @@ -1531,7 +1500,7 @@ where repo: self.__unsafe_private_named.6.unwrap(), rev: self.__unsafe_private_named.7.unwrap(), seq: self.__unsafe_private_named.8.unwrap(), - since: self.__unsafe_private_named.9.unwrap(), + since: self.__unsafe_private_named.9, time: self.__unsafe_private_named.10.unwrap(), too_big: self.__unsafe_private_named.11.unwrap(), extra_data: Some(extra_data), @@ -2099,51 +2068,37 @@ pub mod repo_op_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Action; type Path; - type Cid; + type Action; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Action = Unset; type Path = Unset; - type Cid = Unset; - } - ///State transition - sets the `action` field to Set - pub struct SetAction(PhantomData S>); - impl sealed::Sealed for SetAction {} - impl State for SetAction { - type Action = Set; - type Path = S::Path; - type Cid = S::Cid; + type Action = Unset; } ///State transition - sets the `path` field to Set pub struct SetPath(PhantomData S>); impl sealed::Sealed for SetPath {} impl State for SetPath { - type Action = S::Action; type Path = Set; - type Cid = S::Cid; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { type Action = S::Action; + } + ///State transition - sets the `action` field to Set + pub struct SetAction(PhantomData S>); + impl sealed::Sealed for SetAction {} + impl State for SetAction { type Path = S::Path; - type Cid = Set; + type Action = 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 `path` field pub struct path(()); - ///Marker type for the `cid` field - pub struct cid(()); + ///Marker type for the `action` field + pub struct action(()); } } @@ -2196,22 +2151,22 @@ where } } -impl<'a, S> RepoOpBuilder<'a, S> -where - S: repo_op_state::State, - S::Cid: repo_op_state::IsUnset, -{ - /// Set the `cid` field (required) +impl<'a, S: repo_op_state::State> RepoOpBuilder<'a, S> { + /// Set the `cid` field (optional) pub fn cid( mut self, - value: impl Into>, - ) -> RepoOpBuilder<'a, repo_op_state::SetCid> { - self.__unsafe_private_named.1 = ::core::option::Option::Some(value.into()); - RepoOpBuilder { - _phantom_state: ::core::marker::PhantomData, - __unsafe_private_named: self.__unsafe_private_named, - _phantom: ::core::marker::PhantomData, - } + value: impl Into>>, + ) -> Self { + self.__unsafe_private_named.1 = value.into(); + self + } + /// Set the `cid` field to an Option value (optional) + pub fn maybe_cid( + mut self, + value: Option>, + ) -> Self { + self.__unsafe_private_named.1 = value; + self } } @@ -2256,15 +2211,14 @@ impl<'a, S: repo_op_state::State> RepoOpBuilder<'a, S> { impl<'a, S> RepoOpBuilder<'a, S> where S: repo_op_state::State, - S::Action: repo_op_state::IsSet, S::Path: repo_op_state::IsSet, - S::Cid: repo_op_state::IsSet, + S::Action: repo_op_state::IsSet, { /// Build the final struct pub fn build(self) -> RepoOp<'a> { RepoOp { action: self.__unsafe_private_named.0.unwrap(), - cid: self.__unsafe_private_named.1.unwrap(), + cid: self.__unsafe_private_named.1, path: self.__unsafe_private_named.2.unwrap(), prev: self.__unsafe_private_named.3, extra_data: Default::default(), @@ -2280,7 +2234,7 @@ where ) -> RepoOp<'a> { RepoOp { action: self.__unsafe_private_named.0.unwrap(), - cid: self.__unsafe_private_named.1.unwrap(), + cid: self.__unsafe_private_named.1, path: self.__unsafe_private_named.2.unwrap(), prev: self.__unsafe_private_named.3, extra_data: Some(extra_data), @@ -2343,85 +2297,85 @@ pub mod sync_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Seq; - type Did; + type Time; type Blocks; + type Seq; type Rev; - type Time; + type Did; } /// 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 Blocks = Unset; + type Seq = Unset; type Rev = Unset; - type Time = Unset; + type Did = Unset; } - ///State transition - sets the `seq` field to Set - pub struct SetSeq(PhantomData S>); - impl sealed::Sealed for SetSeq {} - impl State for SetSeq { - type Seq = Set; - type Did = S::Did; + ///State transition - sets the `time` field to Set + pub struct SetTime(PhantomData S>); + impl sealed::Sealed for SetTime {} + impl State for SetTime { + type Time = Set; type Blocks = S::Blocks; - type Rev = S::Rev; - type Time = S::Time; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { type Seq = S::Seq; - type Did = Set; - type Blocks = S::Blocks; type Rev = S::Rev; - type Time = S::Time; + type Did = S::Did; } ///State transition - sets the `blocks` field to Set pub struct SetBlocks(PhantomData S>); impl sealed::Sealed for SetBlocks {} impl State for SetBlocks { - type Seq = S::Seq; - type Did = S::Did; + type Time = S::Time; type Blocks = Set; + type Seq = S::Seq; type Rev = S::Rev; + type Did = S::Did; + } + ///State transition - sets the `seq` field to Set + pub struct SetSeq(PhantomData S>); + impl sealed::Sealed for SetSeq {} + impl State for SetSeq { type Time = S::Time; + type Blocks = S::Blocks; + type Seq = Set; + type Rev = S::Rev; + type Did = S::Did; } ///State transition - sets the `rev` field to Set pub struct SetRev(PhantomData S>); impl sealed::Sealed for SetRev {} impl State for SetRev { - type Seq = S::Seq; - type Did = S::Did; - type Blocks = S::Blocks; - type Rev = Set; type Time = S::Time; - } - ///State transition - sets the `time` field to Set - pub struct SetTime(PhantomData S>); - impl sealed::Sealed for SetTime {} - impl State for SetTime { + type Blocks = S::Blocks; type Seq = S::Seq; + type Rev = Set; type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Time = S::Time; type Blocks = S::Blocks; + type Seq = S::Seq; type Rev = S::Rev; - type Time = Set; + type Did = 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 `blocks` field pub struct blocks(()); + ///Marker type for the `seq` field + pub struct seq(()); ///Marker type for the `rev` field pub struct rev(()); - ///Marker type for the `time` field - pub struct time(()); + ///Marker type for the `did` field + pub struct did(()); } } @@ -2554,11 +2508,11 @@ where impl<'a, S> SyncBuilder<'a, S> where S: sync_state::State, - S::Seq: sync_state::IsSet, - S::Did: sync_state::IsSet, + S::Time: sync_state::IsSet, S::Blocks: sync_state::IsSet, + S::Seq: sync_state::IsSet, S::Rev: sync_state::IsSet, - S::Time: sync_state::IsSet, + S::Did: sync_state::IsSet, { /// Build the final struct pub fn build(self) -> Sync<'a> { diff --git a/crates/jacquard-api/src/com_crabdance/nandi/post.rs b/crates/jacquard-api/src/com_crabdance/nandi/post.rs index 1e128708..bdc8648a 100644 --- a/crates/jacquard-api/src/com_crabdance/nandi/post.rs +++ b/crates/jacquard-api/src/com_crabdance/nandi/post.rs @@ -49,49 +49,49 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Content; + 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 Content = Unset; + type Title = Unset; type CreatedAt = Unset; } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Content = S::Content; - type CreatedAt = S::CreatedAt; - } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData S>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Title = S::Title; type Content = Set; + type Title = S::Title; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Content = S::Content; + type Title = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Title = S::Title; type Content = S::Content; + type Title = S::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 `content` field pub struct content(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -257,8 +257,8 @@ impl<'a, S: post_state::State> PostBuilder<'a, S> { impl<'a, S> PostBuilder<'a, S> where S: post_state::State, - S::Title: post_state::IsSet, S::Content: post_state::IsSet, + S::Title: post_state::IsSet, S::CreatedAt: post_state::IsSet, { /// Build the final struct 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 543bf395..8c21875f 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 @@ -36,37 +36,37 @@ pub mod author_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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; type Handle = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = S::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(()); } } @@ -139,8 +139,8 @@ where impl<'a, S> AuthorBuilder<'a, S> where S: author_state::State, - S::Did: author_state::IsSet, S::Handle: author_state::IsSet, + S::Did: author_state::IsSet, { /// Build the final struct pub fn build(self) -> Author<'a> { @@ -516,105 +516,105 @@ pub mod hydrated_oekaki_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Author; type Image; - type At; - type Cid; type CreationTime; type Nsfw; + type Author; + type Cid; + type At; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Author = Unset; type Image = Unset; - type At = Unset; - type Cid = Unset; type CreationTime = Unset; type Nsfw = Unset; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData S>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Author = Set; - type Image = S::Image; - type At = S::At; - type Cid = S::Cid; - type CreationTime = S::CreationTime; - type Nsfw = S::Nsfw; + type Author = Unset; + type Cid = Unset; + type At = Unset; } ///State transition - sets the `image` field to Set pub struct SetImage(PhantomData S>); impl sealed::Sealed for SetImage {} impl State for SetImage { - type Author = S::Author; type Image = Set; - type At = S::At; - type Cid = S::Cid; type CreationTime = S::CreationTime; type Nsfw = S::Nsfw; - } - ///State transition - sets the `at` field to Set - pub struct SetAt(PhantomData S>); - impl sealed::Sealed for SetAt {} - impl State for SetAt { type Author = S::Author; - type Image = S::Image; - type At = Set; type Cid = S::Cid; - type CreationTime = S::CreationTime; - type Nsfw = S::Nsfw; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Author = S::Author; - type Image = S::Image; type At = S::At; - type Cid = Set; - type CreationTime = S::CreationTime; - type Nsfw = S::Nsfw; } ///State transition - sets the `creation_time` field to Set pub struct SetCreationTime(PhantomData S>); impl sealed::Sealed for SetCreationTime {} impl State for SetCreationTime { - type Author = S::Author; type Image = S::Image; - type At = S::At; - type Cid = S::Cid; type CreationTime = Set; type Nsfw = S::Nsfw; + type Author = S::Author; + type Cid = S::Cid; + type At = S::At; } ///State transition - sets the `nsfw` field to Set pub struct SetNsfw(PhantomData S>); impl sealed::Sealed for SetNsfw {} impl State for SetNsfw { - type Author = S::Author; type Image = S::Image; + type CreationTime = S::CreationTime; + type Nsfw = Set; + type Author = S::Author; + type Cid = S::Cid; type At = S::At; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData S>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Image = S::Image; + type CreationTime = S::CreationTime; + type Nsfw = S::Nsfw; + type Author = Set; type Cid = S::Cid; + type At = S::At; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Image = S::Image; type CreationTime = S::CreationTime; - type Nsfw = Set; + type Nsfw = S::Nsfw; + type Author = S::Author; + type Cid = Set; + type At = S::At; + } + ///State transition - sets the `at` field to Set + pub struct SetAt(PhantomData S>); + impl sealed::Sealed for SetAt {} + impl State for SetAt { + type Image = S::Image; + type CreationTime = S::CreationTime; + type Nsfw = S::Nsfw; + type Author = S::Author; + type Cid = S::Cid; + type At = 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 `image` field pub struct image(()); - ///Marker type for the `at` field - pub struct at(()); - ///Marker type for the `cid` field - pub struct cid(()); ///Marker type for the `creation_time` field pub struct creation_time(()); ///Marker type for the `nsfw` field pub struct nsfw(()); + ///Marker type for the `author` field + pub struct author(()); + ///Marker type for the `cid` field + pub struct cid(()); + ///Marker type for the `at` field + pub struct at(()); } } @@ -801,12 +801,12 @@ impl<'a, S: hydrated_oekaki_state::State> HydratedOekakiBuilder<'a, S> { impl<'a, S> HydratedOekakiBuilder<'a, S> where S: hydrated_oekaki_state::State, - S::Author: hydrated_oekaki_state::IsSet, S::Image: hydrated_oekaki_state::IsSet, - S::At: hydrated_oekaki_state::IsSet, - S::Cid: hydrated_oekaki_state::IsSet, S::CreationTime: hydrated_oekaki_state::IsSet, S::Nsfw: hydrated_oekaki_state::IsSet, + S::Author: hydrated_oekaki_state::IsSet, + S::Cid: hydrated_oekaki_state::IsSet, + S::At: hydrated_oekaki_state::IsSet, { /// Build the final struct pub fn build(self) -> HydratedOekaki<'a> { 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 2a1bcbe4..d2667b0c 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/get_oekaki.rs @@ -32,37 +32,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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Rkey = S::Rkey; + type Did = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData S>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Did = S::Did; type Rkey = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Rkey = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> GetOekakiBuilder<'a, S> where S: get_oekaki_state::State, - S::Did: get_oekaki_state::IsSet, S::Rkey: get_oekaki_state::IsSet, + S::Did: get_oekaki_state::IsSet, { /// Build the final struct pub fn build(self) -> GetOekaki<'a> { 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 7f1fa0be..68e5e6d8 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 @@ -32,37 +32,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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Rkey = S::Rkey; + type Did = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData S>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Did = S::Did; type Rkey = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Rkey = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> GetParentForReplyBuilder<'a, S> where S: get_parent_for_reply_state::State, - S::Did: get_parent_for_reply_state::IsSet, S::Rkey: get_parent_for_reply_state::IsSet, + S::Did: get_parent_for_reply_state::IsSet, { /// Build the final struct pub fn build(self) -> GetParentForReply<'a> { diff --git a/crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs b/crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs index 4877bc63..e895cdad 100644 --- a/crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs +++ b/crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs @@ -443,37 +443,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 S>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type CreatedAt = S::CreatedAt; + type Image = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Image = S::Image; type CreatedAt = Set; + type Image = S::Image; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData S>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type CreatedAt = S::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(()); } } @@ -600,8 +600,8 @@ impl<'a, S: oekaki_state::State> OekakiBuilder<'a, S> { impl<'a, S> OekakiBuilder<'a, S> where S: oekaki_state::State, - S::Image: oekaki_state::IsSet, S::CreatedAt: oekaki_state::IsSet, + S::Image: oekaki_state::IsSet, { /// Build the final struct pub fn build(self) -> Oekaki<'a> { diff --git a/crates/jacquard-api/src/com_whtwnd/blog/get_entry_metadata_by_name.rs b/crates/jacquard-api/src/com_whtwnd/blog/get_entry_metadata_by_name.rs index b4aecb6a..ffdf608f 100644 --- a/crates/jacquard-api/src/com_whtwnd/blog/get_entry_metadata_by_name.rs +++ b/crates/jacquard-api/src/com_whtwnd/blog/get_entry_metadata_by_name.rs @@ -32,37 +32,37 @@ pub mod get_entry_metadata_by_name_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Author; type EntryTitle; + 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 EntryTitle = Unset; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData S>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { - type Author = Set; - type EntryTitle = S::EntryTitle; + type Author = Unset; } ///State transition - sets the `entry_title` field to Set pub struct SetEntryTitle(PhantomData S>); impl sealed::Sealed for SetEntryTitle {} impl State for SetEntryTitle { - type Author = S::Author; type EntryTitle = Set; + type Author = S::Author; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData S>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type EntryTitle = S::EntryTitle; + 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 `entry_title` field pub struct entry_title(()); + ///Marker type for the `author` field + pub struct author(()); } } @@ -147,8 +147,8 @@ where impl<'a, S> GetEntryMetadataByNameBuilder<'a, S> where S: get_entry_metadata_by_name_state::State, - S::Author: get_entry_metadata_by_name_state::IsSet, S::EntryTitle: get_entry_metadata_by_name_state::IsSet, + S::Author: get_entry_metadata_by_name_state::IsSet, { /// Build the final struct pub fn build(self) -> GetEntryMetadataByName<'a> { diff --git a/crates/jacquard-api/src/community_lexicon/bookmarks/bookmark.rs b/crates/jacquard-api/src/community_lexicon/bookmarks/bookmark.rs index 14d845bd..c64f651e 100644 --- a/crates/jacquard-api/src/community_lexicon/bookmarks/bookmark.rs +++ b/crates/jacquard-api/src/community_lexicon/bookmarks/bookmark.rs @@ -37,37 +37,37 @@ pub mod bookmark_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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -160,8 +160,8 @@ impl<'a, S: bookmark_state::State> BookmarkBuilder<'a, S> { impl<'a, S> BookmarkBuilder<'a, S> where S: bookmark_state::State, - S::Subject: bookmark_state::IsSet, S::CreatedAt: bookmark_state::IsSet, + S::Subject: bookmark_state::IsSet, { /// Build the final struct pub fn build(self) -> Bookmark<'a> { diff --git a/crates/jacquard-api/src/computer_aesthetic/kidlisp.rs b/crates/jacquard-api/src/computer_aesthetic/kidlisp.rs index 27a222e8..1ea4af8b 100644 --- a/crates/jacquard-api/src/computer_aesthetic/kidlisp.rs +++ b/crates/jacquard-api/src/computer_aesthetic/kidlisp.rs @@ -41,67 +41,67 @@ pub mod kidlisp_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Source; - type Code; type When; + type Code; type Ref; + 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 Code = Unset; type When = Unset; + type Code = Unset; type Ref = Unset; + type Source = Unset; } - ///State transition - sets the `source` field to Set - pub struct SetSource(PhantomData S>); - impl sealed::Sealed for SetSource {} - impl State for SetSource { - type Source = Set; + ///State transition - sets the `when` field to Set + pub struct SetWhen(PhantomData S>); + impl sealed::Sealed for SetWhen {} + impl State for SetWhen { + type When = Set; type Code = S::Code; - type When = S::When; type Ref = S::Ref; + type Source = S::Source; } ///State transition - sets the `code` field to Set pub struct SetCode(PhantomData S>); impl sealed::Sealed for SetCode {} impl State for SetCode { - type Source = S::Source; - type Code = Set; type When = S::When; + type Code = Set; type Ref = S::Ref; - } - ///State transition - sets the `when` field to Set - pub struct SetWhen(PhantomData S>); - impl sealed::Sealed for SetWhen {} - impl State for SetWhen { type Source = S::Source; - type Code = S::Code; - type When = Set; - type Ref = S::Ref; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData S>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type Source = S::Source; - type Code = S::Code; type When = S::When; + type Code = S::Code; type Ref = Set; + type Source = S::Source; + } + ///State transition - sets the `source` field to Set + pub struct SetSource(PhantomData S>); + impl sealed::Sealed for SetSource {} + impl State for SetSource { + type When = S::When; + type Code = S::Code; + type Ref = S::Ref; + 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 `code` field - pub struct code(()); ///Marker type for the `when` field pub struct when(()); + ///Marker type for the `code` field + pub struct code(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `source` field + pub struct source(()); } } @@ -214,10 +214,10 @@ where impl<'a, S> KidlispBuilder<'a, S> where S: kidlisp_state::State, - S::Source: kidlisp_state::IsSet, - S::Code: kidlisp_state::IsSet, S::When: kidlisp_state::IsSet, + S::Code: kidlisp_state::IsSet, S::Ref: kidlisp_state::IsSet, + S::Source: kidlisp_state::IsSet, { /// Build the final struct pub fn build(self) -> Kidlisp<'a> { diff --git a/crates/jacquard-api/src/computer_aesthetic/mood.rs b/crates/jacquard-api/src/computer_aesthetic/mood.rs index 31e6000c..0daf67ca 100644 --- a/crates/jacquard-api/src/computer_aesthetic/mood.rs +++ b/crates/jacquard-api/src/computer_aesthetic/mood.rs @@ -38,51 +38,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 S>); + impl sealed::Sealed for SetRef {} + impl State for SetRef { + type Ref = Set; + type Mood = S::Mood; + type When = S::When; } ///State transition - sets the `mood` field to Set pub struct SetMood(PhantomData S>); impl sealed::Sealed for SetMood {} impl State for SetMood { + type Ref = S::Ref; type Mood = Set; type When = S::When; - type Ref = S::Ref; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData S>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Mood = S::Mood; - type When = Set; type Ref = S::Ref; - } - ///State transition - sets the `ref` field to Set - pub struct SetRef(PhantomData S>); - impl sealed::Sealed for SetRef {} - impl State for SetRef { type Mood = S::Mood; - type When = S::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(()); } } @@ -175,9 +175,9 @@ where impl<'a, S> MoodBuilder<'a, S> where S: mood_state::State, + S::Ref: mood_state::IsSet, S::Mood: mood_state::IsSet, S::When: mood_state::IsSet, - S::Ref: mood_state::IsSet, { /// Build the final struct pub fn build(self) -> Mood<'a> { diff --git a/crates/jacquard-api/src/computer_aesthetic/painting.rs b/crates/jacquard-api/src/computer_aesthetic/painting.rs index 020bbe86..665fb600 100644 --- a/crates/jacquard-api/src/computer_aesthetic/painting.rs +++ b/crates/jacquard-api/src/computer_aesthetic/painting.rs @@ -52,85 +52,85 @@ pub mod painting_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Slug; - type Code; - type ImageUrl; type When; type Ref; + type Slug; + type ImageUrl; + type Code; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Slug = Unset; - type Code = Unset; - type ImageUrl = Unset; type When = Unset; type Ref = Unset; + type Slug = Unset; + type ImageUrl = Unset; + type Code = Unset; + } + ///State transition - sets the `when` field to Set + pub struct SetWhen(PhantomData S>); + impl sealed::Sealed for SetWhen {} + impl State for SetWhen { + type When = Set; + type Ref = S::Ref; + type Slug = S::Slug; + type ImageUrl = S::ImageUrl; + type Code = S::Code; + } + ///State transition - sets the `ref` field to Set + pub struct SetRef(PhantomData S>); + impl sealed::Sealed for SetRef {} + impl State for SetRef { + type When = S::When; + type Ref = Set; + type Slug = S::Slug; + type ImageUrl = S::ImageUrl; + type Code = S::Code; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData S>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { - type Slug = Set; - type Code = S::Code; - type ImageUrl = S::ImageUrl; type When = S::When; type Ref = S::Ref; - } - ///State transition - sets the `code` field to Set - pub struct SetCode(PhantomData S>); - impl sealed::Sealed for SetCode {} - impl State for SetCode { - type Slug = S::Slug; - type Code = Set; + type Slug = Set; type ImageUrl = S::ImageUrl; - type When = S::When; - type Ref = S::Ref; + type Code = S::Code; } ///State transition - sets the `image_url` field to Set pub struct SetImageUrl(PhantomData S>); impl sealed::Sealed for SetImageUrl {} impl State for SetImageUrl { - type Slug = S::Slug; - type Code = S::Code; - type ImageUrl = Set; type When = S::When; type Ref = S::Ref; - } - ///State transition - sets the `when` field to Set - pub struct SetWhen(PhantomData S>); - impl sealed::Sealed for SetWhen {} - impl State for SetWhen { type Slug = S::Slug; + type ImageUrl = Set; type Code = S::Code; - type ImageUrl = S::ImageUrl; - type When = Set; - type Ref = S::Ref; } - ///State transition - sets the `ref` field to Set - pub struct SetRef(PhantomData S>); - impl sealed::Sealed for SetRef {} - impl State for SetRef { + ///State transition - sets the `code` field to Set + pub struct SetCode(PhantomData S>); + impl sealed::Sealed for SetCode {} + impl State for SetCode { + type When = S::When; + type Ref = S::Ref; type Slug = S::Slug; - type Code = S::Code; type ImageUrl = S::ImageUrl; - type When = S::When; - type Ref = Set; + type Code = 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 `code` field - pub struct code(()); - ///Marker type for the `image_url` field - pub struct image_url(()); ///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 `image_url` field + pub struct image_url(()); + ///Marker type for the `code` field + pub struct code(()); } } @@ -303,11 +303,11 @@ where impl<'a, S> PaintingBuilder<'a, S> where S: painting_state::State, - S::Slug: painting_state::IsSet, - S::Code: painting_state::IsSet, - S::ImageUrl: painting_state::IsSet, S::When: painting_state::IsSet, S::Ref: painting_state::IsSet, + S::Slug: painting_state::IsSet, + S::ImageUrl: painting_state::IsSet, + S::Code: painting_state::IsSet, { /// Build the final struct pub fn build(self) -> Painting<'a> { diff --git a/crates/jacquard-api/src/computer_aesthetic/piece.rs b/crates/jacquard-api/src/computer_aesthetic/piece.rs index e19fa883..ca9be247 100644 --- a/crates/jacquard-api/src/computer_aesthetic/piece.rs +++ b/crates/jacquard-api/src/computer_aesthetic/piece.rs @@ -39,50 +39,50 @@ pub mod piece_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Slug; - type When; type Ref; + type When; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Slug = Unset; - type When = Unset; type Ref = Unset; + type When = Unset; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData S>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { type Slug = Set; - type When = S::When; - type Ref = S::Ref; - } - ///State transition - sets the `when` field to Set - pub struct SetWhen(PhantomData S>); - impl sealed::Sealed for SetWhen {} - impl State for SetWhen { - type Slug = S::Slug; - type When = Set; type Ref = S::Ref; + type When = S::When; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData S>); impl sealed::Sealed for SetRef {} impl State for SetRef { type Slug = S::Slug; - type When = S::When; type Ref = Set; + type When = S::When; + } + ///State transition - sets the `when` field to Set + pub struct SetWhen(PhantomData S>); + impl sealed::Sealed for SetWhen {} + impl State for SetWhen { + type Slug = S::Slug; + type Ref = S::Ref; + type When = 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 `when` field - pub struct when(()); ///Marker type for the `ref` field pub struct r#ref(()); + ///Marker type for the `when` field + pub struct when(()); } } @@ -176,8 +176,8 @@ impl<'a, S> PieceBuilder<'a, S> where S: piece_state::State, S::Slug: piece_state::IsSet, - S::When: piece_state::IsSet, S::Ref: piece_state::IsSet, + S::When: piece_state::IsSet, { /// Build the final struct pub fn build(self) -> Piece<'a> { diff --git a/crates/jacquard-api/src/computer_aesthetic/tape.rs b/crates/jacquard-api/src/computer_aesthetic/tape.rs index 3073d70f..cef18f40 100644 --- a/crates/jacquard-api/src/computer_aesthetic/tape.rs +++ b/crates/jacquard-api/src/computer_aesthetic/tape.rs @@ -57,49 +57,49 @@ pub mod tape_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Slug; type Code; + type Slug; type When; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Slug = Unset; type Code = Unset; + type Slug = Unset; type When = Unset; } - ///State transition - sets the `slug` field to Set - pub struct SetSlug(PhantomData S>); - impl sealed::Sealed for SetSlug {} - impl State for SetSlug { - type Slug = Set; - type Code = S::Code; - type When = S::When; - } ///State transition - sets the `code` field to Set pub struct SetCode(PhantomData S>); impl sealed::Sealed for SetCode {} impl State for SetCode { - type Slug = S::Slug; type Code = Set; + type Slug = S::Slug; + type When = S::When; + } + ///State transition - sets the `slug` field to Set + pub struct SetSlug(PhantomData S>); + impl sealed::Sealed for SetSlug {} + impl State for SetSlug { + type Code = S::Code; + type Slug = Set; type When = S::When; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData S>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Slug = S::Slug; type Code = S::Code; + type Slug = S::Slug; type When = 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 `code` field pub struct code(()); + ///Marker type for the `slug` field + pub struct slug(()); ///Marker type for the `when` field pub struct when(()); } @@ -285,8 +285,8 @@ impl<'a, S: tape_state::State> TapeBuilder<'a, S> { impl<'a, S> TapeBuilder<'a, S> where S: tape_state::State, - S::Slug: tape_state::IsSet, S::Code: tape_state::IsSet, + S::Slug: tape_state::IsSet, S::When: tape_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs b/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs index f107c9b5..f3be8d83 100644 --- a/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs +++ b/crates/jacquard-api/src/dev_baileytownsend/health/calories.rs @@ -33,51 +33,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; - } - ///State transition - sets the `intake` field to Set - pub struct SetIntake(PhantomData S>); - impl sealed::Sealed for SetIntake {} - impl State for SetIntake { - type Intake = Set; - type Burned = S::Burned; - type CreatedAt = S::CreatedAt; + type Intake = Unset; } ///State transition - sets the `burned` field to Set pub struct SetBurned(PhantomData S>); impl sealed::Sealed for SetBurned {} impl State for SetBurned { - type Intake = S::Intake; type Burned = Set; type CreatedAt = S::CreatedAt; + type Intake = S::Intake; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Intake = S::Intake; type Burned = S::Burned; type CreatedAt = Set; + type Intake = S::Intake; + } + ///State transition - sets the `intake` field to Set + pub struct SetIntake(PhantomData S>); + impl sealed::Sealed for SetIntake {} + impl State for SetIntake { + type Burned = S::Burned; + type CreatedAt = S::CreatedAt; + type Intake = 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(()); } } @@ -170,9 +170,9 @@ where impl<'a, S> CaloriesBuilder<'a, S> where S: calories_state::State, - S::Intake: calories_state::IsSet, S::Burned: calories_state::IsSet, S::CreatedAt: calories_state::IsSet, + S::Intake: calories_state::IsSet, { /// Build the final struct pub fn build(self) -> Calories<'a> { diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs b/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs index 69e682f4..eaf21e58 100644 --- a/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs +++ b/crates/jacquard-api/src/dev_baileytownsend/health/rings.rs @@ -44,126 +44,126 @@ pub mod rings_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Move; - type MoveGoal; - type Exercise; - type ExerciseGoal; type StandHours; type StandGoal; type CreatedAt; + type MoveGoal; + type Exercise; + type ExerciseGoal; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Move = Unset; - type MoveGoal = Unset; - type Exercise = Unset; - type ExerciseGoal = Unset; type StandHours = Unset; type StandGoal = Unset; type CreatedAt = Unset; + type MoveGoal = Unset; + type Exercise = Unset; + type ExerciseGoal = Unset; } ///State transition - sets the `move` field to Set pub struct SetMove(PhantomData S>); impl sealed::Sealed for SetMove {} impl State for SetMove { type Move = Set; - type MoveGoal = S::MoveGoal; - type Exercise = S::Exercise; - type ExerciseGoal = S::ExerciseGoal; type StandHours = S::StandHours; type StandGoal = S::StandGoal; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `move_goal` field to Set - pub struct SetMoveGoal(PhantomData S>); - impl sealed::Sealed for SetMoveGoal {} - impl State for SetMoveGoal { - type Move = S::Move; - type MoveGoal = Set; - type Exercise = S::Exercise; - type ExerciseGoal = S::ExerciseGoal; - type StandHours = S::StandHours; - type StandGoal = S::StandGoal; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `exercise` field to Set - pub struct SetExercise(PhantomData S>); - impl sealed::Sealed for SetExercise {} - impl State for SetExercise { - type Move = S::Move; - type MoveGoal = S::MoveGoal; - type Exercise = Set; - type ExerciseGoal = S::ExerciseGoal; - type StandHours = S::StandHours; - type StandGoal = S::StandGoal; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `exercise_goal` field to Set - pub struct SetExerciseGoal(PhantomData S>); - impl sealed::Sealed for SetExerciseGoal {} - impl State for SetExerciseGoal { - type Move = S::Move; type MoveGoal = S::MoveGoal; type Exercise = S::Exercise; - type ExerciseGoal = Set; - type StandHours = S::StandHours; - type StandGoal = S::StandGoal; - type CreatedAt = S::CreatedAt; + type ExerciseGoal = S::ExerciseGoal; } ///State transition - sets the `stand_hours` field to Set pub struct SetStandHours(PhantomData S>); impl sealed::Sealed for SetStandHours {} impl State for SetStandHours { type Move = S::Move; - type MoveGoal = S::MoveGoal; - type Exercise = S::Exercise; - type ExerciseGoal = S::ExerciseGoal; type StandHours = Set; type StandGoal = S::StandGoal; type CreatedAt = S::CreatedAt; + type MoveGoal = S::MoveGoal; + type Exercise = S::Exercise; + type ExerciseGoal = S::ExerciseGoal; } ///State transition - sets the `stand_goal` field to Set pub struct SetStandGoal(PhantomData S>); impl sealed::Sealed for SetStandGoal {} impl State for SetStandGoal { type Move = S::Move; - type MoveGoal = S::MoveGoal; - type Exercise = S::Exercise; - type ExerciseGoal = S::ExerciseGoal; type StandHours = S::StandHours; type StandGoal = Set; type CreatedAt = S::CreatedAt; + type MoveGoal = S::MoveGoal; + type Exercise = S::Exercise; + type ExerciseGoal = S::ExerciseGoal; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Move = S::Move; + type StandHours = S::StandHours; + type StandGoal = S::StandGoal; + type CreatedAt = Set; type MoveGoal = S::MoveGoal; type Exercise = S::Exercise; type ExerciseGoal = S::ExerciseGoal; + } + ///State transition - sets the `move_goal` field to Set + pub struct SetMoveGoal(PhantomData S>); + impl sealed::Sealed for SetMoveGoal {} + impl State for SetMoveGoal { + type Move = S::Move; type StandHours = S::StandHours; type StandGoal = S::StandGoal; - type CreatedAt = Set; + type CreatedAt = S::CreatedAt; + type MoveGoal = Set; + type Exercise = S::Exercise; + type ExerciseGoal = S::ExerciseGoal; + } + ///State transition - sets the `exercise` field to Set + pub struct SetExercise(PhantomData S>); + impl sealed::Sealed for SetExercise {} + impl State for SetExercise { + type Move = S::Move; + type StandHours = S::StandHours; + type StandGoal = S::StandGoal; + type CreatedAt = S::CreatedAt; + type MoveGoal = S::MoveGoal; + type Exercise = Set; + type ExerciseGoal = S::ExerciseGoal; + } + ///State transition - sets the `exercise_goal` field to Set + pub struct SetExerciseGoal(PhantomData S>); + impl sealed::Sealed for SetExerciseGoal {} + impl State for SetExerciseGoal { + type Move = S::Move; + type StandHours = S::StandHours; + type StandGoal = S::StandGoal; + type CreatedAt = S::CreatedAt; + type MoveGoal = S::MoveGoal; + type Exercise = S::Exercise; + type ExerciseGoal = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///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` 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 `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(()); } } @@ -337,12 +337,12 @@ impl<'a, S> RingsBuilder<'a, S> where S: rings_state::State, S::Move: rings_state::IsSet, - S::MoveGoal: rings_state::IsSet, - S::Exercise: rings_state::IsSet, - S::ExerciseGoal: rings_state::IsSet, S::StandHours: rings_state::IsSet, S::StandGoal: rings_state::IsSet, S::CreatedAt: rings_state::IsSet, + S::MoveGoal: rings_state::IsSet, + S::Exercise: rings_state::IsSet, + S::ExerciseGoal: rings_state::IsSet, { /// Build the final struct pub fn build(self) -> Rings<'a> { diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs b/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs index d9205365..67155878 100644 --- a/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs +++ b/crates/jacquard-api/src/dev_baileytownsend/health/steps.rs @@ -31,37 +31,37 @@ pub mod steps_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Steps; type CreatedAt; + type Steps; } /// 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; - } - ///State transition - sets the `steps` field to Set - pub struct SetSteps(PhantomData S>); - impl sealed::Sealed for SetSteps {} - impl State for SetSteps { - type Steps = Set; - type CreatedAt = S::CreatedAt; + type Steps = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Steps = S::Steps; type CreatedAt = Set; + type Steps = S::Steps; + } + ///State transition - sets the `steps` field to Set + pub struct SetSteps(PhantomData S>); + impl sealed::Sealed for SetSteps {} + impl State for SetSteps { + type CreatedAt = S::CreatedAt; + type Steps = 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 `steps` field + pub struct steps(()); } } @@ -134,8 +134,8 @@ where impl<'a, S> StepsBuilder<'a, S> where S: steps_state::State, - S::Steps: steps_state::IsSet, S::CreatedAt: steps_state::IsSet, + S::Steps: steps_state::IsSet, { /// Build the final struct pub fn build(self) -> Steps<'a> { diff --git a/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs b/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs index 1cb64864..ab645f04 100644 --- a/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs +++ b/crates/jacquard-api/src/dev_baileytownsend/health/workout.rs @@ -44,97 +44,93 @@ pub mod workout_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Activity; - type CaloriesBurned; type Duration; type StartTime; type EndTime; type CreatedAt; + type Activity; + type CaloriesBurned; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Activity = Unset; - type CaloriesBurned = Unset; type Duration = Unset; type StartTime = Unset; type EndTime = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `activity` field to Set - pub struct SetActivity(PhantomData S>); - impl sealed::Sealed for SetActivity {} - impl State for SetActivity { - type Activity = Set; - type CaloriesBurned = S::CaloriesBurned; - type Duration = S::Duration; - type StartTime = S::StartTime; - type EndTime = S::EndTime; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `calories_burned` field to Set - pub struct SetCaloriesBurned(PhantomData S>); - impl sealed::Sealed for SetCaloriesBurned {} - impl State for SetCaloriesBurned { - type Activity = S::Activity; - type CaloriesBurned = Set; - type Duration = S::Duration; - type StartTime = S::StartTime; - type EndTime = S::EndTime; - type CreatedAt = S::CreatedAt; + type Activity = Unset; + type CaloriesBurned = Unset; } ///State transition - sets the `duration` field to Set pub struct SetDuration(PhantomData S>); impl sealed::Sealed for SetDuration {} impl State for SetDuration { - type Activity = S::Activity; - type CaloriesBurned = S::CaloriesBurned; type Duration = Set; type StartTime = S::StartTime; type EndTime = S::EndTime; type CreatedAt = S::CreatedAt; + type Activity = S::Activity; + type CaloriesBurned = S::CaloriesBurned; } ///State transition - sets the `start_time` field to Set pub struct SetStartTime(PhantomData S>); impl sealed::Sealed for SetStartTime {} impl State for SetStartTime { - type Activity = S::Activity; - type CaloriesBurned = S::CaloriesBurned; type Duration = S::Duration; type StartTime = Set; type EndTime = S::EndTime; type CreatedAt = S::CreatedAt; + type Activity = S::Activity; + type CaloriesBurned = S::CaloriesBurned; } ///State transition - sets the `end_time` field to Set pub struct SetEndTime(PhantomData S>); impl sealed::Sealed for SetEndTime {} impl State for SetEndTime { - type Activity = S::Activity; - type CaloriesBurned = S::CaloriesBurned; type Duration = S::Duration; type StartTime = S::StartTime; type EndTime = Set; type CreatedAt = S::CreatedAt; + type Activity = S::Activity; + type CaloriesBurned = S::CaloriesBurned; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Duration = S::Duration; + type StartTime = S::StartTime; + type EndTime = S::EndTime; + type CreatedAt = Set; type Activity = S::Activity; type CaloriesBurned = S::CaloriesBurned; + } + ///State transition - sets the `activity` field to Set + pub struct SetActivity(PhantomData S>); + impl sealed::Sealed for SetActivity {} + impl State for SetActivity { type Duration = S::Duration; type StartTime = S::StartTime; type EndTime = S::EndTime; - type CreatedAt = Set; + type CreatedAt = S::CreatedAt; + type Activity = Set; + type CaloriesBurned = S::CaloriesBurned; + } + ///State transition - sets the `calories_burned` field to Set + pub struct SetCaloriesBurned(PhantomData S>); + impl sealed::Sealed for SetCaloriesBurned {} + impl State for SetCaloriesBurned { + type Duration = S::Duration; + type StartTime = S::StartTime; + type EndTime = S::EndTime; + type CreatedAt = S::CreatedAt; + type Activity = S::Activity; + type CaloriesBurned = 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 `calories_burned` field - pub struct calories_burned(()); ///Marker type for the `duration` field pub struct duration(()); ///Marker type for the `start_time` field @@ -143,6 +139,10 @@ pub mod workout_state { pub struct end_time(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `activity` field + pub struct activity(()); + ///Marker type for the `calories_burned` field + pub struct calories_burned(()); } } @@ -312,12 +312,12 @@ where impl<'a, S> WorkoutBuilder<'a, S> where S: workout_state::State, - S::Activity: workout_state::IsSet, - S::CaloriesBurned: workout_state::IsSet, S::Duration: workout_state::IsSet, S::StartTime: workout_state::IsSet, S::EndTime: workout_state::IsSet, S::CreatedAt: workout_state::IsSet, + S::Activity: workout_state::IsSet, + S::CaloriesBurned: workout_state::IsSet, { /// Build the final struct pub fn build(self) -> Workout<'a> { 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 7a700b6b..9b655e81 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 @@ -47,96 +47,94 @@ pub mod post_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Title; - type Content; type CreatedAt; type Category; type Forum; type Tags; + 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 Category = Unset; type Forum = Unset; type Tags = Unset; + type Content = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { type Title = Set; - type Content = S::Content; - type CreatedAt = S::CreatedAt; - type Category = S::Category; - type Forum = S::Forum; - type Tags = S::Tags; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData S>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type Title = S::Title; - type Content = Set; type CreatedAt = S::CreatedAt; type Category = S::Category; type Forum = S::Forum; type Tags = S::Tags; + type Content = S::Content; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Title = S::Title; - type Content = S::Content; type CreatedAt = Set; type Category = S::Category; type Forum = S::Forum; type Tags = S::Tags; + type Content = S::Content; } ///State transition - sets the `category` field to Set pub struct SetCategory(PhantomData S>); impl sealed::Sealed for SetCategory {} impl State for SetCategory { type Title = S::Title; - type Content = S::Content; type CreatedAt = S::CreatedAt; type Category = Set; type Forum = S::Forum; type Tags = S::Tags; + type Content = S::Content; } ///State transition - sets the `forum` field to Set pub struct SetForum(PhantomData S>); impl sealed::Sealed for SetForum {} impl State for SetForum { type Title = S::Title; - type Content = S::Content; type CreatedAt = S::CreatedAt; type Category = S::Category; type Forum = Set; type Tags = S::Tags; + type Content = S::Content; } ///State transition - sets the `tags` field to Set pub struct SetTags(PhantomData S>); impl sealed::Sealed for SetTags {} impl State for SetTags { type Title = S::Title; - type Content = S::Content; type CreatedAt = S::CreatedAt; type Category = S::Category; type Forum = S::Forum; type Tags = Set; + type Content = S::Content; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData S>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Title = S::Title; + type CreatedAt = S::CreatedAt; + type Category = S::Category; + type Forum = S::Forum; + type Tags = S::Tags; + type Content = 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 `category` field @@ -145,6 +143,8 @@ pub mod post_state { pub struct forum(()); ///Marker type for the `tags` field pub struct tags(()); + ///Marker type for the `content` field + pub struct content(()); } } @@ -338,11 +338,11 @@ impl<'a, S> PostBuilder<'a, S> where S: post_state::State, S::Title: post_state::IsSet, - S::Content: post_state::IsSet, S::CreatedAt: post_state::IsSet, S::Category: post_state::IsSet, S::Forum: post_state::IsSet, S::Tags: post_state::IsSet, + S::Content: post_state::IsSet, { /// Build the final struct pub fn build(self) -> Post<'a> { 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 9e2d8ad3..bd624d51 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 @@ -43,8 +43,8 @@ pub mod question_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Title; - type Content; type CreatedAt; + type Content; type Forum; type Tags; type IsOpen; @@ -54,8 +54,8 @@ pub mod question_state { impl sealed::Sealed for Empty {} impl State for Empty { type Title = Unset; - type Content = Unset; type CreatedAt = Unset; + type Content = Unset; type Forum = Unset; type Tags = Unset; type IsOpen = Unset; @@ -65,19 +65,8 @@ pub mod question_state { impl sealed::Sealed for SetTitle {} impl State for SetTitle { type Title = Set; - type Content = S::Content; - type CreatedAt = S::CreatedAt; - type Forum = S::Forum; - type Tags = S::Tags; - type IsOpen = S::IsOpen; - } - ///State transition - sets the `content` field to Set - pub struct SetContent(PhantomData S>); - impl sealed::Sealed for SetContent {} - impl State for SetContent { - type Title = S::Title; - type Content = Set; type CreatedAt = S::CreatedAt; + type Content = S::Content; type Forum = S::Forum; type Tags = S::Tags; type IsOpen = S::IsOpen; @@ -87,8 +76,19 @@ pub mod question_state { impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Title = S::Title; - type Content = S::Content; type CreatedAt = Set; + type Content = S::Content; + type Forum = S::Forum; + type Tags = S::Tags; + type IsOpen = S::IsOpen; + } + ///State transition - sets the `content` field to Set + pub struct SetContent(PhantomData S>); + impl sealed::Sealed for SetContent {} + impl State for SetContent { + type Title = S::Title; + type CreatedAt = S::CreatedAt; + type Content = Set; type Forum = S::Forum; type Tags = S::Tags; type IsOpen = S::IsOpen; @@ -98,8 +98,8 @@ pub mod question_state { impl sealed::Sealed for SetForum {} impl State for SetForum { type Title = S::Title; - type Content = S::Content; type CreatedAt = S::CreatedAt; + type Content = S::Content; type Forum = Set; type Tags = S::Tags; type IsOpen = S::IsOpen; @@ -109,8 +109,8 @@ pub mod question_state { impl sealed::Sealed for SetTags {} impl State for SetTags { type Title = S::Title; - type Content = S::Content; type CreatedAt = S::CreatedAt; + type Content = S::Content; type Forum = S::Forum; type Tags = Set; type IsOpen = S::IsOpen; @@ -120,8 +120,8 @@ pub mod question_state { impl sealed::Sealed for SetIsOpen {} impl State for SetIsOpen { type Title = S::Title; - type Content = S::Content; type CreatedAt = S::CreatedAt; + type Content = S::Content; type Forum = S::Forum; type Tags = S::Tags; type IsOpen = Set; @@ -131,10 +131,10 @@ pub mod question_state { 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 `content` field + pub struct content(()); ///Marker type for the `forum` field pub struct forum(()); ///Marker type for the `tags` field @@ -314,8 +314,8 @@ impl<'a, S> QuestionBuilder<'a, S> where S: question_state::State, S::Title: question_state::IsSet, - S::Content: question_state::IsSet, S::CreatedAt: question_state::IsSet, + S::Content: question_state::IsSet, S::Forum: question_state::IsSet, S::Tags: question_state::IsSet, S::IsOpen: question_state::IsSet, diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/announcement.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/announcement.rs index 9b09a0a6..ab7af1fd 100644 --- a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/announcement.rs +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/announcement.rs @@ -36,67 +36,67 @@ pub mod announcement_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; - type Body; type CreatedAt; + type Title; type ExpiresAt; + type Body; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Title = Unset; - type Body = Unset; type CreatedAt = Unset; + type Title = Unset; type ExpiresAt = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Body = S::Body; - type CreatedAt = S::CreatedAt; - type ExpiresAt = S::ExpiresAt; - } - ///State transition - sets the `body` field to Set - pub struct SetBody(PhantomData S>); - impl sealed::Sealed for SetBody {} - impl State for SetBody { - type Title = S::Title; - type Body = Set; - type CreatedAt = S::CreatedAt; - type ExpiresAt = S::ExpiresAt; + type Body = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type CreatedAt = Set; type Title = S::Title; + type ExpiresAt = S::ExpiresAt; type Body = S::Body; - type CreatedAt = Set; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type CreatedAt = S::CreatedAt; + type Title = Set; type ExpiresAt = S::ExpiresAt; + type Body = S::Body; } ///State transition - sets the `expires_at` field to Set pub struct SetExpiresAt(PhantomData S>); impl sealed::Sealed for SetExpiresAt {} impl State for SetExpiresAt { + type CreatedAt = S::CreatedAt; type Title = S::Title; + type ExpiresAt = Set; type Body = S::Body; + } + ///State transition - sets the `body` field to Set + pub struct SetBody(PhantomData S>); + impl sealed::Sealed for SetBody {} + impl State for SetBody { type CreatedAt = S::CreatedAt; - type ExpiresAt = Set; + type Title = S::Title; + type ExpiresAt = S::ExpiresAt; + type Body = 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 `body` field - pub struct body(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `title` field + pub struct title(()); ///Marker type for the `expires_at` field pub struct expires_at(()); + ///Marker type for the `body` field + pub struct body(()); } } @@ -209,10 +209,10 @@ where impl<'a, S> AnnouncementBuilder<'a, S> where S: announcement_state::State, - S::Title: announcement_state::IsSet, - S::Body: announcement_state::IsSet, S::CreatedAt: announcement_state::IsSet, + S::Title: announcement_state::IsSet, S::ExpiresAt: announcement_state::IsSet, + S::Body: announcement_state::IsSet, { /// Build the final struct pub fn build(self) -> Announcement<'a> { diff --git a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/category.rs b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/category.rs index 95e00322..c6ff353e 100644 --- a/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/category.rs +++ b/crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/category.rs @@ -39,51 +39,51 @@ pub mod category_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Group; type CategoryType; + 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 Group = Unset; type CategoryType = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Group = S::Group; - type CategoryType = S::CategoryType; + type Name = Unset; } ///State transition - sets the `group` field to Set pub struct SetGroup(PhantomData S>); impl sealed::Sealed for SetGroup {} impl State for SetGroup { - type Name = S::Name; type Group = Set; type CategoryType = S::CategoryType; + type Name = S::Name; } ///State transition - sets the `category_type` field to Set pub struct SetCategoryType(PhantomData S>); impl sealed::Sealed for SetCategoryType {} impl State for SetCategoryType { - type Name = S::Name; type Group = S::Group; type CategoryType = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Group = S::Group; + type CategoryType = S::CategoryType; + 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 `group` field pub struct group(()); ///Marker type for the `category_type` field pub struct category_type(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -196,9 +196,9 @@ where impl<'a, S> CategoryBuilder<'a, S> where S: category_state::State, - S::Name: category_state::IsSet, S::Group: category_state::IsSet, S::CategoryType: category_state::IsSet, + S::Name: category_state::IsSet, { /// Build the final struct pub fn build(self) -> Category<'a> { diff --git a/crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs b/crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs index fe94423e..bc1ff054 100644 --- a/crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs +++ b/crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs @@ -39,67 +39,67 @@ pub mod board_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; + type Nsfw; type Title; type Description; - type Nsfw; - 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 Nsfw = Unset; type Title = Unset; type Description = Unset; - type Nsfw = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Nsfw = S::Nsfw; + type Title = S::Title; + type Description = S::Description; + } + ///State transition - sets the `nsfw` field to Set + pub struct SetNsfw(PhantomData S>); + impl sealed::Sealed for SetNsfw {} + impl State for SetNsfw { + type CreatedAt = S::CreatedAt; + type Nsfw = Set; + type Title = S::Title; + type Description = S::Description; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { + type CreatedAt = S::CreatedAt; + type Nsfw = S::Nsfw; type Title = Set; type Description = S::Description; - type Nsfw = S::Nsfw; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData S>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Title = S::Title; - type Description = Set; - type Nsfw = S::Nsfw; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `nsfw` field to Set - pub struct SetNsfw(PhantomData S>); - impl sealed::Sealed for SetNsfw {} - impl State for SetNsfw { - type Title = S::Title; - type Description = S::Description; - type Nsfw = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Title = S::Title; - type Description = S::Description; type Nsfw = S::Nsfw; - type CreatedAt = Set; + type Title = S::Title; + type Description = 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 `nsfw` field + pub struct nsfw(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `description` field pub struct description(()); - ///Marker type for the `nsfw` field - pub struct nsfw(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -212,10 +212,10 @@ where impl<'a, S> BoardBuilder<'a, S> where S: board_state::State, + S::CreatedAt: board_state::IsSet, + S::Nsfw: board_state::IsSet, S::Title: board_state::IsSet, S::Description: board_state::IsSet, - S::Nsfw: board_state::IsSet, - S::CreatedAt: board_state::IsSet, { /// Build the final struct pub fn build(self) -> Board<'a> { diff --git a/crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs b/crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs index c1fb0cef..174c16f4 100644 --- a/crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs +++ b/crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs @@ -41,49 +41,49 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; type CreatedAt; + type Text; type Parent; } /// 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 Text = Unset; type Parent = Unset; } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData S>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type CreatedAt = S::CreatedAt; - type Parent = S::Parent; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = S::Text; type CreatedAt = Set; + type Text = S::Text; + type Parent = S::Parent; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData S>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = S::CreatedAt; + type Text = Set; type Parent = S::Parent; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData S>); impl sealed::Sealed for SetParent {} impl State for SetParent { - type Text = S::Text; type CreatedAt = S::CreatedAt; + type Text = S::Text; type Parent = 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(()); ///Marker type for the `parent` field pub struct parent(()); } @@ -198,8 +198,8 @@ where impl<'a, S> PostBuilder<'a, S> where S: post_state::State, - S::Text: post_state::IsSet, S::CreatedAt: post_state::IsSet, + S::Text: post_state::IsSet, S::Parent: post_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/fm_teal/alpha/feed.rs b/crates/jacquard-api/src/fm_teal/alpha/feed.rs index e3fb138c..f0c1e251 100644 --- a/crates/jacquard-api/src/fm_teal/alpha/feed.rs +++ b/crates/jacquard-api/src/fm_teal/alpha/feed.rs @@ -490,37 +490,37 @@ pub mod play_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type TrackName; type Artists; + type TrackName; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type TrackName = Unset; type Artists = Unset; - } - ///State transition - sets the `track_name` field to Set - pub struct SetTrackName(PhantomData S>); - impl sealed::Sealed for SetTrackName {} - impl State for SetTrackName { - type TrackName = Set; - type Artists = S::Artists; + type TrackName = Unset; } ///State transition - sets the `artists` field to Set pub struct SetArtists(PhantomData S>); impl sealed::Sealed for SetArtists {} impl State for SetArtists { - type TrackName = S::TrackName; type Artists = Set; + type TrackName = S::TrackName; + } + ///State transition - sets the `track_name` field to Set + pub struct SetTrackName(PhantomData S>); + impl sealed::Sealed for SetTrackName {} + impl State for SetTrackName { + type Artists = S::Artists; + type TrackName = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `track_name` field - pub struct track_name(()); ///Marker type for the `artists` field pub struct artists(()); + ///Marker type for the `track_name` field + pub struct track_name(()); } } @@ -797,8 +797,8 @@ where impl<'a, S> PlayViewBuilder<'a, S> where S: play_view_state::State, - S::TrackName: play_view_state::IsSet, S::Artists: play_view_state::IsSet, + S::TrackName: play_view_state::IsSet, { /// Build the final struct pub fn build(self) -> PlayView<'a> { diff --git a/crates/jacquard-api/src/fm_teal/alpha/stats.rs b/crates/jacquard-api/src/fm_teal/alpha/stats.rs index ef8077c8..c5de8804 100644 --- a/crates/jacquard-api/src/fm_teal/alpha/stats.rs +++ b/crates/jacquard-api/src/fm_teal/alpha/stats.rs @@ -480,51 +480,51 @@ pub mod recording_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Mbid; type Name; type PlayCount; + type Mbid; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Mbid = Unset; type Name = Unset; type PlayCount = Unset; - } - ///State transition - sets the `mbid` field to Set - pub struct SetMbid(PhantomData S>); - impl sealed::Sealed for SetMbid {} - impl State for SetMbid { - type Mbid = Set; - type Name = S::Name; - type PlayCount = S::PlayCount; + type Mbid = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { - type Mbid = S::Mbid; type Name = Set; type PlayCount = S::PlayCount; + type Mbid = S::Mbid; } ///State transition - sets the `play_count` field to Set pub struct SetPlayCount(PhantomData S>); impl sealed::Sealed for SetPlayCount {} impl State for SetPlayCount { - type Mbid = S::Mbid; type Name = S::Name; type PlayCount = Set; + type Mbid = S::Mbid; + } + ///State transition - sets the `mbid` field to Set + pub struct SetMbid(PhantomData S>); + impl sealed::Sealed for SetMbid {} + impl State for SetMbid { + type Name = S::Name; + type PlayCount = S::PlayCount; + type Mbid = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `mbid` field - pub struct mbid(()); ///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(()); } } @@ -617,9 +617,9 @@ where impl<'a, S> RecordingViewBuilder<'a, S> where S: recording_view_state::State, - S::Mbid: recording_view_state::IsSet, S::Name: recording_view_state::IsSet, S::PlayCount: recording_view_state::IsSet, + S::Mbid: recording_view_state::IsSet, { /// Build the final struct pub fn build(self) -> RecordingView<'a> { @@ -696,51 +696,51 @@ pub mod release_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type PlayCount; type Mbid; type Name; - 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 Mbid = Unset; type Name = Unset; - type PlayCount = Unset; + } + ///State transition - sets the `play_count` field to Set + pub struct SetPlayCount(PhantomData S>); + impl sealed::Sealed for SetPlayCount {} + impl State for SetPlayCount { + type PlayCount = Set; + type Mbid = S::Mbid; + type Name = S::Name; } ///State transition - sets the `mbid` field to Set pub struct SetMbid(PhantomData S>); impl sealed::Sealed for SetMbid {} impl State for SetMbid { + type PlayCount = S::PlayCount; type Mbid = Set; type Name = S::Name; - type PlayCount = S::PlayCount; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { - type Mbid = S::Mbid; - type Name = Set; type PlayCount = S::PlayCount; - } - ///State transition - sets the `play_count` field to Set - pub struct SetPlayCount(PhantomData S>); - impl sealed::Sealed for SetPlayCount {} - impl State for SetPlayCount { type Mbid = S::Mbid; - type Name = S::Name; - type PlayCount = Set; + type Name = 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 `mbid` field pub struct mbid(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `play_count` field - pub struct play_count(()); } } @@ -833,9 +833,9 @@ where impl<'a, S> ReleaseViewBuilder<'a, S> where S: release_view_state::State, + S::PlayCount: release_view_state::IsSet, S::Mbid: release_view_state::IsSet, S::Name: release_view_state::IsSet, - S::PlayCount: release_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ReleaseView<'a> { diff --git a/crates/jacquard-api/src/fyi_frontpage/feed/comment.rs b/crates/jacquard-api/src/fyi_frontpage/feed/comment.rs index 54cb1df7..e888cc4b 100644 --- a/crates/jacquard-api/src/fyi_frontpage/feed/comment.rs +++ b/crates/jacquard-api/src/fyi_frontpage/feed/comment.rs @@ -40,51 +40,51 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Post; type Blocks; + 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 Post = Unset; type Blocks = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Post = S::Post; - type Blocks = S::Blocks; + type CreatedAt = Unset; } ///State transition - sets the `post` field to Set pub struct SetPost(PhantomData S>); impl sealed::Sealed for SetPost {} impl State for SetPost { - type CreatedAt = S::CreatedAt; type Post = Set; type Blocks = S::Blocks; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `blocks` field to Set pub struct SetBlocks(PhantomData S>); impl sealed::Sealed for SetBlocks {} impl State for SetBlocks { - type CreatedAt = S::CreatedAt; type Post = S::Post; type Blocks = Set; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Post = S::Post; + type Blocks = S::Blocks; + 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 `post` field pub struct post(()); ///Marker type for the `blocks` field pub struct blocks(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -197,9 +197,9 @@ where impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, - S::CreatedAt: comment_state::IsSet, S::Post: comment_state::IsSet, S::Blocks: comment_state::IsSet, + S::CreatedAt: comment_state::IsSet, { /// Build the final struct pub fn build(self) -> Comment<'a> { diff --git a/crates/jacquard-api/src/fyi_frontpage/feed/post.rs b/crates/jacquard-api/src/fyi_frontpage/feed/post.rs index c5934060..3598e69b 100644 --- a/crates/jacquard-api/src/fyi_frontpage/feed/post.rs +++ b/crates/jacquard-api/src/fyi_frontpage/feed/post.rs @@ -39,37 +39,37 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; 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 CreatedAt = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type CreatedAt = S::CreatedAt; + type Title = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Title = S::Title; type CreatedAt = Set; + type Title = S::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type CreatedAt = S::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 `created_at` field pub struct created_at(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -162,8 +162,8 @@ where impl<'a, S> PostBuilder<'a, S> where S: post_state::State, - S::Title: post_state::IsSet, S::CreatedAt: post_state::IsSet, + S::Title: post_state::IsSet, { /// Build the final struct pub fn build(self) -> Post<'a> { diff --git a/crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs b/crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs index 6226345c..f4bc2bdd 100644 --- a/crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs +++ b/crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs @@ -40,51 +40,51 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Post; type Content; 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 Content = Unset; type CreatedAt = Unset; - type Post = Unset; + } + ///State transition - sets the `post` field to Set + pub struct SetPost(PhantomData S>); + impl sealed::Sealed for SetPost {} + impl State for SetPost { + type Post = Set; + type Content = S::Content; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData S>); impl sealed::Sealed for SetContent {} impl State for SetContent { + type Post = S::Post; type Content = Set; type CreatedAt = S::CreatedAt; - type Post = S::Post; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Content = S::Content; - type CreatedAt = Set; type Post = S::Post; - } - ///State transition - sets the `post` field to Set - pub struct SetPost(PhantomData S>); - impl sealed::Sealed for SetPost {} - impl State for SetPost { type Content = S::Content; - type CreatedAt = S::CreatedAt; - type Post = Set; + type CreatedAt = 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 `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(()); } } @@ -197,9 +197,9 @@ where impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, + S::Post: comment_state::IsSet, S::Content: comment_state::IsSet, S::CreatedAt: comment_state::IsSet, - S::Post: comment_state::IsSet, { /// Build the final struct pub fn build(self) -> Comment<'a> { diff --git a/crates/jacquard-api/src/fyi_unravel/frontpage/vote.rs b/crates/jacquard-api/src/fyi_unravel/frontpage/vote.rs index d2b7868e..47c70ac5 100644 --- a/crates/jacquard-api/src/fyi_unravel/frontpage/vote.rs +++ b/crates/jacquard-api/src/fyi_unravel/frontpage/vote.rs @@ -34,37 +34,37 @@ pub mod vote_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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -137,8 +137,8 @@ where impl<'a, S> VoteBuilder<'a, S> where S: vote_state::State, - S::Subject: vote_state::IsSet, S::CreatedAt: vote_state::IsSet, + S::Subject: vote_state::IsSet, { /// Build the final struct pub fn build(self) -> Vote<'a> { diff --git a/crates/jacquard-api/src/my_skylights/list_item.rs b/crates/jacquard-api/src/my_skylights/list_item.rs index 695e959d..cdd416d0 100644 --- a/crates/jacquard-api/src/my_skylights/list_item.rs +++ b/crates/jacquard-api/src/my_skylights/list_item.rs @@ -295,50 +295,50 @@ pub mod list_item_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type List; - type AddedAt; type Position; + type AddedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type List = Unset; - type AddedAt = Unset; type Position = Unset; + type AddedAt = Unset; } ///State transition - sets the `list` field to Set pub struct SetList(PhantomData S>); impl sealed::Sealed for SetList {} impl State for SetList { type List = Set; - type AddedAt = S::AddedAt; - type Position = S::Position; - } - ///State transition - sets the `added_at` field to Set - pub struct SetAddedAt(PhantomData S>); - impl sealed::Sealed for SetAddedAt {} - impl State for SetAddedAt { - type List = S::List; - type AddedAt = Set; type Position = S::Position; + type AddedAt = S::AddedAt; } ///State transition - sets the `position` field to Set pub struct SetPosition(PhantomData S>); impl sealed::Sealed for SetPosition {} impl State for SetPosition { type List = S::List; - type AddedAt = S::AddedAt; type Position = Set; + type AddedAt = S::AddedAt; + } + ///State transition - sets the `added_at` field to Set + pub struct SetAddedAt(PhantomData S>); + impl sealed::Sealed for SetAddedAt {} + impl State for SetAddedAt { + type List = S::List; + type Position = S::Position; + type AddedAt = 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 `added_at` field - pub struct added_at(()); ///Marker type for the `position` field pub struct position(()); + ///Marker type for the `added_at` field + pub struct added_at(()); } } @@ -466,8 +466,8 @@ impl<'a, S> ListItemBuilder<'a, S> where S: list_item_state::State, S::List: list_item_state::IsSet, - S::AddedAt: list_item_state::IsSet, S::Position: list_item_state::IsSet, + S::AddedAt: list_item_state::IsSet, { /// Build the final struct pub fn build(self) -> ListItem<'a> { diff --git a/crates/jacquard-api/src/my_skylights/rel.rs b/crates/jacquard-api/src/my_skylights/rel.rs index fe714905..ef9fb133 100644 --- a/crates/jacquard-api/src/my_skylights/rel.rs +++ b/crates/jacquard-api/src/my_skylights/rel.rs @@ -507,51 +507,51 @@ pub mod note_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Value; type CreatedAt; type UpdatedAt; + 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 CreatedAt = Unset; type UpdatedAt = Unset; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData S>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { - type Value = Set; - type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; + type Value = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Value = S::Value; type CreatedAt = Set; type UpdatedAt = S::UpdatedAt; + type Value = S::Value; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData S>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { - type Value = S::Value; type CreatedAt = S::CreatedAt; type UpdatedAt = Set; + type Value = S::Value; + } + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData S>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type CreatedAt = S::CreatedAt; + type UpdatedAt = S::UpdatedAt; + 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 `created_at` field pub struct created_at(()); ///Marker type for the `updated_at` field pub struct updated_at(()); + ///Marker type for the `value` field + pub struct value(()); } } @@ -644,9 +644,9 @@ where impl<'a, S> NoteBuilder<'a, S> where S: note_state::State, - S::Value: note_state::IsSet, S::CreatedAt: note_state::IsSet, S::UpdatedAt: note_state::IsSet, + S::Value: note_state::IsSet, { /// Build the final struct pub fn build(self) -> Note<'a> { @@ -717,37 +717,37 @@ pub mod rating_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Value; type CreatedAt; + 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 CreatedAt = Unset; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData S>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { - type Value = Set; - type CreatedAt = S::CreatedAt; + type Value = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Value = S::Value; type CreatedAt = Set; + type Value = S::Value; + } + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData S>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type CreatedAt = S::CreatedAt; + 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 `created_at` field pub struct created_at(()); + ///Marker type for the `value` field + pub struct value(()); } } @@ -820,8 +820,8 @@ where impl<'a, S> RatingBuilder<'a, S> where S: rating_state::State, - S::Value: rating_state::IsSet, S::CreatedAt: rating_state::IsSet, + S::Value: rating_state::IsSet, { /// Build the final struct pub fn build(self) -> Rating<'a> { diff --git a/crates/jacquard-api/src/net_altq/aqfile.rs b/crates/jacquard-api/src/net_altq/aqfile.rs index a1ef3592..19db8b6b 100644 --- a/crates/jacquard-api/src/net_altq/aqfile.rs +++ b/crates/jacquard-api/src/net_altq/aqfile.rs @@ -371,37 +371,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 S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Size = S::Size; + type Name = Unset; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData S>); impl sealed::Sealed for SetSize {} impl State for SetSize { - type Name = S::Name; type Size = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Size = S::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(()); } } @@ -514,8 +514,8 @@ where impl<'a, S> FileBuilder<'a, S> where S: file_state::State, - S::Name: file_state::IsSet, S::Size: file_state::IsSet, + S::Name: file_state::IsSet, { /// Build the final struct pub fn build(self) -> File<'a> { @@ -654,51 +654,51 @@ pub mod aqfile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Blob; type CreatedAt; type File; + 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 CreatedAt = Unset; type File = Unset; - } - ///State transition - sets the `blob` field to Set - pub struct SetBlob(PhantomData S>); - impl sealed::Sealed for SetBlob {} - impl State for SetBlob { - type Blob = Set; - type CreatedAt = S::CreatedAt; - type File = S::File; + type Blob = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Blob = S::Blob; type CreatedAt = Set; type File = S::File; + type Blob = S::Blob; } ///State transition - sets the `file` field to Set pub struct SetFile(PhantomData S>); impl sealed::Sealed for SetFile {} impl State for SetFile { - type Blob = S::Blob; type CreatedAt = S::CreatedAt; type File = Set; + type Blob = S::Blob; + } + ///State transition - sets the `blob` field to Set + pub struct SetBlob(PhantomData S>); + impl sealed::Sealed for SetBlob {} + impl State for SetBlob { + type CreatedAt = S::CreatedAt; + type File = S::File; + 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 `created_at` field pub struct created_at(()); ///Marker type for the `file` field pub struct file(()); + ///Marker type for the `blob` field + pub struct blob(()); } } @@ -831,9 +831,9 @@ where impl<'a, S> AqfileBuilder<'a, S> where S: aqfile_state::State, - S::Blob: aqfile_state::IsSet, S::CreatedAt: aqfile_state::IsSet, S::File: aqfile_state::IsSet, + S::Blob: aqfile_state::IsSet, { /// Build the final struct pub fn build(self) -> Aqfile<'a> { 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 48c26d47..553d9b44 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/collection.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/collection.rs @@ -91,67 +91,67 @@ pub mod collection_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type SpecimenId; type Quantity; type AcquiredAt; type CreatedAt; + type SpecimenId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type SpecimenId = Unset; type Quantity = Unset; type AcquiredAt = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `specimen_id` field to Set - pub struct SetSpecimenId(PhantomData S>); - impl sealed::Sealed for SetSpecimenId {} - impl State for SetSpecimenId { - type SpecimenId = Set; - type Quantity = S::Quantity; - type AcquiredAt = S::AcquiredAt; - type CreatedAt = S::CreatedAt; + type SpecimenId = Unset; } ///State transition - sets the `quantity` field to Set pub struct SetQuantity(PhantomData S>); impl sealed::Sealed for SetQuantity {} impl State for SetQuantity { - type SpecimenId = S::SpecimenId; type Quantity = Set; type AcquiredAt = S::AcquiredAt; type CreatedAt = S::CreatedAt; + type SpecimenId = S::SpecimenId; } ///State transition - sets the `acquired_at` field to Set pub struct SetAcquiredAt(PhantomData S>); impl sealed::Sealed for SetAcquiredAt {} impl State for SetAcquiredAt { - type SpecimenId = S::SpecimenId; type Quantity = S::Quantity; type AcquiredAt = Set; type CreatedAt = S::CreatedAt; + type SpecimenId = S::SpecimenId; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type SpecimenId = S::SpecimenId; type Quantity = S::Quantity; type AcquiredAt = S::AcquiredAt; type CreatedAt = Set; + type SpecimenId = S::SpecimenId; + } + ///State transition - sets the `specimen_id` field to Set + pub struct SetSpecimenId(PhantomData S>); + impl sealed::Sealed for SetSpecimenId {} + impl State for SetSpecimenId { + type Quantity = S::Quantity; + type AcquiredAt = S::AcquiredAt; + type CreatedAt = S::CreatedAt; + type SpecimenId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `specimen_id` field - pub struct specimen_id(()); ///Marker type for the `quantity` field pub struct quantity(()); ///Marker type for the `acquired_at` field pub struct acquired_at(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `specimen_id` field + pub struct specimen_id(()); } } @@ -532,10 +532,10 @@ impl<'a, S: collection_state::State> CollectionBuilder<'a, S> { impl<'a, S> CollectionBuilder<'a, S> where S: collection_state::State, - S::SpecimenId: collection_state::IsSet, S::Quantity: collection_state::IsSet, S::AcquiredAt: collection_state::IsSet, S::CreatedAt: collection_state::IsSet, + S::SpecimenId: collection_state::IsSet, { /// Build the final struct pub fn build(self) -> Collection<'a> { 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 483549b5..1538bd3b 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/inventory.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/inventory.rs @@ -82,8 +82,8 @@ pub mod inventory_state { pub trait State: sealed::Sealed { type ItemId; type Quantity; - type AcquiredAt; type CreatedAt; + type AcquiredAt; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -91,8 +91,8 @@ pub mod inventory_state { impl State for Empty { type ItemId = Unset; type Quantity = Unset; - type AcquiredAt = Unset; type CreatedAt = Unset; + type AcquiredAt = Unset; } ///State transition - sets the `item_id` field to Set pub struct SetItemId(PhantomData S>); @@ -100,8 +100,8 @@ pub mod inventory_state { impl State for SetItemId { type ItemId = Set; type Quantity = S::Quantity; - type AcquiredAt = S::AcquiredAt; type CreatedAt = S::CreatedAt; + type AcquiredAt = S::AcquiredAt; } ///State transition - sets the `quantity` field to Set pub struct SetQuantity(PhantomData S>); @@ -109,17 +109,8 @@ pub mod inventory_state { impl State for SetQuantity { type ItemId = S::ItemId; type Quantity = Set; - type AcquiredAt = S::AcquiredAt; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `acquired_at` field to Set - pub struct SetAcquiredAt(PhantomData S>); - impl sealed::Sealed for SetAcquiredAt {} - impl State for SetAcquiredAt { - type ItemId = S::ItemId; - type Quantity = S::Quantity; - type AcquiredAt = Set; type CreatedAt = S::CreatedAt; + type AcquiredAt = S::AcquiredAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); @@ -127,8 +118,17 @@ pub mod inventory_state { impl State for SetCreatedAt { type ItemId = S::ItemId; type Quantity = S::Quantity; - type AcquiredAt = S::AcquiredAt; type CreatedAt = Set; + type AcquiredAt = S::AcquiredAt; + } + ///State transition - sets the `acquired_at` field to Set + pub struct SetAcquiredAt(PhantomData S>); + impl sealed::Sealed for SetAcquiredAt {} + impl State for SetAcquiredAt { + type ItemId = S::ItemId; + type Quantity = S::Quantity; + type CreatedAt = S::CreatedAt; + type AcquiredAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -137,10 +137,10 @@ pub mod inventory_state { pub struct item_id(()); ///Marker type for the `quantity` field pub struct quantity(()); - ///Marker type for the `acquired_at` field - pub struct acquired_at(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `acquired_at` field + pub struct acquired_at(()); } } @@ -471,8 +471,8 @@ where S: inventory_state::State, S::ItemId: inventory_state::IsSet, S::Quantity: inventory_state::IsSet, - S::AcquiredAt: inventory_state::IsSet, S::CreatedAt: inventory_state::IsSet, + S::AcquiredAt: inventory_state::IsSet, { /// Build the final struct pub fn build(self) -> Inventory<'a> { diff --git a/crates/jacquard-api/src/net_anisota/beta/game/log.rs b/crates/jacquard-api/src/net_anisota/beta/game/log.rs index 32e04385..4b0cd63c 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/log.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/log.rs @@ -1402,49 +1402,49 @@ pub mod log_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type EventType; type Timestamp; + type EventType; type SessionId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type EventType = Unset; type Timestamp = Unset; + type EventType = Unset; type SessionId = Unset; } - ///State transition - sets the `event_type` field to Set - pub struct SetEventType(PhantomData S>); - impl sealed::Sealed for SetEventType {} - impl State for SetEventType { - type EventType = Set; - type Timestamp = S::Timestamp; - type SessionId = S::SessionId; - } ///State transition - sets the `timestamp` field to Set pub struct SetTimestamp(PhantomData S>); impl sealed::Sealed for SetTimestamp {} impl State for SetTimestamp { - type EventType = S::EventType; type Timestamp = Set; + type EventType = S::EventType; + type SessionId = S::SessionId; + } + ///State transition - sets the `event_type` field to Set + pub struct SetEventType(PhantomData S>); + impl sealed::Sealed for SetEventType {} + impl State for SetEventType { + type Timestamp = S::Timestamp; + type EventType = Set; type SessionId = S::SessionId; } ///State transition - sets the `session_id` field to Set pub struct SetSessionId(PhantomData S>); impl sealed::Sealed for SetSessionId {} impl State for SetSessionId { - type EventType = S::EventType; type Timestamp = S::Timestamp; + type EventType = S::EventType; type SessionId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `event_type` field - pub struct event_type(()); ///Marker type for the `timestamp` field pub struct timestamp(()); + ///Marker type for the `event_type` field + pub struct event_type(()); ///Marker type for the `session_id` field pub struct session_id(()); } @@ -1778,8 +1778,8 @@ where impl<'a, S> LogBuilder<'a, S> where S: log_state::State, - S::EventType: log_state::IsSet, S::Timestamp: log_state::IsSet, + S::EventType: log_state::IsSet, S::SessionId: log_state::IsSet, { /// Build the final struct 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 9f84b41c..f3b7eae7 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/pack.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/pack.rs @@ -50,67 +50,67 @@ pub mod pack_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type LastOpenTime; type TotalOpens; - type Streak; + type LastOpenTime; type CreatedAt; + type Streak; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type LastOpenTime = Unset; type TotalOpens = Unset; - type Streak = Unset; + type LastOpenTime = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `last_open_time` field to Set - pub struct SetLastOpenTime(PhantomData S>); - impl sealed::Sealed for SetLastOpenTime {} - impl State for SetLastOpenTime { - type LastOpenTime = Set; - type TotalOpens = S::TotalOpens; - type Streak = S::Streak; - type CreatedAt = S::CreatedAt; + type Streak = Unset; } ///State transition - sets the `total_opens` field to Set pub struct SetTotalOpens(PhantomData S>); impl sealed::Sealed for SetTotalOpens {} impl State for SetTotalOpens { - type LastOpenTime = S::LastOpenTime; type TotalOpens = Set; - type Streak = S::Streak; + type LastOpenTime = S::LastOpenTime; type CreatedAt = S::CreatedAt; + type Streak = S::Streak; } - ///State transition - sets the `streak` field to Set - pub struct SetStreak(PhantomData S>); - impl sealed::Sealed for SetStreak {} - impl State for SetStreak { - type LastOpenTime = S::LastOpenTime; + ///State transition - sets the `last_open_time` field to Set + pub struct SetLastOpenTime(PhantomData S>); + impl sealed::Sealed for SetLastOpenTime {} + impl State for SetLastOpenTime { type TotalOpens = S::TotalOpens; - type Streak = Set; + type LastOpenTime = Set; type CreatedAt = S::CreatedAt; + type Streak = S::Streak; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type LastOpenTime = S::LastOpenTime; type TotalOpens = S::TotalOpens; - type Streak = S::Streak; + type LastOpenTime = S::LastOpenTime; type CreatedAt = Set; + type Streak = S::Streak; + } + ///State transition - sets the `streak` field to Set + pub struct SetStreak(PhantomData S>); + impl sealed::Sealed for SetStreak {} + impl State for SetStreak { + type TotalOpens = S::TotalOpens; + type LastOpenTime = S::LastOpenTime; + type CreatedAt = S::CreatedAt; + type Streak = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///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 `streak` field - pub struct streak(()); + ///Marker type for the `last_open_time` field + pub struct last_open_time(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `streak` field + pub struct streak(()); } } @@ -281,10 +281,10 @@ where impl<'a, S> PackBuilder<'a, S> where S: pack_state::State, - S::LastOpenTime: pack_state::IsSet, S::TotalOpens: pack_state::IsSet, - S::Streak: pack_state::IsSet, + S::LastOpenTime: pack_state::IsSet, S::CreatedAt: pack_state::IsSet, + S::Streak: pack_state::IsSet, { /// Build the final struct pub fn build(self) -> Pack<'a> { 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 328b490d..4d27702e 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/progress.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/progress.rs @@ -79,9 +79,9 @@ pub mod progress_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type ProgressPercentage; type Level; type TotalXp; - type ProgressPercentage; type XpToNextLevel; type CreatedAt; } @@ -89,19 +89,29 @@ pub mod progress_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type ProgressPercentage = Unset; type Level = Unset; type TotalXp = Unset; - type ProgressPercentage = Unset; type XpToNextLevel = Unset; type CreatedAt = Unset; } + ///State transition - sets the `progress_percentage` field to Set + pub struct SetProgressPercentage(PhantomData S>); + impl sealed::Sealed for SetProgressPercentage {} + impl State for SetProgressPercentage { + type ProgressPercentage = Set; + type Level = S::Level; + type TotalXp = S::TotalXp; + type XpToNextLevel = S::XpToNextLevel; + type CreatedAt = S::CreatedAt; + } ///State transition - sets the `level` field to Set pub struct SetLevel(PhantomData S>); impl sealed::Sealed for SetLevel {} impl State for SetLevel { + type ProgressPercentage = S::ProgressPercentage; type Level = Set; type TotalXp = S::TotalXp; - type ProgressPercentage = S::ProgressPercentage; type XpToNextLevel = S::XpToNextLevel; type CreatedAt = S::CreatedAt; } @@ -109,19 +119,9 @@ pub mod progress_state { pub struct SetTotalXp(PhantomData S>); impl sealed::Sealed for SetTotalXp {} impl State for SetTotalXp { - type Level = S::Level; - type TotalXp = Set; type ProgressPercentage = S::ProgressPercentage; - type XpToNextLevel = S::XpToNextLevel; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `progress_percentage` field to Set - pub struct SetProgressPercentage(PhantomData S>); - impl sealed::Sealed for SetProgressPercentage {} - impl State for SetProgressPercentage { type Level = S::Level; - type TotalXp = S::TotalXp; - type ProgressPercentage = Set; + type TotalXp = Set; type XpToNextLevel = S::XpToNextLevel; type CreatedAt = S::CreatedAt; } @@ -129,9 +129,9 @@ pub mod progress_state { pub struct SetXpToNextLevel(PhantomData S>); impl sealed::Sealed for SetXpToNextLevel {} impl State for SetXpToNextLevel { + type ProgressPercentage = S::ProgressPercentage; type Level = S::Level; type TotalXp = S::TotalXp; - type ProgressPercentage = S::ProgressPercentage; type XpToNextLevel = Set; type CreatedAt = S::CreatedAt; } @@ -139,21 +139,21 @@ pub mod progress_state { pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type ProgressPercentage = S::ProgressPercentage; type Level = S::Level; type TotalXp = S::TotalXp; - type ProgressPercentage = S::ProgressPercentage; type XpToNextLevel = S::XpToNextLevel; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `progress_percentage` field + pub struct progress_percentage(()); ///Marker type for the `level` field pub struct level(()); ///Marker type for the `total_xp` field pub struct total_xp(()); - ///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 `created_at` field @@ -491,9 +491,9 @@ where impl<'a, S> ProgressBuilder<'a, S> where S: progress_state::State, + S::ProgressPercentage: progress_state::IsSet, S::Level: progress_state::IsSet, S::TotalXp: progress_state::IsSet, - S::ProgressPercentage: progress_state::IsSet, S::XpToNextLevel: progress_state::IsSet, S::CreatedAt: progress_state::IsSet, { 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 94be10de..a263bff2 100644 --- a/crates/jacquard-api/src/net_anisota/beta/game/session.rs +++ b/crates/jacquard-api/src/net_anisota/beta/game/session.rs @@ -1080,67 +1080,67 @@ pub mod session_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type StartedAt; - type Status; type Platform; + type Status; type ClientVersion; + type StartedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type StartedAt = Unset; - type Status = Unset; type Platform = Unset; + type Status = Unset; type ClientVersion = Unset; + type StartedAt = Unset; } - ///State transition - sets the `started_at` field to Set - pub struct SetStartedAt(PhantomData S>); - impl sealed::Sealed for SetStartedAt {} - impl State for SetStartedAt { - type StartedAt = Set; + ///State transition - sets the `platform` field to Set + pub struct SetPlatform(PhantomData S>); + impl sealed::Sealed for SetPlatform {} + impl State for SetPlatform { + type Platform = Set; type Status = S::Status; - type Platform = S::Platform; type ClientVersion = S::ClientVersion; + type StartedAt = S::StartedAt; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData S>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { - type StartedAt = S::StartedAt; - type Status = Set; type Platform = S::Platform; + type Status = Set; type ClientVersion = S::ClientVersion; - } - ///State transition - sets the `platform` field to Set - pub struct SetPlatform(PhantomData S>); - impl sealed::Sealed for SetPlatform {} - impl State for SetPlatform { type StartedAt = S::StartedAt; - type Status = S::Status; - type Platform = Set; - type ClientVersion = S::ClientVersion; } ///State transition - sets the `client_version` field to Set pub struct SetClientVersion(PhantomData S>); impl sealed::Sealed for SetClientVersion {} impl State for SetClientVersion { - type StartedAt = S::StartedAt; - type Status = S::Status; type Platform = S::Platform; + type Status = S::Status; type ClientVersion = Set; + type StartedAt = S::StartedAt; + } + ///State transition - sets the `started_at` field to Set + pub struct SetStartedAt(PhantomData S>); + impl sealed::Sealed for SetStartedAt {} + impl State for SetStartedAt { + type Platform = S::Platform; + type Status = S::Status; + type ClientVersion = S::ClientVersion; + type StartedAt = 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 `status` field - pub struct status(()); ///Marker type for the `platform` field pub struct platform(()); + ///Marker type for the `status` field + pub struct status(()); ///Marker type for the `client_version` field pub struct client_version(()); + ///Marker type for the `started_at` field + pub struct started_at(()); } } @@ -1533,10 +1533,10 @@ impl<'a, S: session_state::State> SessionBuilder<'a, S> { impl<'a, S> SessionBuilder<'a, S> where S: session_state::State, - S::StartedAt: session_state::IsSet, - S::Status: session_state::IsSet, S::Platform: session_state::IsSet, + S::Status: session_state::IsSet, S::ClientVersion: session_state::IsSet, + S::StartedAt: session_state::IsSet, { /// Build the final struct pub fn build(self) -> Session<'a> { diff --git a/crates/jacquard-api/src/net_anisota/feed/draft.rs b/crates/jacquard-api/src/net_anisota/feed/draft.rs index c37208e2..044b7993 100644 --- a/crates/jacquard-api/src/net_anisota/feed/draft.rs +++ b/crates/jacquard-api/src/net_anisota/feed/draft.rs @@ -59,37 +59,37 @@ pub mod draft_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 S>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type CreatedAt = S::CreatedAt; + type Text = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = S::Text; type CreatedAt = Set; + type Text = S::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData S>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = S::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(()); } } @@ -306,8 +306,8 @@ impl<'a, S: draft_state::State> DraftBuilder<'a, S> { impl<'a, S> DraftBuilder<'a, S> where S: draft_state::State, - S::Text: draft_state::IsSet, S::CreatedAt: draft_state::IsSet, + S::Text: draft_state::IsSet, { /// Build the final struct pub fn build(self) -> Draft<'a> { @@ -779,37 +779,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 S>); - impl sealed::Sealed for SetRoot {} - impl State for SetRoot { - type Root = Set; - type Parent = S::Parent; + type Root = Unset; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData S>); impl sealed::Sealed for SetParent {} impl State for SetParent { - type Root = S::Root; type Parent = Set; + type Root = S::Root; + } + ///State transition - sets the `root` field to Set + pub struct SetRoot(PhantomData S>); + impl sealed::Sealed for SetRoot {} + impl State for SetRoot { + type Parent = S::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(()); } } @@ -882,8 +882,8 @@ where impl<'a, S> ReplyRefBuilder<'a, S> where S: reply_ref_state::State, - S::Root: reply_ref_state::IsSet, S::Parent: reply_ref_state::IsSet, + S::Root: reply_ref_state::IsSet, { /// Build the final struct pub fn build(self) -> ReplyRef<'a> { diff --git a/crates/jacquard-api/src/net_anisota/feed/post.rs b/crates/jacquard-api/src/net_anisota/feed/post.rs index 6ccabeda..e9b91fb3 100644 --- a/crates/jacquard-api/src/net_anisota/feed/post.rs +++ b/crates/jacquard-api/src/net_anisota/feed/post.rs @@ -56,37 +56,37 @@ pub mod post_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 S>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type CreatedAt = S::CreatedAt; + type Text = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = S::Text; type CreatedAt = Set; + type Text = S::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData S>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = S::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(()); } } @@ -273,8 +273,8 @@ where impl<'a, S> PostBuilder<'a, S> where S: post_state::State, - S::Text: post_state::IsSet, S::CreatedAt: post_state::IsSet, + S::Text: post_state::IsSet, { /// Build the final struct pub fn build(self) -> Post<'a> { @@ -721,37 +721,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 S>); - impl sealed::Sealed for SetRoot {} - impl State for SetRoot { - type Root = Set; - type Parent = S::Parent; + type Root = Unset; } ///State transition - sets the `parent` field to Set pub struct SetParent(PhantomData S>); impl sealed::Sealed for SetParent {} impl State for SetParent { - type Root = S::Root; type Parent = Set; + type Root = S::Root; + } + ///State transition - sets the `root` field to Set + pub struct SetRoot(PhantomData S>); + impl sealed::Sealed for SetRoot {} + impl State for SetRoot { + type Parent = S::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(()); } } @@ -824,8 +824,8 @@ where impl<'a, S> ReplyRefBuilder<'a, S> where S: reply_ref_state::State, - S::Root: reply_ref_state::IsSet, S::Parent: reply_ref_state::IsSet, + S::Root: reply_ref_state::IsSet, { /// Build the final struct pub fn build(self) -> ReplyRef<'a> { diff --git a/crates/jacquard-api/src/net_anisota/feed/repost.rs b/crates/jacquard-api/src/net_anisota/feed/repost.rs index c9d89773..2e838460 100644 --- a/crates/jacquard-api/src/net_anisota/feed/repost.rs +++ b/crates/jacquard-api/src/net_anisota/feed/repost.rs @@ -35,37 +35,37 @@ pub mod repost_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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -138,8 +138,8 @@ where impl<'a, S> RepostBuilder<'a, S> where S: repost_state::State, - S::Subject: repost_state::IsSet, S::CreatedAt: repost_state::IsSet, + S::Subject: repost_state::IsSet, { /// Build the final struct pub fn build(self) -> Repost<'a> { diff --git a/crates/jacquard-api/src/net_anisota/graph/list_mute.rs b/crates/jacquard-api/src/net_anisota/graph/list_mute.rs index 644d7d67..612acb77 100644 --- a/crates/jacquard-api/src/net_anisota/graph/list_mute.rs +++ b/crates/jacquard-api/src/net_anisota/graph/list_mute.rs @@ -314,37 +314,37 @@ pub mod list_mute_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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -494,8 +494,8 @@ impl<'a, S: list_mute_state::State> ListMuteBuilder<'a, S> { impl<'a, S> ListMuteBuilder<'a, S> where S: list_mute_state::State, - S::Subject: list_mute_state::IsSet, S::CreatedAt: list_mute_state::IsSet, + S::Subject: list_mute_state::IsSet, { /// Build the final struct pub fn build(self) -> ListMute<'a> { diff --git a/crates/jacquard-api/src/net_anisota/graph/mute.rs b/crates/jacquard-api/src/net_anisota/graph/mute.rs index d7682c24..214aa614 100644 --- a/crates/jacquard-api/src/net_anisota/graph/mute.rs +++ b/crates/jacquard-api/src/net_anisota/graph/mute.rs @@ -314,37 +314,37 @@ pub mod mute_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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -494,8 +494,8 @@ impl<'a, S: mute_state::State> MuteBuilder<'a, S> { impl<'a, S> MuteBuilder<'a, S> where S: mute_state::State, - S::Subject: mute_state::IsSet, S::CreatedAt: mute_state::IsSet, + S::Subject: mute_state::IsSet, { /// Build the final struct pub fn build(self) -> Mute<'a> { diff --git a/crates/jacquard-api/src/net_anisota/settings.rs b/crates/jacquard-api/src/net_anisota/settings.rs index 557f97b0..b07050e8 100644 --- a/crates/jacquard-api/src/net_anisota/settings.rs +++ b/crates/jacquard-api/src/net_anisota/settings.rs @@ -3830,51 +3830,51 @@ pub mod settings_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Version; - type CreatedAt; type UpdatedAt; + type CreatedAt; + type Version; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Version = Unset; - type CreatedAt = Unset; type UpdatedAt = Unset; + type CreatedAt = Unset; + type Version = Unset; } - ///State transition - sets the `version` field to Set - pub struct SetVersion(PhantomData S>); - impl sealed::Sealed for SetVersion {} - impl State for SetVersion { - type Version = Set; + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData S>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type UpdatedAt = Set; type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; + type Version = S::Version; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Version = S::Version; - type CreatedAt = Set; type UpdatedAt = S::UpdatedAt; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData S>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { + type CreatedAt = Set; type Version = S::Version; + } + ///State transition - sets the `version` field to Set + pub struct SetVersion(PhantomData S>); + impl sealed::Sealed for SetVersion {} + impl State for SetVersion { + type UpdatedAt = S::UpdatedAt; type CreatedAt = S::CreatedAt; - type UpdatedAt = Set; + type Version = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `version` field - pub struct version(()); - ///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(()); + ///Marker type for the `version` field + pub struct version(()); } } @@ -4064,9 +4064,9 @@ where impl<'a, S> SettingsBuilder<'a, S> where S: settings_state::State, - S::Version: settings_state::IsSet, - S::CreatedAt: settings_state::IsSet, S::UpdatedAt: settings_state::IsSet, + S::CreatedAt: settings_state::IsSet, + S::Version: settings_state::IsSet, { /// Build the final struct pub fn build(self) -> Settings<'a> { diff --git a/crates/jacquard-api/src/net_mmatt/right/now.rs b/crates/jacquard-api/src/net_mmatt/right/now.rs index 36d5bbf3..4dcc2b48 100644 --- a/crates/jacquard-api/src/net_mmatt/right/now.rs +++ b/crates/jacquard-api/src/net_mmatt/right/now.rs @@ -39,37 +39,37 @@ pub mod now_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 S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Text = S::Text; + type CreatedAt = Unset; } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData S>); impl sealed::Sealed for SetText {} impl State for SetText { - type CreatedAt = S::CreatedAt; type Text = Set; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Text = S::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(()); } } @@ -159,8 +159,8 @@ where impl<'a, S> NowBuilder<'a, S> where S: now_state::State, - S::CreatedAt: now_state::IsSet, S::Text: now_state::IsSet, + S::CreatedAt: now_state::IsSet, { /// Build the final struct pub fn build(self) -> Now<'a> { diff --git a/crates/jacquard-api/src/net_mmatt/vitals/car.rs b/crates/jacquard-api/src/net_mmatt/vitals/car.rs index 587a1235..8dd78070 100644 --- a/crates/jacquard-api/src/net_mmatt/vitals/car.rs +++ b/crates/jacquard-api/src/net_mmatt/vitals/car.rs @@ -52,85 +52,85 @@ pub mod car_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; - type CarFuelRange; type CarPercentFuelRemaining; + type CreatedAt; type AmountRemaining; type CarTraveledDistance; + type CarFuelRange; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type CreatedAt = Unset; - type CarFuelRange = Unset; type CarPercentFuelRemaining = Unset; + type CreatedAt = Unset; type AmountRemaining = Unset; type CarTraveledDistance = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type CarFuelRange = S::CarFuelRange; - type CarPercentFuelRemaining = S::CarPercentFuelRemaining; - type AmountRemaining = S::AmountRemaining; - type CarTraveledDistance = S::CarTraveledDistance; - } - ///State transition - sets the `car_fuel_range` field to Set - pub struct SetCarFuelRange(PhantomData S>); - impl sealed::Sealed for SetCarFuelRange {} - impl State for SetCarFuelRange { - type CreatedAt = S::CreatedAt; - type CarFuelRange = Set; - type CarPercentFuelRemaining = S::CarPercentFuelRemaining; - type AmountRemaining = S::AmountRemaining; - type CarTraveledDistance = S::CarTraveledDistance; + type CarFuelRange = Unset; } ///State transition - sets the `car_percent_fuel_remaining` field to Set pub struct SetCarPercentFuelRemaining(PhantomData S>); impl sealed::Sealed for SetCarPercentFuelRemaining {} impl State for SetCarPercentFuelRemaining { + type CarPercentFuelRemaining = Set; type CreatedAt = S::CreatedAt; + type AmountRemaining = S::AmountRemaining; + type CarTraveledDistance = S::CarTraveledDistance; type CarFuelRange = S::CarFuelRange; - type CarPercentFuelRemaining = Set; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CarPercentFuelRemaining = S::CarPercentFuelRemaining; + type CreatedAt = Set; type AmountRemaining = S::AmountRemaining; type CarTraveledDistance = S::CarTraveledDistance; + type CarFuelRange = S::CarFuelRange; } ///State transition - sets the `amount_remaining` field to Set pub struct SetAmountRemaining(PhantomData S>); impl sealed::Sealed for SetAmountRemaining {} impl State for SetAmountRemaining { - type CreatedAt = S::CreatedAt; - type CarFuelRange = S::CarFuelRange; type CarPercentFuelRemaining = S::CarPercentFuelRemaining; + type CreatedAt = S::CreatedAt; type AmountRemaining = Set; type CarTraveledDistance = S::CarTraveledDistance; + type CarFuelRange = S::CarFuelRange; } ///State transition - sets the `car_traveled_distance` field to Set pub struct SetCarTraveledDistance(PhantomData S>); impl sealed::Sealed for SetCarTraveledDistance {} impl State for SetCarTraveledDistance { + type CarPercentFuelRemaining = S::CarPercentFuelRemaining; type CreatedAt = S::CreatedAt; + type AmountRemaining = S::AmountRemaining; + type CarTraveledDistance = Set; type CarFuelRange = S::CarFuelRange; + } + ///State transition - sets the `car_fuel_range` field to Set + pub struct SetCarFuelRange(PhantomData S>); + impl sealed::Sealed for SetCarFuelRange {} + impl State for SetCarFuelRange { type CarPercentFuelRemaining = S::CarPercentFuelRemaining; + type CreatedAt = S::CreatedAt; type AmountRemaining = S::AmountRemaining; - type CarTraveledDistance = Set; + type CarTraveledDistance = S::CarTraveledDistance; + type CarFuelRange = 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_fuel_range` field - pub struct car_fuel_range(()); ///Marker type for the `car_percent_fuel_remaining` field pub struct car_percent_fuel_remaining(()); + ///Marker type for the `created_at` field + pub struct created_at(()); ///Marker type for the `amount_remaining` field pub struct amount_remaining(()); ///Marker type for the `car_traveled_distance` field pub struct car_traveled_distance(()); + ///Marker type for the `car_fuel_range` field + pub struct car_fuel_range(()); } } @@ -314,11 +314,11 @@ where impl<'a, S> CarBuilder<'a, S> where S: car_state::State, - S::CreatedAt: car_state::IsSet, - S::CarFuelRange: car_state::IsSet, S::CarPercentFuelRemaining: car_state::IsSet, + S::CreatedAt: car_state::IsSet, S::AmountRemaining: car_state::IsSet, S::CarTraveledDistance: car_state::IsSet, + S::CarFuelRange: car_state::IsSet, { /// Build the final struct pub fn build(self) -> Car<'a> { diff --git a/crates/jacquard-api/src/network_slices/slice.rs b/crates/jacquard-api/src/network_slices/slice.rs index 6bd04d23..3cff2661 100644 --- a/crates/jacquard-api/src/network_slices/slice.rs +++ b/crates/jacquard-api/src/network_slices/slice.rs @@ -481,105 +481,105 @@ pub mod slice_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; + type Domain; + type Name; type Uri; type Cid; - type Name; - type Domain; type Creator; - 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 Domain = Unset; + type Name = Unset; type Uri = Unset; type Cid = Unset; - type Name = Unset; - type Domain = Unset; type Creator = Unset; - type CreatedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Name = S::Name; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Domain = S::Domain; + type Name = S::Name; + type Uri = S::Uri; + type Cid = S::Cid; type Creator = S::Creator; - type CreatedAt = S::CreatedAt; } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; + ///State transition - sets the `domain` field to Set + pub struct SetDomain(PhantomData S>); + impl sealed::Sealed for SetDomain {} + impl State for SetDomain { + type CreatedAt = S::CreatedAt; + type Domain = Set; type Name = S::Name; - type Domain = S::Domain; + type Uri = S::Uri; + type Cid = S::Cid; type Creator = S::Creator; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { + type CreatedAt = S::CreatedAt; + type Domain = S::Domain; + type Name = Set; type Uri = S::Uri; type Cid = S::Cid; - type Name = Set; - type Domain = S::Domain; type Creator = S::Creator; - type CreatedAt = S::CreatedAt; } - ///State transition - sets the `domain` field to Set - pub struct SetDomain(PhantomData S>); - impl sealed::Sealed for SetDomain {} - impl State for SetDomain { - type Uri = S::Uri; - type Cid = S::Cid; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type CreatedAt = S::CreatedAt; + type Domain = S::Domain; type Name = S::Name; - type Domain = Set; + type Uri = Set; + type Cid = S::Cid; type Creator = S::Creator; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { type CreatedAt = S::CreatedAt; + type Domain = S::Domain; + type Name = S::Name; + type Uri = S::Uri; + type Cid = Set; + type Creator = S::Creator; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData S>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Uri = S::Uri; - type Cid = S::Cid; - type Name = S::Name; - type Domain = S::Domain; - type Creator = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Domain = S::Domain; + type Name = S::Name; type Uri = S::Uri; type Cid = S::Cid; - type Name = S::Name; - type Domain = S::Domain; - type Creator = S::Creator; - type CreatedAt = Set; + type Creator = 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 `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 `cid` field pub struct cid(()); - ///Marker type for the `name` field - pub struct name(()); - ///Marker type for the `domain` field - pub struct domain(()); ///Marker type for the `creator` field pub struct creator(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -835,12 +835,12 @@ impl<'a, S: slice_view_state::State> SliceViewBuilder<'a, S> { impl<'a, S> SliceViewBuilder<'a, S> where S: slice_view_state::State, + S::CreatedAt: slice_view_state::IsSet, + S::Domain: slice_view_state::IsSet, + S::Name: slice_view_state::IsSet, S::Uri: slice_view_state::IsSet, S::Cid: slice_view_state::IsSet, - S::Name: slice_view_state::IsSet, - S::Domain: slice_view_state::IsSet, S::Creator: slice_view_state::IsSet, - S::CreatedAt: slice_view_state::IsSet, { /// Build the final struct pub fn build(self) -> SliceView<'a> { @@ -1199,37 +1199,37 @@ pub mod sparkline_point_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Timestamp; type Count; + 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 Count = Unset; - } - ///State transition - sets the `timestamp` field to Set - pub struct SetTimestamp(PhantomData S>); - impl sealed::Sealed for SetTimestamp {} - impl State for SetTimestamp { - type Timestamp = Set; - type Count = S::Count; + type Timestamp = Unset; } ///State transition - sets the `count` field to Set pub struct SetCount(PhantomData S>); impl sealed::Sealed for SetCount {} impl State for SetCount { - type Timestamp = S::Timestamp; type Count = Set; + type Timestamp = S::Timestamp; + } + ///State transition - sets the `timestamp` field to Set + pub struct SetTimestamp(PhantomData S>); + impl sealed::Sealed for SetTimestamp {} + impl State for SetTimestamp { + type Count = S::Count; + 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 `count` field pub struct count(()); + ///Marker type for the `timestamp` field + pub struct timestamp(()); } } @@ -1302,8 +1302,8 @@ where impl<'a, S> SparklinePointBuilder<'a, S> where S: sparkline_point_state::State, - S::Timestamp: sparkline_point_state::IsSet, S::Count: sparkline_point_state::IsSet, + S::Timestamp: sparkline_point_state::IsSet, { /// Build the final struct pub fn build(self) -> SparklinePoint<'a> { 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 d3e2867a..246d5afb 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 @@ -66,51 +66,51 @@ pub mod create_o_auth_client_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type SliceUri; type ClientName; type RedirectUris; + type SliceUri; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type SliceUri = Unset; type ClientName = Unset; type RedirectUris = Unset; - } - ///State transition - sets the `slice_uri` field to Set - pub struct SetSliceUri(PhantomData S>); - impl sealed::Sealed for SetSliceUri {} - impl State for SetSliceUri { - type SliceUri = Set; - type ClientName = S::ClientName; - type RedirectUris = S::RedirectUris; + type SliceUri = Unset; } ///State transition - sets the `client_name` field to Set pub struct SetClientName(PhantomData S>); impl sealed::Sealed for SetClientName {} impl State for SetClientName { - type SliceUri = S::SliceUri; type ClientName = Set; type RedirectUris = S::RedirectUris; + type SliceUri = S::SliceUri; } ///State transition - sets the `redirect_uris` field to Set pub struct SetRedirectUris(PhantomData S>); impl sealed::Sealed for SetRedirectUris {} impl State for SetRedirectUris { - type SliceUri = S::SliceUri; type ClientName = S::ClientName; type RedirectUris = Set; + type SliceUri = S::SliceUri; + } + ///State transition - sets the `slice_uri` field to Set + pub struct SetSliceUri(PhantomData S>); + impl sealed::Sealed for SetSliceUri {} + impl State for SetSliceUri { + type ClientName = S::ClientName; + type RedirectUris = S::RedirectUris; + type SliceUri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `slice_uri` field - pub struct slice_uri(()); ///Marker type for the `client_name` field pub struct client_name(()); ///Marker type for the `redirect_uris` field pub struct redirect_uris(()); + ///Marker type for the `slice_uri` field + pub struct slice_uri(()); } } @@ -351,9 +351,9 @@ impl<'a, S: create_o_auth_client_state::State> CreateOAuthClientBuilder<'a, S> { impl<'a, S> CreateOAuthClientBuilder<'a, S> where S: create_o_auth_client_state::State, - S::SliceUri: create_o_auth_client_state::IsSet, S::ClientName: create_o_auth_client_state::IsSet, S::RedirectUris: create_o_auth_client_state::IsSet, + S::SliceUri: create_o_auth_client_state::IsSet, { /// Build the final struct pub fn build(self) -> CreateOAuthClient<'a> { diff --git a/crates/jacquard-api/src/network_slices/slice/get_actors.rs b/crates/jacquard-api/src/network_slices/slice/get_actors.rs index 394599e5..80a494d8 100644 --- a/crates/jacquard-api/src/network_slices/slice/get_actors.rs +++ b/crates/jacquard-api/src/network_slices/slice/get_actors.rs @@ -41,51 +41,51 @@ pub mod actor_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type IndexedAt; type Did; type SliceUri; - 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 Did = Unset; type SliceUri = Unset; - type IndexedAt = Unset; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData S>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type IndexedAt = Set; + type Did = S::Did; + type SliceUri = S::SliceUri; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { + type IndexedAt = S::IndexedAt; type Did = Set; type SliceUri = S::SliceUri; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `slice_uri` field to Set pub struct SetSliceUri(PhantomData S>); impl sealed::Sealed for SetSliceUri {} impl State for SetSliceUri { - type Did = S::Did; - type SliceUri = Set; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData S>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { type Did = S::Did; - type SliceUri = S::SliceUri; - type IndexedAt = Set; + type SliceUri = 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 `did` field pub struct did(()); ///Marker type for the `slice_uri` field pub struct slice_uri(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); } } @@ -198,9 +198,9 @@ where impl<'a, S> ActorBuilder<'a, S> where S: actor_state::State, + S::IndexedAt: actor_state::IsSet, S::Did: actor_state::IsSet, S::SliceUri: actor_state::IsSet, - S::IndexedAt: actor_state::IsSet, { /// Build the final struct pub fn build(self) -> Actor<'a> { 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 06fc3318..c26b5373 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 @@ -58,85 +58,85 @@ pub mod log_entry_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Message; + type LogType; type Id; type CreatedAt; - type LogType; type Level; - 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 LogType = Unset; type Id = Unset; type CreatedAt = Unset; - type LogType = Unset; type Level = Unset; - type Message = Unset; + } + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData S>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; + type LogType = S::LogType; + type Id = S::Id; + type CreatedAt = S::CreatedAt; + type Level = S::Level; + } + ///State transition - sets the `log_type` field to Set + pub struct SetLogType(PhantomData S>); + impl sealed::Sealed for SetLogType {} + impl State for SetLogType { + type Message = S::Message; + type LogType = Set; + type Id = S::Id; + type CreatedAt = S::CreatedAt; + type Level = S::Level; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData S>); impl sealed::Sealed for SetId {} impl State for SetId { + type Message = S::Message; + type LogType = S::LogType; type Id = Set; type CreatedAt = S::CreatedAt; - type LogType = S::LogType; type Level = S::Level; - type Message = S::Message; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Id = S::Id; - type CreatedAt = Set; - type LogType = S::LogType; - type Level = S::Level; type Message = S::Message; - } - ///State transition - sets the `log_type` field to Set - pub struct SetLogType(PhantomData S>); - impl sealed::Sealed for SetLogType {} - impl State for SetLogType { + type LogType = S::LogType; type Id = S::Id; - type CreatedAt = S::CreatedAt; - type LogType = Set; + type CreatedAt = Set; type Level = S::Level; - type Message = S::Message; } ///State transition - sets the `level` field to Set pub struct SetLevel(PhantomData S>); impl sealed::Sealed for SetLevel {} impl State for SetLevel { - type Id = S::Id; - type CreatedAt = S::CreatedAt; - type LogType = S::LogType; - type Level = Set; type Message = S::Message; - } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData S>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { + type LogType = S::LogType; type Id = S::Id; type CreatedAt = S::CreatedAt; - type LogType = S::LogType; - type Level = S::Level; - type Message = Set; + type Level = 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 `log_type` field + pub struct log_type(()); ///Marker type for the `id` field pub struct id(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `log_type` field - pub struct log_type(()); ///Marker type for the `level` field pub struct level(()); - ///Marker type for the `message` field - pub struct message(()); } } @@ -356,11 +356,11 @@ impl<'a, S: log_entry_state::State> LogEntryBuilder<'a, S> { impl<'a, S> LogEntryBuilder<'a, S> where S: log_entry_state::State, + S::Message: log_entry_state::IsSet, + S::LogType: log_entry_state::IsSet, S::Id: log_entry_state::IsSet, S::CreatedAt: log_entry_state::IsSet, - S::LogType: log_entry_state::IsSet, S::Level: log_entry_state::IsSet, - S::Message: log_entry_state::IsSet, { /// Build the final struct pub fn build(self) -> LogEntry<'a> { 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 5654b733..0df67787 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 @@ -56,8 +56,8 @@ pub mod job_status_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type JobId; - type Status; type CreatedAt; + type Status; type RetryCount; } /// Empty state - all required fields are unset @@ -65,8 +65,8 @@ pub mod job_status_state { impl sealed::Sealed for Empty {} impl State for Empty { type JobId = Unset; - type Status = Unset; type CreatedAt = Unset; + type Status = Unset; type RetryCount = Unset; } ///State transition - sets the `job_id` field to Set @@ -74,17 +74,8 @@ pub mod job_status_state { impl sealed::Sealed for SetJobId {} impl State for SetJobId { type JobId = Set; - type Status = S::Status; - type CreatedAt = S::CreatedAt; - type RetryCount = S::RetryCount; - } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData S>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { - type JobId = S::JobId; - type Status = Set; type CreatedAt = S::CreatedAt; + type Status = S::Status; type RetryCount = S::RetryCount; } ///State transition - sets the `created_at` field to Set @@ -92,8 +83,17 @@ pub mod job_status_state { impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type JobId = S::JobId; - type Status = S::Status; type CreatedAt = Set; + type Status = S::Status; + type RetryCount = S::RetryCount; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData S>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type JobId = S::JobId; + type CreatedAt = S::CreatedAt; + type Status = Set; type RetryCount = S::RetryCount; } ///State transition - sets the `retry_count` field to Set @@ -101,8 +101,8 @@ pub mod job_status_state { impl sealed::Sealed for SetRetryCount {} impl State for SetRetryCount { type JobId = S::JobId; - type Status = S::Status; type CreatedAt = S::CreatedAt; + type Status = S::Status; type RetryCount = Set; } /// Marker types for field names @@ -110,10 +110,10 @@ pub mod job_status_state { pub mod members { ///Marker type for the `job_id` field pub struct job_id(()); - ///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 `retry_count` field pub struct retry_count(()); } @@ -310,8 +310,8 @@ impl<'a, S> JobStatusBuilder<'a, S> where S: job_status_state::State, S::JobId: job_status_state::IsSet, - S::Status: job_status_state::IsSet, S::CreatedAt: job_status_state::IsSet, + S::Status: job_status_state::IsSet, S::RetryCount: job_status_state::IsSet, { /// Build the final struct @@ -875,85 +875,85 @@ pub mod sync_job_result_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Success; + type Message; type TotalRecords; - type CollectionsSynced; type ReposProcessed; - type Message; + type CollectionsSynced; + type Success; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Success = Unset; + type Message = Unset; type TotalRecords = Unset; - type CollectionsSynced = Unset; type ReposProcessed = Unset; - type Message = Unset; + type CollectionsSynced = Unset; + type Success = Unset; } - ///State transition - sets the `success` field to Set - pub struct SetSuccess(PhantomData S>); - impl sealed::Sealed for SetSuccess {} - impl State for SetSuccess { - type Success = Set; + ///State transition - sets the `message` field to Set + pub struct SetMessage(PhantomData S>); + impl sealed::Sealed for SetMessage {} + impl State for SetMessage { + type Message = Set; type TotalRecords = S::TotalRecords; - type CollectionsSynced = S::CollectionsSynced; type ReposProcessed = S::ReposProcessed; - type Message = S::Message; + type CollectionsSynced = S::CollectionsSynced; + type Success = S::Success; } ///State transition - sets the `total_records` field to Set pub struct SetTotalRecords(PhantomData S>); impl sealed::Sealed for SetTotalRecords {} impl State for SetTotalRecords { - type Success = S::Success; + type Message = S::Message; type TotalRecords = Set; - type CollectionsSynced = S::CollectionsSynced; type ReposProcessed = S::ReposProcessed; - type Message = S::Message; - } - ///State transition - sets the `collections_synced` field to Set - pub struct SetCollectionsSynced(PhantomData S>); - impl sealed::Sealed for SetCollectionsSynced {} - impl State for SetCollectionsSynced { + type CollectionsSynced = S::CollectionsSynced; type Success = S::Success; - type TotalRecords = S::TotalRecords; - type CollectionsSynced = Set; - type ReposProcessed = S::ReposProcessed; - type Message = S::Message; } ///State transition - sets the `repos_processed` field to Set pub struct SetReposProcessed(PhantomData S>); impl sealed::Sealed for SetReposProcessed {} impl State for SetReposProcessed { - type Success = S::Success; + type Message = S::Message; type TotalRecords = S::TotalRecords; - type CollectionsSynced = S::CollectionsSynced; type ReposProcessed = Set; - type Message = S::Message; + type CollectionsSynced = S::CollectionsSynced; + type Success = S::Success; } - ///State transition - sets the `message` field to Set - pub struct SetMessage(PhantomData S>); - impl sealed::Sealed for SetMessage {} - impl State for SetMessage { + ///State transition - sets the `collections_synced` field to Set + pub struct SetCollectionsSynced(PhantomData S>); + impl sealed::Sealed for SetCollectionsSynced {} + impl State for SetCollectionsSynced { + type Message = S::Message; + type TotalRecords = S::TotalRecords; + type ReposProcessed = S::ReposProcessed; + type CollectionsSynced = Set; type Success = S::Success; + } + ///State transition - sets the `success` field to Set + pub struct SetSuccess(PhantomData S>); + impl sealed::Sealed for SetSuccess {} + impl State for SetSuccess { + type Message = S::Message; type TotalRecords = S::TotalRecords; - type CollectionsSynced = S::CollectionsSynced; type ReposProcessed = S::ReposProcessed; - type Message = Set; + type CollectionsSynced = S::CollectionsSynced; + type Success = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `success` field - pub struct success(()); + ///Marker type for the `message` field + pub struct message(()); ///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(()); - ///Marker type for the `message` field - pub struct message(()); + ///Marker type for the `collections_synced` field + pub struct collections_synced(()); + ///Marker type for the `success` field + pub struct success(()); } } @@ -1086,11 +1086,11 @@ where impl<'a, S> SyncJobResultBuilder<'a, S> where S: sync_job_result_state::State, - S::Success: sync_job_result_state::IsSet, + S::Message: sync_job_result_state::IsSet, S::TotalRecords: sync_job_result_state::IsSet, - S::CollectionsSynced: sync_job_result_state::IsSet, S::ReposProcessed: sync_job_result_state::IsSet, - S::Message: sync_job_result_state::IsSet, + S::CollectionsSynced: sync_job_result_state::IsSet, + S::Success: sync_job_result_state::IsSet, { /// Build the final struct pub fn build(self) -> SyncJobResult<'a> { 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 499aa2f9..60577169 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 @@ -221,127 +221,127 @@ pub mod oauth_client_details_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type ClientId; - type ClientName; type RedirectUris; - type GrantTypes; type ResponseTypes; - type CreatedAt; + type GrantTypes; type CreatedByDid; + type CreatedAt; + type ClientName; + type ClientId; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type ClientId = Unset; - type ClientName = Unset; type RedirectUris = Unset; - type GrantTypes = Unset; type ResponseTypes = Unset; - type CreatedAt = Unset; + type GrantTypes = Unset; type CreatedByDid = Unset; - } - ///State transition - sets the `client_id` field to Set - pub struct SetClientId(PhantomData S>); - impl sealed::Sealed for SetClientId {} - impl State for SetClientId { - type ClientId = Set; - type ClientName = S::ClientName; - type RedirectUris = S::RedirectUris; - type GrantTypes = S::GrantTypes; - type ResponseTypes = S::ResponseTypes; - type CreatedAt = S::CreatedAt; - type CreatedByDid = S::CreatedByDid; - } - ///State transition - sets the `client_name` field to Set - pub struct SetClientName(PhantomData S>); - impl sealed::Sealed for SetClientName {} - impl State for SetClientName { - type ClientId = S::ClientId; - type ClientName = Set; - type RedirectUris = S::RedirectUris; - type GrantTypes = S::GrantTypes; - type ResponseTypes = S::ResponseTypes; - type CreatedAt = S::CreatedAt; - type CreatedByDid = S::CreatedByDid; + type CreatedAt = Unset; + type ClientName = Unset; + type ClientId = Unset; } ///State transition - sets the `redirect_uris` field to Set pub struct SetRedirectUris(PhantomData S>); impl sealed::Sealed for SetRedirectUris {} impl State for SetRedirectUris { - type ClientId = S::ClientId; - type ClientName = S::ClientName; type RedirectUris = Set; - type GrantTypes = S::GrantTypes; type ResponseTypes = S::ResponseTypes; + type GrantTypes = S::GrantTypes; + type CreatedByDid = S::CreatedByDid; type CreatedAt = S::CreatedAt; + type ClientName = S::ClientName; + type ClientId = S::ClientId; + } + ///State transition - sets the `response_types` field to Set + pub struct SetResponseTypes(PhantomData S>); + impl sealed::Sealed for SetResponseTypes {} + impl State for SetResponseTypes { + type RedirectUris = S::RedirectUris; + type ResponseTypes = Set; + type GrantTypes = S::GrantTypes; type CreatedByDid = S::CreatedByDid; + type CreatedAt = S::CreatedAt; + type ClientName = S::ClientName; + type ClientId = S::ClientId; } ///State transition - sets the `grant_types` field to Set pub struct SetGrantTypes(PhantomData S>); impl sealed::Sealed for SetGrantTypes {} impl State for SetGrantTypes { - type ClientId = S::ClientId; - type ClientName = S::ClientName; type RedirectUris = S::RedirectUris; - type GrantTypes = Set; type ResponseTypes = S::ResponseTypes; - type CreatedAt = S::CreatedAt; + type GrantTypes = Set; type CreatedByDid = S::CreatedByDid; - } - ///State transition - sets the `response_types` field to Set - pub struct SetResponseTypes(PhantomData S>); - impl sealed::Sealed for SetResponseTypes {} - impl State for SetResponseTypes { - type ClientId = S::ClientId; + type CreatedAt = S::CreatedAt; type ClientName = S::ClientName; + type ClientId = S::ClientId; + } + ///State transition - sets the `created_by_did` field to Set + pub struct SetCreatedByDid(PhantomData S>); + impl sealed::Sealed for SetCreatedByDid {} + impl State for SetCreatedByDid { type RedirectUris = S::RedirectUris; + type ResponseTypes = S::ResponseTypes; type GrantTypes = S::GrantTypes; - type ResponseTypes = Set; + type CreatedByDid = Set; type CreatedAt = S::CreatedAt; - type CreatedByDid = S::CreatedByDid; + type ClientName = S::ClientName; + type ClientId = S::ClientId; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type ClientId = S::ClientId; - type ClientName = S::ClientName; type RedirectUris = S::RedirectUris; - type GrantTypes = S::GrantTypes; type ResponseTypes = S::ResponseTypes; - type CreatedAt = Set; + type GrantTypes = S::GrantTypes; type CreatedByDid = S::CreatedByDid; - } - ///State transition - sets the `created_by_did` field to Set - pub struct SetCreatedByDid(PhantomData S>); - impl sealed::Sealed for SetCreatedByDid {} - impl State for SetCreatedByDid { - type ClientId = S::ClientId; + type CreatedAt = Set; type ClientName = S::ClientName; + type ClientId = S::ClientId; + } + ///State transition - sets the `client_name` field to Set + pub struct SetClientName(PhantomData S>); + impl sealed::Sealed for SetClientName {} + impl State for SetClientName { type RedirectUris = S::RedirectUris; + type ResponseTypes = S::ResponseTypes; type GrantTypes = S::GrantTypes; + type CreatedByDid = S::CreatedByDid; + type CreatedAt = S::CreatedAt; + type ClientName = Set; + type ClientId = S::ClientId; + } + ///State transition - sets the `client_id` field to Set + pub struct SetClientId(PhantomData S>); + impl sealed::Sealed for SetClientId {} + impl State for SetClientId { + type RedirectUris = S::RedirectUris; type ResponseTypes = S::ResponseTypes; + type GrantTypes = S::GrantTypes; + type CreatedByDid = S::CreatedByDid; type CreatedAt = S::CreatedAt; - type CreatedByDid = Set; + type ClientName = S::ClientName; + type ClientId = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `client_id` field - pub struct client_id(()); - ///Marker type for the `client_name` field - pub struct client_name(()); ///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 `response_types` field pub struct response_types(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `grant_types` field + pub struct grant_types(()); ///Marker type for the `created_by_did` field pub struct created_by_did(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `client_name` field + pub struct client_name(()); + ///Marker type for the `client_id` field + pub struct client_id(()); } } @@ -645,13 +645,13 @@ impl<'a, S: oauth_client_details_state::State> OauthClientDetailsBuilder<'a, S> impl<'a, S> OauthClientDetailsBuilder<'a, S> where S: oauth_client_details_state::State, - S::ClientId: oauth_client_details_state::IsSet, - S::ClientName: oauth_client_details_state::IsSet, S::RedirectUris: oauth_client_details_state::IsSet, - S::GrantTypes: oauth_client_details_state::IsSet, S::ResponseTypes: oauth_client_details_state::IsSet, - S::CreatedAt: oauth_client_details_state::IsSet, + S::GrantTypes: oauth_client_details_state::IsSet, S::CreatedByDid: oauth_client_details_state::IsSet, + S::CreatedAt: oauth_client_details_state::IsSet, + S::ClientName: oauth_client_details_state::IsSet, + S::ClientId: oauth_client_details_state::IsSet, { /// Build the final struct pub fn build(self) -> OauthClientDetails<'a> { 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 ac95c1af..4b4a7075 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 @@ -46,105 +46,105 @@ pub mod indexed_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; + type Collection; type Cid; type Did; - type Collection; type Value; type IndexedAt; + 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 Collection = Unset; type Cid = Unset; type Did = Unset; - type Collection = Unset; type Value = Unset; type IndexedAt = Unset; + type Uri = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData S>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type Collection = Set; type Cid = S::Cid; type Did = S::Did; - type Collection = S::Collection; type Value = S::Value; type IndexedAt = S::IndexedAt; + type Uri = S::Uri; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; + type Collection = S::Collection; type Cid = Set; type Did = S::Did; - type Collection = S::Collection; type Value = S::Value; type IndexedAt = S::IndexedAt; + type Uri = S::Uri; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Uri = S::Uri; + type Collection = S::Collection; type Cid = S::Cid; type Did = Set; - type Collection = S::Collection; type Value = S::Value; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData S>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { type Uri = S::Uri; - type Cid = S::Cid; - type Did = S::Did; - type Collection = Set; - type Value = S::Value; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Uri = S::Uri; + type Collection = S::Collection; type Cid = S::Cid; type Did = S::Did; - type Collection = S::Collection; type Value = Set; type IndexedAt = S::IndexedAt; + type Uri = S::Uri; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; + type Collection = S::Collection; type Cid = S::Cid; type Did = S::Did; - type Collection = S::Collection; type Value = S::Value; type IndexedAt = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Collection = S::Collection; + type Cid = S::Cid; + type Did = S::Did; + type Value = S::Value; + type IndexedAt = S::IndexedAt; + 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 `collection` field + pub struct collection(()); ///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 `value` field pub struct value(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -297,12 +297,12 @@ where impl<'a, S> IndexedRecordBuilder<'a, S> where S: indexed_record_state::State, - S::Uri: indexed_record_state::IsSet, + S::Collection: indexed_record_state::IsSet, S::Cid: indexed_record_state::IsSet, S::Did: indexed_record_state::IsSet, - S::Collection: indexed_record_state::IsSet, S::Value: indexed_record_state::IsSet, S::IndexedAt: indexed_record_state::IsSet, + S::Uri: indexed_record_state::IsSet, { /// Build the final struct pub fn build(self) -> IndexedRecord<'a> { 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 3f52dac5..6560796b 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 @@ -33,51 +33,51 @@ pub mod collection_summary_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Collection; type EstimatedRepos; type IsExternal; + 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 EstimatedRepos = Unset; type IsExternal = Unset; - } - ///State transition - sets the `collection` field to Set - pub struct SetCollection(PhantomData S>); - impl sealed::Sealed for SetCollection {} - impl State for SetCollection { - type Collection = Set; - type EstimatedRepos = S::EstimatedRepos; - type IsExternal = S::IsExternal; + type Collection = Unset; } ///State transition - sets the `estimated_repos` field to Set pub struct SetEstimatedRepos(PhantomData S>); impl sealed::Sealed for SetEstimatedRepos {} impl State for SetEstimatedRepos { - type Collection = S::Collection; type EstimatedRepos = Set; type IsExternal = S::IsExternal; + type Collection = S::Collection; } ///State transition - sets the `is_external` field to Set pub struct SetIsExternal(PhantomData S>); impl sealed::Sealed for SetIsExternal {} impl State for SetIsExternal { - type Collection = S::Collection; type EstimatedRepos = S::EstimatedRepos; type IsExternal = Set; + type Collection = S::Collection; + } + ///State transition - sets the `collection` field to Set + pub struct SetCollection(PhantomData S>); + impl sealed::Sealed for SetCollection {} + impl State for SetCollection { + type EstimatedRepos = S::EstimatedRepos; + type IsExternal = S::IsExternal; + 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 `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(()); } } @@ -170,9 +170,9 @@ where impl<'a, S> CollectionSummaryBuilder<'a, S> where S: collection_summary_state::State, - S::Collection: collection_summary_state::IsSet, S::EstimatedRepos: collection_summary_state::IsSet, S::IsExternal: collection_summary_state::IsSet, + S::Collection: collection_summary_state::IsSet, { /// Build the final struct pub fn build(self) -> CollectionSummary<'a> { diff --git a/crates/jacquard-api/src/network_slices/waitlist.rs b/crates/jacquard-api/src/network_slices/waitlist.rs index 42ff18a2..214b61e8 100644 --- a/crates/jacquard-api/src/network_slices/waitlist.rs +++ b/crates/jacquard-api/src/network_slices/waitlist.rs @@ -52,51 +52,51 @@ pub mod invite_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Slice; 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 Slice = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Slice = S::Slice; - type CreatedAt = S::CreatedAt; + type Did = Unset; } ///State transition - sets the `slice` field to Set pub struct SetSlice(PhantomData S>); impl sealed::Sealed for SetSlice {} impl State for SetSlice { - type Did = S::Did; type Slice = Set; type CreatedAt = S::CreatedAt; + type Did = S::Did; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Did = S::Did; type Slice = S::Slice; type CreatedAt = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Slice = S::Slice; + type CreatedAt = S::CreatedAt; + 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 `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(()); } } @@ -249,9 +249,9 @@ impl<'a, S: invite_view_state::State> InviteViewBuilder<'a, S> { impl<'a, S> InviteViewBuilder<'a, S> where S: invite_view_state::State, - S::Did: invite_view_state::IsSet, S::Slice: invite_view_state::IsSet, S::CreatedAt: invite_view_state::IsSet, + S::Did: invite_view_state::IsSet, { /// Build the final struct pub fn build(self) -> InviteView<'a> { diff --git a/crates/jacquard-api/src/network_slices/waitlist/request.rs b/crates/jacquard-api/src/network_slices/waitlist/request.rs index f42b2dbf..d106fa7d 100644 --- a/crates/jacquard-api/src/network_slices/waitlist/request.rs +++ b/crates/jacquard-api/src/network_slices/waitlist/request.rs @@ -35,37 +35,37 @@ pub mod request_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Slice; type CreatedAt; + type Slice; } /// 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; - } - ///State transition - sets the `slice` field to Set - pub struct SetSlice(PhantomData S>); - impl sealed::Sealed for SetSlice {} - impl State for SetSlice { - type Slice = Set; - type CreatedAt = S::CreatedAt; + type Slice = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Slice = S::Slice; type CreatedAt = Set; + type Slice = S::Slice; + } + ///State transition - sets the `slice` field to Set + pub struct SetSlice(PhantomData S>); + impl sealed::Sealed for SetSlice {} + impl State for SetSlice { + type CreatedAt = S::CreatedAt; + type Slice = 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 `slice` field + pub struct slice(()); } } @@ -138,8 +138,8 @@ where impl<'a, S> RequestBuilder<'a, S> where S: request_state::State, - S::Slice: request_state::IsSet, S::CreatedAt: request_state::IsSet, + S::Slice: request_state::IsSet, { /// Build the final struct pub fn build(self) -> Request<'a> { diff --git a/crates/jacquard-api/src/org_devcon/event/test.rs b/crates/jacquard-api/src/org_devcon/event/test.rs index 5008680b..98d16cc4 100644 --- a/crates/jacquard-api/src/org_devcon/event/test.rs +++ b/crates/jacquard-api/src/org_devcon/event/test.rs @@ -50,51 +50,51 @@ pub mod test_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Title; type Start; type End; + 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 Start = Unset; type End = Unset; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Title = Set; - type Start = S::Start; - type End = S::End; + type Title = Unset; } ///State transition - sets the `start` field to Set pub struct SetStart(PhantomData S>); impl sealed::Sealed for SetStart {} impl State for SetStart { - type Title = S::Title; type Start = Set; type End = S::End; + type Title = S::Title; } ///State transition - sets the `end` field to Set pub struct SetEnd(PhantomData S>); impl sealed::Sealed for SetEnd {} impl State for SetEnd { - type Title = S::Title; type Start = S::Start; type End = Set; + type Title = S::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Start = S::Start; + type End = S::End; + 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 `start` field pub struct start(()); ///Marker type for the `end` field pub struct end(()); + ///Marker type for the `title` field + pub struct title(()); } } @@ -258,9 +258,9 @@ impl<'a, S: test_state::State> TestBuilder<'a, S> { impl<'a, S> TestBuilder<'a, S> where S: test_state::State, - S::Title: test_state::IsSet, S::Start: test_state::IsSet, S::End: test_state::IsSet, + S::Title: test_state::IsSet, { /// Build the final struct pub fn build(self) -> Test<'a> { 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 a6478370..3a942f2f 100644 --- a/crates/jacquard-api/src/org_farmapps/temp/agroconnect/cl022.rs +++ b/crates/jacquard-api/src/org_farmapps/temp/agroconnect/cl022.rs @@ -66,37 +66,37 @@ pub mod cl022_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; type Description; + 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 Description = Unset; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type Description = S::Description; + type Id = Unset; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData S>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Id = S::Id; type Description = Set; + type Id = S::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Description = S::Description; + 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 `description` field pub struct description(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -328,8 +328,8 @@ impl<'a, S: cl022_state::State> Cl022Builder<'a, S> { impl<'a, S> Cl022Builder<'a, S> where S: cl022_state::State, - S::Id: cl022_state::IsSet, S::Description: cl022_state::IsSet, + S::Id: cl022_state::IsSet, { /// Build the final struct pub fn build(self) -> Cl022<'a> { diff --git a/crates/jacquard-api/src/place_atwork/endorsement.rs b/crates/jacquard-api/src/place_atwork/endorsement.rs index b1b5d914..d9b1db9a 100644 --- a/crates/jacquard-api/src/place_atwork/endorsement.rs +++ b/crates/jacquard-api/src/place_atwork/endorsement.rs @@ -47,67 +47,67 @@ pub mod endorsement_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Giver; type Receiver; - type Text; + type Giver; type CreatedAt; + type Text; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Giver = Unset; type Receiver = Unset; - type Text = Unset; + type Giver = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `giver` field to Set - pub struct SetGiver(PhantomData S>); - impl sealed::Sealed for SetGiver {} - impl State for SetGiver { - type Giver = Set; - type Receiver = S::Receiver; - type Text = S::Text; - type CreatedAt = S::CreatedAt; + type Text = Unset; } ///State transition - sets the `receiver` field to Set pub struct SetReceiver(PhantomData S>); impl sealed::Sealed for SetReceiver {} impl State for SetReceiver { - type Giver = S::Giver; type Receiver = Set; - type Text = S::Text; + type Giver = S::Giver; type CreatedAt = S::CreatedAt; + type Text = S::Text; } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData S>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Giver = S::Giver; + ///State transition - sets the `giver` field to Set + pub struct SetGiver(PhantomData S>); + impl sealed::Sealed for SetGiver {} + impl State for SetGiver { type Receiver = S::Receiver; - type Text = Set; + type Giver = Set; type CreatedAt = S::CreatedAt; + type Text = S::Text; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Giver = S::Giver; type Receiver = S::Receiver; - type Text = S::Text; + type Giver = S::Giver; type CreatedAt = Set; + type Text = S::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData S>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type Receiver = S::Receiver; + type Giver = S::Giver; + type CreatedAt = S::CreatedAt; + type Text = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `giver` field - pub struct giver(()); ///Marker type for the `receiver` field pub struct receiver(()); - ///Marker type for the `text` field - pub struct text(()); + ///Marker type for the `giver` field + pub struct giver(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -242,10 +242,10 @@ where impl<'a, S> EndorsementBuilder<'a, S> where S: endorsement_state::State, - S::Giver: endorsement_state::IsSet, S::Receiver: endorsement_state::IsSet, - S::Text: endorsement_state::IsSet, + S::Giver: endorsement_state::IsSet, S::CreatedAt: endorsement_state::IsSet, + S::Text: endorsement_state::IsSet, { /// Build the final struct pub fn build(self) -> Endorsement<'a> { diff --git a/crates/jacquard-api/src/place_atwork/get_listing.rs b/crates/jacquard-api/src/place_atwork/get_listing.rs index 19185dcd..9a2a3491 100644 --- a/crates/jacquard-api/src/place_atwork/get_listing.rs +++ b/crates/jacquard-api/src/place_atwork/get_listing.rs @@ -32,37 +32,37 @@ pub mod get_listing_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 S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Rkey = S::Rkey; + type Repo = Unset; } ///State transition - sets the `rkey` field to Set pub struct SetRkey(PhantomData S>); impl sealed::Sealed for SetRkey {} impl State for SetRkey { - type Repo = S::Repo; type Rkey = Set; + type Repo = S::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Rkey = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> GetListingBuilder<'a, S> where S: get_listing_state::State, - S::Repo: get_listing_state::IsSet, S::Rkey: get_listing_state::IsSet, + S::Repo: get_listing_state::IsSet, { /// Build the final struct pub fn build(self) -> GetListing<'a> { diff --git a/crates/jacquard-api/src/place_atwork/listing.rs b/crates/jacquard-api/src/place_atwork/listing.rs index ab96b4a3..1f4f56dd 100644 --- a/crates/jacquard-api/src/place_atwork/listing.rs +++ b/crates/jacquard-api/src/place_atwork/listing.rs @@ -58,67 +58,67 @@ pub mod listing_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Description; + type NotAfter; type Title; type NotBefore; - type NotAfter; - 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 NotAfter = Unset; type Title = Unset; type NotBefore = Unset; - type NotAfter = Unset; - type Description = Unset; + } + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData S>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type Description = Set; + type NotAfter = S::NotAfter; + type Title = S::Title; + type NotBefore = S::NotBefore; + } + ///State transition - sets the `not_after` field to Set + pub struct SetNotAfter(PhantomData S>); + impl sealed::Sealed for SetNotAfter {} + impl State for SetNotAfter { + type Description = S::Description; + type NotAfter = Set; + type Title = S::Title; + type NotBefore = S::NotBefore; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { + type Description = S::Description; + type NotAfter = S::NotAfter; type Title = Set; type NotBefore = S::NotBefore; - type NotAfter = S::NotAfter; - type Description = S::Description; } ///State transition - sets the `not_before` field to Set pub struct SetNotBefore(PhantomData S>); impl sealed::Sealed for SetNotBefore {} impl State for SetNotBefore { - type Title = S::Title; - type NotBefore = Set; - type NotAfter = S::NotAfter; - type Description = S::Description; - } - ///State transition - sets the `not_after` field to Set - pub struct SetNotAfter(PhantomData S>); - impl sealed::Sealed for SetNotAfter {} - impl State for SetNotAfter { - type Title = S::Title; - type NotBefore = S::NotBefore; - type NotAfter = Set; type Description = S::Description; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData S>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { - type Title = S::Title; - type NotBefore = S::NotBefore; type NotAfter = S::NotAfter; - type Description = Set; + type Title = S::Title; + type NotBefore = 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 `not_after` field + pub struct not_after(()); ///Marker type for the `title` field pub struct title(()); ///Marker type for the `not_before` field pub struct not_before(()); - ///Marker type for the `not_after` field - pub struct not_after(()); - ///Marker type for the `description` field - pub struct description(()); } } @@ -315,10 +315,10 @@ where impl<'a, S> ListingBuilder<'a, S> where S: listing_state::State, + S::Description: listing_state::IsSet, + S::NotAfter: listing_state::IsSet, S::Title: listing_state::IsSet, S::NotBefore: listing_state::IsSet, - S::NotAfter: listing_state::IsSet, - S::Description: listing_state::IsSet, { /// Build the final struct pub fn build(self) -> Listing<'a> { diff --git a/crates/jacquard-api/src/place_atwork/search_listings.rs b/crates/jacquard-api/src/place_atwork/search_listings.rs index 5f39c1c3..ccefdd58 100644 --- a/crates/jacquard-api/src/place_atwork/search_listings.rs +++ b/crates/jacquard-api/src/place_atwork/search_listings.rs @@ -40,37 +40,37 @@ pub mod listing_record_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 S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; + type Uri = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = S::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(()); } } @@ -163,8 +163,8 @@ impl<'a, S: listing_record_state::State> ListingRecordBuilder<'a, S> { impl<'a, S> ListingRecordBuilder<'a, S> where S: listing_record_state::State, - S::Uri: listing_record_state::IsSet, S::Cid: listing_record_state::IsSet, + S::Uri: listing_record_state::IsSet, { /// Build the final struct pub fn build(self) -> ListingRecord<'a> { diff --git a/crates/jacquard-api/src/place_stream.rs b/crates/jacquard-api/src/place_stream.rs index c645acca..3792acf1 100644 --- a/crates/jacquard-api/src/place_stream.rs +++ b/crates/jacquard-api/src/place_stream.rs @@ -49,85 +49,85 @@ pub mod block_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Cid; + type IndexedAt; type Blocker; + type Uri; type Record; - type IndexedAt; + 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 Cid = Unset; + type IndexedAt = Unset; type Blocker = Unset; + type Uri = Unset; type Record = Unset; - type IndexedAt = Unset; + type Cid = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData S>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type IndexedAt = Set; type Blocker = S::Blocker; - type Record = S::Record; - type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { type Uri = S::Uri; - type Cid = Set; - type Blocker = S::Blocker; type Record = S::Record; - type IndexedAt = S::IndexedAt; + type Cid = S::Cid; } ///State transition - sets the `blocker` field to Set pub struct SetBlocker(PhantomData S>); impl sealed::Sealed for SetBlocker {} impl State for SetBlocker { - type Uri = S::Uri; - type Cid = S::Cid; + type IndexedAt = S::IndexedAt; type Blocker = Set; + type Uri = S::Uri; type Record = S::Record; + type Cid = S::Cid; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type IndexedAt = S::IndexedAt; + type Blocker = S::Blocker; + type Uri = Set; + type Record = S::Record; + type Cid = S::Cid; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Uri = S::Uri; - type Cid = S::Cid; - type Blocker = S::Blocker; - type Record = Set; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData S>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { + type Blocker = S::Blocker; type Uri = S::Uri; + type Record = Set; type Cid = S::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type IndexedAt = S::IndexedAt; type Blocker = S::Blocker; + type Uri = S::Uri; type Record = S::Record; - type IndexedAt = 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 `cid` field - pub struct cid(()); + ///Marker type for the `indexed_at` field + pub struct indexed_at(()); ///Marker type for the `blocker` field pub struct blocker(()); + ///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(()); } } @@ -260,11 +260,11 @@ where impl<'a, S> BlockViewBuilder<'a, S> where S: block_view_state::State, - S::Uri: block_view_state::IsSet, - S::Cid: block_view_state::IsSet, + S::IndexedAt: block_view_state::IsSet, S::Blocker: block_view_state::IsSet, + S::Uri: block_view_state::IsSet, S::Record: block_view_state::IsSet, - S::IndexedAt: block_view_state::IsSet, + S::Cid: block_view_state::IsSet, { /// Build the final struct pub fn build(self) -> BlockView<'a> { diff --git a/crates/jacquard-api/src/place_stream/broadcast.rs b/crates/jacquard-api/src/place_stream/broadcast.rs index c5217c91..2fa840a8 100644 --- a/crates/jacquard-api/src/place_stream/broadcast.rs +++ b/crates/jacquard-api/src/place_stream/broadcast.rs @@ -41,67 +41,67 @@ pub mod broadcast_origin_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; - type Author; type Record; + 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 Cid = Unset; - type Author = Unset; type Record = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Author = S::Author; - type Record = S::Record; + type Author = Unset; + type Uri = Unset; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; - type Author = S::Author; type Record = S::Record; + type Author = S::Author; + type Uri = S::Uri; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData S>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Cid = S::Cid; + type Record = Set; + type Author = S::Author; + type Uri = S::Uri; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData S>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Uri = S::Uri; type Cid = S::Cid; - type Author = Set; type Record = S::Record; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData S>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { + type Author = Set; type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type Cid = S::Cid; + type Record = S::Record; type Author = S::Author; - type Record = 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 `cid` field pub struct cid(()); - ///Marker type for the `author` field - pub struct author(()); ///Marker type for the `record` field pub struct record(()); + ///Marker type for the `author` field + pub struct author(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -214,10 +214,10 @@ where impl<'a, S> BroadcastOriginViewBuilder<'a, S> where S: broadcast_origin_view_state::State, - S::Uri: broadcast_origin_view_state::IsSet, S::Cid: broadcast_origin_view_state::IsSet, - S::Author: broadcast_origin_view_state::IsSet, S::Record: broadcast_origin_view_state::IsSet, + S::Author: broadcast_origin_view_state::IsSet, + S::Uri: broadcast_origin_view_state::IsSet, { /// Build the final struct pub fn build(self) -> BroadcastOriginView<'a> { diff --git a/crates/jacquard-api/src/place_stream/broadcast/origin.rs b/crates/jacquard-api/src/place_stream/broadcast/origin.rs index c903cfb1..25e7a6b2 100644 --- a/crates/jacquard-api/src/place_stream/broadcast/origin.rs +++ b/crates/jacquard-api/src/place_stream/broadcast/origin.rs @@ -50,51 +50,51 @@ pub mod origin_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type UpdatedAt; 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 UpdatedAt = Unset; type Streamer = Unset; type Server = Unset; - type UpdatedAt = Unset; + } + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData S>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { + type UpdatedAt = Set; + type Streamer = S::Streamer; + type Server = S::Server; } ///State transition - sets the `streamer` field to Set pub struct SetStreamer(PhantomData S>); impl sealed::Sealed for SetStreamer {} impl State for SetStreamer { + type UpdatedAt = S::UpdatedAt; type Streamer = Set; type Server = S::Server; - type UpdatedAt = S::UpdatedAt; } ///State transition - sets the `server` field to Set pub struct SetServer(PhantomData S>); impl sealed::Sealed for SetServer {} impl State for SetServer { - type Streamer = S::Streamer; - type Server = Set; type UpdatedAt = S::UpdatedAt; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData S>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { type Streamer = S::Streamer; - type Server = S::Server; - type UpdatedAt = Set; + type Server = 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 `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(()); } } @@ -247,9 +247,9 @@ impl<'a, S: origin_state::State> OriginBuilder<'a, S> { impl<'a, S> OriginBuilder<'a, S> where S: origin_state::State, + S::UpdatedAt: origin_state::IsSet, S::Streamer: origin_state::IsSet, S::Server: origin_state::IsSet, - S::UpdatedAt: origin_state::IsSet, { /// Build the final struct pub fn build(self) -> Origin<'a> { diff --git a/crates/jacquard-api/src/place_stream/broadcast/syndication.rs b/crates/jacquard-api/src/place_stream/broadcast/syndication.rs index 5622b8f4..d12f12d7 100644 --- a/crates/jacquard-api/src/place_stream/broadcast/syndication.rs +++ b/crates/jacquard-api/src/place_stream/broadcast/syndication.rs @@ -38,49 +38,49 @@ pub mod syndication_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Broadcaster; type Streamer; + type Broadcaster; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Broadcaster = Unset; type Streamer = Unset; + type Broadcaster = Unset; type CreatedAt = Unset; } - ///State transition - sets the `broadcaster` field to Set - pub struct SetBroadcaster(PhantomData S>); - impl sealed::Sealed for SetBroadcaster {} - impl State for SetBroadcaster { - type Broadcaster = Set; - type Streamer = S::Streamer; - type CreatedAt = S::CreatedAt; - } ///State transition - sets the `streamer` field to Set pub struct SetStreamer(PhantomData S>); impl sealed::Sealed for SetStreamer {} impl State for SetStreamer { - type Broadcaster = S::Broadcaster; type Streamer = Set; + type Broadcaster = S::Broadcaster; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `broadcaster` field to Set + pub struct SetBroadcaster(PhantomData S>); + impl sealed::Sealed for SetBroadcaster {} + impl State for SetBroadcaster { + type Streamer = S::Streamer; + type Broadcaster = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Broadcaster = S::Broadcaster; type Streamer = S::Streamer; + type Broadcaster = S::Broadcaster; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `broadcaster` field - pub struct broadcaster(()); ///Marker type for the `streamer` field pub struct streamer(()); + ///Marker type for the `broadcaster` field + pub struct broadcaster(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -175,8 +175,8 @@ where impl<'a, S> SyndicationBuilder<'a, S> where S: syndication_state::State, - S::Broadcaster: syndication_state::IsSet, S::Streamer: syndication_state::IsSet, + S::Broadcaster: syndication_state::IsSet, S::CreatedAt: syndication_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/place_stream/chat.rs b/crates/jacquard-api/src/place_stream/chat.rs index 9bd67f0d..0e33210a 100644 --- a/crates/jacquard-api/src/place_stream/chat.rs +++ b/crates/jacquard-api/src/place_stream/chat.rs @@ -53,85 +53,85 @@ pub mod message_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Cid; type Author; type Record; type IndexedAt; + type Uri; + 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 Cid = Unset; type Author = Unset; type Record = Unset; type IndexedAt = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Author = S::Author; - type Record = S::Record; - type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; - type Author = S::Author; - type Record = S::Record; - type IndexedAt = S::IndexedAt; + type Uri = Unset; + type Cid = Unset; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData S>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Uri = S::Uri; - type Cid = S::Cid; type Author = Set; type Record = S::Record; type IndexedAt = S::IndexedAt; + type Uri = S::Uri; + type Cid = S::Cid; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Uri = S::Uri; - type Cid = S::Cid; type Author = S::Author; type Record = Set; type IndexedAt = S::IndexedAt; + type Uri = S::Uri; + type Cid = S::Cid; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { + type Author = S::Author; + type Record = S::Record; + type IndexedAt = Set; type Uri = S::Uri; type Cid = S::Cid; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type Author = S::Author; type Record = S::Record; - type IndexedAt = Set; + type IndexedAt = S::IndexedAt; + type Uri = Set; + type Cid = S::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Author = S::Author; + type Record = S::Record; + type IndexedAt = S::IndexedAt; + type Uri = S::Uri; + 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 `cid` field - pub struct cid(()); ///Marker type for the `author` field pub struct author(()); ///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(()); } } @@ -312,11 +312,11 @@ where impl<'a, S> MessageViewBuilder<'a, S> where S: message_view_state::State, - S::Uri: message_view_state::IsSet, - S::Cid: message_view_state::IsSet, S::Author: message_view_state::IsSet, S::Record: message_view_state::IsSet, S::IndexedAt: message_view_state::IsSet, + S::Uri: message_view_state::IsSet, + S::Cid: message_view_state::IsSet, { /// Build the final struct pub fn build(self) -> MessageView<'a> { diff --git a/crates/jacquard-api/src/place_stream/chat/message.rs b/crates/jacquard-api/src/place_stream/chat/message.rs index 441e5590..e6403980 100644 --- a/crates/jacquard-api/src/place_stream/chat/message.rs +++ b/crates/jacquard-api/src/place_stream/chat/message.rs @@ -47,49 +47,49 @@ pub mod message_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; type CreatedAt; + type Text; type Streamer; } /// 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 Text = Unset; type Streamer = Unset; } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData S>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type CreatedAt = S::CreatedAt; - type Streamer = S::Streamer; - } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = S::Text; type CreatedAt = Set; + type Text = S::Text; + type Streamer = S::Streamer; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData S>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type CreatedAt = S::CreatedAt; + type Text = Set; type Streamer = S::Streamer; } ///State transition - sets the `streamer` field to Set pub struct SetStreamer(PhantomData S>); impl sealed::Sealed for SetStreamer {} impl State for SetStreamer { - type Text = S::Text; type CreatedAt = S::CreatedAt; + type Text = S::Text; type Streamer = 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(()); ///Marker type for the `streamer` field pub struct streamer(()); } @@ -224,8 +224,8 @@ where impl<'a, S> MessageBuilder<'a, S> where S: message_state::State, - S::Text: message_state::IsSet, S::CreatedAt: message_state::IsSet, + S::Text: message_state::IsSet, S::Streamer: message_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/place_stream/chat/profile.rs b/crates/jacquard-api/src/place_stream/chat/profile.rs index 3e96affb..45fadfbd 100644 --- a/crates/jacquard-api/src/place_stream/chat/profile.rs +++ b/crates/jacquard-api/src/place_stream/chat/profile.rs @@ -33,51 +33,51 @@ pub mod color_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Red; type Green; type Blue; + type Red; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Red = Unset; type Green = Unset; type Blue = Unset; - } - ///State transition - sets the `red` field to Set - pub struct SetRed(PhantomData S>); - impl sealed::Sealed for SetRed {} - impl State for SetRed { - type Red = Set; - type Green = S::Green; - type Blue = S::Blue; + type Red = Unset; } ///State transition - sets the `green` field to Set pub struct SetGreen(PhantomData S>); impl sealed::Sealed for SetGreen {} impl State for SetGreen { - type Red = S::Red; type Green = Set; type Blue = S::Blue; + type Red = S::Red; } ///State transition - sets the `blue` field to Set pub struct SetBlue(PhantomData S>); impl sealed::Sealed for SetBlue {} impl State for SetBlue { - type Red = S::Red; type Green = S::Green; type Blue = Set; + type Red = S::Red; + } + ///State transition - sets the `red` field to Set + pub struct SetRed(PhantomData S>); + impl sealed::Sealed for SetRed {} + impl State for SetRed { + type Green = S::Green; + type Blue = S::Blue; + type Red = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `red` field - pub struct red(()); ///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(()); } } @@ -170,9 +170,9 @@ where impl<'a, S> ColorBuilder<'a, S> where S: color_state::State, - S::Red: color_state::IsSet, S::Green: color_state::IsSet, S::Blue: color_state::IsSet, + S::Red: color_state::IsSet, { /// Build the final struct pub fn build(self) -> Color<'a> { 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 058333cf..2cedc1ec 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 @@ -32,37 +32,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 S>); - impl sealed::Sealed for SetUserDid {} - impl State for SetUserDid { - type UserDid = Set; - type SubjectDid = S::SubjectDid; + type UserDid = Unset; } ///State transition - sets the `subject_did` field to Set pub struct SetSubjectDid(PhantomData S>); impl sealed::Sealed for SetSubjectDid {} impl State for SetSubjectDid { - type UserDid = S::UserDid; type SubjectDid = Set; + type UserDid = S::UserDid; + } + ///State transition - sets the `user_did` field to Set + pub struct SetUserDid(PhantomData S>); + impl sealed::Sealed for SetUserDid {} + impl State for SetUserDid { + type SubjectDid = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> GetFollowingUserBuilder<'a, S> where S: get_following_user_state::State, - S::UserDid: get_following_user_state::IsSet, S::SubjectDid: get_following_user_state::IsSet, + S::UserDid: get_following_user_state::IsSet, { /// Build the final struct pub fn build(self) -> GetFollowingUser<'a> { diff --git a/crates/jacquard-api/src/place_stream/key.rs b/crates/jacquard-api/src/place_stream/key.rs index 3228357b..b8710f71 100644 --- a/crates/jacquard-api/src/place_stream/key.rs +++ b/crates/jacquard-api/src/place_stream/key.rs @@ -39,37 +39,37 @@ pub mod key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type SigningKey; type CreatedAt; + type SigningKey; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type SigningKey = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `signing_key` field to Set - pub struct SetSigningKey(PhantomData S>); - impl sealed::Sealed for SetSigningKey {} - impl State for SetSigningKey { - type SigningKey = Set; - type CreatedAt = S::CreatedAt; + type SigningKey = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type SigningKey = S::SigningKey; type CreatedAt = Set; + type SigningKey = S::SigningKey; + } + ///State transition - sets the `signing_key` field to Set + pub struct SetSigningKey(PhantomData S>); + impl sealed::Sealed for SetSigningKey {} + impl State for SetSigningKey { + type CreatedAt = S::CreatedAt; + type SigningKey = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `signing_key` field - pub struct signing_key(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `signing_key` field + pub struct signing_key(()); } } @@ -162,8 +162,8 @@ where impl<'a, S> KeyBuilder<'a, S> where S: key_state::State, - S::SigningKey: key_state::IsSet, S::CreatedAt: key_state::IsSet, + S::SigningKey: key_state::IsSet, { /// Build the final struct pub fn build(self) -> Key<'a> { diff --git a/crates/jacquard-api/src/place_stream/livestream.rs b/crates/jacquard-api/src/place_stream/livestream.rs index e5c9e60e..30f7b278 100644 --- a/crates/jacquard-api/src/place_stream/livestream.rs +++ b/crates/jacquard-api/src/place_stream/livestream.rs @@ -44,83 +44,83 @@ pub mod livestream_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; - type Author; type Record; + type Author; + 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 Cid = Unset; - type Author = Unset; type Record = Unset; + type Author = Unset; + type Uri = Unset; type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Author = S::Author; - type Record = S::Record; - type IndexedAt = S::IndexedAt; - } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; - type Author = S::Author; type Record = S::Record; + type Author = S::Author; + type Uri = S::Uri; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData S>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Cid = S::Cid; + type Record = Set; + type Author = S::Author; + type Uri = S::Uri; type IndexedAt = S::IndexedAt; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData S>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Uri = S::Uri; type Cid = S::Cid; - type Author = Set; type Record = S::Record; + type Author = Set; + type Uri = S::Uri; type IndexedAt = S::IndexedAt; } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData S>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Uri = S::Uri; + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type Cid = S::Cid; + type Record = S::Record; type Author = S::Author; - type Record = Set; + type Uri = Set; type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; type Cid = S::Cid; - type Author = S::Author; type Record = S::Record; + type Author = S::Author; + type Uri = S::Uri; type IndexedAt = 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 `author` field - pub struct author(()); ///Marker type for the `record` field pub struct record(()); + ///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(()); } @@ -275,10 +275,10 @@ impl<'a, S: livestream_view_state::State> LivestreamViewBuilder<'a, S> { impl<'a, S> LivestreamViewBuilder<'a, S> where S: livestream_view_state::State, - S::Uri: livestream_view_state::IsSet, S::Cid: livestream_view_state::IsSet, - S::Author: livestream_view_state::IsSet, S::Record: livestream_view_state::IsSet, + S::Author: livestream_view_state::IsSet, + S::Uri: livestream_view_state::IsSet, S::IndexedAt: livestream_view_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/place_stream/richtext/facet.rs b/crates/jacquard-api/src/place_stream/richtext/facet.rs index 333518d8..53c3ac3a 100644 --- a/crates/jacquard-api/src/place_stream/richtext/facet.rs +++ b/crates/jacquard-api/src/place_stream/richtext/facet.rs @@ -34,37 +34,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 S>); - impl sealed::Sealed for SetIndex {} - impl State for SetIndex { - type Index = Set; - type Features = S::Features; + type Index = Unset; } ///State transition - sets the `features` field to Set pub struct SetFeatures(PhantomData S>); impl sealed::Sealed for SetFeatures {} impl State for SetFeatures { - type Index = S::Index; type Features = Set; + type Index = S::Index; + } + ///State transition - sets the `index` field to Set + pub struct SetIndex(PhantomData S>); + impl sealed::Sealed for SetIndex {} + impl State for SetIndex { + type Features = S::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(()); } } @@ -137,8 +137,8 @@ where impl<'a, S> FacetBuilder<'a, S> where S: facet_state::State, - S::Index: facet_state::IsSet, S::Features: facet_state::IsSet, + S::Index: facet_state::IsSet, { /// Build the final struct pub fn build(self) -> Facet<'a> { diff --git a/crates/jacquard-api/src/place_stream/segment.rs b/crates/jacquard-api/src/place_stream/segment.rs index 5fa9d830..2fe2df8d 100644 --- a/crates/jacquard-api/src/place_stream/segment.rs +++ b/crates/jacquard-api/src/place_stream/segment.rs @@ -34,50 +34,50 @@ pub mod audio_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Codec; - type Rate; type Channels; + type Rate; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Codec = Unset; - type Rate = Unset; type Channels = Unset; + type Rate = Unset; } ///State transition - sets the `codec` field to Set pub struct SetCodec(PhantomData S>); impl sealed::Sealed for SetCodec {} impl State for SetCodec { type Codec = Set; - type Rate = S::Rate; - type Channels = S::Channels; - } - ///State transition - sets the `rate` field to Set - pub struct SetRate(PhantomData S>); - impl sealed::Sealed for SetRate {} - impl State for SetRate { - type Codec = S::Codec; - type Rate = Set; type Channels = S::Channels; + type Rate = S::Rate; } ///State transition - sets the `channels` field to Set pub struct SetChannels(PhantomData S>); impl sealed::Sealed for SetChannels {} impl State for SetChannels { type Codec = S::Codec; - type Rate = S::Rate; type Channels = Set; + type Rate = S::Rate; + } + ///State transition - sets the `rate` field to Set + pub struct SetRate(PhantomData S>); + impl sealed::Sealed for SetRate {} + impl State for SetRate { + type Codec = S::Codec; + type Channels = S::Channels; + type Rate = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///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(()); + ///Marker type for the `rate` field + pub struct rate(()); } } @@ -171,8 +171,8 @@ impl<'a, S> AudioBuilder<'a, S> where S: audio_state::State, S::Codec: audio_state::IsSet, - S::Rate: audio_state::IsSet, S::Channels: audio_state::IsSet, + S::Rate: audio_state::IsSet, { /// Build the final struct pub fn build(self) -> Audio<'a> { @@ -863,67 +863,67 @@ pub mod segment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; type SigningKey; - type StartTime; + type Id; type Creator; + type StartTime; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Id = Unset; type SigningKey = Unset; - type StartTime = Unset; + type Id = Unset; type Creator = Unset; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type SigningKey = S::SigningKey; - type StartTime = S::StartTime; - type Creator = S::Creator; + type StartTime = Unset; } ///State transition - sets the `signing_key` field to Set pub struct SetSigningKey(PhantomData S>); impl sealed::Sealed for SetSigningKey {} impl State for SetSigningKey { - type Id = S::Id; type SigningKey = Set; - type StartTime = S::StartTime; + type Id = S::Id; type Creator = S::Creator; + type StartTime = S::StartTime; } - ///State transition - sets the `start_time` field to Set - pub struct SetStartTime(PhantomData S>); - impl sealed::Sealed for SetStartTime {} - impl State for SetStartTime { - type Id = S::Id; + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { type SigningKey = S::SigningKey; - type StartTime = Set; + type Id = Set; type Creator = S::Creator; + type StartTime = S::StartTime; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData S>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { - type Id = S::Id; type SigningKey = S::SigningKey; - type StartTime = S::StartTime; + type Id = S::Id; type Creator = Set; + type StartTime = S::StartTime; + } + ///State transition - sets the `start_time` field to Set + pub struct SetStartTime(PhantomData S>); + impl sealed::Sealed for SetStartTime {} + impl State for SetStartTime { + type SigningKey = S::SigningKey; + type Id = S::Id; + type Creator = S::Creator; + type StartTime = 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 `signing_key` field pub struct signing_key(()); - ///Marker type for the `start_time` field - pub struct start_time(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `creator` field pub struct creator(()); + ///Marker type for the `start_time` field + pub struct start_time(()); } } @@ -1196,10 +1196,10 @@ impl<'a, S: segment_state::State> SegmentBuilder<'a, S> { impl<'a, S> SegmentBuilder<'a, S> where S: segment_state::State, - S::Id: segment_state::IsSet, S::SigningKey: segment_state::IsSet, - S::StartTime: segment_state::IsSet, + S::Id: segment_state::IsSet, S::Creator: segment_state::IsSet, + S::StartTime: segment_state::IsSet, { /// Build the final struct pub fn build(self) -> Segment<'a> { @@ -1349,37 +1349,37 @@ pub mod segment_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Cid; type Record; + 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 Record = Unset; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Cid = Set; - type Record = S::Record; + type Cid = Unset; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Cid = S::Cid; type Record = Set; + type Cid = S::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Record = S::Record; + 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 `record` field pub struct record(()); + ///Marker type for the `cid` field + pub struct cid(()); } } @@ -1452,8 +1452,8 @@ where impl<'a, S> SegmentViewBuilder<'a, S> where S: segment_view_state::State, - S::Cid: segment_view_state::IsSet, S::Record: segment_view_state::IsSet, + S::Cid: segment_view_state::IsSet, { /// Build the final struct pub fn build(self) -> SegmentView<'a> { @@ -1529,51 +1529,51 @@ pub mod video_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Codec; type Width; type Height; + type Codec; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Codec = Unset; type Width = Unset; type Height = Unset; - } - ///State transition - sets the `codec` field to Set - pub struct SetCodec(PhantomData S>); - impl sealed::Sealed for SetCodec {} - impl State for SetCodec { - type Codec = Set; - type Width = S::Width; - type Height = S::Height; + type Codec = Unset; } ///State transition - sets the `width` field to Set pub struct SetWidth(PhantomData S>); impl sealed::Sealed for SetWidth {} impl State for SetWidth { - type Codec = S::Codec; type Width = Set; type Height = S::Height; + type Codec = S::Codec; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData S>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Codec = S::Codec; type Width = S::Width; type Height = Set; + type Codec = S::Codec; + } + ///State transition - sets the `codec` field to Set + pub struct SetCodec(PhantomData S>); + impl sealed::Sealed for SetCodec {} + impl State for SetCodec { + type Width = S::Width; + type Height = S::Height; + type Codec = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `codec` field - pub struct codec(()); ///Marker type for the `width` field pub struct width(()); ///Marker type for the `height` field pub struct height(()); + ///Marker type for the `codec` field + pub struct codec(()); } } @@ -1700,9 +1700,9 @@ where impl<'a, S> VideoBuilder<'a, S> where S: video_state::State, - S::Codec: video_state::IsSet, S::Width: video_state::IsSet, S::Height: video_state::IsSet, + S::Codec: video_state::IsSet, { /// Build the final struct pub fn build(self) -> Video<'a> { diff --git a/crates/jacquard-api/src/place_stream/server.rs b/crates/jacquard-api/src/place_stream/server.rs index beedfb71..c45126b6 100644 --- a/crates/jacquard-api/src/place_stream/server.rs +++ b/crates/jacquard-api/src/place_stream/server.rs @@ -530,83 +530,83 @@ 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 Events; - type Active; type CreatedAt; } /// 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 Events = Unset; - type Active = Unset; type CreatedAt = Unset; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; + ///State transition - sets the `active` field to Set + pub struct SetActive(PhantomData S>); + impl sealed::Sealed for SetActive {} + impl State for SetActive { + type Active = Set; type Url = S::Url; + type Id = S::Id; type Events = S::Events; - type Active = S::Active; type CreatedAt = S::CreatedAt; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Id = S::Id; + type Active = S::Active; type Url = Set; + type Id = S::Id; type Events = S::Events; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { type Active = S::Active; + type Url = S::Url; + type Id = Set; + type Events = S::Events; type CreatedAt = S::CreatedAt; } ///State transition - sets the `events` field to Set pub struct SetEvents(PhantomData S>); impl sealed::Sealed for SetEvents {} impl State for SetEvents { - type Id = S::Id; - type Url = S::Url; - type Events = Set; type Active = S::Active; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `active` field to Set - pub struct SetActive(PhantomData S>); - impl sealed::Sealed for SetActive {} - impl State for SetActive { - type Id = S::Id; type Url = S::Url; - type Events = S::Events; - type Active = Set; + type Id = S::Id; + type Events = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Id = S::Id; + type Active = S::Active; type Url = S::Url; + type Id = S::Id; type Events = S::Events; - type Active = S::Active; type CreatedAt = 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 `events` field pub struct events(()); - ///Marker type for the `active` field - pub struct active(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -921,10 +921,10 @@ where impl<'a, S> WebhookBuilder<'a, S> where S: webhook_state::State, - S::Id: webhook_state::IsSet, + S::Active: webhook_state::IsSet, S::Url: webhook_state::IsSet, + S::Id: webhook_state::IsSet, S::Events: webhook_state::IsSet, - S::Active: webhook_state::IsSet, S::CreatedAt: webhook_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/place_wisp/fs.rs b/crates/jacquard-api/src/place_wisp/fs.rs index f9d0ec0c..7cb934c5 100644 --- a/crates/jacquard-api/src/place_wisp/fs.rs +++ b/crates/jacquard-api/src/place_wisp/fs.rs @@ -946,51 +946,51 @@ pub mod fs_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Site; type Root; - 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 Site = Unset; type Root = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Site = S::Site; + type Root = S::Root; } ///State transition - sets the `site` field to Set pub struct SetSite(PhantomData S>); impl sealed::Sealed for SetSite {} impl State for SetSite { + type CreatedAt = S::CreatedAt; type Site = Set; type Root = S::Root; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `root` field to Set pub struct SetRoot(PhantomData S>); impl sealed::Sealed for SetRoot {} impl State for SetRoot { - type Site = S::Site; - type Root = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Site = S::Site; - type Root = S::Root; - type CreatedAt = Set; + 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 `root` field pub struct root(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -1097,9 +1097,9 @@ where impl<'a, S> FsBuilder<'a, S> where S: fs_state::State, + S::CreatedAt: fs_state::IsSet, S::Site: fs_state::IsSet, S::Root: fs_state::IsSet, - S::CreatedAt: fs_state::IsSet, { /// Build the final struct pub fn build(self) -> Fs<'a> { diff --git a/crates/jacquard-api/src/pub_leaflet/blocks/button.rs b/crates/jacquard-api/src/pub_leaflet/blocks/button.rs index 9d98f5db..fc84bb34 100644 --- a/crates/jacquard-api/src/pub_leaflet/blocks/button.rs +++ b/crates/jacquard-api/src/pub_leaflet/blocks/button.rs @@ -33,37 +33,37 @@ pub mod button_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Text; type Url; + 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 Url = Unset; - } - ///State transition - sets the `text` field to Set - pub struct SetText(PhantomData S>); - impl sealed::Sealed for SetText {} - impl State for SetText { - type Text = Set; - type Url = S::Url; + type Text = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Text = S::Text; type Url = Set; + type Text = S::Text; + } + ///State transition - sets the `text` field to Set + pub struct SetText(PhantomData S>); + impl sealed::Sealed for SetText {} + impl State for SetText { + type Url = S::Url; + 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 `url` field pub struct url(()); + ///Marker type for the `text` field + pub struct text(()); } } @@ -136,8 +136,8 @@ where impl<'a, S> ButtonBuilder<'a, S> where S: button_state::State, - S::Text: button_state::IsSet, S::Url: button_state::IsSet, + S::Text: button_state::IsSet, { /// Build the final struct pub fn build(self) -> Button<'a> { diff --git a/crates/jacquard-api/src/pub_leaflet/blocks/image.rs b/crates/jacquard-api/src/pub_leaflet/blocks/image.rs index 49f6b10c..08f5cb21 100644 --- a/crates/jacquard-api/src/pub_leaflet/blocks/image.rs +++ b/crates/jacquard-api/src/pub_leaflet/blocks/image.rs @@ -316,37 +316,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 S>); - impl sealed::Sealed for SetImage {} - impl State for SetImage { - type Image = Set; - type AspectRatio = S::AspectRatio; + type Image = Unset; } ///State transition - sets the `aspect_ratio` field to Set pub struct SetAspectRatio(PhantomData S>); impl sealed::Sealed for SetAspectRatio {} impl State for SetAspectRatio { - type Image = S::Image; type AspectRatio = Set; + type Image = S::Image; + } + ///State transition - sets the `image` field to Set + pub struct SetImage(PhantomData S>); + impl sealed::Sealed for SetImage {} + impl State for SetImage { + type AspectRatio = S::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(()); } } @@ -433,8 +433,8 @@ where impl<'a, S> ImageBuilder<'a, S> where S: image_state::State, - S::Image: image_state::IsSet, S::AspectRatio: image_state::IsSet, + S::Image: image_state::IsSet, { /// Build the final struct pub fn build(self) -> Image<'a> { diff --git a/crates/jacquard-api/src/pub_leaflet/comment.rs b/crates/jacquard-api/src/pub_leaflet/comment.rs index ec13ddf3..a975a738 100644 --- a/crates/jacquard-api/src/pub_leaflet/comment.rs +++ b/crates/jacquard-api/src/pub_leaflet/comment.rs @@ -443,49 +443,49 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; 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 Subject = Unset; type Plaintext = Unset; + type Subject = Unset; type CreatedAt = Unset; } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type Plaintext = S::Plaintext; - type CreatedAt = S::CreatedAt; - } ///State transition - sets the `plaintext` field to Set pub struct SetPlaintext(PhantomData S>); impl sealed::Sealed for SetPlaintext {} impl State for SetPlaintext { - type Subject = S::Subject; type Plaintext = Set; + type Subject = S::Subject; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Plaintext = S::Plaintext; + type Subject = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type Plaintext = S::Plaintext; + type Subject = S::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 `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(()); } @@ -657,8 +657,8 @@ where impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, - S::Subject: comment_state::IsSet, S::Plaintext: comment_state::IsSet, + S::Subject: comment_state::IsSet, S::CreatedAt: comment_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/pub_leaflet/document.rs b/crates/jacquard-api/src/pub_leaflet/document.rs index d526f16b..7556ea3f 100644 --- a/crates/jacquard-api/src/pub_leaflet/document.rs +++ b/crates/jacquard-api/src/pub_leaflet/document.rs @@ -48,67 +48,67 @@ pub mod document_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Publication; type Pages; type Author; type Title; - type Publication; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Publication = Unset; type Pages = Unset; type Author = Unset; type Title = Unset; - type Publication = Unset; + } + ///State transition - sets the `publication` field to Set + pub struct SetPublication(PhantomData S>); + impl sealed::Sealed for SetPublication {} + impl State for SetPublication { + type Publication = Set; + type Pages = S::Pages; + type Author = S::Author; + type Title = S::Title; } ///State transition - sets the `pages` field to Set pub struct SetPages(PhantomData S>); impl sealed::Sealed for SetPages {} impl State for SetPages { + type Publication = S::Publication; type Pages = Set; type Author = S::Author; type Title = S::Title; - type Publication = S::Publication; } ///State transition - sets the `author` field to Set pub struct SetAuthor(PhantomData S>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { + type Publication = S::Publication; type Pages = S::Pages; type Author = Set; type Title = S::Title; - type Publication = S::Publication; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Pages = S::Pages; - type Author = S::Author; - type Title = Set; type Publication = S::Publication; - } - ///State transition - sets the `publication` field to Set - pub struct SetPublication(PhantomData S>); - impl sealed::Sealed for SetPublication {} - impl State for SetPublication { type Pages = S::Pages; type Author = S::Author; - type Title = S::Title; - type Publication = Set; + type Title = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `publication` field + pub struct publication(()); ///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(()); - ///Marker type for the `publication` field - pub struct publication(()); } } @@ -281,10 +281,10 @@ where impl<'a, S> DocumentBuilder<'a, S> where S: document_state::State, + S::Publication: document_state::IsSet, S::Pages: document_state::IsSet, S::Author: document_state::IsSet, S::Title: document_state::IsSet, - S::Publication: document_state::IsSet, { /// Build the final struct pub fn build(self) -> Document<'a> { diff --git a/crates/jacquard-api/src/pub_leaflet/pages/canvas.rs b/crates/jacquard-api/src/pub_leaflet/pages/canvas.rs index e107d547..8e3b6005 100644 --- a/crates/jacquard-api/src/pub_leaflet/pages/canvas.rs +++ b/crates/jacquard-api/src/pub_leaflet/pages/canvas.rs @@ -764,37 +764,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 S>); - impl sealed::Sealed for SetBlock {} - impl State for SetBlock { - type Block = Set; - type Offset = S::Offset; + type Block = Unset; } ///State transition - sets the `offset` field to Set pub struct SetOffset(PhantomData S>); impl sealed::Sealed for SetOffset {} impl State for SetOffset { - type Block = S::Block; type Offset = Set; + type Block = S::Block; + } + ///State transition - sets the `block` field to Set + pub struct SetBlock(PhantomData S>); + impl sealed::Sealed for SetBlock {} + impl State for SetBlock { + type Offset = S::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(()); } } @@ -867,8 +867,8 @@ where impl<'a, S> PositionBuilder<'a, S> where S: position_state::State, - S::Block: position_state::IsSet, S::Offset: position_state::IsSet, + S::Block: position_state::IsSet, { /// Build the final struct pub fn build(self) -> Position<'a> { diff --git a/crates/jacquard-api/src/pub_leaflet/poll/definition.rs b/crates/jacquard-api/src/pub_leaflet/poll/definition.rs index 28bffa97..1ad8e62f 100644 --- a/crates/jacquard-api/src/pub_leaflet/poll/definition.rs +++ b/crates/jacquard-api/src/pub_leaflet/poll/definition.rs @@ -36,37 +36,37 @@ pub mod definition_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Options; + 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 Options = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Options = S::Options; + type Name = Unset; } ///State transition - sets the `options` field to Set pub struct SetOptions(PhantomData S>); impl sealed::Sealed for SetOptions {} impl State for SetOptions { - type Name = S::Name; type Options = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Options = S::Options; + 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 `options` field pub struct options(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -161,8 +161,8 @@ where impl<'a, S> DefinitionBuilder<'a, S> where S: definition_state::State, - S::Name: definition_state::IsSet, S::Options: definition_state::IsSet, + S::Name: definition_state::IsSet, { /// Build the final struct pub fn build(self) -> Definition<'a> { diff --git a/crates/jacquard-api/src/pub_leaflet/poll/vote.rs b/crates/jacquard-api/src/pub_leaflet/poll/vote.rs index 0a30382c..adbf05c7 100644 --- a/crates/jacquard-api/src/pub_leaflet/poll/vote.rs +++ b/crates/jacquard-api/src/pub_leaflet/poll/vote.rs @@ -34,37 +34,37 @@ pub mod vote_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Poll; type Option; + 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 Option = Unset; - } - ///State transition - sets the `poll` field to Set - pub struct SetPoll(PhantomData S>); - impl sealed::Sealed for SetPoll {} - impl State for SetPoll { - type Poll = Set; - type Option = S::Option; + type Poll = Unset; } ///State transition - sets the `option` field to Set pub struct SetOption(PhantomData S>); impl sealed::Sealed for SetOption {} impl State for SetOption { - type Poll = S::Poll; type Option = Set; + type Poll = S::Poll; + } + ///State transition - sets the `poll` field to Set + pub struct SetPoll(PhantomData S>); + impl sealed::Sealed for SetPoll {} + impl State for SetPoll { + type Option = S::Option; + 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 `option` field pub struct option(()); + ///Marker type for the `poll` field + pub struct poll(()); } } @@ -137,8 +137,8 @@ where impl<'a, S> VoteBuilder<'a, S> where S: vote_state::State, - S::Poll: vote_state::IsSet, S::Option: vote_state::IsSet, + S::Poll: vote_state::IsSet, { /// Build the final struct pub fn build(self) -> Vote<'a> { diff --git a/crates/jacquard-api/src/pub_leaflet/theme/color.rs b/crates/jacquard-api/src/pub_leaflet/theme/color.rs index bdf721db..acfcfe46 100644 --- a/crates/jacquard-api/src/pub_leaflet/theme/color.rs +++ b/crates/jacquard-api/src/pub_leaflet/theme/color.rs @@ -438,67 +438,67 @@ pub mod rgba_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type R; type G; - type B; type A; + type R; + type B; } /// 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 A = Unset; - } - ///State transition - sets the `r` field to Set - pub struct SetR(PhantomData S>); - impl sealed::Sealed for SetR {} - impl State for SetR { - type R = Set; - type G = S::G; - type B = S::B; - type A = S::A; + type R = Unset; + type B = Unset; } ///State transition - sets the `g` field to Set pub struct SetG(PhantomData S>); impl sealed::Sealed for SetG {} impl State for SetG { - type R = S::R; type G = Set; - type B = S::B; type A = S::A; - } - ///State transition - sets the `b` field to Set - pub struct SetB(PhantomData S>); - impl sealed::Sealed for SetB {} - impl State for SetB { type R = S::R; - type G = S::G; - type B = Set; - type A = S::A; + type B = S::B; } ///State transition - sets the `a` field to Set pub struct SetA(PhantomData S>); impl sealed::Sealed for SetA {} impl State for SetA { + type G = S::G; + type A = Set; type R = S::R; + type B = S::B; + } + ///State transition - sets the `r` field to Set + pub struct SetR(PhantomData S>); + impl sealed::Sealed for SetR {} + impl State for SetR { type G = S::G; + type A = S::A; + type R = Set; type B = S::B; - type A = Set; + } + ///State transition - sets the `b` field to Set + pub struct SetB(PhantomData S>); + impl sealed::Sealed for SetB {} + impl State for SetB { + type G = S::G; + type A = S::A; + type R = S::R; + 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 `a` field pub struct a(()); + ///Marker type for the `r` field + pub struct r(()); + ///Marker type for the `b` field + pub struct b(()); } } @@ -599,10 +599,10 @@ where impl<'a, S> RgbaBuilder<'a, S> where S: rgba_state::State, - S::R: rgba_state::IsSet, S::G: rgba_state::IsSet, - S::B: rgba_state::IsSet, S::A: rgba_state::IsSet, + S::R: rgba_state::IsSet, + S::B: rgba_state::IsSet, { /// Build the final struct pub fn build(self) -> Rgba<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/feed/reaction.rs b/crates/jacquard-api/src/sh_tangled/feed/reaction.rs index b68545ab..8dcf6253 100644 --- a/crates/jacquard-api/src/sh_tangled/feed/reaction.rs +++ b/crates/jacquard-api/src/sh_tangled/feed/reaction.rs @@ -35,50 +35,50 @@ pub mod reaction_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Subject; - type Reaction; type CreatedAt; + type Reaction; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Subject = Unset; - type Reaction = Unset; type CreatedAt = Unset; + type Reaction = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type Subject = Set; - type Reaction = S::Reaction; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `reaction` field to Set - pub struct SetReaction(PhantomData S>); - impl sealed::Sealed for SetReaction {} - impl State for SetReaction { - type Subject = S::Subject; - type Reaction = Set; type CreatedAt = S::CreatedAt; + type Reaction = S::Reaction; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Subject = S::Subject; - type Reaction = S::Reaction; type CreatedAt = Set; + type Reaction = S::Reaction; + } + ///State transition - sets the `reaction` field to Set + pub struct SetReaction(PhantomData S>); + impl sealed::Sealed for SetReaction {} + impl State for SetReaction { + type Subject = S::Subject; + type CreatedAt = S::CreatedAt; + type Reaction = 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 `reaction` field - pub struct reaction(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `reaction` field + pub struct reaction(()); } } @@ -172,8 +172,8 @@ impl<'a, S> ReactionBuilder<'a, S> where S: reaction_state::State, S::Subject: reaction_state::IsSet, - S::Reaction: reaction_state::IsSet, S::CreatedAt: reaction_state::IsSet, + S::Reaction: reaction_state::IsSet, { /// Build the final struct pub fn build(self) -> Reaction<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/feed/star.rs b/crates/jacquard-api/src/sh_tangled/feed/star.rs index 2338e701..5a9d22d5 100644 --- a/crates/jacquard-api/src/sh_tangled/feed/star.rs +++ b/crates/jacquard-api/src/sh_tangled/feed/star.rs @@ -32,37 +32,37 @@ pub mod star_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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> StarBuilder<'a, S> where S: star_state::State, - S::Subject: star_state::IsSet, S::CreatedAt: star_state::IsSet, + S::Subject: star_state::IsSet, { /// Build the final struct pub fn build(self) -> Star<'a> { 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 ad9e229e..c04c7311 100644 --- a/crates/jacquard-api/src/sh_tangled/git/ref_update.rs +++ b/crates/jacquard-api/src/sh_tangled/git/ref_update.rs @@ -852,127 +852,127 @@ pub mod ref_update_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Ref; - type CommitterDid; - type RepoDid; - type RepoName; type OldSha; type NewSha; + type Ref; type Meta; + type RepoDid; + type CommitterDid; + 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 CommitterDid = Unset; - type RepoDid = Unset; - type RepoName = Unset; type OldSha = Unset; type NewSha = Unset; + type Ref = Unset; type Meta = Unset; + type RepoDid = Unset; + type CommitterDid = Unset; + type RepoName = Unset; + } + ///State transition - sets the `old_sha` field to Set + pub struct SetOldSha(PhantomData S>); + impl sealed::Sealed for SetOldSha {} + impl State for SetOldSha { + type OldSha = Set; + type NewSha = S::NewSha; + type Ref = S::Ref; + type Meta = S::Meta; + type RepoDid = S::RepoDid; + type CommitterDid = S::CommitterDid; + type RepoName = S::RepoName; + } + ///State transition - sets the `new_sha` field to Set + pub struct SetNewSha(PhantomData S>); + impl sealed::Sealed for SetNewSha {} + impl State for SetNewSha { + type OldSha = S::OldSha; + type NewSha = Set; + type Ref = S::Ref; + type Meta = S::Meta; + type RepoDid = S::RepoDid; + type CommitterDid = S::CommitterDid; + type RepoName = S::RepoName; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData S>); impl sealed::Sealed for SetRef {} impl State for SetRef { + type OldSha = S::OldSha; + type NewSha = S::NewSha; type Ref = Set; - type CommitterDid = S::CommitterDid; + type Meta = S::Meta; type RepoDid = S::RepoDid; + type CommitterDid = S::CommitterDid; type RepoName = S::RepoName; + } + ///State transition - sets the `meta` field to Set + pub struct SetMeta(PhantomData S>); + impl sealed::Sealed for SetMeta {} + impl State for SetMeta { type OldSha = S::OldSha; type NewSha = S::NewSha; - type Meta = S::Meta; - } - ///State transition - sets the `committer_did` field to Set - pub struct SetCommitterDid(PhantomData S>); - impl sealed::Sealed for SetCommitterDid {} - impl State for SetCommitterDid { type Ref = S::Ref; - type CommitterDid = Set; + type Meta = Set; type RepoDid = S::RepoDid; + type CommitterDid = S::CommitterDid; type RepoName = S::RepoName; - type OldSha = S::OldSha; - type NewSha = S::NewSha; - type Meta = S::Meta; } ///State transition - sets the `repo_did` field to Set pub struct SetRepoDid(PhantomData S>); impl sealed::Sealed for SetRepoDid {} impl State for SetRepoDid { + type OldSha = S::OldSha; + type NewSha = S::NewSha; type Ref = S::Ref; - type CommitterDid = S::CommitterDid; + type Meta = S::Meta; type RepoDid = Set; + type CommitterDid = S::CommitterDid; type RepoName = S::RepoName; + } + ///State transition - sets the `committer_did` field to Set + pub struct SetCommitterDid(PhantomData S>); + impl sealed::Sealed for SetCommitterDid {} + impl State for SetCommitterDid { type OldSha = S::OldSha; type NewSha = S::NewSha; + type Ref = S::Ref; type Meta = S::Meta; + type RepoDid = S::RepoDid; + type CommitterDid = Set; + type RepoName = S::RepoName; } ///State transition - sets the `repo_name` field to Set pub struct SetRepoName(PhantomData S>); impl sealed::Sealed for SetRepoName {} impl State for SetRepoName { - type Ref = S::Ref; - type CommitterDid = S::CommitterDid; - type RepoDid = S::RepoDid; - type RepoName = Set; type OldSha = S::OldSha; type NewSha = S::NewSha; - type Meta = S::Meta; - } - ///State transition - sets the `old_sha` field to Set - pub struct SetOldSha(PhantomData S>); - impl sealed::Sealed for SetOldSha {} - impl State for SetOldSha { type Ref = S::Ref; - type CommitterDid = S::CommitterDid; - type RepoDid = S::RepoDid; - type RepoName = S::RepoName; - type OldSha = Set; - type NewSha = S::NewSha; type Meta = S::Meta; - } - ///State transition - sets the `new_sha` field to Set - pub struct SetNewSha(PhantomData S>); - impl sealed::Sealed for SetNewSha {} - impl State for SetNewSha { - type Ref = S::Ref; - type CommitterDid = S::CommitterDid; type RepoDid = S::RepoDid; - type RepoName = S::RepoName; - type OldSha = S::OldSha; - type NewSha = Set; - type Meta = S::Meta; - } - ///State transition - sets the `meta` field to Set - pub struct SetMeta(PhantomData S>); - impl sealed::Sealed for SetMeta {} - impl State for SetMeta { - type Ref = S::Ref; type CommitterDid = S::CommitterDid; - type RepoDid = S::RepoDid; - type RepoName = S::RepoName; - type OldSha = S::OldSha; - type NewSha = S::NewSha; - type Meta = Set; + type RepoName = 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 `committer_did` field - pub struct committer_did(()); - ///Marker type for the `repo_did` field - pub struct repo_did(()); - ///Marker type for the `repo_name` field - pub struct repo_name(()); ///Marker type for the `old_sha` field pub struct old_sha(()); ///Marker type for the `new_sha` field pub struct new_sha(()); + ///Marker type for the `ref` field + pub struct r#ref(()); ///Marker type for the `meta` field pub struct meta(()); + ///Marker type for the `repo_did` field + pub struct repo_did(()); + ///Marker type for the `committer_did` field + pub struct committer_did(()); + ///Marker type for the `repo_name` field + pub struct repo_name(()); } } @@ -1145,13 +1145,13 @@ where impl<'a, S> RefUpdateBuilder<'a, S> where S: ref_update_state::State, - S::Ref: ref_update_state::IsSet, - S::CommitterDid: ref_update_state::IsSet, - S::RepoDid: ref_update_state::IsSet, - S::RepoName: ref_update_state::IsSet, S::OldSha: ref_update_state::IsSet, S::NewSha: ref_update_state::IsSet, + S::Ref: ref_update_state::IsSet, S::Meta: ref_update_state::IsSet, + S::RepoDid: ref_update_state::IsSet, + S::CommitterDid: ref_update_state::IsSet, + S::RepoName: ref_update_state::IsSet, { /// Build the final struct pub fn build(self) -> RefUpdate<'a> { @@ -1381,37 +1381,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 S>); - impl sealed::Sealed for SetIsDefaultRef {} - impl State for SetIsDefaultRef { - type IsDefaultRef = Set; - type CommitCount = S::CommitCount; + type IsDefaultRef = Unset; } ///State transition - sets the `commit_count` field to Set pub struct SetCommitCount(PhantomData S>); impl sealed::Sealed for SetCommitCount {} impl State for SetCommitCount { - type IsDefaultRef = S::IsDefaultRef; type CommitCount = Set; + type IsDefaultRef = S::IsDefaultRef; + } + ///State transition - sets the `is_default_ref` field to Set + pub struct SetIsDefaultRef(PhantomData S>); + impl sealed::Sealed for SetIsDefaultRef {} + impl State for SetIsDefaultRef { + type CommitCount = S::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(()); } } @@ -1506,8 +1506,8 @@ impl<'a, S: meta_state::State> MetaBuilder<'a, S> { impl<'a, S> MetaBuilder<'a, S> where S: meta_state::State, - S::IsDefaultRef: meta_state::IsSet, S::CommitCount: meta_state::IsSet, + S::IsDefaultRef: meta_state::IsSet, { /// Build the final struct pub fn build(self) -> Meta<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/graph/follow.rs b/crates/jacquard-api/src/sh_tangled/graph/follow.rs index a1fbc0eb..f963a133 100644 --- a/crates/jacquard-api/src/sh_tangled/graph/follow.rs +++ b/crates/jacquard-api/src/sh_tangled/graph/follow.rs @@ -32,37 +32,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 S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type CreatedAt = S::CreatedAt; + type Subject = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Subject = S::Subject; type CreatedAt = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::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(()); } } @@ -135,8 +135,8 @@ where impl<'a, S> FollowBuilder<'a, S> where S: follow_state::State, - S::Subject: follow_state::IsSet, S::CreatedAt: follow_state::IsSet, + S::Subject: follow_state::IsSet, { /// Build the final struct pub fn build(self) -> Follow<'a> { 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 c718e416..d4fb1151 100644 --- a/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs +++ b/crates/jacquard-api/src/sh_tangled/knot/list_keys.rs @@ -226,49 +226,49 @@ pub mod public_key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; type Key; + type Did; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; type Key = Unset; + type Did = Unset; type CreatedAt = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Key = S::Key; - type CreatedAt = S::CreatedAt; - } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData S>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type Did = S::Did; type Key = Set; + type Did = S::Did; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Key = S::Key; + type Did = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Did = S::Did; type Key = S::Key; + type Did = S::Did; type CreatedAt = 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 `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(()); } @@ -363,8 +363,8 @@ where impl<'a, S> PublicKeyBuilder<'a, S> where S: public_key_state::State, - S::Did: public_key_state::IsSet, S::Key: public_key_state::IsSet, + S::Did: public_key_state::IsSet, S::CreatedAt: public_key_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/sh_tangled/knot/member.rs b/crates/jacquard-api/src/sh_tangled/knot/member.rs index 561a98d5..e8715678 100644 --- a/crates/jacquard-api/src/sh_tangled/knot/member.rs +++ b/crates/jacquard-api/src/sh_tangled/knot/member.rs @@ -36,50 +36,50 @@ pub mod member_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Subject; - type Domain; type CreatedAt; + type Domain; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Subject = Unset; - type Domain = Unset; type CreatedAt = Unset; + type Domain = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type Subject = Set; - type Domain = S::Domain; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `domain` field to Set - pub struct SetDomain(PhantomData S>); - impl sealed::Sealed for SetDomain {} - impl State for SetDomain { - type Subject = S::Subject; - type Domain = Set; type CreatedAt = S::CreatedAt; + type Domain = S::Domain; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Subject = S::Subject; - type Domain = S::Domain; type CreatedAt = Set; + type Domain = S::Domain; + } + ///State transition - sets the `domain` field to Set + pub struct SetDomain(PhantomData S>); + impl sealed::Sealed for SetDomain {} + impl State for SetDomain { + type Subject = S::Subject; + type CreatedAt = S::CreatedAt; + type Domain = 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 `domain` field - pub struct domain(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `domain` field + pub struct domain(()); } } @@ -173,8 +173,8 @@ impl<'a, S> MemberBuilder<'a, S> where S: member_state::State, S::Subject: member_state::IsSet, - S::Domain: member_state::IsSet, S::CreatedAt: member_state::IsSet, + S::Domain: member_state::IsSet, { /// Build the final struct pub fn build(self) -> Member<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/label/op.rs b/crates/jacquard-api/src/sh_tangled/label/op.rs index b7ca91d8..bf4b5afb 100644 --- a/crates/jacquard-api/src/sh_tangled/label/op.rs +++ b/crates/jacquard-api/src/sh_tangled/label/op.rs @@ -37,67 +37,67 @@ pub mod op_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; + type PerformedAt; type Add; type Delete; - type PerformedAt; + 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 PerformedAt = Unset; type Add = Unset; type Delete = Unset; - type PerformedAt = Unset; + type Subject = Unset; } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; + ///State transition - sets the `performed_at` field to Set + pub struct SetPerformedAt(PhantomData S>); + impl sealed::Sealed for SetPerformedAt {} + impl State for SetPerformedAt { + type PerformedAt = Set; type Add = S::Add; type Delete = S::Delete; - type PerformedAt = S::PerformedAt; + type Subject = S::Subject; } ///State transition - sets the `add` field to Set pub struct SetAdd(PhantomData S>); impl sealed::Sealed for SetAdd {} impl State for SetAdd { - type Subject = S::Subject; + type PerformedAt = S::PerformedAt; type Add = Set; type Delete = S::Delete; - type PerformedAt = S::PerformedAt; + type Subject = S::Subject; } ///State transition - sets the `delete` field to Set pub struct SetDelete(PhantomData S>); impl sealed::Sealed for SetDelete {} impl State for SetDelete { - type Subject = S::Subject; + type PerformedAt = S::PerformedAt; type Add = S::Add; type Delete = Set; - type PerformedAt = S::PerformedAt; - } - ///State transition - sets the `performed_at` field to Set - pub struct SetPerformedAt(PhantomData S>); - impl sealed::Sealed for SetPerformedAt {} - impl State for SetPerformedAt { type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type PerformedAt = S::PerformedAt; type Add = S::Add; type Delete = S::Delete; - type PerformedAt = 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 `performed_at` field + pub struct performed_at(()); ///Marker type for the `add` field pub struct add(()); ///Marker type for the `delete` field pub struct delete(()); - ///Marker type for the `performed_at` field - pub struct performed_at(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -210,10 +210,10 @@ where impl<'a, S> OpBuilder<'a, S> where S: op_state::State, - S::Subject: op_state::IsSet, + S::PerformedAt: op_state::IsSet, S::Add: op_state::IsSet, S::Delete: op_state::IsSet, - S::PerformedAt: op_state::IsSet, + S::Subject: op_state::IsSet, { /// Build the final struct pub fn build(self) -> Op<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/pipeline.rs b/crates/jacquard-api/src/sh_tangled/pipeline.rs index ed6194ec..403d3f02 100644 --- a/crates/jacquard-api/src/sh_tangled/pipeline.rs +++ b/crates/jacquard-api/src/sh_tangled/pipeline.rs @@ -35,50 +35,50 @@ pub mod clone_opts_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Skip; - type Depth; type Submodules; + type Depth; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Skip = Unset; - type Depth = Unset; type Submodules = Unset; + type Depth = Unset; } ///State transition - sets the `skip` field to Set pub struct SetSkip(PhantomData S>); impl sealed::Sealed for SetSkip {} impl State for SetSkip { type Skip = Set; - type Depth = S::Depth; - type Submodules = S::Submodules; - } - ///State transition - sets the `depth` field to Set - pub struct SetDepth(PhantomData S>); - impl sealed::Sealed for SetDepth {} - impl State for SetDepth { - type Skip = S::Skip; - type Depth = Set; type Submodules = S::Submodules; + type Depth = S::Depth; } ///State transition - sets the `submodules` field to Set pub struct SetSubmodules(PhantomData S>); impl sealed::Sealed for SetSubmodules {} impl State for SetSubmodules { type Skip = S::Skip; - type Depth = S::Depth; type Submodules = Set; + type Depth = S::Depth; + } + ///State transition - sets the `depth` field to Set + pub struct SetDepth(PhantomData S>); + impl sealed::Sealed for SetDepth {} + impl State for SetDepth { + type Skip = S::Skip; + type Submodules = S::Submodules; + type Depth = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `skip` field pub struct skip(()); - ///Marker type for the `depth` field - pub struct depth(()); ///Marker type for the `submodules` field pub struct submodules(()); + ///Marker type for the `depth` field + pub struct depth(()); } } @@ -172,8 +172,8 @@ impl<'a, S> CloneOptsBuilder<'a, S> where S: clone_opts_state::State, S::Skip: clone_opts_state::IsSet, - S::Depth: clone_opts_state::IsSet, S::Submodules: clone_opts_state::IsSet, + S::Depth: clone_opts_state::IsSet, { /// Build the final struct pub fn build(self) -> CloneOpts<'a> { @@ -1525,8 +1525,8 @@ pub mod trigger_repo_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Knot; type Did; + type Knot; type Repo; type DefaultBranch; } @@ -1534,26 +1534,26 @@ pub mod trigger_repo_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Knot = Unset; type Did = Unset; + type Knot = Unset; type Repo = Unset; type DefaultBranch = Unset; } - ///State transition - sets the `knot` field to Set - pub struct SetKnot(PhantomData S>); - impl sealed::Sealed for SetKnot {} - impl State for SetKnot { - type Knot = Set; - type Did = S::Did; - type Repo = S::Repo; - type DefaultBranch = S::DefaultBranch; - } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Knot = S::Knot; type Did = Set; + type Knot = S::Knot; + type Repo = S::Repo; + type DefaultBranch = S::DefaultBranch; + } + ///State transition - sets the `knot` field to Set + pub struct SetKnot(PhantomData S>); + impl sealed::Sealed for SetKnot {} + impl State for SetKnot { + type Did = S::Did; + type Knot = Set; type Repo = S::Repo; type DefaultBranch = S::DefaultBranch; } @@ -1561,8 +1561,8 @@ pub mod trigger_repo_state { pub struct SetRepo(PhantomData S>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Knot = S::Knot; type Did = S::Did; + type Knot = S::Knot; type Repo = Set; type DefaultBranch = S::DefaultBranch; } @@ -1570,18 +1570,18 @@ pub mod trigger_repo_state { pub struct SetDefaultBranch(PhantomData S>); impl sealed::Sealed for SetDefaultBranch {} impl State for SetDefaultBranch { - type Knot = S::Knot; type Did = S::Did; + type Knot = S::Knot; type Repo = S::Repo; type DefaultBranch = 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 `did` field pub struct did(()); + ///Marker type for the `knot` field + pub struct knot(()); ///Marker type for the `repo` field pub struct repo(()); ///Marker type for the `default_branch` field @@ -1698,8 +1698,8 @@ where impl<'a, S> TriggerRepoBuilder<'a, S> where S: trigger_repo_state::State, - S::Knot: trigger_repo_state::IsSet, S::Did: trigger_repo_state::IsSet, + S::Knot: trigger_repo_state::IsSet, S::Repo: trigger_repo_state::IsSet, S::DefaultBranch: trigger_repo_state::IsSet, { @@ -1780,67 +1780,67 @@ pub mod workflow_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Raw; type Name; - type Engine; type Clone; - type Raw; + type Engine; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Raw = Unset; type Name = Unset; - type Engine = Unset; type Clone = Unset; - type Raw = Unset; + type Engine = Unset; + } + ///State transition - sets the `raw` field to Set + pub struct SetRaw(PhantomData S>); + impl sealed::Sealed for SetRaw {} + impl State for SetRaw { + type Raw = Set; + type Name = S::Name; + type Clone = S::Clone; + type Engine = S::Engine; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { - type Name = Set; - type Engine = S::Engine; - type Clone = S::Clone; type Raw = S::Raw; - } - ///State transition - sets the `engine` field to Set - pub struct SetEngine(PhantomData S>); - impl sealed::Sealed for SetEngine {} - impl State for SetEngine { - type Name = S::Name; - type Engine = Set; + type Name = Set; type Clone = S::Clone; - type Raw = S::Raw; + type Engine = S::Engine; } ///State transition - sets the `clone` field to Set pub struct SetClone(PhantomData S>); impl sealed::Sealed for SetClone {} impl State for SetClone { + type Raw = S::Raw; type Name = S::Name; - type Engine = S::Engine; type Clone = Set; - type Raw = S::Raw; + type Engine = S::Engine; } - ///State transition - sets the `raw` field to Set - pub struct SetRaw(PhantomData S>); - impl sealed::Sealed for SetRaw {} - impl State for SetRaw { + ///State transition - sets the `engine` field to Set + pub struct SetEngine(PhantomData S>); + impl sealed::Sealed for SetEngine {} + impl State for SetEngine { + type Raw = S::Raw; type Name = S::Name; - type Engine = S::Engine; type Clone = S::Clone; - type Raw = Set; + type Engine = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { + ///Marker type for the `raw` field + pub struct raw(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `engine` field - pub struct engine(()); ///Marker type for the `clone` field pub struct clone(()); - ///Marker type for the `raw` field - pub struct raw(()); + ///Marker type for the `engine` field + pub struct engine(()); } } @@ -1953,10 +1953,10 @@ where impl<'a, S> WorkflowBuilder<'a, S> where S: workflow_state::State, + S::Raw: workflow_state::IsSet, S::Name: workflow_state::IsSet, - S::Engine: workflow_state::IsSet, S::Clone: workflow_state::IsSet, - S::Raw: workflow_state::IsSet, + S::Engine: workflow_state::IsSet, { /// Build the final struct pub fn build(self) -> Workflow<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/pipeline/status.rs b/crates/jacquard-api/src/sh_tangled/pipeline/status.rs index c1efc678..f74dd780 100644 --- a/crates/jacquard-api/src/sh_tangled/pipeline/status.rs +++ b/crates/jacquard-api/src/sh_tangled/pipeline/status.rs @@ -48,66 +48,66 @@ pub mod status_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Pipeline; - type Workflow; type Status; type CreatedAt; + type Workflow; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Pipeline = Unset; - type Workflow = Unset; type Status = Unset; type CreatedAt = Unset; + type Workflow = Unset; } ///State transition - sets the `pipeline` field to Set pub struct SetPipeline(PhantomData S>); impl sealed::Sealed for SetPipeline {} impl State for SetPipeline { type Pipeline = Set; - type Workflow = S::Workflow; - type Status = S::Status; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `workflow` field to Set - pub struct SetWorkflow(PhantomData S>); - impl sealed::Sealed for SetWorkflow {} - impl State for SetWorkflow { - type Pipeline = S::Pipeline; - type Workflow = Set; type Status = S::Status; type CreatedAt = S::CreatedAt; + type Workflow = S::Workflow; } ///State transition - sets the `status` field to Set pub struct SetStatus(PhantomData S>); impl sealed::Sealed for SetStatus {} impl State for SetStatus { type Pipeline = S::Pipeline; - type Workflow = S::Workflow; type Status = Set; type CreatedAt = S::CreatedAt; + type Workflow = S::Workflow; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Pipeline = S::Pipeline; - type Workflow = S::Workflow; type Status = S::Status; type CreatedAt = Set; + type Workflow = S::Workflow; + } + ///State transition - sets the `workflow` field to Set + pub struct SetWorkflow(PhantomData S>); + impl sealed::Sealed for SetWorkflow {} + impl State for SetWorkflow { + type Pipeline = S::Pipeline; + type Status = S::Status; + type CreatedAt = S::CreatedAt; + type Workflow = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `pipeline` field pub struct pipeline(()); - ///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 `workflow` field + pub struct workflow(()); } } @@ -252,9 +252,9 @@ impl<'a, S> StatusBuilder<'a, S> where S: status_state::State, S::Pipeline: status_state::IsSet, - S::Workflow: status_state::IsSet, S::Status: status_state::IsSet, S::CreatedAt: status_state::IsSet, + S::Workflow: status_state::IsSet, { /// Build the final struct pub fn build(self) -> Status<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/public_key.rs b/crates/jacquard-api/src/sh_tangled/public_key.rs index 78dc3fb3..de5df475 100644 --- a/crates/jacquard-api/src/sh_tangled/public_key.rs +++ b/crates/jacquard-api/src/sh_tangled/public_key.rs @@ -37,51 +37,51 @@ pub mod public_key_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Key; - type Name; type CreatedAt; + type Name; + 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 Name = Unset; type CreatedAt = Unset; + type Name = Unset; + type Key = Unset; } - ///State transition - sets the `key` field to Set - pub struct SetKey(PhantomData S>); - impl sealed::Sealed for SetKey {} - impl State for SetKey { - type Key = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Name = S::Name; - type CreatedAt = S::CreatedAt; + type Key = S::Key; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { - type Key = S::Key; - type Name = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + type Name = Set; type Key = S::Key; + } + ///State transition - sets the `key` field to Set + pub struct SetKey(PhantomData S>); + impl sealed::Sealed for SetKey {} + impl State for SetKey { + type CreatedAt = S::CreatedAt; type Name = S::Name; - type CreatedAt = Set; + 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 `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 `key` field + pub struct key(()); } } @@ -174,9 +174,9 @@ where impl<'a, S> PublicKeyBuilder<'a, S> where S: public_key_state::State, - S::Key: public_key_state::IsSet, - S::Name: public_key_state::IsSet, S::CreatedAt: public_key_state::IsSet, + S::Name: public_key_state::IsSet, + S::Key: public_key_state::IsSet, { /// Build the final struct pub fn build(self) -> PublicKey<'a> { 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 a290ebb5..ff27c9c3 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/add_secret.rs @@ -35,49 +35,49 @@ pub mod add_secret_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; 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 Repo = Unset; type Key = Unset; + type Repo = Unset; type Value = Unset; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Key = S::Key; - type Value = S::Value; - } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData S>); impl sealed::Sealed for SetKey {} impl State for SetKey { - type Repo = S::Repo; type Key = Set; + type Repo = S::Repo; + type Value = S::Value; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Key = S::Key; + type Repo = Set; type Value = S::Value; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Repo = S::Repo; type Key = S::Key; + type Repo = S::Repo; type Value = 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(()); ///Marker type for the `value` field pub struct value(()); } @@ -172,8 +172,8 @@ where impl<'a, S> AddSecretBuilder<'a, S> where S: add_secret_state::State, - S::Repo: add_secret_state::IsSet, S::Key: add_secret_state::IsSet, + S::Repo: add_secret_state::IsSet, S::Value: add_secret_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/sh_tangled/repo/artifact.rs b/crates/jacquard-api/src/sh_tangled/repo/artifact.rs index a04df42b..83722c39 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/artifact.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/artifact.rs @@ -43,85 +43,85 @@ pub mod artifact_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Repo; + type Artifact; + type Name; type Tag; type CreatedAt; - type Artifact; } /// 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; + type Artifact = Unset; + type Name = Unset; type Tag = Unset; type CreatedAt = Unset; - type Artifact = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Repo = S::Repo; - type Tag = S::Tag; - type CreatedAt = S::CreatedAt; - type Artifact = S::Artifact; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData S>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Name = S::Name; type Repo = Set; + type Artifact = S::Artifact; + type Name = S::Name; type Tag = S::Tag; type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `artifact` field to Set + pub struct SetArtifact(PhantomData S>); + impl sealed::Sealed for SetArtifact {} + impl State for SetArtifact { + type Repo = S::Repo; + type Artifact = Set; + type Name = S::Name; + type Tag = S::Tag; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Repo = S::Repo; type Artifact = S::Artifact; + type Name = Set; + type Tag = S::Tag; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `tag` field to Set pub struct SetTag(PhantomData S>); impl sealed::Sealed for SetTag {} impl State for SetTag { - type Name = S::Name; type Repo = S::Repo; + type Artifact = S::Artifact; + type Name = S::Name; type Tag = Set; type CreatedAt = S::CreatedAt; - type Artifact = S::Artifact; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Name = S::Name; type Repo = S::Repo; - type Tag = S::Tag; - type CreatedAt = Set; type Artifact = S::Artifact; - } - ///State transition - sets the `artifact` field to Set - pub struct SetArtifact(PhantomData S>); - impl sealed::Sealed for SetArtifact {} - impl State for SetArtifact { type Name = S::Name; - type Repo = S::Repo; type Tag = S::Tag; - type CreatedAt = S::CreatedAt; - type Artifact = Set; + 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 `repo` field pub struct repo(()); + ///Marker type for the `artifact` field + pub struct artifact(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `tag` field pub struct tag(()); ///Marker type for the `created_at` field pub struct created_at(()); - ///Marker type for the `artifact` field - pub struct artifact(()); } } @@ -254,11 +254,11 @@ where impl<'a, S> ArtifactBuilder<'a, S> where S: artifact_state::State, - S::Name: artifact_state::IsSet, S::Repo: artifact_state::IsSet, + S::Artifact: artifact_state::IsSet, + S::Name: artifact_state::IsSet, S::Tag: artifact_state::IsSet, S::CreatedAt: artifact_state::IsSet, - S::Artifact: artifact_state::IsSet, { /// Build the final struct pub fn build(self) -> Artifact<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/repo/blob.rs b/crates/jacquard-api/src/sh_tangled/repo/blob.rs index 538046bc..f6de7cbd 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/blob.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/blob.rs @@ -44,51 +44,51 @@ pub mod last_commit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Hash; type Message; type When; + type Hash; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Hash = Unset; type Message = Unset; type When = Unset; - } - ///State transition - sets the `hash` field to Set - pub struct SetHash(PhantomData S>); - impl sealed::Sealed for SetHash {} - impl State for SetHash { - type Hash = Set; - type Message = S::Message; - type When = S::When; + type Hash = Unset; } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData S>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type Hash = S::Hash; type Message = Set; type When = S::When; + type Hash = S::Hash; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData S>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Hash = S::Hash; type Message = S::Message; type When = Set; + type Hash = S::Hash; + } + ///State transition - sets the `hash` field to Set + pub struct SetHash(PhantomData S>); + impl sealed::Sealed for SetHash {} + impl State for SetHash { + type Message = S::Message; + type When = S::When; + type Hash = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///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(()); + ///Marker type for the `hash` field + pub struct hash(()); } } @@ -221,9 +221,9 @@ where impl<'a, S> LastCommitBuilder<'a, S> where S: last_commit_state::State, - S::Hash: last_commit_state::IsSet, S::Message: last_commit_state::IsSet, S::When: last_commit_state::IsSet, + S::Hash: last_commit_state::IsSet, { /// Build the final struct pub fn build(self) -> LastCommit<'a> { @@ -580,50 +580,50 @@ pub mod blob_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Repo; - type Ref; type Path; + type Ref; } /// 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; type Path = Unset; + type Ref = Unset; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData S>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { type Repo = Set; - type Ref = S::Ref; - type Path = S::Path; - } - ///State transition - sets the `ref` field to Set - pub struct SetRef(PhantomData S>); - impl sealed::Sealed for SetRef {} - impl State for SetRef { - type Repo = S::Repo; - type Ref = Set; type Path = S::Path; + type Ref = S::Ref; } ///State transition - sets the `path` field to Set pub struct SetPath(PhantomData S>); impl sealed::Sealed for SetPath {} impl State for SetPath { type Repo = S::Repo; - type Ref = S::Ref; type Path = Set; + type Ref = S::Ref; + } + ///State transition - sets the `ref` field to Set + pub struct SetRef(PhantomData S>); + impl sealed::Sealed for SetRef {} + impl State for SetRef { + type Repo = S::Repo; + type Path = S::Path; + type Ref = 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 `path` field pub struct path(()); + ///Marker type for the `ref` field + pub struct r#ref(()); } } @@ -731,8 +731,8 @@ impl<'a, S> BlobBuilder<'a, S> where S: blob_state::State, S::Repo: blob_state::IsSet, - S::Ref: blob_state::IsSet, S::Path: blob_state::IsSet, + S::Ref: blob_state::IsSet, { /// Build the final struct pub fn build(self) -> Blob<'a> { @@ -909,51 +909,51 @@ pub mod signature_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Email; type When; + 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 Email = Unset; type When = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Email = S::Email; - type When = S::When; + type Name = Unset; } ///State transition - sets the `email` field to Set pub struct SetEmail(PhantomData S>); impl sealed::Sealed for SetEmail {} impl State for SetEmail { - type Name = S::Name; type Email = Set; type When = S::When; + type Name = S::Name; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData S>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Name = S::Name; type Email = S::Email; type When = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Email = S::Email; + type When = S::When; + 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 `email` field pub struct email(()); ///Marker type for the `when` field pub struct when(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -1046,9 +1046,9 @@ where impl<'a, S> SignatureBuilder<'a, S> where S: signature_state::State, - S::Name: signature_state::IsSet, S::Email: signature_state::IsSet, S::When: signature_state::IsSet, + S::Name: signature_state::IsSet, { /// Build the final struct pub fn build(self) -> Signature<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/repo/branch.rs b/crates/jacquard-api/src/sh_tangled/repo/branch.rs index b11d2a21..324cdc50 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/branch.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/branch.rs @@ -296,51 +296,51 @@ pub mod signature_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; - 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 Name = Unset; - type Email = Unset; type When = Unset; + type Email = Unset; + type Name = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; + ///State transition - sets the `when` field to Set + pub struct SetWhen(PhantomData S>); + impl sealed::Sealed for SetWhen {} + impl State for SetWhen { + type When = Set; type Email = S::Email; - type When = S::When; + type Name = S::Name; } ///State transition - sets the `email` field to Set pub struct SetEmail(PhantomData S>); impl sealed::Sealed for SetEmail {} impl State for SetEmail { - type Name = S::Name; - type Email = Set; type When = S::When; - } - ///State transition - sets the `when` field to Set - pub struct SetWhen(PhantomData S>); - impl sealed::Sealed for SetWhen {} - impl State for SetWhen { + type Email = Set; type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type When = S::When; type Email = S::Email; - type When = 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 `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(()); } } @@ -433,9 +433,9 @@ where impl<'a, S> SignatureBuilder<'a, S> where S: signature_state::State, - S::Name: signature_state::IsSet, - S::Email: signature_state::IsSet, S::When: signature_state::IsSet, + S::Email: signature_state::IsSet, + S::Name: signature_state::IsSet, { /// Build the final struct pub fn build(self) -> Signature<'a> { 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 76c8687f..1d04881d 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/fork_status.rs @@ -44,85 +44,85 @@ pub mod fork_status_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; + type HiddenRef; type Name; - type Source; + type Did; type Branch; - type HiddenRef; + type Source; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; + type HiddenRef = Unset; type Name = Unset; - type Source = Unset; + type Did = Unset; type Branch = Unset; - type HiddenRef = Unset; + type Source = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; + ///State transition - sets the `hidden_ref` field to Set + pub struct SetHiddenRef(PhantomData S>); + impl sealed::Sealed for SetHiddenRef {} + impl State for SetHiddenRef { + type HiddenRef = Set; type Name = S::Name; - type Source = S::Source; + type Did = S::Did; type Branch = S::Branch; - type HiddenRef = S::HiddenRef; + type Source = S::Source; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { - type Did = S::Did; + type HiddenRef = S::HiddenRef; type Name = Set; - type Source = S::Source; + type Did = S::Did; type Branch = S::Branch; - type HiddenRef = S::HiddenRef; + type Source = S::Source; } - ///State transition - sets the `source` field to Set - pub struct SetSource(PhantomData S>); - impl sealed::Sealed for SetSource {} - impl State for SetSource { - type Did = S::Did; + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type HiddenRef = S::HiddenRef; type Name = S::Name; - type Source = Set; + type Did = Set; type Branch = S::Branch; - type HiddenRef = S::HiddenRef; + type Source = S::Source; } ///State transition - sets the `branch` field to Set pub struct SetBranch(PhantomData S>); impl sealed::Sealed for SetBranch {} impl State for SetBranch { - type Did = S::Did; + type HiddenRef = S::HiddenRef; type Name = S::Name; - type Source = S::Source; + type Did = S::Did; type Branch = Set; - type HiddenRef = S::HiddenRef; + type Source = S::Source; } - ///State transition - sets the `hidden_ref` field to Set - pub struct SetHiddenRef(PhantomData S>); - impl sealed::Sealed for SetHiddenRef {} - impl State for SetHiddenRef { - type Did = S::Did; + ///State transition - sets the `source` field to Set + pub struct SetSource(PhantomData S>); + impl sealed::Sealed for SetSource {} + impl State for SetSource { + type HiddenRef = S::HiddenRef; type Name = S::Name; - type Source = S::Source; + type Did = S::Did; type Branch = S::Branch; - type HiddenRef = Set; + type Source = 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 `hidden_ref` field + pub struct hidden_ref(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `source` field - pub struct source(()); + ///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(()); } } @@ -255,11 +255,11 @@ where impl<'a, S> ForkStatusBuilder<'a, S> where S: fork_status_state::State, - S::Did: fork_status_state::IsSet, + S::HiddenRef: fork_status_state::IsSet, S::Name: fork_status_state::IsSet, - S::Source: fork_status_state::IsSet, + S::Did: fork_status_state::IsSet, S::Branch: fork_status_state::IsSet, - S::HiddenRef: fork_status_state::IsSet, + S::Source: fork_status_state::IsSet, { /// Build the final struct pub fn build(self) -> ForkStatus<'a> { 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 d0444c55..e216f38b 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/fork_sync.rs @@ -41,67 +41,67 @@ pub mod fork_sync_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; - type Source; type Name; + type Did; type Branch; + type Source; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Did = Unset; - type Source = Unset; type Name = Unset; + type Did = Unset; type Branch = Unset; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Source = S::Source; - type Name = S::Name; - type Branch = S::Branch; - } - ///State transition - sets the `source` field to Set - pub struct SetSource(PhantomData S>); - impl sealed::Sealed for SetSource {} - impl State for SetSource { - type Did = S::Did; - type Source = Set; - type Name = S::Name; - type Branch = S::Branch; + type Source = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { + type Name = Set; type Did = S::Did; + type Branch = S::Branch; type Source = S::Source; - type Name = Set; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Name = S::Name; + type Did = Set; type Branch = S::Branch; + type Source = S::Source; } ///State transition - sets the `branch` field to Set pub struct SetBranch(PhantomData S>); impl sealed::Sealed for SetBranch {} impl State for SetBranch { + type Name = S::Name; type Did = S::Did; + type Branch = Set; type Source = S::Source; + } + ///State transition - sets the `source` field to Set + pub struct SetSource(PhantomData S>); + impl sealed::Sealed for SetSource {} + impl State for SetSource { type Name = S::Name; - type Branch = Set; + type Did = S::Did; + type Branch = S::Branch; + type Source = 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 `source` field - pub struct source(()); ///Marker type for the `name` field pub struct name(()); + ///Marker type for the `did` field + pub struct did(()); ///Marker type for the `branch` field pub struct branch(()); + ///Marker type for the `source` field + pub struct source(()); } } @@ -214,10 +214,10 @@ where impl<'a, S> ForkSyncBuilder<'a, S> where S: fork_sync_state::State, - S::Did: fork_sync_state::IsSet, - S::Source: fork_sync_state::IsSet, S::Name: fork_sync_state::IsSet, + S::Did: fork_sync_state::IsSet, S::Branch: fork_sync_state::IsSet, + S::Source: fork_sync_state::IsSet, { /// Build the final struct pub fn build(self) -> ForkSync<'a> { 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 47035d9f..a27ff3cf 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 @@ -247,51 +247,51 @@ pub mod signature_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Email; type When; + 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 Email = Unset; type When = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Email = S::Email; - type When = S::When; + type Name = Unset; } ///State transition - sets the `email` field to Set pub struct SetEmail(PhantomData S>); impl sealed::Sealed for SetEmail {} impl State for SetEmail { - type Name = S::Name; type Email = Set; type When = S::When; + type Name = S::Name; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData S>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Name = S::Name; type Email = S::Email; type When = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Email = S::Email; + type When = S::When; + 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 `email` field pub struct email(()); ///Marker type for the `when` field pub struct when(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -384,9 +384,9 @@ where impl<'a, S> SignatureBuilder<'a, S> where S: signature_state::State, - S::Name: signature_state::IsSet, S::Email: signature_state::IsSet, S::When: signature_state::IsSet, + S::Name: signature_state::IsSet, { /// Build the final struct pub fn build(self) -> Signature<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/repo/issue.rs b/crates/jacquard-api/src/sh_tangled/repo/issue.rs index 47e27766..b781517e 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/issue.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/issue.rs @@ -40,49 +40,49 @@ pub mod issue_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Title; + type Repo; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Repo = Unset; type Title = Unset; + type Repo = Unset; type CreatedAt = Unset; } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Title = S::Title; - type CreatedAt = S::CreatedAt; - } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Repo = S::Repo; type Title = Set; + type Repo = S::Repo; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Title = S::Title; + type Repo = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Repo = S::Repo; type Title = S::Title; + type Repo = S::Repo; type CreatedAt = 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 `title` field pub struct title(()); + ///Marker type for the `repo` field + pub struct repo(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -194,8 +194,8 @@ where impl<'a, S> IssueBuilder<'a, S> where S: issue_state::State, - S::Repo: issue_state::IsSet, S::Title: issue_state::IsSet, + S::Repo: issue_state::IsSet, S::CreatedAt: issue_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/sh_tangled/repo/languages.rs b/crates/jacquard-api/src/sh_tangled/repo/languages.rs index 38a24b40..7ee5437f 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/languages.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/languages.rs @@ -47,51 +47,51 @@ pub mod language_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Size; type Percentage; + 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; type Percentage = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Size = S::Size; - type Percentage = S::Percentage; + type Name = Unset; } ///State transition - sets the `size` field to Set pub struct SetSize(PhantomData S>); impl sealed::Sealed for SetSize {} impl State for SetSize { - type Name = S::Name; type Size = Set; type Percentage = S::Percentage; + type Name = S::Name; } ///State transition - sets the `percentage` field to Set pub struct SetPercentage(PhantomData S>); impl sealed::Sealed for SetPercentage {} impl State for SetPercentage { - type Name = S::Name; type Size = S::Size; type Percentage = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Size = S::Size; + type Percentage = S::Percentage; + 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 `percentage` field pub struct percentage(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -235,9 +235,9 @@ where impl<'a, S> LanguageBuilder<'a, S> where S: language_state::State, - S::Name: language_state::IsSet, S::Size: language_state::IsSet, S::Percentage: language_state::IsSet, + S::Name: language_state::IsSet, { /// Build the final struct pub fn build(self) -> Language<'a> { 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 df73cc3f..5d225e22 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/list_secrets.rs @@ -184,67 +184,67 @@ pub mod secret_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedBy; type Repo; type Key; type CreatedAt; - 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 Repo = Unset; type Key = Unset; type CreatedAt = Unset; - type CreatedBy = Unset; + } + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData S>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { + type CreatedBy = Set; + type Repo = S::Repo; + type Key = S::Key; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData S>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { + type CreatedBy = S::CreatedBy; type Repo = Set; type Key = S::Key; type CreatedAt = S::CreatedAt; - type CreatedBy = S::CreatedBy; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData S>); impl sealed::Sealed for SetKey {} impl State for SetKey { + type CreatedBy = S::CreatedBy; type Repo = S::Repo; type Key = Set; type CreatedAt = S::CreatedAt; - type CreatedBy = S::CreatedBy; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Repo = S::Repo; - type Key = S::Key; - type CreatedAt = Set; type CreatedBy = S::CreatedBy; - } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData S>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { type Repo = S::Repo; type Key = S::Key; - type CreatedAt = S::CreatedAt; - type CreatedBy = Set; + type CreatedAt = 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 `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 `created_by` field - pub struct created_by(()); } } @@ -357,10 +357,10 @@ where impl<'a, S> SecretBuilder<'a, S> where S: secret_state::State, + S::CreatedBy: secret_state::IsSet, S::Repo: secret_state::IsSet, S::Key: secret_state::IsSet, S::CreatedAt: secret_state::IsSet, - S::CreatedBy: secret_state::IsSet, { /// Build the final struct pub fn build(self) -> Secret<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/repo/merge.rs b/crates/jacquard-api/src/sh_tangled/repo/merge.rs index 1d62d1dc..f4693fa4 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/merge.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/merge.rs @@ -58,66 +58,66 @@ pub mod merge_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Did; + type Branch; type Name; type Patch; - type Branch; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Did = Unset; + type Branch = Unset; type Name = Unset; type Patch = Unset; - type Branch = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { type Did = Set; + type Branch = S::Branch; + type Name = S::Name; + type Patch = S::Patch; + } + ///State transition - sets the `branch` field to Set + pub struct SetBranch(PhantomData S>); + impl sealed::Sealed for SetBranch {} + impl State for SetBranch { + type Did = S::Did; + type Branch = Set; type Name = S::Name; type Patch = S::Patch; - type Branch = S::Branch; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { type Did = S::Did; + type Branch = S::Branch; type Name = Set; type Patch = S::Patch; - type Branch = S::Branch; } ///State transition - sets the `patch` field to Set pub struct SetPatch(PhantomData S>); impl sealed::Sealed for SetPatch {} impl State for SetPatch { type Did = S::Did; - type Name = S::Name; - type Patch = Set; type Branch = S::Branch; - } - ///State transition - sets the `branch` field to Set - pub struct SetBranch(PhantomData S>); - impl sealed::Sealed for SetBranch {} - impl State for SetBranch { - type Did = S::Did; type Name = S::Name; - type Patch = S::Patch; - type Branch = Set; + type Patch = 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 `branch` field + pub struct branch(()); ///Marker type for the `name` field pub struct name(()); ///Marker type for the `patch` field pub struct patch(()); - ///Marker type for the `branch` field - pub struct branch(()); } } @@ -311,9 +311,9 @@ impl<'a, S> MergeBuilder<'a, S> where S: merge_state::State, S::Did: merge_state::IsSet, + S::Branch: merge_state::IsSet, S::Name: merge_state::IsSet, S::Patch: merge_state::IsSet, - S::Branch: merge_state::IsSet, { /// Build the final struct pub fn build(self) -> Merge<'a> { 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 e7c60bc1..a74c0ab6 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/merge_check.rs @@ -264,8 +264,8 @@ pub mod merge_check_state { pub trait State: sealed::Sealed { type Did; type Name; - type Patch; type Branch; + type Patch; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -273,8 +273,8 @@ pub mod merge_check_state { impl State for Empty { type Did = Unset; type Name = Unset; - type Patch = Unset; type Branch = Unset; + type Patch = Unset; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); @@ -282,8 +282,8 @@ pub mod merge_check_state { impl State for SetDid { type Did = Set; type Name = S::Name; - type Patch = S::Patch; type Branch = S::Branch; + type Patch = S::Patch; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); @@ -291,17 +291,8 @@ pub mod merge_check_state { impl State for SetName { type Did = S::Did; type Name = Set; - type Patch = S::Patch; - type Branch = S::Branch; - } - ///State transition - sets the `patch` field to Set - pub struct SetPatch(PhantomData S>); - impl sealed::Sealed for SetPatch {} - impl State for SetPatch { - type Did = S::Did; - type Name = S::Name; - type Patch = Set; type Branch = S::Branch; + type Patch = S::Patch; } ///State transition - sets the `branch` field to Set pub struct SetBranch(PhantomData S>); @@ -309,8 +300,17 @@ pub mod merge_check_state { impl State for SetBranch { type Did = S::Did; type Name = S::Name; - type Patch = S::Patch; type Branch = Set; + type Patch = S::Patch; + } + ///State transition - sets the `patch` field to Set + pub struct SetPatch(PhantomData S>); + impl sealed::Sealed for SetPatch {} + impl State for SetPatch { + type Did = S::Did; + type Name = S::Name; + type Branch = S::Branch; + type Patch = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -319,10 +319,10 @@ pub mod merge_check_state { pub struct did(()); ///Marker type for the `name` field pub struct name(()); - ///Marker type for the `patch` field - pub struct patch(()); ///Marker type for the `branch` field pub struct branch(()); + ///Marker type for the `patch` field + pub struct patch(()); } } @@ -437,8 +437,8 @@ where S: merge_check_state::State, S::Did: merge_check_state::IsSet, S::Name: merge_check_state::IsSet, - S::Patch: merge_check_state::IsSet, S::Branch: merge_check_state::IsSet, + S::Patch: merge_check_state::IsSet, { /// Build the final struct pub fn build(self) -> MergeCheck<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/repo/pull.rs b/crates/jacquard-api/src/sh_tangled/repo/pull.rs index 425dcc88..a85edbec 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/pull.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/pull.rs @@ -45,67 +45,67 @@ pub mod pull_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Target; type Title; - type Patch; + type Target; type CreatedAt; + type Patch; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Target = Unset; type Title = Unset; - type Patch = Unset; + type Target = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `target` field to Set - pub struct SetTarget(PhantomData S>); - impl sealed::Sealed for SetTarget {} - impl State for SetTarget { - type Target = Set; - type Title = S::Title; - type Patch = S::Patch; - type CreatedAt = S::CreatedAt; + type Patch = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Target = S::Target; type Title = Set; - type Patch = S::Patch; + type Target = S::Target; type CreatedAt = S::CreatedAt; + type Patch = S::Patch; } - ///State transition - sets the `patch` field to Set - pub struct SetPatch(PhantomData S>); - impl sealed::Sealed for SetPatch {} - impl State for SetPatch { - type Target = S::Target; + ///State transition - sets the `target` field to Set + pub struct SetTarget(PhantomData S>); + impl sealed::Sealed for SetTarget {} + impl State for SetTarget { type Title = S::Title; - type Patch = Set; + type Target = Set; type CreatedAt = S::CreatedAt; + type Patch = S::Patch; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Target = S::Target; type Title = S::Title; - type Patch = S::Patch; + type Target = S::Target; type CreatedAt = Set; + type Patch = S::Patch; + } + ///State transition - sets the `patch` field to Set + pub struct SetPatch(PhantomData S>); + impl sealed::Sealed for SetPatch {} + impl State for SetPatch { + type Title = S::Title; + type Target = S::Target; + type CreatedAt = S::CreatedAt; + type Patch = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `target` field - pub struct target(()); ///Marker type for the `title` field pub struct title(()); - ///Marker type for the `patch` field - pub struct patch(()); + ///Marker type for the `target` field + pub struct target(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `patch` field + pub struct patch(()); } } @@ -255,10 +255,10 @@ where impl<'a, S> PullBuilder<'a, S> where S: pull_state::State, - S::Target: pull_state::IsSet, S::Title: pull_state::IsSet, - S::Patch: pull_state::IsSet, + S::Target: pull_state::IsSet, S::CreatedAt: pull_state::IsSet, + S::Patch: pull_state::IsSet, { /// Build the final struct pub fn build(self) -> Pull<'a> { @@ -695,37 +695,37 @@ pub mod target_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Repo; type Branch; + 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 Branch = Unset; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Branch = S::Branch; + type Repo = Unset; } ///State transition - sets the `branch` field to Set pub struct SetBranch(PhantomData S>); impl sealed::Sealed for SetBranch {} impl State for SetBranch { - type Repo = S::Repo; type Branch = Set; + type Repo = S::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Branch = S::Branch; + 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 `branch` field pub struct branch(()); + ///Marker type for the `repo` field + pub struct repo(()); } } @@ -798,8 +798,8 @@ where impl<'a, S> TargetBuilder<'a, S> where S: target_state::State, - S::Repo: target_state::IsSet, S::Branch: target_state::IsSet, + S::Repo: target_state::IsSet, { /// Build the final struct pub fn build(self) -> Target<'a> { 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 84d562ea..511d3667 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/pull/comment.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/pull/comment.rs @@ -34,49 +34,49 @@ pub mod comment_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Pull; type Body; + type Pull; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Pull = Unset; type Body = Unset; + type Pull = Unset; type CreatedAt = Unset; } - ///State transition - sets the `pull` field to Set - pub struct SetPull(PhantomData S>); - impl sealed::Sealed for SetPull {} - impl State for SetPull { - type Pull = Set; - type Body = S::Body; - type CreatedAt = S::CreatedAt; - } ///State transition - sets the `body` field to Set pub struct SetBody(PhantomData S>); impl sealed::Sealed for SetBody {} impl State for SetBody { - type Pull = S::Pull; type Body = Set; + type Pull = S::Pull; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `pull` field to Set + pub struct SetPull(PhantomData S>); + impl sealed::Sealed for SetPull {} + impl State for SetPull { + type Body = S::Body; + type Pull = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Pull = S::Pull; type Body = S::Body; + type Pull = S::Pull; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `pull` field - pub struct pull(()); ///Marker type for the `body` field pub struct body(()); + ///Marker type for the `pull` field + pub struct pull(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -171,8 +171,8 @@ where impl<'a, S> CommentBuilder<'a, S> where S: comment_state::State, - S::Pull: comment_state::IsSet, S::Body: comment_state::IsSet, + S::Pull: comment_state::IsSet, S::CreatedAt: comment_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/sh_tangled/repo/tree.rs b/crates/jacquard-api/src/sh_tangled/repo/tree.rs index 7ed47a3c..1c5dd167 100644 --- a/crates/jacquard-api/src/sh_tangled/repo/tree.rs +++ b/crates/jacquard-api/src/sh_tangled/repo/tree.rs @@ -37,49 +37,49 @@ pub mod last_commit_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Hash; type Message; + type Hash; type When; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Hash = Unset; type Message = Unset; + type Hash = Unset; type When = Unset; } - ///State transition - sets the `hash` field to Set - pub struct SetHash(PhantomData S>); - impl sealed::Sealed for SetHash {} - impl State for SetHash { - type Hash = Set; - type Message = S::Message; - type When = S::When; - } ///State transition - sets the `message` field to Set pub struct SetMessage(PhantomData S>); impl sealed::Sealed for SetMessage {} impl State for SetMessage { - type Hash = S::Hash; type Message = Set; + type Hash = S::Hash; + type When = S::When; + } + ///State transition - sets the `hash` field to Set + pub struct SetHash(PhantomData S>); + impl sealed::Sealed for SetHash {} + impl State for SetHash { + type Message = S::Message; + type Hash = Set; type When = S::When; } ///State transition - sets the `when` field to Set pub struct SetWhen(PhantomData S>); impl sealed::Sealed for SetWhen {} impl State for SetWhen { - type Hash = S::Hash; type Message = S::Message; + type Hash = S::Hash; type When = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `hash` field - pub struct hash(()); ///Marker type for the `message` field pub struct message(()); + ///Marker type for the `hash` field + pub struct hash(()); ///Marker type for the `when` field pub struct when(()); } @@ -174,8 +174,8 @@ where impl<'a, S> LastCommitBuilder<'a, S> where S: last_commit_state::State, - S::Hash: last_commit_state::IsSet, S::Message: last_commit_state::IsSet, + S::Hash: last_commit_state::IsSet, S::When: last_commit_state::IsSet, { /// Build the final struct @@ -571,37 +571,37 @@ pub mod tree_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 S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Repo = Set; - type Ref = S::Ref; + type Repo = Unset; } ///State transition - sets the `ref` field to Set pub struct SetRef(PhantomData S>); impl sealed::Sealed for SetRef {} impl State for SetRef { - type Repo = S::Repo; type Ref = Set; + type Repo = S::Repo; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { + type Ref = S::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(()); } } @@ -691,8 +691,8 @@ where impl<'a, S> TreeBuilder<'a, S> where S: tree_state::State, - S::Repo: tree_state::IsSet, S::Ref: tree_state::IsSet, + S::Repo: tree_state::IsSet, { /// Build the final struct pub fn build(self) -> Tree<'a> { @@ -903,85 +903,85 @@ 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 IsFile; type IsSubtree; + 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 IsFile = Unset; type IsSubtree = Unset; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Mode = S::Mode; - type Size = S::Size; - type IsFile = S::IsFile; - type IsSubtree = S::IsSubtree; + type Size = Unset; + type Name = Unset; } ///State transition - sets the `mode` field to Set pub struct SetMode(PhantomData S>); impl sealed::Sealed for SetMode {} impl State for SetMode { - type Name = S::Name; type Mode = Set; - type Size = S::Size; type IsFile = S::IsFile; type IsSubtree = S::IsSubtree; - } - ///State transition - sets the `size` field to Set - pub struct SetSize(PhantomData S>); - impl sealed::Sealed for SetSize {} - impl State for SetSize { + type Size = S::Size; type Name = S::Name; - type Mode = S::Mode; - type Size = Set; - type IsFile = S::IsFile; - type IsSubtree = S::IsSubtree; } ///State transition - sets the `is_file` field to Set pub struct SetIsFile(PhantomData S>); impl sealed::Sealed for SetIsFile {} impl State for SetIsFile { - type Name = S::Name; type Mode = S::Mode; - type Size = S::Size; type IsFile = Set; type IsSubtree = S::IsSubtree; + type Size = S::Size; + type Name = S::Name; } ///State transition - sets the `is_subtree` field to Set pub struct SetIsSubtree(PhantomData S>); impl sealed::Sealed for SetIsSubtree {} impl State for SetIsSubtree { - type Name = S::Name; type Mode = S::Mode; - type Size = S::Size; type IsFile = S::IsFile; type IsSubtree = Set; + type Size = S::Size; + type Name = S::Name; + } + ///State transition - sets the `size` field to Set + pub struct SetSize(PhantomData S>); + impl sealed::Sealed for SetSize {} + impl State for SetSize { + type Mode = S::Mode; + type IsFile = S::IsFile; + type IsSubtree = S::IsSubtree; + type Size = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Mode = S::Mode; + type IsFile = S::IsFile; + type IsSubtree = S::IsSubtree; + type Size = S::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 `mode` field pub struct mode(()); - ///Marker type for the `size` field - pub struct size(()); ///Marker type for the `is_file` field pub struct is_file(()); ///Marker type for the `is_subtree` field pub struct is_subtree(()); + ///Marker type for the `size` field + pub struct size(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -1134,11 +1134,11 @@ where impl<'a, S> TreeEntryBuilder<'a, S> where S: tree_entry_state::State, - S::Name: tree_entry_state::IsSet, S::Mode: tree_entry_state::IsSet, - S::Size: tree_entry_state::IsSet, S::IsFile: tree_entry_state::IsSet, S::IsSubtree: tree_entry_state::IsSet, + S::Size: tree_entry_state::IsSet, + S::Name: tree_entry_state::IsSet, { /// Build the final struct pub fn build(self) -> TreeEntry<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/spindle/member.rs b/crates/jacquard-api/src/sh_tangled/spindle/member.rs index b4f03999..b52c1840 100644 --- a/crates/jacquard-api/src/sh_tangled/spindle/member.rs +++ b/crates/jacquard-api/src/sh_tangled/spindle/member.rs @@ -35,51 +35,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 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 CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Subject = S::Subject; + type Instance = S::Instance; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { + type CreatedAt = S::CreatedAt; type Subject = Set; type Instance = S::Instance; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `instance` field to Set pub struct SetInstance(PhantomData S>); impl sealed::Sealed for SetInstance {} impl State for SetInstance { - type Subject = S::Subject; - type Instance = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Subject = S::Subject; - type Instance = S::Instance; - type CreatedAt = Set; + type Instance = 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 `created_at` field - pub struct created_at(()); } } @@ -172,9 +172,9 @@ where impl<'a, S> MemberBuilder<'a, S> where S: member_state::State, + S::CreatedAt: member_state::IsSet, S::Subject: member_state::IsSet, S::Instance: member_state::IsSet, - S::CreatedAt: member_state::IsSet, { /// Build the final struct pub fn build(self) -> Member<'a> { diff --git a/crates/jacquard-api/src/sh_tangled/string.rs b/crates/jacquard-api/src/sh_tangled/string.rs index 6152a25c..ba3889ee 100644 --- a/crates/jacquard-api/src/sh_tangled/string.rs +++ b/crates/jacquard-api/src/sh_tangled/string.rs @@ -36,67 +36,67 @@ pub mod tangled_string_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Filename; - type Description; type CreatedAt; type Contents; + type Filename; + type Description; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Filename = Unset; - type Description = Unset; type CreatedAt = Unset; type Contents = Unset; - } - ///State transition - sets the `filename` field to Set - pub struct SetFilename(PhantomData S>); - impl sealed::Sealed for SetFilename {} - impl State for SetFilename { - type Filename = Set; - type Description = S::Description; - type CreatedAt = S::CreatedAt; - type Contents = S::Contents; - } - ///State transition - sets the `description` field to Set - pub struct SetDescription(PhantomData S>); - impl sealed::Sealed for SetDescription {} - impl State for SetDescription { - type Filename = S::Filename; - type Description = Set; - type CreatedAt = S::CreatedAt; - type Contents = S::Contents; + type Filename = Unset; + type Description = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Filename = S::Filename; - type Description = S::Description; type CreatedAt = Set; type Contents = S::Contents; + type Filename = S::Filename; + type Description = S::Description; } ///State transition - sets the `contents` field to Set pub struct SetContents(PhantomData S>); impl sealed::Sealed for SetContents {} impl State for SetContents { + type CreatedAt = S::CreatedAt; + type Contents = Set; type Filename = S::Filename; type Description = S::Description; + } + ///State transition - sets the `filename` field to Set + pub struct SetFilename(PhantomData S>); + impl sealed::Sealed for SetFilename {} + impl State for SetFilename { type CreatedAt = S::CreatedAt; - type Contents = Set; + type Contents = S::Contents; + type Filename = Set; + type Description = S::Description; + } + ///State transition - sets the `description` field to Set + pub struct SetDescription(PhantomData S>); + impl sealed::Sealed for SetDescription {} + impl State for SetDescription { + type CreatedAt = S::CreatedAt; + type Contents = S::Contents; + type Filename = S::Filename; + type Description = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `filename` field - pub struct filename(()); - ///Marker type for the `description` field - pub struct description(()); ///Marker type for the `created_at` field pub struct created_at(()); ///Marker type for the `contents` field pub struct contents(()); + ///Marker type for the `filename` field + pub struct filename(()); + ///Marker type for the `description` field + pub struct description(()); } } @@ -209,10 +209,10 @@ where impl<'a, S> TangledStringBuilder<'a, S> where S: tangled_string_state::State, - S::Filename: tangled_string_state::IsSet, - S::Description: tangled_string_state::IsSet, S::CreatedAt: tangled_string_state::IsSet, S::Contents: tangled_string_state::IsSet, + S::Filename: tangled_string_state::IsSet, + S::Description: tangled_string_state::IsSet, { /// Build the final struct pub fn build(self) -> TangledString<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/actor.rs b/crates/jacquard-api/src/sh_weaver/actor.rs index 2987b1e4..e4fdad32 100644 --- a/crates/jacquard-api/src/sh_weaver/actor.rs +++ b/crates/jacquard-api/src/sh_weaver/actor.rs @@ -1960,37 +1960,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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; type Handle = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = S::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(()); } } @@ -2183,8 +2183,8 @@ impl<'a, S: profile_view_basic_state::State> ProfileViewBasicBuilder<'a, S> { impl<'a, S> ProfileViewBasicBuilder<'a, S> where S: profile_view_basic_state::State, - S::Did: profile_view_basic_state::IsSet, S::Handle: profile_view_basic_state::IsSet, + S::Did: profile_view_basic_state::IsSet, { /// Build the final struct pub fn build(self) -> ProfileViewBasic<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/edit/cursor.rs b/crates/jacquard-api/src/sh_weaver/edit/cursor.rs index 676a9dd3..504f9996 100644 --- a/crates/jacquard-api/src/sh_weaver/edit/cursor.rs +++ b/crates/jacquard-api/src/sh_weaver/edit/cursor.rs @@ -586,37 +586,37 @@ pub mod id_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Peer; type Counter; + type Peer; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Peer = Unset; type Counter = Unset; - } - ///State transition - sets the `peer` field to Set - pub struct SetPeer(PhantomData S>); - impl sealed::Sealed for SetPeer {} - impl State for SetPeer { - type Peer = Set; - type Counter = S::Counter; + type Peer = Unset; } ///State transition - sets the `counter` field to Set pub struct SetCounter(PhantomData S>); impl sealed::Sealed for SetCounter {} impl State for SetCounter { - type Peer = S::Peer; type Counter = Set; + type Peer = S::Peer; + } + ///State transition - sets the `peer` field to Set + pub struct SetPeer(PhantomData S>); + impl sealed::Sealed for SetPeer {} + impl State for SetPeer { + type Counter = S::Counter; + type Peer = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `peer` field - pub struct peer(()); ///Marker type for the `counter` field pub struct counter(()); + ///Marker type for the `peer` field + pub struct peer(()); } } @@ -683,8 +683,8 @@ where impl<'a, S> IdBuilder<'a, S> where S: id_state::State, - S::Peer: id_state::IsSet, S::Counter: id_state::IsSet, + S::Peer: id_state::IsSet, { /// Build the final struct pub fn build(self) -> Id<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/edit/diff.rs b/crates/jacquard-api/src/sh_weaver/edit/diff.rs index a573cf33..4c99128f 100644 --- a/crates/jacquard-api/src/sh_weaver/edit/diff.rs +++ b/crates/jacquard-api/src/sh_weaver/edit/diff.rs @@ -36,51 +36,51 @@ pub mod diff_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Snapshot; type Root; 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 Root = Unset; type Doc = Unset; - } - ///State transition - sets the `snapshot` field to Set - pub struct SetSnapshot(PhantomData S>); - impl sealed::Sealed for SetSnapshot {} - impl State for SetSnapshot { - type Snapshot = Set; - type Root = S::Root; - type Doc = S::Doc; + type Snapshot = Unset; } ///State transition - sets the `root` field to Set pub struct SetRoot(PhantomData S>); impl sealed::Sealed for SetRoot {} impl State for SetRoot { - type Snapshot = S::Snapshot; type Root = Set; type Doc = S::Doc; + type Snapshot = S::Snapshot; } ///State transition - sets the `doc` field to Set pub struct SetDoc(PhantomData S>); impl sealed::Sealed for SetDoc {} impl State for SetDoc { - type Snapshot = S::Snapshot; type Root = S::Root; type Doc = Set; + type Snapshot = S::Snapshot; + } + ///State transition - sets the `snapshot` field to Set + pub struct SetSnapshot(PhantomData S>); + impl sealed::Sealed for SetSnapshot {} + impl State for SetSnapshot { + type Root = S::Root; + type Doc = S::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 `root` field pub struct root(()); ///Marker type for the `doc` field pub struct doc(()); + ///Marker type for the `snapshot` field + pub struct snapshot(()); } } @@ -173,9 +173,9 @@ where impl<'a, S> DiffBuilder<'a, S> where S: diff_state::State, - S::Snapshot: diff_state::IsSet, S::Root: diff_state::IsSet, S::Doc: diff_state::IsSet, + S::Snapshot: diff_state::IsSet, { /// Build the final struct pub fn build(self) -> Diff<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/embed.rs b/crates/jacquard-api/src/sh_weaver/embed.rs index d831cf26..f1389d29 100644 --- a/crates/jacquard-api/src/sh_weaver/embed.rs +++ b/crates/jacquard-api/src/sh_weaver/embed.rs @@ -38,37 +38,37 @@ pub mod percent_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 S>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = S::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData S>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = S::Width; type Height = Set; + type Width = S::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData S>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = S::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(()); } } @@ -138,8 +138,8 @@ where impl<'a, S> PercentSizeBuilder<'a, S> where S: percent_size_state::State, - S::Width: percent_size_state::IsSet, S::Height: percent_size_state::IsSet, + S::Width: percent_size_state::IsSet, { /// Build the final struct pub fn build(self) -> PercentSize<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/embed/external.rs b/crates/jacquard-api/src/sh_weaver/embed/external.rs index b8ec638e..47196870 100644 --- a/crates/jacquard-api/src/sh_weaver/embed/external.rs +++ b/crates/jacquard-api/src/sh_weaver/embed/external.rs @@ -38,51 +38,51 @@ pub mod external_embed_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Title; type Description; + 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; type Description = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Title = S::Title; - type Description = S::Description; + type Uri = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Uri = S::Uri; type Title = Set; type Description = S::Description; + type Uri = S::Uri; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData S>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Uri = S::Uri; type Title = S::Title; type Description = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Title = S::Title; + type Description = S::Description; + 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 `description` field pub struct description(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -195,9 +195,9 @@ where impl<'a, S> ExternalEmbedBuilder<'a, S> where S: external_embed_state::State, - S::Uri: external_embed_state::IsSet, S::Title: external_embed_state::IsSet, S::Description: external_embed_state::IsSet, + S::Uri: external_embed_state::IsSet, { /// Build the final struct pub fn build(self) -> ExternalEmbed<'a> { @@ -817,51 +817,51 @@ pub mod view_external_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Title; type Description; + 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; type Description = Unset; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Title = S::Title; - type Description = S::Description; + type Uri = Unset; } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { - type Uri = S::Uri; type Title = Set; type Description = S::Description; + type Uri = S::Uri; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData S>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Uri = S::Uri; type Title = S::Title; type Description = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Title = S::Title; + type Description = S::Description; + 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 `description` field pub struct description(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -974,9 +974,9 @@ where impl<'a, S> ViewExternalBuilder<'a, S> where S: view_external_state::State, - S::Uri: view_external_state::IsSet, S::Title: view_external_state::IsSet, S::Description: view_external_state::IsSet, + S::Uri: view_external_state::IsSet, { /// Build the final struct pub fn build(self) -> ViewExternal<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/embed/images.rs b/crates/jacquard-api/src/sh_weaver/embed/images.rs index aa618308..e23f70fb 100644 --- a/crates/jacquard-api/src/sh_weaver/embed/images.rs +++ b/crates/jacquard-api/src/sh_weaver/embed/images.rs @@ -902,51 +902,51 @@ pub mod view_image_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Thumb; type Fullsize; type Alt; + type Thumb; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Thumb = Unset; type Fullsize = Unset; type Alt = Unset; - } - ///State transition - sets the `thumb` field to Set - pub struct SetThumb(PhantomData S>); - impl sealed::Sealed for SetThumb {} - impl State for SetThumb { - type Thumb = Set; - type Fullsize = S::Fullsize; - type Alt = S::Alt; + type Thumb = Unset; } ///State transition - sets the `fullsize` field to Set pub struct SetFullsize(PhantomData S>); impl sealed::Sealed for SetFullsize {} impl State for SetFullsize { - type Thumb = S::Thumb; type Fullsize = Set; type Alt = S::Alt; + type Thumb = S::Thumb; } ///State transition - sets the `alt` field to Set pub struct SetAlt(PhantomData S>); impl sealed::Sealed for SetAlt {} impl State for SetAlt { - type Thumb = S::Thumb; type Fullsize = S::Fullsize; type Alt = Set; + type Thumb = S::Thumb; + } + ///State transition - sets the `thumb` field to Set + pub struct SetThumb(PhantomData S>); + impl sealed::Sealed for SetThumb {} + impl State for SetThumb { + type Fullsize = S::Fullsize; + type Alt = S::Alt; + type Thumb = 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 `fullsize` field pub struct fullsize(()); ///Marker type for the `alt` field pub struct alt(()); + ///Marker type for the `thumb` field + pub struct thumb(()); } } @@ -1073,9 +1073,9 @@ where impl<'a, S> ViewImageBuilder<'a, S> where S: view_image_state::State, - S::Thumb: view_image_state::IsSet, S::Fullsize: view_image_state::IsSet, S::Alt: view_image_state::IsSet, + S::Thumb: view_image_state::IsSet, { /// Build the final struct pub fn build(self) -> ViewImage<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/embed/records.rs b/crates/jacquard-api/src/sh_weaver/embed/records.rs index 209ca2bb..15544d22 100644 --- a/crates/jacquard-api/src/sh_weaver/embed/records.rs +++ b/crates/jacquard-api/src/sh_weaver/embed/records.rs @@ -1187,51 +1187,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; - type Author = Unset; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData S>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Author = Set; + type Uri = S::Uri; + type Blocked = S::Blocked; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { + type Author = S::Author; type Uri = Set; type Blocked = S::Blocked; - type Author = S::Author; } ///State transition - sets the `blocked` field to Set pub struct SetBlocked(PhantomData S>); impl sealed::Sealed for SetBlocked {} impl State for SetBlocked { - type Uri = S::Uri; - type Blocked = Set; type Author = S::Author; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData S>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { type Uri = S::Uri; - type Blocked = S::Blocked; - type Author = Set; + type Blocked = 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(()); } } @@ -1324,9 +1324,9 @@ where impl<'a, S> ViewBlockedBuilder<'a, S> where S: view_blocked_state::State, + S::Author: view_blocked_state::IsSet, S::Uri: view_blocked_state::IsSet, S::Blocked: view_blocked_state::IsSet, - S::Author: view_blocked_state::IsSet, { /// Build the final struct pub fn build(self) -> ViewBlocked<'a> { @@ -1572,37 +1572,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 S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type NotFound = S::NotFound; + type Uri = Unset; } ///State transition - sets the `not_found` field to Set pub struct SetNotFound(PhantomData S>); impl sealed::Sealed for SetNotFound {} impl State for SetNotFound { - type Uri = S::Uri; type NotFound = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type NotFound = S::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(()); } } @@ -1675,8 +1675,8 @@ where impl<'a, S> ViewNotFoundBuilder<'a, S> where S: view_not_found_state::State, - S::Uri: view_not_found_state::IsSet, S::NotFound: view_not_found_state::IsSet, + S::Uri: view_not_found_state::IsSet, { /// Build the final struct pub fn build(self) -> ViewNotFound<'a> { @@ -1769,8 +1769,8 @@ pub mod view_record_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; + type Uri; type Author; type Value; type IndexedAt; @@ -1779,28 +1779,28 @@ pub mod view_record_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Cid = Unset; + type Uri = Unset; type Author = Unset; type Value = Unset; type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Author = S::Author; - type Value = S::Value; - type IndexedAt = S::IndexedAt; - } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; + type Uri = S::Uri; + type Author = S::Author; + type Value = S::Value; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = S::Cid; + type Uri = Set; type Author = S::Author; type Value = S::Value; type IndexedAt = S::IndexedAt; @@ -1809,8 +1809,8 @@ pub mod view_record_state { pub struct SetAuthor(PhantomData S>); impl sealed::Sealed for SetAuthor {} impl State for SetAuthor { - type Uri = S::Uri; type Cid = S::Cid; + type Uri = S::Uri; type Author = Set; type Value = S::Value; type IndexedAt = S::IndexedAt; @@ -1819,8 +1819,8 @@ pub mod view_record_state { pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Uri = S::Uri; type Cid = S::Cid; + type Uri = S::Uri; type Author = S::Author; type Value = Set; type IndexedAt = S::IndexedAt; @@ -1829,8 +1829,8 @@ pub mod view_record_state { pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; type Cid = S::Cid; + type Uri = S::Uri; type Author = S::Author; type Value = S::Value; type IndexedAt = Set; @@ -1838,10 +1838,10 @@ pub mod view_record_state { /// 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(()); ///Marker type for the `author` field pub struct author(()); ///Marker type for the `value` field @@ -2092,8 +2092,8 @@ where impl<'a, S> ViewRecordBuilder<'a, S> where S: view_record_state::State, - S::Uri: view_record_state::IsSet, S::Cid: view_record_state::IsSet, + S::Uri: view_record_state::IsSet, S::Author: view_record_state::IsSet, S::Value: view_record_state::IsSet, S::IndexedAt: view_record_state::IsSet, diff --git a/crates/jacquard-api/src/sh_weaver/notebook.rs b/crates/jacquard-api/src/sh_weaver/notebook.rs index 727f926a..7d5daea8 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook.rs @@ -868,37 +868,37 @@ pub mod book_entry_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Entry; type Index; + 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 Index = Unset; - } - ///State transition - sets the `entry` field to Set - pub struct SetEntry(PhantomData S>); - impl sealed::Sealed for SetEntry {} - impl State for SetEntry { - type Entry = Set; - type Index = S::Index; + type Entry = Unset; } ///State transition - sets the `index` field to Set pub struct SetIndex(PhantomData S>); impl sealed::Sealed for SetIndex {} impl State for SetIndex { - type Entry = S::Entry; type Index = Set; + type Entry = S::Entry; + } + ///State transition - sets the `entry` field to Set + pub struct SetEntry(PhantomData S>); + impl sealed::Sealed for SetEntry {} + impl State for SetEntry { + type Index = S::Index; + type Entry = 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 `index` field pub struct index(()); + ///Marker type for the `entry` field + pub struct entry(()); } } @@ -1011,8 +1011,8 @@ impl<'a, S: book_entry_view_state::State> BookEntryViewBuilder<'a, S> { impl<'a, S> BookEntryViewBuilder<'a, S> where S: book_entry_view_state::State, - S::Entry: book_entry_view_state::IsSet, S::Index: book_entry_view_state::IsSet, + S::Entry: book_entry_view_state::IsSet, { /// Build the final struct pub fn build(self) -> BookEntryView<'a> { @@ -1138,9 +1138,9 @@ pub mod entry_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; type Cid; type Authors; + type Uri; type Record; type IndexedAt; } @@ -1148,29 +1148,19 @@ pub mod entry_view_state { pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Uri = Unset; type Cid = Unset; type Authors = Unset; + type Uri = Unset; type Record = Unset; type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Authors = S::Authors; - type Record = S::Record; - type IndexedAt = S::IndexedAt; - } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; type Cid = Set; type Authors = S::Authors; + type Uri = S::Uri; type Record = S::Record; type IndexedAt = S::IndexedAt; } @@ -1178,9 +1168,19 @@ pub mod entry_view_state { pub struct SetAuthors(PhantomData S>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { - type Uri = S::Uri; type Cid = S::Cid; type Authors = Set; + type Uri = S::Uri; + type Record = S::Record; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Cid = S::Cid; + type Authors = S::Authors; + type Uri = Set; type Record = S::Record; type IndexedAt = S::IndexedAt; } @@ -1188,9 +1188,9 @@ pub mod entry_view_state { pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Uri = S::Uri; type Cid = S::Cid; type Authors = S::Authors; + type Uri = S::Uri; type Record = Set; type IndexedAt = S::IndexedAt; } @@ -1198,21 +1198,21 @@ pub mod entry_view_state { pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; type Cid = S::Cid; type Authors = S::Authors; + type Uri = S::Uri; type Record = S::Record; type IndexedAt = 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 `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 `indexed_at` field @@ -1409,9 +1409,9 @@ where impl<'a, S> EntryViewBuilder<'a, S> where S: entry_view_state::State, - S::Uri: entry_view_state::IsSet, S::Cid: entry_view_state::IsSet, S::Authors: entry_view_state::IsSet, + S::Uri: entry_view_state::IsSet, S::Record: entry_view_state::IsSet, S::IndexedAt: entry_view_state::IsSet, { @@ -1508,9 +1508,9 @@ pub mod notebook_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Uri; + type Record; type Cid; type Authors; - type Record; type IndexedAt; } /// Empty state - all required fields are unset @@ -1518,9 +1518,9 @@ pub mod notebook_view_state { impl sealed::Sealed for Empty {} impl State for Empty { type Uri = Unset; + type Record = Unset; type Cid = Unset; type Authors = Unset; - type Record = Unset; type IndexedAt = Unset; } ///State transition - sets the `uri` field to Set @@ -1528,9 +1528,19 @@ pub mod notebook_view_state { impl sealed::Sealed for SetUri {} impl State for SetUri { type Uri = Set; + type Record = S::Record; + type Cid = S::Cid; + type Authors = S::Authors; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData S>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Uri = S::Uri; + type Record = Set; type Cid = S::Cid; type Authors = S::Authors; - type Record = S::Record; type IndexedAt = S::IndexedAt; } ///State transition - sets the `cid` field to Set @@ -1538,9 +1548,9 @@ pub mod notebook_view_state { impl sealed::Sealed for SetCid {} impl State for SetCid { type Uri = S::Uri; + type Record = S::Record; type Cid = Set; type Authors = S::Authors; - type Record = S::Record; type IndexedAt = S::IndexedAt; } ///State transition - sets the `authors` field to Set @@ -1548,19 +1558,9 @@ pub mod notebook_view_state { impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { type Uri = S::Uri; - type Cid = S::Cid; - type Authors = Set; type Record = S::Record; - type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData S>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Uri = S::Uri; type Cid = S::Cid; - type Authors = S::Authors; - type Record = Set; + type Authors = Set; type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set @@ -1568,9 +1568,9 @@ pub mod notebook_view_state { impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { type Uri = S::Uri; + type Record = S::Record; type Cid = S::Cid; type Authors = S::Authors; - type Record = S::Record; type IndexedAt = Set; } /// Marker types for field names @@ -1578,12 +1578,12 @@ pub mod notebook_view_state { 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 `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(()); } @@ -1759,9 +1759,9 @@ impl<'a, S> NotebookViewBuilder<'a, S> where S: notebook_view_state::State, S::Uri: notebook_view_state::IsSet, + S::Record: notebook_view_state::IsSet, S::Cid: notebook_view_state::IsSet, S::Authors: notebook_view_state::IsSet, - S::Record: notebook_view_state::IsSet, S::IndexedAt: notebook_view_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/sh_weaver/notebook/book.rs b/crates/jacquard-api/src/sh_weaver/notebook/book.rs index 3edc1bb9..1dbbe826 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/book.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/book.rs @@ -46,37 +46,37 @@ pub mod book_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Authors; type EntryList; + 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 EntryList = Unset; - } - ///State transition - sets the `authors` field to Set - pub struct SetAuthors(PhantomData S>); - impl sealed::Sealed for SetAuthors {} - impl State for SetAuthors { - type Authors = Set; - type EntryList = S::EntryList; + type Authors = Unset; } ///State transition - sets the `entry_list` field to Set pub struct SetEntryList(PhantomData S>); impl sealed::Sealed for SetEntryList {} impl State for SetEntryList { - type Authors = S::Authors; type EntryList = Set; + type Authors = S::Authors; + } + ///State transition - sets the `authors` field to Set + pub struct SetAuthors(PhantomData S>); + impl sealed::Sealed for SetAuthors {} + impl State for SetAuthors { + type EntryList = S::EntryList; + 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 `entry_list` field pub struct entry_list(()); + ///Marker type for the `authors` field + pub struct authors(()); } } @@ -229,8 +229,8 @@ impl<'a, S: book_state::State> BookBuilder<'a, S> { impl<'a, S> BookBuilder<'a, S> where S: book_state::State, - S::Authors: book_state::IsSet, S::EntryList: book_state::IsSet, + S::Authors: book_state::IsSet, { /// Build the final struct pub fn build(self) -> Book<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/chapter.rs b/crates/jacquard-api/src/sh_weaver/notebook/chapter.rs index c2c69df4..115bbb2c 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/chapter.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/chapter.rs @@ -46,51 +46,51 @@ pub mod chapter_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Notebook; type Authors; type EntryList; + 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 Authors = Unset; type EntryList = Unset; - } - ///State transition - sets the `notebook` field to Set - pub struct SetNotebook(PhantomData S>); - impl sealed::Sealed for SetNotebook {} - impl State for SetNotebook { - type Notebook = Set; - type Authors = S::Authors; - type EntryList = S::EntryList; + type Notebook = Unset; } ///State transition - sets the `authors` field to Set pub struct SetAuthors(PhantomData S>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { - type Notebook = S::Notebook; type Authors = Set; type EntryList = S::EntryList; + type Notebook = S::Notebook; } ///State transition - sets the `entry_list` field to Set pub struct SetEntryList(PhantomData S>); impl sealed::Sealed for SetEntryList {} impl State for SetEntryList { - type Notebook = S::Notebook; type Authors = S::Authors; type EntryList = Set; + type Notebook = S::Notebook; + } + ///State transition - sets the `notebook` field to Set + pub struct SetNotebook(PhantomData S>); + impl sealed::Sealed for SetNotebook {} + impl State for SetNotebook { + type Authors = S::Authors; + type EntryList = S::EntryList; + 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 `authors` field pub struct authors(()); ///Marker type for the `entry_list` field pub struct entry_list(()); + ///Marker type for the `notebook` field + pub struct notebook(()); } } @@ -243,9 +243,9 @@ impl<'a, S: chapter_state::State> ChapterBuilder<'a, S> { impl<'a, S> ChapterBuilder<'a, S> where S: chapter_state::State, - S::Notebook: chapter_state::IsSet, S::Authors: chapter_state::IsSet, S::EntryList: chapter_state::IsSet, + S::Notebook: chapter_state::IsSet, { /// Build the final struct pub fn build(self) -> Chapter<'a> { 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 bdd7df26..89b9c121 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/colour_scheme.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/colour_scheme.rs @@ -38,49 +38,49 @@ pub mod colour_scheme_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Variant; + type Name; type Colours; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Variant = Unset; + type Name = Unset; type Colours = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Variant = S::Variant; - type Colours = S::Colours; - } ///State transition - sets the `variant` field to Set pub struct SetVariant(PhantomData S>); impl sealed::Sealed for SetVariant {} impl State for SetVariant { - type Name = S::Name; type Variant = Set; + type Name = S::Name; + type Colours = S::Colours; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Variant = S::Variant; + type Name = Set; type Colours = S::Colours; } ///State transition - sets the `colours` field to Set pub struct SetColours(PhantomData S>); impl sealed::Sealed for SetColours {} impl State for SetColours { - type Name = S::Name; type Variant = S::Variant; + type Name = S::Name; type Colours = 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 `variant` field pub struct variant(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `colours` field pub struct colours(()); } @@ -175,8 +175,8 @@ where impl<'a, S> ColourSchemeBuilder<'a, S> where S: colour_scheme_state::State, - S::Name: colour_scheme_state::IsSet, S::Variant: colour_scheme_state::IsSet, + S::Name: colour_scheme_state::IsSet, S::Colours: colour_scheme_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/sh_weaver/notebook/entry.rs b/crates/jacquard-api/src/sh_weaver/notebook/entry.rs index fe859dd5..8461203d 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/entry.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/entry.rs @@ -45,50 +45,50 @@ pub mod entry_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Content; - type Title; type CreatedAt; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Content = Unset; - type Title = Unset; type CreatedAt = Unset; + type Title = Unset; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData S>); impl sealed::Sealed for SetContent {} impl State for SetContent { type Content = Set; - type Title = S::Title; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Content = S::Content; - type Title = Set; type CreatedAt = S::CreatedAt; + type Title = S::Title; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Content = S::Content; - type Title = S::Title; type CreatedAt = Set; + type Title = S::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Content = S::Content; + type CreatedAt = S::CreatedAt; + 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 `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(()); } } @@ -216,8 +216,8 @@ impl<'a, S> EntryBuilder<'a, S> where S: entry_state::State, S::Content: entry_state::IsSet, - S::Title: entry_state::IsSet, S::CreatedAt: entry_state::IsSet, + S::Title: entry_state::IsSet, { /// Build the final struct pub fn build(self) -> Entry<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/page.rs b/crates/jacquard-api/src/sh_weaver/notebook/page.rs index 3b4752c2..f59c3643 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/page.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/page.rs @@ -44,51 +44,51 @@ pub mod page_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Notebook; type Authors; type EntryList; + 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 Authors = Unset; type EntryList = Unset; - } - ///State transition - sets the `notebook` field to Set - pub struct SetNotebook(PhantomData S>); - impl sealed::Sealed for SetNotebook {} - impl State for SetNotebook { - type Notebook = Set; - type Authors = S::Authors; - type EntryList = S::EntryList; + type Notebook = Unset; } ///State transition - sets the `authors` field to Set pub struct SetAuthors(PhantomData S>); impl sealed::Sealed for SetAuthors {} impl State for SetAuthors { - type Notebook = S::Notebook; type Authors = Set; type EntryList = S::EntryList; + type Notebook = S::Notebook; } ///State transition - sets the `entry_list` field to Set pub struct SetEntryList(PhantomData S>); impl sealed::Sealed for SetEntryList {} impl State for SetEntryList { - type Notebook = S::Notebook; type Authors = S::Authors; type EntryList = Set; + type Notebook = S::Notebook; + } + ///State transition - sets the `notebook` field to Set + pub struct SetNotebook(PhantomData S>); + impl sealed::Sealed for SetNotebook {} + impl State for SetNotebook { + type Authors = S::Authors; + type EntryList = S::EntryList; + 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 `authors` field pub struct authors(()); ///Marker type for the `entry_list` field pub struct entry_list(()); + ///Marker type for the `notebook` field + pub struct notebook(()); } } @@ -221,9 +221,9 @@ impl<'a, S: page_state::State> PageBuilder<'a, S> { impl<'a, S> PageBuilder<'a, S> where S: page_state::State, - S::Notebook: page_state::IsSet, S::Authors: page_state::IsSet, S::EntryList: page_state::IsSet, + S::Notebook: page_state::IsSet, { /// Build the final struct pub fn build(self) -> Page<'a> { diff --git a/crates/jacquard-api/src/sh_weaver/notebook/theme.rs b/crates/jacquard-api/src/sh_weaver/notebook/theme.rs index 1cc5b055..59b4d374 100644 --- a/crates/jacquard-api/src/sh_weaver/notebook/theme.rs +++ b/crates/jacquard-api/src/sh_weaver/notebook/theme.rs @@ -35,49 +35,49 @@ pub mod code_theme_file_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Name; type Did; + type Name; type Content; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Name = Unset; type Did = Unset; + type Name = Unset; type Content = Unset; } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Did = S::Did; - type Content = S::Content; - } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { - type Name = S::Name; type Did = Set; + type Name = S::Name; + type Content = S::Content; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Did = S::Did; + type Name = Set; type Content = S::Content; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData S>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Name = S::Name; type Did = S::Did; + type Name = S::Name; type Content = 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 `did` field pub struct did(()); + ///Marker type for the `name` field + pub struct name(()); ///Marker type for the `content` field pub struct content(()); } @@ -172,8 +172,8 @@ where impl<'a, S> CodeThemeFileBuilder<'a, S> where S: code_theme_file_state::State, - S::Name: code_theme_file_state::IsSet, S::Did: code_theme_file_state::IsSet, + S::Name: code_theme_file_state::IsSet, S::Content: code_theme_file_state::IsSet, { /// Build the final struct @@ -568,105 +568,105 @@ pub mod theme_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type DarkScheme; type LightScheme; - type Fonts; - type Spacing; type DarkCodeTheme; type LightCodeTheme; + type DarkScheme; + type Spacing; + type Fonts; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type DarkScheme = Unset; type LightScheme = Unset; - type Fonts = Unset; - type Spacing = Unset; type DarkCodeTheme = Unset; type LightCodeTheme = Unset; - } - ///State transition - sets the `dark_scheme` field to Set - pub struct SetDarkScheme(PhantomData S>); - impl sealed::Sealed for SetDarkScheme {} - impl State for SetDarkScheme { - type DarkScheme = Set; - type LightScheme = S::LightScheme; - type Fonts = S::Fonts; - type Spacing = S::Spacing; - type DarkCodeTheme = S::DarkCodeTheme; - type LightCodeTheme = S::LightCodeTheme; + type DarkScheme = Unset; + type Spacing = Unset; + type Fonts = Unset; } ///State transition - sets the `light_scheme` field to Set pub struct SetLightScheme(PhantomData S>); impl sealed::Sealed for SetLightScheme {} impl State for SetLightScheme { - type DarkScheme = S::DarkScheme; type LightScheme = Set; - type Fonts = S::Fonts; - type Spacing = S::Spacing; type DarkCodeTheme = S::DarkCodeTheme; type LightCodeTheme = S::LightCodeTheme; - } - ///State transition - sets the `fonts` field to Set - pub struct SetFonts(PhantomData S>); - impl sealed::Sealed for SetFonts {} - impl State for SetFonts { type DarkScheme = S::DarkScheme; - type LightScheme = S::LightScheme; - type Fonts = Set; type Spacing = S::Spacing; - type DarkCodeTheme = S::DarkCodeTheme; - type LightCodeTheme = S::LightCodeTheme; - } - ///State transition - sets the `spacing` field to Set - pub struct SetSpacing(PhantomData S>); - impl sealed::Sealed for SetSpacing {} - impl State for SetSpacing { - type DarkScheme = S::DarkScheme; - type LightScheme = S::LightScheme; type Fonts = S::Fonts; - type Spacing = Set; - type DarkCodeTheme = S::DarkCodeTheme; - type LightCodeTheme = S::LightCodeTheme; } ///State transition - sets the `dark_code_theme` field to Set pub struct SetDarkCodeTheme(PhantomData S>); impl sealed::Sealed for SetDarkCodeTheme {} impl State for SetDarkCodeTheme { - type DarkScheme = S::DarkScheme; type LightScheme = S::LightScheme; - type Fonts = S::Fonts; - type Spacing = S::Spacing; type DarkCodeTheme = Set; type LightCodeTheme = S::LightCodeTheme; + type DarkScheme = S::DarkScheme; + type Spacing = S::Spacing; + type Fonts = S::Fonts; } ///State transition - sets the `light_code_theme` field to Set pub struct SetLightCodeTheme(PhantomData S>); impl sealed::Sealed for SetLightCodeTheme {} impl State for SetLightCodeTheme { - type DarkScheme = S::DarkScheme; type LightScheme = S::LightScheme; + type DarkCodeTheme = S::DarkCodeTheme; + type LightCodeTheme = Set; + type DarkScheme = S::DarkScheme; + type Spacing = S::Spacing; type Fonts = S::Fonts; + } + ///State transition - sets the `dark_scheme` field to Set + pub struct SetDarkScheme(PhantomData S>); + impl sealed::Sealed for SetDarkScheme {} + impl State for SetDarkScheme { + type LightScheme = S::LightScheme; + type DarkCodeTheme = S::DarkCodeTheme; + type LightCodeTheme = S::LightCodeTheme; + type DarkScheme = Set; type Spacing = S::Spacing; + type Fonts = S::Fonts; + } + ///State transition - sets the `spacing` field to Set + pub struct SetSpacing(PhantomData S>); + impl sealed::Sealed for SetSpacing {} + impl State for SetSpacing { + type LightScheme = S::LightScheme; type DarkCodeTheme = S::DarkCodeTheme; - type LightCodeTheme = Set; + type LightCodeTheme = S::LightCodeTheme; + type DarkScheme = S::DarkScheme; + type Spacing = Set; + type Fonts = S::Fonts; + } + ///State transition - sets the `fonts` field to Set + pub struct SetFonts(PhantomData S>); + impl sealed::Sealed for SetFonts {} + impl State for SetFonts { + type LightScheme = S::LightScheme; + type DarkCodeTheme = S::DarkCodeTheme; + type LightCodeTheme = S::LightCodeTheme; + type DarkScheme = S::DarkScheme; + type Spacing = S::Spacing; + type Fonts = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///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 `spacing` field + pub struct spacing(()); + ///Marker type for the `fonts` field + pub struct fonts(()); } } @@ -819,12 +819,12 @@ where impl<'a, S> ThemeBuilder<'a, S> where S: theme_state::State, - S::DarkScheme: theme_state::IsSet, S::LightScheme: theme_state::IsSet, - S::Fonts: theme_state::IsSet, - S::Spacing: theme_state::IsSet, S::DarkCodeTheme: theme_state::IsSet, S::LightCodeTheme: theme_state::IsSet, + S::DarkScheme: theme_state::IsSet, + S::Spacing: theme_state::IsSet, + S::Fonts: theme_state::IsSet, { /// Build the final struct pub fn build(self) -> Theme<'a> { diff --git a/crates/jacquard-api/src/social_clippr/actor.rs b/crates/jacquard-api/src/social_clippr/actor.rs index 978e4226..3786bbae 100644 --- a/crates/jacquard-api/src/social_clippr/actor.rs +++ b/crates/jacquard-api/src/social_clippr/actor.rs @@ -78,50 +78,50 @@ 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; } /// 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; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); impl sealed::Sealed for SetDid {} impl State for SetDid { type Did = Set; - type Handle = S::Handle; - type DisplayName = S::DisplayName; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData S>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Did = S::Did; - type Handle = Set; type DisplayName = S::DisplayName; + type Handle = S::Handle; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData S>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { type Did = S::Did; - type Handle = S::Handle; type DisplayName = Set; + type Handle = S::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData S>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { + type Did = S::Did; + type DisplayName = S::DisplayName; + type Handle = 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(()); } } @@ -275,8 +275,8 @@ impl<'a, S> ProfileViewBuilder<'a, S> where S: profile_view_state::State, S::Did: profile_view_state::IsSet, - S::Handle: profile_view_state::IsSet, S::DisplayName: profile_view_state::IsSet, + S::Handle: profile_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ProfileView<'a> { diff --git a/crates/jacquard-api/src/social_clippr/actor/profile.rs b/crates/jacquard-api/src/social_clippr/actor/profile.rs index 6acb6fd9..766f03eb 100644 --- a/crates/jacquard-api/src/social_clippr/actor/profile.rs +++ b/crates/jacquard-api/src/social_clippr/actor/profile.rs @@ -43,37 +43,37 @@ pub mod profile_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; 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; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type DisplayName = S::DisplayName; + type CreatedAt = Unset; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData S>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type CreatedAt = S::CreatedAt; type DisplayName = Set; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type DisplayName = S::DisplayName; + 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 `created_at` field + pub struct created_at(()); } } @@ -186,8 +186,8 @@ where impl<'a, S> ProfileBuilder<'a, S> where S: profile_state::State, - S::CreatedAt: profile_state::IsSet, S::DisplayName: profile_state::IsSet, + S::CreatedAt: profile_state::IsSet, { /// Build the final struct pub fn build(self) -> Profile<'a> { diff --git a/crates/jacquard-api/src/social_clippr/feed.rs b/crates/jacquard-api/src/social_clippr/feed.rs index 7132a8c0..134a6bf0 100644 --- a/crates/jacquard-api/src/social_clippr/feed.rs +++ b/crates/jacquard-api/src/social_clippr/feed.rs @@ -52,85 +52,85 @@ pub mod clip_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Author; + type IndexedAt; type Uri; type Cid; - type Author; type Record; - type IndexedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Author = Unset; + type IndexedAt = Unset; type Uri = Unset; type Cid = Unset; - type Author = Unset; type Record = Unset; - type IndexedAt = Unset; + } + ///State transition - sets the `author` field to Set + pub struct SetAuthor(PhantomData S>); + impl sealed::Sealed for SetAuthor {} + impl State for SetAuthor { + type Author = Set; + type IndexedAt = S::IndexedAt; + type Uri = S::Uri; + type Cid = S::Cid; + type Record = S::Record; + } + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData S>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type Author = S::Author; + type IndexedAt = Set; + type Uri = S::Uri; + type Cid = S::Cid; + type Record = S::Record; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { + type Author = S::Author; + type IndexedAt = S::IndexedAt; type Uri = Set; type Cid = S::Cid; - type Author = S::Author; type Record = S::Record; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; type Author = S::Author; - type Record = S::Record; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `author` field to Set - pub struct SetAuthor(PhantomData S>); - impl sealed::Sealed for SetAuthor {} - impl State for SetAuthor { type Uri = S::Uri; - type Cid = S::Cid; - type Author = Set; + type Cid = Set; type Record = S::Record; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `record` field to Set pub struct SetRecord(PhantomData S>); impl sealed::Sealed for SetRecord {} impl State for SetRecord { - type Uri = S::Uri; - type Cid = S::Cid; type Author = S::Author; - type Record = Set; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData S>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { type Uri = S::Uri; type Cid = S::Cid; - type Author = S::Author; - type Record = S::Record; - type IndexedAt = Set; + type Record = 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 `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 `author` field - pub struct author(()); ///Marker type for the `record` field pub struct record(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); } } @@ -263,11 +263,11 @@ where impl<'a, S> ClipViewBuilder<'a, S> where S: clip_view_state::State, + S::Author: clip_view_state::IsSet, + S::IndexedAt: clip_view_state::IsSet, S::Uri: clip_view_state::IsSet, S::Cid: clip_view_state::IsSet, - S::Author: clip_view_state::IsSet, S::Record: clip_view_state::IsSet, - S::IndexedAt: clip_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ClipView<'a> { diff --git a/crates/jacquard-api/src/social_clippr/feed/clip.rs b/crates/jacquard-api/src/social_clippr/feed/clip.rs index d3750174..52e2b0a3 100644 --- a/crates/jacquard-api/src/social_clippr/feed/clip.rs +++ b/crates/jacquard-api/src/social_clippr/feed/clip.rs @@ -60,84 +60,84 @@ pub mod clip_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Url; - type Title; type Description; type Unlisted; type CreatedAt; + type Title; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Url = Unset; - type Title = Unset; type Description = Unset; type Unlisted = Unset; type CreatedAt = Unset; + type Title = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { type Url = Set; - type Title = S::Title; - type Description = S::Description; - type Unlisted = S::Unlisted; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `title` field to Set - pub struct SetTitle(PhantomData S>); - impl sealed::Sealed for SetTitle {} - impl State for SetTitle { - type Url = S::Url; - type Title = Set; type Description = S::Description; type Unlisted = S::Unlisted; type CreatedAt = S::CreatedAt; + type Title = S::Title; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData S>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { type Url = S::Url; - type Title = S::Title; type Description = Set; type Unlisted = S::Unlisted; type CreatedAt = S::CreatedAt; + type Title = S::Title; } ///State transition - sets the `unlisted` field to Set pub struct SetUnlisted(PhantomData S>); impl sealed::Sealed for SetUnlisted {} impl State for SetUnlisted { type Url = S::Url; - type Title = S::Title; type Description = S::Description; type Unlisted = Set; type CreatedAt = S::CreatedAt; + type Title = S::Title; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Url = S::Url; - type Title = S::Title; type Description = S::Description; type Unlisted = S::Unlisted; type CreatedAt = Set; + type Title = S::Title; + } + ///State transition - sets the `title` field to Set + pub struct SetTitle(PhantomData S>); + impl sealed::Sealed for SetTitle {} + impl State for SetTitle { + type Url = S::Url; + type Description = S::Description; + type Unlisted = S::Unlisted; + type CreatedAt = S::CreatedAt; + type Title = 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 `title` field - pub struct title(()); ///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 `title` field + pub struct title(()); } } @@ -354,10 +354,10 @@ impl<'a, S> ClipBuilder<'a, S> where S: clip_state::State, S::Url: clip_state::IsSet, - S::Title: clip_state::IsSet, S::Description: clip_state::IsSet, S::Unlisted: clip_state::IsSet, S::CreatedAt: clip_state::IsSet, + S::Title: clip_state::IsSet, { /// Build the final struct pub fn build(self) -> Clip<'a> { diff --git a/crates/jacquard-api/src/social_grain.rs b/crates/jacquard-api/src/social_grain.rs index 20b5b07e..e2e19fb3 100644 --- a/crates/jacquard-api/src/social_grain.rs +++ b/crates/jacquard-api/src/social_grain.rs @@ -37,37 +37,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 S>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = S::Height; + type Width = Unset; } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData S>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = S::Width; type Height = Set; + type Width = S::Width; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData S>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = S::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(()); } } @@ -137,8 +137,8 @@ where impl<'a, S> AspectRatioBuilder<'a, S> where S: aspect_ratio_state::State, - S::Width: aspect_ratio_state::IsSet, S::Height: aspect_ratio_state::IsSet, + S::Width: aspect_ratio_state::IsSet, { /// Build the final struct pub fn build(self) -> AspectRatio<'a> { diff --git a/crates/jacquard-api/src/social_grain/actor.rs b/crates/jacquard-api/src/social_grain/actor.rs index 48cbb0e2..e30bf842 100644 --- a/crates/jacquard-api/src/social_grain/actor.rs +++ b/crates/jacquard-api/src/social_grain/actor.rs @@ -49,37 +49,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 S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; + type Did = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Did = S::Did; type Handle = Set; + type Did = S::Did; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type Handle = S::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 @@ impl<'a, S: profile_view_state::State> ProfileViewBuilder<'a, S> { impl<'a, S> ProfileViewBuilder<'a, S> where S: profile_view_state::State, - S::Did: profile_view_state::IsSet, S::Handle: profile_view_state::IsSet, + S::Did: profile_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ProfileView<'a> { diff --git a/crates/jacquard-api/src/social_grain/gallery.rs b/crates/jacquard-api/src/social_grain/gallery.rs index 41aa2660..66b07086 100644 --- a/crates/jacquard-api/src/social_grain/gallery.rs +++ b/crates/jacquard-api/src/social_grain/gallery.rs @@ -459,85 +459,85 @@ pub mod gallery_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Record; type Uri; - type Cid; type Creator; - type Record; type IndexedAt; + 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 Uri = Unset; - type Cid = Unset; type Creator = Unset; - type Record = Unset; type IndexedAt = Unset; + type Cid = Unset; + } + ///State transition - sets the `record` field to Set + pub struct SetRecord(PhantomData S>); + impl sealed::Sealed for SetRecord {} + impl State for SetRecord { + type Record = Set; + type Uri = S::Uri; + type Creator = S::Creator; + type IndexedAt = S::IndexedAt; + type Cid = S::Cid; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Uri = Set; - type Cid = S::Cid; - type Creator = S::Creator; type Record = S::Record; - type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; + type Uri = Set; type Creator = S::Creator; - type Record = S::Record; type IndexedAt = S::IndexedAt; + type Cid = S::Cid; } ///State transition - sets the `creator` field to Set pub struct SetCreator(PhantomData S>); impl sealed::Sealed for SetCreator {} impl State for SetCreator { + type Record = S::Record; type Uri = S::Uri; - type Cid = S::Cid; type Creator = Set; - type Record = S::Record; type IndexedAt = S::IndexedAt; - } - ///State transition - sets the `record` field to Set - pub struct SetRecord(PhantomData S>); - impl sealed::Sealed for SetRecord {} - impl State for SetRecord { - type Uri = S::Uri; type Cid = S::Cid; - type Creator = S::Creator; - type Record = Set; - type IndexedAt = S::IndexedAt; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { + type Record = S::Record; type Uri = S::Uri; - type Cid = S::Cid; type Creator = S::Creator; - type Record = S::Record; type IndexedAt = Set; + type Cid = S::Cid; + } + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Record = S::Record; + type Uri = S::Uri; + type Creator = S::Creator; + type IndexedAt = S::IndexedAt; + 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 `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 `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(()); } } @@ -710,11 +710,11 @@ where impl<'a, S> GalleryViewBuilder<'a, S> where S: gallery_view_state::State, + S::Record: gallery_view_state::IsSet, S::Uri: gallery_view_state::IsSet, - S::Cid: gallery_view_state::IsSet, S::Creator: gallery_view_state::IsSet, - S::Record: gallery_view_state::IsSet, S::IndexedAt: gallery_view_state::IsSet, + S::Cid: gallery_view_state::IsSet, { /// Build the final struct pub fn build(self) -> GalleryView<'a> { diff --git a/crates/jacquard-api/src/social_grain/gallery/item.rs b/crates/jacquard-api/src/social_grain/gallery/item.rs index c7de748c..3985d7ab 100644 --- a/crates/jacquard-api/src/social_grain/gallery/item.rs +++ b/crates/jacquard-api/src/social_grain/gallery/item.rs @@ -36,51 +36,51 @@ pub mod item_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type CreatedAt; type Gallery; type Item; + 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 Gallery = Unset; type Item = Unset; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type CreatedAt = Set; - type Gallery = S::Gallery; - type Item = S::Item; + type CreatedAt = Unset; } ///State transition - sets the `gallery` field to Set pub struct SetGallery(PhantomData S>); impl sealed::Sealed for SetGallery {} impl State for SetGallery { - type CreatedAt = S::CreatedAt; type Gallery = Set; type Item = S::Item; + type CreatedAt = S::CreatedAt; } ///State transition - sets the `item` field to Set pub struct SetItem(PhantomData S>); impl sealed::Sealed for SetItem {} impl State for SetItem { - type CreatedAt = S::CreatedAt; type Gallery = S::Gallery; type Item = Set; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type Gallery = S::Gallery; + type Item = S::Item; + 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 `gallery` field pub struct gallery(()); ///Marker type for the `item` field pub struct item(()); + ///Marker type for the `created_at` field + pub struct created_at(()); } } @@ -187,9 +187,9 @@ impl<'a, S: item_state::State> ItemBuilder<'a, S> { impl<'a, S> ItemBuilder<'a, S> where S: item_state::State, - S::CreatedAt: item_state::IsSet, S::Gallery: item_state::IsSet, S::Item: item_state::IsSet, + S::CreatedAt: item_state::IsSet, { /// Build the final struct pub fn build(self) -> Item<'a> { diff --git a/crates/jacquard-api/src/social_grain/photo.rs b/crates/jacquard-api/src/social_grain/photo.rs index 61f3cb1d..b152ae08 100644 --- a/crates/jacquard-api/src/social_grain/photo.rs +++ b/crates/jacquard-api/src/social_grain/photo.rs @@ -447,37 +447,37 @@ pub mod exif_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Photo; type CreatedAt; + type Photo; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Photo = Unset; type CreatedAt = Unset; - } - ///State transition - sets the `photo` field to Set - pub struct SetPhoto(PhantomData S>); - impl sealed::Sealed for SetPhoto {} - impl State for SetPhoto { - type Photo = Set; - type CreatedAt = S::CreatedAt; + type Photo = Unset; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Photo = S::Photo; type CreatedAt = Set; + type Photo = S::Photo; + } + ///State transition - sets the `photo` field to Set + pub struct SetPhoto(PhantomData S>); + impl sealed::Sealed for SetPhoto {} + impl State for SetPhoto { + type CreatedAt = S::CreatedAt; + type Photo = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `photo` field - pub struct photo(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `photo` field + pub struct photo(()); } } @@ -787,8 +787,8 @@ impl<'a, S: exif_view_state::State> ExifViewBuilder<'a, S> { impl<'a, S> ExifViewBuilder<'a, S> where S: exif_view_state::State, - S::Photo: exif_view_state::IsSet, S::CreatedAt: exif_view_state::IsSet, + S::Photo: exif_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ExifView<'a> { diff --git a/crates/jacquard-api/src/social_pmsky/proposal.rs b/crates/jacquard-api/src/social_pmsky/proposal.rs index 12dc74dd..caae120f 100644 --- a/crates/jacquard-api/src/social_pmsky/proposal.rs +++ b/crates/jacquard-api/src/social_pmsky/proposal.rs @@ -68,9 +68,9 @@ pub mod proposal_state { pub trait State: sealed::Sealed { type Typ; type Src; - type Uri; - type Val; type Cts; + type Val; + type Uri; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -78,9 +78,9 @@ pub mod proposal_state { impl State for Empty { type Typ = Unset; type Src = Unset; - type Uri = Unset; - type Val = Unset; type Cts = Unset; + type Val = Unset; + type Uri = Unset; } ///State transition - sets the `typ` field to Set pub struct SetTyp(PhantomData S>); @@ -88,9 +88,9 @@ pub mod proposal_state { impl State for SetTyp { type Typ = Set; type Src = S::Src; - type Uri = S::Uri; - type Val = S::Val; type Cts = S::Cts; + type Val = S::Val; + type Uri = S::Uri; } ///State transition - sets the `src` field to Set pub struct SetSrc(PhantomData S>); @@ -98,19 +98,19 @@ pub mod proposal_state { impl State for SetSrc { type Typ = S::Typ; type Src = Set; - type Uri = S::Uri; - type Val = S::Val; type Cts = S::Cts; + type Val = S::Val; + type Uri = S::Uri; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { + ///State transition - sets the `cts` field to Set + pub struct SetCts(PhantomData S>); + impl sealed::Sealed for SetCts {} + impl State for SetCts { type Typ = S::Typ; type Src = S::Src; - type Uri = Set; + type Cts = Set; type Val = S::Val; - type Cts = S::Cts; + type Uri = S::Uri; } ///State transition - sets the `val` field to Set pub struct SetVal(PhantomData S>); @@ -118,19 +118,19 @@ pub mod proposal_state { impl State for SetVal { type Typ = S::Typ; type Src = S::Src; - type Uri = S::Uri; - type Val = Set; type Cts = S::Cts; + type Val = Set; + type Uri = S::Uri; } - ///State transition - sets the `cts` field to Set - pub struct SetCts(PhantomData S>); - impl sealed::Sealed for SetCts {} - impl State for SetCts { + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { type Typ = S::Typ; type Src = S::Src; - type Uri = S::Uri; + type Cts = S::Cts; type Val = S::Val; - type Cts = Set; + type Uri = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -139,12 +139,12 @@ pub mod proposal_state { pub struct typ(()); ///Marker type for the `src` field pub struct src(()); - ///Marker type for the `uri` field - pub struct uri(()); - ///Marker type for the `val` field - pub struct val(()); ///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(()); } } @@ -390,9 +390,9 @@ where S: proposal_state::State, S::Typ: proposal_state::IsSet, S::Src: proposal_state::IsSet, - S::Uri: proposal_state::IsSet, - S::Val: proposal_state::IsSet, S::Cts: proposal_state::IsSet, + S::Val: proposal_state::IsSet, + S::Uri: proposal_state::IsSet, { /// Build the final struct pub fn build(self) -> Proposal<'a> { diff --git a/crates/jacquard-api/src/social_pmsky/vote.rs b/crates/jacquard-api/src/social_pmsky/vote.rs index da9e42bb..ce58ab68 100644 --- a/crates/jacquard-api/src/social_pmsky/vote.rs +++ b/crates/jacquard-api/src/social_pmsky/vote.rs @@ -56,66 +56,66 @@ pub mod vote_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Src; + type Cts; type Uri; type Val; - type Cts; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Src = Unset; + type Cts = Unset; type Uri = Unset; type Val = Unset; - type Cts = Unset; } ///State transition - sets the `src` field to Set pub struct SetSrc(PhantomData S>); impl sealed::Sealed for SetSrc {} impl State for SetSrc { type Src = Set; + type Cts = S::Cts; + type Uri = S::Uri; + type Val = S::Val; + } + ///State transition - sets the `cts` field to Set + pub struct SetCts(PhantomData S>); + impl sealed::Sealed for SetCts {} + impl State for SetCts { + type Src = S::Src; + type Cts = Set; type Uri = S::Uri; type Val = S::Val; - type Cts = S::Cts; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { type Src = S::Src; + type Cts = S::Cts; type Uri = Set; type Val = S::Val; - type Cts = S::Cts; } ///State transition - sets the `val` field to Set pub struct SetVal(PhantomData S>); impl sealed::Sealed for SetVal {} impl State for SetVal { type Src = S::Src; - type Uri = S::Uri; - type Val = Set; type Cts = S::Cts; - } - ///State transition - sets the `cts` field to Set - pub struct SetCts(PhantomData S>); - impl sealed::Sealed for SetCts {} - impl State for SetCts { - type Src = S::Src; type Uri = S::Uri; - type Val = S::Val; - type Cts = Set; + type Val = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { ///Marker type for the `src` field pub struct src(()); + ///Marker type for the `cts` field + pub struct cts(()); ///Marker type for the `uri` field pub struct uri(()); ///Marker type for the `val` field pub struct val(()); - ///Marker type for the `cts` field - pub struct cts(()); } } @@ -297,9 +297,9 @@ impl<'a, S> VoteBuilder<'a, S> where S: vote_state::State, S::Src: vote_state::IsSet, + S::Cts: vote_state::IsSet, S::Uri: vote_state::IsSet, S::Val: vote_state::IsSet, - S::Cts: vote_state::IsSet, { /// Build the final struct pub fn build(self) -> Vote<'a> { diff --git a/crates/jacquard-api/src/tech_manos/twmirror/post.rs b/crates/jacquard-api/src/tech_manos/twmirror/post.rs index 035169d9..16bb4ed4 100644 --- a/crates/jacquard-api/src/tech_manos/twmirror/post.rs +++ b/crates/jacquard-api/src/tech_manos/twmirror/post.rs @@ -42,65 +42,65 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type TweetId; type TwUserId; type BskyPost; + type TweetId; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type TweetId = Unset; type TwUserId = Unset; type BskyPost = Unset; + type TweetId = Unset; type CreatedAt = Unset; } - ///State transition - sets the `tweet_id` field to Set - pub struct SetTweetId(PhantomData S>); - impl sealed::Sealed for SetTweetId {} - impl State for SetTweetId { - type TweetId = Set; - type TwUserId = S::TwUserId; - type BskyPost = S::BskyPost; - type CreatedAt = S::CreatedAt; - } ///State transition - sets the `tw_user_id` field to Set pub struct SetTwUserId(PhantomData S>); impl sealed::Sealed for SetTwUserId {} impl State for SetTwUserId { - type TweetId = S::TweetId; type TwUserId = Set; type BskyPost = S::BskyPost; + type TweetId = S::TweetId; type CreatedAt = S::CreatedAt; } ///State transition - sets the `bsky_post` field to Set pub struct SetBskyPost(PhantomData S>); impl sealed::Sealed for SetBskyPost {} impl State for SetBskyPost { - type TweetId = S::TweetId; type TwUserId = S::TwUserId; type BskyPost = Set; + type TweetId = S::TweetId; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `tweet_id` field to Set + pub struct SetTweetId(PhantomData S>); + impl sealed::Sealed for SetTweetId {} + impl State for SetTweetId { + type TwUserId = S::TwUserId; + type BskyPost = S::BskyPost; + type TweetId = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type TweetId = S::TweetId; type TwUserId = S::TwUserId; type BskyPost = S::BskyPost; + type TweetId = S::TweetId; type CreatedAt = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `tweet_id` field - pub struct tweet_id(()); ///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 `tweet_id` field + pub struct tweet_id(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -215,9 +215,9 @@ where impl<'a, S> PostBuilder<'a, S> where S: post_state::State, - S::TweetId: post_state::IsSet, S::TwUserId: post_state::IsSet, S::BskyPost: post_state::IsSet, + S::TweetId: post_state::IsSet, S::CreatedAt: post_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/tools_ozone/communication.rs b/crates/jacquard-api/src/tools_ozone/communication.rs index 149bb7fe..4710b0ac 100644 --- a/crates/jacquard-api/src/tools_ozone/communication.rs +++ b/crates/jacquard-api/src/tools_ozone/communication.rs @@ -56,126 +56,126 @@ pub mod template_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Id; - type Name; - type ContentMarkdown; - type Disabled; type LastUpdatedBy; + type Disabled; type CreatedAt; + type ContentMarkdown; type UpdatedAt; + type Name; } /// 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 ContentMarkdown = Unset; - type Disabled = Unset; type LastUpdatedBy = Unset; + type Disabled = Unset; type CreatedAt = Unset; + type ContentMarkdown = Unset; type UpdatedAt = Unset; + type Name = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData S>); impl sealed::Sealed for SetId {} impl State for SetId { type Id = Set; - type Name = S::Name; - type ContentMarkdown = S::ContentMarkdown; - type Disabled = S::Disabled; type LastUpdatedBy = S::LastUpdatedBy; - type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; - } - ///State transition - sets the `name` field to Set - pub struct SetName(PhantomData S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Id = S::Id; - type Name = Set; - type ContentMarkdown = S::ContentMarkdown; type Disabled = S::Disabled; - type LastUpdatedBy = S::LastUpdatedBy; type CreatedAt = S::CreatedAt; + type ContentMarkdown = S::ContentMarkdown; type UpdatedAt = S::UpdatedAt; + type Name = S::Name; } - ///State transition - sets the `content_markdown` field to Set - pub struct SetContentMarkdown(PhantomData S>); - impl sealed::Sealed for SetContentMarkdown {} - impl State for SetContentMarkdown { + ///State transition - sets the `last_updated_by` field to Set + pub struct SetLastUpdatedBy(PhantomData S>); + impl sealed::Sealed for SetLastUpdatedBy {} + impl State for SetLastUpdatedBy { type Id = S::Id; - type Name = S::Name; - type ContentMarkdown = Set; + type LastUpdatedBy = Set; type Disabled = S::Disabled; - type LastUpdatedBy = S::LastUpdatedBy; type CreatedAt = S::CreatedAt; + type ContentMarkdown = S::ContentMarkdown; type UpdatedAt = S::UpdatedAt; + type Name = S::Name; } ///State transition - sets the `disabled` field to Set pub struct SetDisabled(PhantomData S>); impl sealed::Sealed for SetDisabled {} impl State for SetDisabled { type Id = S::Id; - type Name = S::Name; - type ContentMarkdown = S::ContentMarkdown; - type Disabled = Set; type LastUpdatedBy = S::LastUpdatedBy; + type Disabled = Set; type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; - } - ///State transition - sets the `last_updated_by` field to Set - pub struct SetLastUpdatedBy(PhantomData S>); - impl sealed::Sealed for SetLastUpdatedBy {} - impl State for SetLastUpdatedBy { - type Id = S::Id; - type Name = S::Name; type ContentMarkdown = S::ContentMarkdown; - type Disabled = S::Disabled; - type LastUpdatedBy = Set; - type CreatedAt = S::CreatedAt; type UpdatedAt = S::UpdatedAt; + type Name = S::Name; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Id = S::Id; - type Name = S::Name; - type ContentMarkdown = S::ContentMarkdown; - type Disabled = S::Disabled; type LastUpdatedBy = S::LastUpdatedBy; + type Disabled = S::Disabled; type CreatedAt = Set; + type ContentMarkdown = S::ContentMarkdown; + type UpdatedAt = S::UpdatedAt; + type Name = S::Name; + } + ///State transition - sets the `content_markdown` field to Set + pub struct SetContentMarkdown(PhantomData S>); + impl sealed::Sealed for SetContentMarkdown {} + impl State for SetContentMarkdown { + type Id = S::Id; + type LastUpdatedBy = S::LastUpdatedBy; + type Disabled = S::Disabled; + type CreatedAt = S::CreatedAt; + type ContentMarkdown = Set; type UpdatedAt = S::UpdatedAt; + type Name = S::Name; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData S>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { type Id = S::Id; - type Name = S::Name; - type ContentMarkdown = S::ContentMarkdown; - type Disabled = S::Disabled; type LastUpdatedBy = S::LastUpdatedBy; + type Disabled = S::Disabled; type CreatedAt = S::CreatedAt; + type ContentMarkdown = S::ContentMarkdown; type UpdatedAt = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Id = S::Id; + type LastUpdatedBy = S::LastUpdatedBy; + type Disabled = S::Disabled; + type CreatedAt = S::CreatedAt; + type ContentMarkdown = S::ContentMarkdown; + type UpdatedAt = S::UpdatedAt; + 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 `name` field - pub struct name(()); - ///Marker type for the `content_markdown` field - pub struct content_markdown(()); - ///Marker type for the `disabled` field - pub struct disabled(()); ///Marker type for the `last_updated_by` field pub struct last_updated_by(()); + ///Marker type for the `disabled` field + pub struct disabled(()); ///Marker type for the `created_at` field pub struct created_at(()); + ///Marker type for the `content_markdown` field + pub struct content_markdown(()); ///Marker type for the `updated_at` field pub struct updated_at(()); + ///Marker type for the `name` field + pub struct name(()); } } @@ -396,12 +396,12 @@ impl<'a, S> TemplateViewBuilder<'a, S> where S: template_view_state::State, S::Id: template_view_state::IsSet, - S::Name: template_view_state::IsSet, - S::ContentMarkdown: template_view_state::IsSet, - S::Disabled: template_view_state::IsSet, S::LastUpdatedBy: template_view_state::IsSet, + S::Disabled: template_view_state::IsSet, S::CreatedAt: template_view_state::IsSet, + S::ContentMarkdown: template_view_state::IsSet, S::UpdatedAt: template_view_state::IsSet, + S::Name: template_view_state::IsSet, { /// Build the final struct pub fn build(self) -> TemplateView<'a> { diff --git a/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs b/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs index 68a39693..c2d93fa7 100644 --- a/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs +++ b/crates/jacquard-api/src/tools_ozone/hosting/get_account_history.rs @@ -462,51 +462,51 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Details; type CreatedBy; - 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 Details = Unset; type CreatedBy = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Details = S::Details; + type CreatedBy = S::CreatedBy; } ///State transition - sets the `details` field to Set pub struct SetDetails(PhantomData S>); impl sealed::Sealed for SetDetails {} impl State for SetDetails { + type CreatedAt = S::CreatedAt; type Details = Set; type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData S>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { - type Details = S::Details; - type CreatedBy = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Details = S::Details; - type CreatedBy = S::CreatedBy; - type CreatedAt = Set; + 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 `details` field pub struct details(()); ///Marker type for the `created_by` field pub struct created_by(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -599,9 +599,9 @@ where impl<'a, S> EventBuilder<'a, S> where S: event_state::State, + S::CreatedAt: event_state::IsSet, S::Details: event_state::IsSet, S::CreatedBy: event_state::IsSet, - S::CreatedAt: event_state::IsSet, { /// Build the final struct pub fn build(self) -> Event<'a> { diff --git a/crates/jacquard-api/src/tools_ozone/moderation.rs b/crates/jacquard-api/src/tools_ozone/moderation.rs index 1cd5b0b6..900181d8 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation.rs @@ -55,37 +55,37 @@ pub mod account_event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Timestamp; type Active; + 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 Active = Unset; - } - ///State transition - sets the `timestamp` field to Set - pub struct SetTimestamp(PhantomData S>); - impl sealed::Sealed for SetTimestamp {} - impl State for SetTimestamp { - type Timestamp = Set; - type Active = S::Active; + type Timestamp = Unset; } ///State transition - sets the `active` field to Set pub struct SetActive(PhantomData S>); impl sealed::Sealed for SetActive {} impl State for SetActive { - type Timestamp = S::Timestamp; type Active = Set; + type Timestamp = S::Timestamp; + } + ///State transition - sets the `timestamp` field to Set + pub struct SetTimestamp(PhantomData S>); + impl sealed::Sealed for SetTimestamp {} + impl State for SetTimestamp { + type Active = S::Active; + 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 `active` field pub struct active(()); + ///Marker type for the `timestamp` field + pub struct timestamp(()); } } @@ -192,8 +192,8 @@ where impl<'a, S> AccountEventBuilder<'a, S> where S: account_event_state::State, - S::Timestamp: account_event_state::IsSet, S::Active: account_event_state::IsSet, + S::Timestamp: account_event_state::IsSet, { /// Build the final struct pub fn build(self) -> AccountEvent<'a> { @@ -5331,65 +5331,65 @@ pub mod blob_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Size; type Cid; type MimeType; - type Size; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Size = Unset; type Cid = Unset; type MimeType = Unset; - type Size = Unset; type CreatedAt = Unset; } + ///State transition - sets the `size` field to Set + pub struct SetSize(PhantomData S>); + impl sealed::Sealed for SetSize {} + impl State for SetSize { + type Size = Set; + type Cid = S::Cid; + type MimeType = S::MimeType; + type CreatedAt = S::CreatedAt; + } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { + type Size = S::Size; type Cid = Set; type MimeType = S::MimeType; - type Size = S::Size; type CreatedAt = S::CreatedAt; } ///State transition - sets the `mime_type` field to Set pub struct SetMimeType(PhantomData S>); impl sealed::Sealed for SetMimeType {} impl State for SetMimeType { - type Cid = S::Cid; - type MimeType = Set; type Size = S::Size; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `size` field to Set - pub struct SetSize(PhantomData S>); - impl sealed::Sealed for SetSize {} - impl State for SetSize { type Cid = S::Cid; - type MimeType = S::MimeType; - type Size = Set; + type MimeType = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Size = S::Size; type Cid = S::Cid; type MimeType = S::MimeType; - type Size = S::Size; type CreatedAt = 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 `cid` field pub struct cid(()); ///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(()); } @@ -5538,9 +5538,9 @@ where impl<'a, S> BlobViewBuilder<'a, S> where S: blob_view_state::State, + S::Size: blob_view_state::IsSet, S::Cid: blob_view_state::IsSet, S::MimeType: blob_view_state::IsSet, - S::Size: blob_view_state::IsSet, S::CreatedAt: blob_view_state::IsSet, { /// Build the final struct @@ -6298,37 +6298,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 S>); - impl sealed::Sealed for SetCreateLabelVals {} - impl State for SetCreateLabelVals { - type CreateLabelVals = Set; - type NegateLabelVals = S::NegateLabelVals; + type CreateLabelVals = Unset; } ///State transition - sets the `negate_label_vals` field to Set pub struct SetNegateLabelVals(PhantomData S>); impl sealed::Sealed for SetNegateLabelVals {} impl State for SetNegateLabelVals { - type CreateLabelVals = S::CreateLabelVals; type NegateLabelVals = Set; + type CreateLabelVals = S::CreateLabelVals; + } + ///State transition - sets the `create_label_vals` field to Set + pub struct SetCreateLabelVals(PhantomData S>); + impl sealed::Sealed for SetCreateLabelVals {} + impl State for SetCreateLabelVals { + type NegateLabelVals = S::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(()); } } @@ -6432,8 +6432,8 @@ where impl<'a, S> ModEventLabelBuilder<'a, S> where S: mod_event_label_state::State, - S::CreateLabelVals: mod_event_label_state::IsSet, S::NegateLabelVals: mod_event_label_state::IsSet, + S::CreateLabelVals: mod_event_label_state::IsSet, { /// Build the final struct pub fn build(self) -> ModEventLabel<'a> { @@ -7531,104 +7531,104 @@ pub mod mod_event_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Id; - type Event; - type Subject; - type SubjectBlobCids; type CreatedBy; + type Subject; type CreatedAt; + type Event; + type SubjectBlobCids; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Id = Unset; - type Event = Unset; - type Subject = Unset; - type SubjectBlobCids = Unset; type CreatedBy = Unset; + type Subject = Unset; type CreatedAt = Unset; + type Event = Unset; + type SubjectBlobCids = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData S>); impl sealed::Sealed for SetId {} impl State for SetId { type Id = Set; - type Event = S::Event; - type Subject = S::Subject; - type SubjectBlobCids = S::SubjectBlobCids; type CreatedBy = S::CreatedBy; + type Subject = S::Subject; type CreatedAt = S::CreatedAt; + type Event = S::Event; + type SubjectBlobCids = S::SubjectBlobCids; } - ///State transition - sets the `event` field to Set - pub struct SetEvent(PhantomData S>); - impl sealed::Sealed for SetEvent {} - impl State for SetEvent { + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData S>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { type Id = S::Id; - type Event = Set; + type CreatedBy = Set; type Subject = S::Subject; - type SubjectBlobCids = S::SubjectBlobCids; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; + type Event = S::Event; + type SubjectBlobCids = S::SubjectBlobCids; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { type Id = S::Id; - type Event = S::Event; - type Subject = Set; - type SubjectBlobCids = S::SubjectBlobCids; - type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `subject_blob_cids` field to Set - pub struct SetSubjectBlobCids(PhantomData S>); - impl sealed::Sealed for SetSubjectBlobCids {} - impl State for SetSubjectBlobCids { - type Id = S::Id; - type Event = S::Event; - type Subject = S::Subject; - type SubjectBlobCids = Set; type CreatedBy = S::CreatedBy; + type Subject = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData S>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { - type Id = S::Id; type Event = S::Event; - type Subject = S::Subject; type SubjectBlobCids = S::SubjectBlobCids; - type CreatedBy = Set; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Id = S::Id; + type CreatedBy = S::CreatedBy; + type Subject = S::Subject; + type CreatedAt = Set; type Event = S::Event; + type SubjectBlobCids = S::SubjectBlobCids; + } + ///State transition - sets the `event` field to Set + pub struct SetEvent(PhantomData S>); + impl sealed::Sealed for SetEvent {} + impl State for SetEvent { + type Id = S::Id; + type CreatedBy = S::CreatedBy; type Subject = S::Subject; + type CreatedAt = S::CreatedAt; + type Event = Set; type SubjectBlobCids = S::SubjectBlobCids; + } + ///State transition - sets the `subject_blob_cids` field to Set + pub struct SetSubjectBlobCids(PhantomData S>); + impl sealed::Sealed for SetSubjectBlobCids {} + impl State for SetSubjectBlobCids { + type Id = S::Id; type CreatedBy = S::CreatedBy; - type CreatedAt = Set; + type Subject = S::Subject; + type CreatedAt = S::CreatedAt; + type Event = S::Event; + type SubjectBlobCids = 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 `event` field - pub struct event(()); - ///Marker type for the `subject` field - pub struct subject(()); - ///Marker type for the `subject_blob_cids` field - pub struct subject_blob_cids(()); ///Marker type for the `created_by` field pub struct created_by(()); + ///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 `subject_blob_cids` field + pub struct subject_blob_cids(()); } } @@ -7852,11 +7852,11 @@ impl<'a, S> ModEventViewBuilder<'a, S> where S: mod_event_view_state::State, S::Id: mod_event_view_state::IsSet, - S::Event: mod_event_view_state::IsSet, - S::Subject: mod_event_view_state::IsSet, - S::SubjectBlobCids: mod_event_view_state::IsSet, S::CreatedBy: mod_event_view_state::IsSet, + S::Subject: mod_event_view_state::IsSet, S::CreatedAt: mod_event_view_state::IsSet, + S::Event: mod_event_view_state::IsSet, + S::SubjectBlobCids: mod_event_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ModEventView<'a> { @@ -8050,105 +8050,105 @@ pub mod mod_event_view_detail_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; + type CreatedBy; + type SubjectBlobs; type Id; - type Event; type Subject; - type SubjectBlobs; - type CreatedBy; - 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 CreatedBy = Unset; + type SubjectBlobs = Unset; type Id = Unset; - type Event = Unset; type Subject = Unset; - type SubjectBlobs = Unset; - type CreatedBy = Unset; - type CreatedAt = Unset; + type Event = Unset; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type Event = S::Event; - type Subject = S::Subject; - type SubjectBlobs = S::SubjectBlobs; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `event` field to Set - pub struct SetEvent(PhantomData S>); - impl sealed::Sealed for SetEvent {} - impl State for SetEvent { + type SubjectBlobs = S::SubjectBlobs; type Id = S::Id; - type Event = Set; type Subject = S::Subject; - type SubjectBlobs = S::SubjectBlobs; - type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; + type Event = S::Event; } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData S>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { + type CreatedAt = S::CreatedAt; + type CreatedBy = Set; + type SubjectBlobs = S::SubjectBlobs; type Id = S::Id; + type Subject = S::Subject; type Event = S::Event; - type Subject = Set; - type SubjectBlobs = S::SubjectBlobs; - type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `subject_blobs` field to Set pub struct SetSubjectBlobs(PhantomData S>); impl sealed::Sealed for SetSubjectBlobs {} impl State for SetSubjectBlobs { - type Id = S::Id; - type Event = S::Event; - type Subject = S::Subject; - type SubjectBlobs = Set; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData S>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { + type CreatedBy = S::CreatedBy; + type SubjectBlobs = Set; type Id = S::Id; - type Event = S::Event; type Subject = S::Subject; - type SubjectBlobs = S::SubjectBlobs; - type CreatedBy = Set; + type Event = S::Event; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { type CreatedAt = S::CreatedAt; + type CreatedBy = S::CreatedBy; + type SubjectBlobs = S::SubjectBlobs; + type Id = Set; + type Subject = S::Subject; + type Event = S::Event; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::CreatedAt; + type CreatedBy = S::CreatedBy; + type SubjectBlobs = S::SubjectBlobs; type Id = S::Id; + type Subject = Set; type Event = S::Event; - type Subject = S::Subject; - type SubjectBlobs = S::SubjectBlobs; + } + ///State transition - sets the `event` field to Set + pub struct SetEvent(PhantomData S>); + impl sealed::Sealed for SetEvent {} + impl State for SetEvent { + type CreatedAt = S::CreatedAt; type CreatedBy = S::CreatedBy; - type CreatedAt = Set; + type SubjectBlobs = S::SubjectBlobs; + type Id = S::Id; + type Subject = S::Subject; + 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 `created_by` field + pub struct created_by(()); + ///Marker type for the `subject_blobs` field + pub struct subject_blobs(()); ///Marker type for the `id` field pub struct id(()); - ///Marker type for the `event` field - pub struct event(()); ///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_by` field - pub struct created_by(()); - ///Marker type for the `created_at` field - pub struct created_at(()); + ///Marker type for the `event` field + pub struct event(()); } } @@ -8321,12 +8321,12 @@ where impl<'a, S> ModEventViewDetailBuilder<'a, S> where S: mod_event_view_detail_state::State, + S::CreatedAt: mod_event_view_detail_state::IsSet, + S::CreatedBy: mod_event_view_detail_state::IsSet, + S::SubjectBlobs: mod_event_view_detail_state::IsSet, S::Id: mod_event_view_detail_state::IsSet, - S::Event: mod_event_view_detail_state::IsSet, S::Subject: mod_event_view_detail_state::IsSet, - S::SubjectBlobs: mod_event_view_detail_state::IsSet, - S::CreatedBy: mod_event_view_detail_state::IsSet, - S::CreatedAt: mod_event_view_detail_state::IsSet, + S::Event: mod_event_view_detail_state::IsSet, { /// Build the final struct pub fn build(self) -> ModEventViewDetail<'a> { @@ -8894,127 +8894,127 @@ pub mod record_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; - type Cid; - type Value; type BlobCids; - type IndexedAt; type Moderation; type Repo; + type Value; + type Cid; + 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 Cid = Unset; - type Value = Unset; type BlobCids = Unset; - type IndexedAt = Unset; type Moderation = Unset; type Repo = Unset; + type Value = Unset; + type Cid = Unset; + type Uri = Unset; + type IndexedAt = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; + ///State transition - sets the `blob_cids` field to Set + pub struct SetBlobCids(PhantomData S>); + impl sealed::Sealed for SetBlobCids {} + impl State for SetBlobCids { + type BlobCids = Set; + type Moderation = S::Moderation; + type Repo = S::Repo; + type Value = S::Value; type Cid = S::Cid; + type Uri = S::Uri; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `moderation` field to Set + pub struct SetModeration(PhantomData S>); + impl sealed::Sealed for SetModeration {} + impl State for SetModeration { + type BlobCids = S::BlobCids; + type Moderation = Set; + type Repo = S::Repo; type Value = S::Value; + type Cid = S::Cid; + type Uri = S::Uri; + type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `repo` field to Set + pub struct SetRepo(PhantomData S>); + impl sealed::Sealed for SetRepo {} + impl State for SetRepo { type BlobCids = S::BlobCids; + type Moderation = S::Moderation; + type Repo = Set; + type Value = S::Value; + type Cid = S::Cid; + type Uri = S::Uri; type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `value` field to Set + pub struct SetValue(PhantomData S>); + impl sealed::Sealed for SetValue {} + impl State for SetValue { + type BlobCids = S::BlobCids; type Moderation = S::Moderation; type Repo = S::Repo; + type Value = Set; + type Cid = S::Cid; + type Uri = S::Uri; + type IndexedAt = S::IndexedAt; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; - type Cid = Set; - type Value = S::Value; type BlobCids = S::BlobCids; - type IndexedAt = S::IndexedAt; type Moderation = S::Moderation; type Repo = S::Repo; - } - ///State transition - sets the `value` field to Set - pub struct SetValue(PhantomData S>); - impl sealed::Sealed for SetValue {} - impl State for SetValue { + type Value = S::Value; + type Cid = Set; type Uri = S::Uri; - type Cid = S::Cid; - type Value = Set; - type BlobCids = S::BlobCids; type IndexedAt = S::IndexedAt; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type BlobCids = S::BlobCids; type Moderation = S::Moderation; type Repo = S::Repo; - } - ///State transition - sets the `blob_cids` field to Set - pub struct SetBlobCids(PhantomData S>); - impl sealed::Sealed for SetBlobCids {} - impl State for SetBlobCids { - type Uri = S::Uri; - type Cid = S::Cid; type Value = S::Value; - type BlobCids = Set; + type Cid = S::Cid; + type Uri = Set; type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; - type Repo = S::Repo; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; - type Cid = S::Cid; - type Value = S::Value; type BlobCids = S::BlobCids; - type IndexedAt = Set; type Moderation = S::Moderation; type Repo = S::Repo; - } - ///State transition - sets the `moderation` field to Set - pub struct SetModeration(PhantomData S>); - impl sealed::Sealed for SetModeration {} - impl State for SetModeration { - type Uri = S::Uri; - type Cid = S::Cid; type Value = S::Value; - type BlobCids = S::BlobCids; - type IndexedAt = S::IndexedAt; - type Moderation = Set; - type Repo = S::Repo; - } - ///State transition - sets the `repo` field to Set - pub struct SetRepo(PhantomData S>); - impl sealed::Sealed for SetRepo {} - impl State for SetRepo { - type Uri = S::Uri; type Cid = S::Cid; - type Value = S::Value; - type BlobCids = S::BlobCids; - type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; - type Repo = Set; + type Uri = S::Uri; + type IndexedAt = 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 `value` field - pub struct value(()); ///Marker type for the `blob_cids` field pub struct blob_cids(()); - ///Marker type for the `indexed_at` field - pub struct indexed_at(()); ///Marker type for the `moderation` field pub struct moderation(()); ///Marker type for the `repo` field pub struct repo(()); + ///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 `indexed_at` field + pub struct indexed_at(()); } } @@ -9187,13 +9187,13 @@ where impl<'a, S> RecordViewBuilder<'a, S> where S: record_view_state::State, - S::Uri: record_view_state::IsSet, - S::Cid: record_view_state::IsSet, - S::Value: record_view_state::IsSet, S::BlobCids: record_view_state::IsSet, - S::IndexedAt: record_view_state::IsSet, S::Moderation: record_view_state::IsSet, S::Repo: record_view_state::IsSet, + S::Value: record_view_state::IsSet, + S::Cid: record_view_state::IsSet, + S::Uri: record_view_state::IsSet, + S::IndexedAt: record_view_state::IsSet, { /// Build the final struct pub fn build(self) -> RecordView<'a> { @@ -9286,127 +9286,127 @@ pub mod record_view_detail_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Uri; + type Blobs; type Cid; + type Moderation; type Value; - type Blobs; type IndexedAt; - type Moderation; type Repo; + 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 Blobs = Unset; type Cid = Unset; + type Moderation = Unset; type Value = Unset; - type Blobs = Unset; type IndexedAt = Unset; - type Moderation = Unset; type Repo = Unset; + type Uri = Unset; } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { - type Uri = Set; + ///State transition - sets the `blobs` field to Set + pub struct SetBlobs(PhantomData S>); + impl sealed::Sealed for SetBlobs {} + impl State for SetBlobs { + type Blobs = Set; type Cid = S::Cid; + type Moderation = S::Moderation; type Value = S::Value; - type Blobs = S::Blobs; type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; type Repo = S::Repo; + type Uri = S::Uri; } ///State transition - sets the `cid` field to Set pub struct SetCid(PhantomData S>); impl sealed::Sealed for SetCid {} impl State for SetCid { - type Uri = S::Uri; + type Blobs = S::Blobs; type Cid = Set; + type Moderation = S::Moderation; type Value = S::Value; + type IndexedAt = S::IndexedAt; + type Repo = S::Repo; + type Uri = S::Uri; + } + ///State transition - sets the `moderation` field to Set + pub struct SetModeration(PhantomData S>); + impl sealed::Sealed for SetModeration {} + impl State for SetModeration { type Blobs = S::Blobs; + type Cid = S::Cid; + type Moderation = Set; + type Value = S::Value; type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; type Repo = S::Repo; + type Uri = S::Uri; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); impl sealed::Sealed for SetValue {} impl State for SetValue { - type Uri = S::Uri; + type Blobs = S::Blobs; type Cid = S::Cid; + type Moderation = S::Moderation; type Value = Set; - type Blobs = S::Blobs; type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; - type Repo = S::Repo; - } - ///State transition - sets the `blobs` field to Set - pub struct SetBlobs(PhantomData S>); - impl sealed::Sealed for SetBlobs {} - impl State for SetBlobs { - type Uri = S::Uri; - type Cid = S::Cid; - type Value = S::Value; - type Blobs = Set; - type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; type Repo = S::Repo; + type Uri = S::Uri; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { - type Uri = S::Uri; + type Blobs = S::Blobs; type Cid = S::Cid; + type Moderation = S::Moderation; type Value = S::Value; - type Blobs = S::Blobs; type IndexedAt = Set; - type Moderation = S::Moderation; type Repo = S::Repo; - } - ///State transition - sets the `moderation` field to Set - pub struct SetModeration(PhantomData S>); - impl sealed::Sealed for SetModeration {} - impl State for SetModeration { type Uri = S::Uri; - type Cid = S::Cid; - type Value = S::Value; - type Blobs = S::Blobs; - type IndexedAt = S::IndexedAt; - type Moderation = Set; - type Repo = S::Repo; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData S>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Uri = S::Uri; + type Blobs = S::Blobs; type Cid = S::Cid; + type Moderation = S::Moderation; type Value = S::Value; - type Blobs = S::Blobs; type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; type Repo = Set; + type Uri = S::Uri; + } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Blobs = S::Blobs; + type Cid = S::Cid; + type Moderation = S::Moderation; + type Value = S::Value; + type IndexedAt = S::IndexedAt; + type Repo = S::Repo; + 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 `blobs` field + pub struct blobs(()); ///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 `blobs` field - pub struct blobs(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); - ///Marker type for the `moderation` field - pub struct moderation(()); ///Marker type for the `repo` field pub struct repo(()); + ///Marker type for the `uri` field + pub struct uri(()); } } @@ -9599,13 +9599,13 @@ where impl<'a, S> RecordViewDetailBuilder<'a, S> where S: record_view_detail_state::State, - S::Uri: record_view_detail_state::IsSet, + S::Blobs: record_view_detail_state::IsSet, S::Cid: record_view_detail_state::IsSet, + S::Moderation: record_view_detail_state::IsSet, S::Value: record_view_detail_state::IsSet, - S::Blobs: record_view_detail_state::IsSet, S::IndexedAt: record_view_detail_state::IsSet, - S::Moderation: record_view_detail_state::IsSet, S::Repo: record_view_detail_state::IsSet, + S::Uri: record_view_detail_state::IsSet, { /// Build the final struct pub fn build(self) -> RecordViewDetail<'a> { @@ -9906,85 +9906,85 @@ pub mod repo_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; - type Handle; - type RelatedRecords; type IndexedAt; + type RelatedRecords; type Moderation; + type Did; + type Handle; } /// 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 RelatedRecords = Unset; type IndexedAt = Unset; + type RelatedRecords = Unset; type Moderation = Unset; + type Did = Unset; + type Handle = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; + ///State transition - sets the `indexed_at` field to Set + pub struct SetIndexedAt(PhantomData S>); + impl sealed::Sealed for SetIndexedAt {} + impl State for SetIndexedAt { + type IndexedAt = Set; type RelatedRecords = S::RelatedRecords; - type IndexedAt = S::IndexedAt; type Moderation = S::Moderation; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData S>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { type Did = S::Did; - type Handle = Set; - type RelatedRecords = S::RelatedRecords; - type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; + type Handle = S::Handle; } ///State transition - sets the `related_records` field to Set pub struct SetRelatedRecords(PhantomData S>); impl sealed::Sealed for SetRelatedRecords {} impl State for SetRelatedRecords { - type Did = S::Did; - type Handle = S::Handle; - type RelatedRecords = Set; type IndexedAt = S::IndexedAt; + type RelatedRecords = Set; type Moderation = S::Moderation; - } - ///State transition - sets the `indexed_at` field to Set - pub struct SetIndexedAt(PhantomData S>); - impl sealed::Sealed for SetIndexedAt {} - impl State for SetIndexedAt { type Did = S::Did; type Handle = S::Handle; - type RelatedRecords = S::RelatedRecords; - type IndexedAt = Set; - type Moderation = S::Moderation; } ///State transition - sets the `moderation` field to Set pub struct SetModeration(PhantomData S>); impl sealed::Sealed for SetModeration {} impl State for SetModeration { + type IndexedAt = S::IndexedAt; + type RelatedRecords = S::RelatedRecords; + type Moderation = Set; type Did = S::Did; type Handle = S::Handle; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type IndexedAt = S::IndexedAt; type RelatedRecords = S::RelatedRecords; + type Moderation = S::Moderation; + type Did = Set; + type Handle = S::Handle; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData S>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { type IndexedAt = S::IndexedAt; - type Moderation = Set; + type RelatedRecords = S::RelatedRecords; + type Moderation = S::Moderation; + type Did = S::Did; + type Handle = 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 `related_records` field - pub struct related_records(()); ///Marker type for the `indexed_at` field pub struct indexed_at(()); + ///Marker type for the `related_records` field + pub struct related_records(()); ///Marker type for the `moderation` field pub struct moderation(()); + ///Marker type for the `did` field + pub struct did(()); + ///Marker type for the `handle` field + pub struct handle(()); } } @@ -10240,11 +10240,11 @@ impl<'a, S: repo_view_state::State> RepoViewBuilder<'a, S> { impl<'a, S> RepoViewBuilder<'a, S> where S: repo_view_state::State, - S::Did: repo_view_state::IsSet, - S::Handle: repo_view_state::IsSet, - S::RelatedRecords: repo_view_state::IsSet, S::IndexedAt: repo_view_state::IsSet, + S::RelatedRecords: repo_view_state::IsSet, S::Moderation: repo_view_state::IsSet, + S::Did: repo_view_state::IsSet, + S::Handle: repo_view_state::IsSet, { /// Build the final struct pub fn build(self) -> RepoView<'a> { @@ -10366,83 +10366,83 @@ pub mod repo_view_detail_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; - type Handle; type RelatedRecords; + type Did; type IndexedAt; + type Handle; type Moderation; } /// 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 RelatedRecords = Unset; + type Did = Unset; type IndexedAt = Unset; + type Handle = Unset; type Moderation = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; - type Handle = S::Handle; - type RelatedRecords = S::RelatedRecords; - type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; - } - ///State transition - sets the `handle` field to Set - pub struct SetHandle(PhantomData S>); - impl sealed::Sealed for SetHandle {} - impl State for SetHandle { - type Did = S::Did; - type Handle = Set; - type RelatedRecords = S::RelatedRecords; - type IndexedAt = S::IndexedAt; - type Moderation = S::Moderation; - } ///State transition - sets the `related_records` field to Set pub struct SetRelatedRecords(PhantomData S>); impl sealed::Sealed for SetRelatedRecords {} impl State for SetRelatedRecords { + type RelatedRecords = Set; type Did = S::Did; + type IndexedAt = S::IndexedAt; type Handle = S::Handle; - type RelatedRecords = Set; + type Moderation = S::Moderation; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type RelatedRecords = S::RelatedRecords; + type Did = Set; type IndexedAt = S::IndexedAt; + type Handle = S::Handle; type Moderation = S::Moderation; } ///State transition - sets the `indexed_at` field to Set pub struct SetIndexedAt(PhantomData S>); impl sealed::Sealed for SetIndexedAt {} impl State for SetIndexedAt { + type RelatedRecords = S::RelatedRecords; type Did = S::Did; + type IndexedAt = Set; type Handle = S::Handle; + type Moderation = S::Moderation; + } + ///State transition - sets the `handle` field to Set + pub struct SetHandle(PhantomData S>); + impl sealed::Sealed for SetHandle {} + impl State for SetHandle { type RelatedRecords = S::RelatedRecords; - type IndexedAt = Set; + type Did = S::Did; + type IndexedAt = S::IndexedAt; + type Handle = Set; type Moderation = S::Moderation; } ///State transition - sets the `moderation` field to Set pub struct SetModeration(PhantomData S>); impl sealed::Sealed for SetModeration {} impl State for SetModeration { - type Did = S::Did; - type Handle = S::Handle; type RelatedRecords = S::RelatedRecords; + type Did = S::Did; type IndexedAt = S::IndexedAt; + type Handle = S::Handle; type Moderation = 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 `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 `handle` field + pub struct handle(()); ///Marker type for the `moderation` field pub struct moderation(()); } @@ -10763,10 +10763,10 @@ impl<'a, S: repo_view_detail_state::State> RepoViewDetailBuilder<'a, S> { impl<'a, S> RepoViewDetailBuilder<'a, S> where S: repo_view_detail_state::State, - S::Did: repo_view_detail_state::IsSet, - S::Handle: repo_view_detail_state::IsSet, S::RelatedRecords: repo_view_detail_state::IsSet, + S::Did: repo_view_detail_state::IsSet, S::IndexedAt: repo_view_detail_state::IsSet, + S::Handle: repo_view_detail_state::IsSet, S::Moderation: repo_view_detail_state::IsSet, { /// Build the final struct @@ -11014,177 +11014,177 @@ pub mod reporter_stats_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Did; + type LabeledRecordCount; + type TakendownRecordCount; type AccountReportCount; - type RecordReportCount; type ReportedAccountCount; - type ReportedRecordCount; type TakendownAccountCount; - type TakendownRecordCount; type LabeledAccountCount; - type LabeledRecordCount; + type Did; + type ReportedRecordCount; + 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 LabeledRecordCount = Unset; + type TakendownRecordCount = Unset; type AccountReportCount = Unset; - type RecordReportCount = Unset; type ReportedAccountCount = Unset; - type ReportedRecordCount = Unset; type TakendownAccountCount = Unset; - type TakendownRecordCount = Unset; type LabeledAccountCount = Unset; - type LabeledRecordCount = Unset; + type Did = Unset; + type ReportedRecordCount = Unset; + type RecordReportCount = Unset; } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Did = Set; + ///State transition - sets the `labeled_record_count` field to Set + pub struct SetLabeledRecordCount(PhantomData S>); + impl sealed::Sealed for SetLabeledRecordCount {} + impl State for SetLabeledRecordCount { + type LabeledRecordCount = Set; + type TakendownRecordCount = S::TakendownRecordCount; type AccountReportCount = S::AccountReportCount; - type RecordReportCount = S::RecordReportCount; type ReportedAccountCount = S::ReportedAccountCount; - type ReportedRecordCount = S::ReportedRecordCount; type TakendownAccountCount = S::TakendownAccountCount; - type TakendownRecordCount = S::TakendownRecordCount; type LabeledAccountCount = S::LabeledAccountCount; + type Did = S::Did; + type ReportedRecordCount = S::ReportedRecordCount; + type RecordReportCount = S::RecordReportCount; + } + ///State transition - sets the `takendown_record_count` field to Set + pub struct SetTakendownRecordCount(PhantomData S>); + impl sealed::Sealed for SetTakendownRecordCount {} + impl State for SetTakendownRecordCount { type LabeledRecordCount = S::LabeledRecordCount; + type TakendownRecordCount = Set; + type AccountReportCount = S::AccountReportCount; + type ReportedAccountCount = S::ReportedAccountCount; + type TakendownAccountCount = S::TakendownAccountCount; + type LabeledAccountCount = S::LabeledAccountCount; + type Did = S::Did; + type ReportedRecordCount = S::ReportedRecordCount; + type RecordReportCount = S::RecordReportCount; } ///State transition - sets the `account_report_count` field to Set pub struct SetAccountReportCount(PhantomData S>); impl sealed::Sealed for SetAccountReportCount {} impl State for SetAccountReportCount { - type Did = S::Did; + type LabeledRecordCount = S::LabeledRecordCount; + type TakendownRecordCount = S::TakendownRecordCount; type AccountReportCount = Set; - type RecordReportCount = S::RecordReportCount; type ReportedAccountCount = S::ReportedAccountCount; - type ReportedRecordCount = S::ReportedRecordCount; type TakendownAccountCount = S::TakendownAccountCount; - type TakendownRecordCount = S::TakendownRecordCount; type LabeledAccountCount = S::LabeledAccountCount; - type LabeledRecordCount = S::LabeledRecordCount; - } - ///State transition - sets the `record_report_count` field to Set - pub struct SetRecordReportCount(PhantomData S>); - impl sealed::Sealed for SetRecordReportCount {} - impl State for SetRecordReportCount { type Did = S::Did; - type AccountReportCount = S::AccountReportCount; - type RecordReportCount = Set; - type ReportedAccountCount = S::ReportedAccountCount; type ReportedRecordCount = S::ReportedRecordCount; - type TakendownAccountCount = S::TakendownAccountCount; - type TakendownRecordCount = S::TakendownRecordCount; - type LabeledAccountCount = S::LabeledAccountCount; - type LabeledRecordCount = S::LabeledRecordCount; + type RecordReportCount = S::RecordReportCount; } ///State transition - sets the `reported_account_count` field to Set pub struct SetReportedAccountCount(PhantomData S>); impl sealed::Sealed for SetReportedAccountCount {} impl State for SetReportedAccountCount { - type Did = S::Did; + type LabeledRecordCount = S::LabeledRecordCount; + type TakendownRecordCount = S::TakendownRecordCount; type AccountReportCount = S::AccountReportCount; - type RecordReportCount = S::RecordReportCount; type ReportedAccountCount = Set; - type ReportedRecordCount = S::ReportedRecordCount; type TakendownAccountCount = S::TakendownAccountCount; - type TakendownRecordCount = S::TakendownRecordCount; type LabeledAccountCount = S::LabeledAccountCount; - type LabeledRecordCount = S::LabeledRecordCount; - } - ///State transition - sets the `reported_record_count` field to Set - pub struct SetReportedRecordCount(PhantomData S>); - impl sealed::Sealed for SetReportedRecordCount {} - impl State for SetReportedRecordCount { type Did = S::Did; - type AccountReportCount = S::AccountReportCount; + type ReportedRecordCount = S::ReportedRecordCount; type RecordReportCount = S::RecordReportCount; - type ReportedAccountCount = S::ReportedAccountCount; - type ReportedRecordCount = Set; - type TakendownAccountCount = S::TakendownAccountCount; - type TakendownRecordCount = S::TakendownRecordCount; - type LabeledAccountCount = S::LabeledAccountCount; - type LabeledRecordCount = S::LabeledRecordCount; } ///State transition - sets the `takendown_account_count` field to Set pub struct SetTakendownAccountCount(PhantomData S>); impl sealed::Sealed for SetTakendownAccountCount {} impl State for SetTakendownAccountCount { - type Did = S::Did; + type LabeledRecordCount = S::LabeledRecordCount; + type TakendownRecordCount = S::TakendownRecordCount; type AccountReportCount = S::AccountReportCount; - type RecordReportCount = S::RecordReportCount; type ReportedAccountCount = S::ReportedAccountCount; - type ReportedRecordCount = S::ReportedRecordCount; type TakendownAccountCount = Set; - type TakendownRecordCount = S::TakendownRecordCount; type LabeledAccountCount = S::LabeledAccountCount; - type LabeledRecordCount = S::LabeledRecordCount; - } - ///State transition - sets the `takendown_record_count` field to Set - pub struct SetTakendownRecordCount(PhantomData S>); - impl sealed::Sealed for SetTakendownRecordCount {} - impl State for SetTakendownRecordCount { type Did = S::Did; - type AccountReportCount = S::AccountReportCount; - type RecordReportCount = S::RecordReportCount; - type ReportedAccountCount = S::ReportedAccountCount; type ReportedRecordCount = S::ReportedRecordCount; - type TakendownAccountCount = S::TakendownAccountCount; - type TakendownRecordCount = Set; - type LabeledAccountCount = S::LabeledAccountCount; - type LabeledRecordCount = S::LabeledRecordCount; + type RecordReportCount = S::RecordReportCount; } ///State transition - sets the `labeled_account_count` field to Set pub struct SetLabeledAccountCount(PhantomData S>); impl sealed::Sealed for SetLabeledAccountCount {} impl State for SetLabeledAccountCount { + type LabeledRecordCount = S::LabeledRecordCount; + type TakendownRecordCount = S::TakendownRecordCount; + type AccountReportCount = S::AccountReportCount; + type ReportedAccountCount = S::ReportedAccountCount; + type TakendownAccountCount = S::TakendownAccountCount; + type LabeledAccountCount = Set; type Did = S::Did; + type ReportedRecordCount = S::ReportedRecordCount; + type RecordReportCount = S::RecordReportCount; + } + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { + type LabeledRecordCount = S::LabeledRecordCount; + type TakendownRecordCount = S::TakendownRecordCount; + type AccountReportCount = S::AccountReportCount; + type ReportedAccountCount = S::ReportedAccountCount; + type TakendownAccountCount = S::TakendownAccountCount; + type LabeledAccountCount = S::LabeledAccountCount; + type Did = Set; + type ReportedRecordCount = S::ReportedRecordCount; + type RecordReportCount = S::RecordReportCount; + } + ///State transition - sets the `reported_record_count` field to Set + pub struct SetReportedRecordCount(PhantomData S>); + impl sealed::Sealed for SetReportedRecordCount {} + impl State for SetReportedRecordCount { + type LabeledRecordCount = S::LabeledRecordCount; + type TakendownRecordCount = S::TakendownRecordCount; type AccountReportCount = S::AccountReportCount; - type RecordReportCount = S::RecordReportCount; type ReportedAccountCount = S::ReportedAccountCount; - type ReportedRecordCount = S::ReportedRecordCount; type TakendownAccountCount = S::TakendownAccountCount; - type TakendownRecordCount = S::TakendownRecordCount; - type LabeledAccountCount = Set; - type LabeledRecordCount = S::LabeledRecordCount; - } - ///State transition - sets the `labeled_record_count` field to Set - pub struct SetLabeledRecordCount(PhantomData S>); - impl sealed::Sealed for SetLabeledRecordCount {} - impl State for SetLabeledRecordCount { + type LabeledAccountCount = S::LabeledAccountCount; type Did = S::Did; - type AccountReportCount = S::AccountReportCount; + type ReportedRecordCount = Set; type RecordReportCount = S::RecordReportCount; + } + ///State transition - sets the `record_report_count` field to Set + pub struct SetRecordReportCount(PhantomData S>); + impl sealed::Sealed for SetRecordReportCount {} + impl State for SetRecordReportCount { + type LabeledRecordCount = S::LabeledRecordCount; + type TakendownRecordCount = S::TakendownRecordCount; + type AccountReportCount = S::AccountReportCount; type ReportedAccountCount = S::ReportedAccountCount; - type ReportedRecordCount = S::ReportedRecordCount; type TakendownAccountCount = S::TakendownAccountCount; - type TakendownRecordCount = S::TakendownRecordCount; type LabeledAccountCount = S::LabeledAccountCount; - type LabeledRecordCount = Set; + type Did = S::Did; + type ReportedRecordCount = S::ReportedRecordCount; + 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_record_count` field + pub struct labeled_record_count(()); + ///Marker type for the `takendown_record_count` field + pub struct takendown_record_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(()); ///Marker type for the `reported_account_count` field pub struct reported_account_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 `takendown_record_count` field - pub struct takendown_record_count(()); ///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 `did` field + pub struct did(()); + ///Marker type for the `reported_record_count` field + pub struct reported_record_count(()); + ///Marker type for the `record_report_count` field + pub struct record_report_count(()); } } @@ -11407,15 +11407,15 @@ where impl<'a, S> ReporterStatsBuilder<'a, S> where S: reporter_stats_state::State, - S::Did: reporter_stats_state::IsSet, + S::LabeledRecordCount: reporter_stats_state::IsSet, + S::TakendownRecordCount: reporter_stats_state::IsSet, S::AccountReportCount: reporter_stats_state::IsSet, - S::RecordReportCount: reporter_stats_state::IsSet, S::ReportedAccountCount: reporter_stats_state::IsSet, - S::ReportedRecordCount: reporter_stats_state::IsSet, S::TakendownAccountCount: reporter_stats_state::IsSet, - S::TakendownRecordCount: reporter_stats_state::IsSet, S::LabeledAccountCount: reporter_stats_state::IsSet, - S::LabeledRecordCount: reporter_stats_state::IsSet, + S::Did: reporter_stats_state::IsSet, + S::ReportedRecordCount: reporter_stats_state::IsSet, + S::RecordReportCount: reporter_stats_state::IsSet, { /// Build the final struct pub fn build(self) -> ReporterStats<'a> { @@ -11694,104 +11694,104 @@ pub mod scheduled_action_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Id; - type Action; - type Did; type CreatedBy; - type CreatedAt; type Status; + type CreatedAt; + type Did; + type Action; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Id = Unset; - type Action = Unset; - type Did = Unset; type CreatedBy = Unset; - type CreatedAt = Unset; type Status = Unset; + type CreatedAt = Unset; + type Did = Unset; + type Action = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData S>); impl sealed::Sealed for SetId {} impl State for SetId { type Id = Set; - type Action = S::Action; - type Did = S::Did; type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; type Status = S::Status; - } - ///State transition - sets the `action` field to Set - pub struct SetAction(PhantomData S>); - impl sealed::Sealed for SetAction {} - impl State for SetAction { - type Id = S::Id; - type Action = Set; - type Did = S::Did; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; - type Status = S::Status; - } - ///State transition - sets the `did` field to Set - pub struct SetDid(PhantomData S>); - impl sealed::Sealed for SetDid {} - impl State for SetDid { - type Id = S::Id; + type Did = S::Did; type Action = S::Action; - type Did = Set; - type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; - type Status = S::Status; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData S>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { type Id = S::Id; - type Action = S::Action; - type Did = S::Did; type CreatedBy = Set; - type CreatedAt = S::CreatedAt; type Status = S::Status; + type CreatedAt = S::CreatedAt; + type Did = S::Did; + type Action = S::Action; + } + ///State transition - sets the `status` field to Set + pub struct SetStatus(PhantomData S>); + impl sealed::Sealed for SetStatus {} + impl State for SetStatus { + type Id = S::Id; + type CreatedBy = S::CreatedBy; + type Status = Set; + type CreatedAt = S::CreatedAt; + type Did = S::Did; + type Action = S::Action; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Id = S::Id; - type Action = S::Action; - type Did = S::Did; type CreatedBy = S::CreatedBy; - type CreatedAt = Set; type Status = S::Status; + type CreatedAt = Set; + type Did = S::Did; + type Action = S::Action; } - ///State transition - sets the `status` field to Set - pub struct SetStatus(PhantomData S>); - impl sealed::Sealed for SetStatus {} - impl State for SetStatus { + ///State transition - sets the `did` field to Set + pub struct SetDid(PhantomData S>); + impl sealed::Sealed for SetDid {} + impl State for SetDid { type Id = S::Id; + type CreatedBy = S::CreatedBy; + type Status = S::Status; + type CreatedAt = S::CreatedAt; + type Did = Set; type Action = S::Action; - type Did = S::Did; + } + ///State transition - sets the `action` field to Set + pub struct SetAction(PhantomData S>); + impl sealed::Sealed for SetAction {} + impl State for SetAction { + type Id = S::Id; type CreatedBy = S::CreatedBy; + type Status = S::Status; type CreatedAt = S::CreatedAt; - type Status = Set; + type Did = S::Did; + type Action = 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 `action` field - pub struct action(()); - ///Marker type for the `did` field - pub struct did(()); ///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 `status` field pub struct status(()); + ///Marker type for the `created_at` field + pub struct created_at(()); + ///Marker type for the `did` field + pub struct did(()); + ///Marker type for the `action` field + pub struct action(()); } } @@ -12129,11 +12129,11 @@ impl<'a, S> ScheduledActionViewBuilder<'a, S> where S: scheduled_action_view_state::State, S::Id: scheduled_action_view_state::IsSet, - S::Action: scheduled_action_view_state::IsSet, - S::Did: scheduled_action_view_state::IsSet, S::CreatedBy: scheduled_action_view_state::IsSet, - S::CreatedAt: scheduled_action_view_state::IsSet, S::Status: scheduled_action_view_state::IsSet, + S::CreatedAt: scheduled_action_view_state::IsSet, + S::Did: scheduled_action_view_state::IsSet, + S::Action: scheduled_action_view_state::IsSet, { /// Build the final struct pub fn build(self) -> ScheduledActionView<'a> { @@ -12392,84 +12392,84 @@ pub mod subject_status_view_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Id; - type Subject; type CreatedAt; type UpdatedAt; type ReviewState; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { type Id = Unset; - type Subject = Unset; type CreatedAt = Unset; type UpdatedAt = Unset; type ReviewState = Unset; + type Subject = Unset; } ///State transition - sets the `id` field to Set pub struct SetId(PhantomData S>); impl sealed::Sealed for SetId {} impl State for SetId { type Id = Set; - type Subject = S::Subject; - type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; - type ReviewState = S::ReviewState; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Id = S::Id; - type Subject = Set; type CreatedAt = S::CreatedAt; type UpdatedAt = S::UpdatedAt; type ReviewState = S::ReviewState; + type Subject = S::Subject; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { type Id = S::Id; - type Subject = S::Subject; type CreatedAt = Set; type UpdatedAt = S::UpdatedAt; type ReviewState = S::ReviewState; + type Subject = S::Subject; } ///State transition - sets the `updated_at` field to Set pub struct SetUpdatedAt(PhantomData S>); impl sealed::Sealed for SetUpdatedAt {} impl State for SetUpdatedAt { type Id = S::Id; - type Subject = S::Subject; type CreatedAt = S::CreatedAt; type UpdatedAt = Set; type ReviewState = S::ReviewState; + type Subject = S::Subject; } ///State transition - sets the `review_state` field to Set pub struct SetReviewState(PhantomData S>); impl sealed::Sealed for SetReviewState {} impl State for SetReviewState { type Id = S::Id; - type Subject = S::Subject; type CreatedAt = S::CreatedAt; type UpdatedAt = S::UpdatedAt; type ReviewState = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Id = S::Id; + type CreatedAt = S::CreatedAt; + type UpdatedAt = S::UpdatedAt; + type ReviewState = S::ReviewState; + type Subject = 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 `subject` field - pub struct subject(()); ///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 `subject` field + pub struct subject(()); } } @@ -13005,10 +13005,10 @@ impl<'a, S> SubjectStatusViewBuilder<'a, S> where S: subject_status_view_state::State, S::Id: subject_status_view_state::IsSet, - S::Subject: subject_status_view_state::IsSet, S::CreatedAt: subject_status_view_state::IsSet, S::UpdatedAt: subject_status_view_state::IsSet, S::ReviewState: subject_status_view_state::IsSet, + S::Subject: subject_status_view_state::IsSet, { /// Build the final struct pub fn build(self) -> SubjectStatusView<'a> { @@ -13204,37 +13204,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 S>); - impl sealed::Sealed for SetType {} - impl State for SetType { - type Type = Set; - type Subject = S::Subject; + type Type = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Type = S::Type; type Subject = Set; + type Type = S::Type; + } + ///State transition - sets the `type` field to Set + pub struct SetType(PhantomData S>); + impl sealed::Sealed for SetType {} + impl State for SetType { + type Subject = S::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(()); } } @@ -13387,8 +13387,8 @@ where impl<'a, S> SubjectViewBuilder<'a, S> where S: subject_view_state::State, - S::Type: subject_view_state::IsSet, S::Subject: subject_view_state::IsSet, + S::Type: subject_view_state::IsSet, { /// Build the final struct pub fn build(self) -> SubjectView<'a> { @@ -13520,49 +13520,49 @@ pub mod video_details_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Width; type Height; + type Width; type Length; } /// 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 Length = Unset; } - ///State transition - sets the `width` field to Set - pub struct SetWidth(PhantomData S>); - impl sealed::Sealed for SetWidth {} - impl State for SetWidth { - type Width = Set; - type Height = S::Height; - type Length = S::Length; - } ///State transition - sets the `height` field to Set pub struct SetHeight(PhantomData S>); impl sealed::Sealed for SetHeight {} impl State for SetHeight { - type Width = S::Width; type Height = Set; + type Width = S::Width; + type Length = S::Length; + } + ///State transition - sets the `width` field to Set + pub struct SetWidth(PhantomData S>); + impl sealed::Sealed for SetWidth {} + impl State for SetWidth { + type Height = S::Height; + type Width = Set; type Length = S::Length; } ///State transition - sets the `length` field to Set pub struct SetLength(PhantomData S>); impl sealed::Sealed for SetLength {} impl State for SetLength { - type Width = S::Width; type Height = S::Height; + type Width = S::Width; type Length = 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 `length` field pub struct length(()); } @@ -13657,8 +13657,8 @@ where impl<'a, S> VideoDetailsBuilder<'a, S> where S: video_details_state::State, - S::Width: video_details_state::IsSet, S::Height: video_details_state::IsSet, + S::Width: video_details_state::IsSet, S::Length: video_details_state::IsSet, { /// Build the final struct 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 43a4388a..9017601e 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 @@ -37,37 +37,37 @@ pub mod cancellation_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 S>); - impl sealed::Sealed for SetSucceeded {} - impl State for SetSucceeded { - type Succeeded = Set; - type Failed = S::Failed; + type Succeeded = Unset; } ///State transition - sets the `failed` field to Set pub struct SetFailed(PhantomData S>); impl sealed::Sealed for SetFailed {} impl State for SetFailed { - type Succeeded = S::Succeeded; type Failed = Set; + type Succeeded = S::Succeeded; + } + ///State transition - sets the `succeeded` field to Set + pub struct SetSucceeded(PhantomData S>); + impl sealed::Sealed for SetSucceeded {} + impl State for SetSucceeded { + type Failed = S::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(()); } } @@ -152,8 +152,8 @@ where impl<'a, S> CancellationResultsBuilder<'a, S> where S: cancellation_results_state::State, - S::Succeeded: cancellation_results_state::IsSet, S::Failed: cancellation_results_state::IsSet, + S::Succeeded: cancellation_results_state::IsSet, { /// Build the final struct pub fn build(self) -> CancellationResults<'a> { 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 4e311378..733c8ac7 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/emit_event.rs @@ -47,51 +47,51 @@ pub mod emit_event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Event; type Subject; type CreatedBy; + type Event; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Event = Unset; type Subject = Unset; type CreatedBy = Unset; - } - ///State transition - sets the `event` field to Set - pub struct SetEvent(PhantomData S>); - impl sealed::Sealed for SetEvent {} - impl State for SetEvent { - type Event = Set; - type Subject = S::Subject; - type CreatedBy = S::CreatedBy; + type Event = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Event = S::Event; type Subject = Set; type CreatedBy = S::CreatedBy; + type Event = S::Event; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData S>); impl sealed::Sealed for SetCreatedBy {} impl State for SetCreatedBy { - type Event = S::Event; type Subject = S::Subject; type CreatedBy = Set; + type Event = S::Event; + } + ///State transition - sets the `event` field to Set + pub struct SetEvent(PhantomData S>); + impl sealed::Sealed for SetEvent {} + impl State for SetEvent { + type Subject = S::Subject; + type CreatedBy = S::CreatedBy; + type Event = 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 `subject` field pub struct subject(()); ///Marker type for the `created_by` field pub struct created_by(()); + ///Marker type for the `event` field + pub struct event(()); } } @@ -244,9 +244,9 @@ impl<'a, S: emit_event_state::State> EmitEventBuilder<'a, S> { impl<'a, S> EmitEventBuilder<'a, S> where S: emit_event_state::State, - S::Event: emit_event_state::IsSet, S::Subject: emit_event_state::IsSet, S::CreatedBy: emit_event_state::IsSet, + S::Event: emit_event_state::IsSet, { /// Build the final struct pub fn build(self) -> EmitEvent<'a> { 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 919c99c6..3d0ed8f6 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 @@ -575,51 +575,51 @@ pub mod timeline_item_summary_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Count; type EventSubjectType; type EventType; - 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 EventSubjectType = Unset; type EventType = Unset; - type Count = Unset; + } + ///State transition - sets the `count` field to Set + pub struct SetCount(PhantomData S>); + impl sealed::Sealed for SetCount {} + impl State for SetCount { + type Count = Set; + type EventSubjectType = S::EventSubjectType; + type EventType = S::EventType; } ///State transition - sets the `event_subject_type` field to Set pub struct SetEventSubjectType(PhantomData S>); impl sealed::Sealed for SetEventSubjectType {} impl State for SetEventSubjectType { + type Count = S::Count; type EventSubjectType = Set; type EventType = S::EventType; - type Count = S::Count; } ///State transition - sets the `event_type` field to Set pub struct SetEventType(PhantomData S>); impl sealed::Sealed for SetEventType {} impl State for SetEventType { - type EventSubjectType = S::EventSubjectType; - type EventType = Set; type Count = S::Count; - } - ///State transition - sets the `count` field to Set - pub struct SetCount(PhantomData S>); - impl sealed::Sealed for SetCount {} - impl State for SetCount { type EventSubjectType = S::EventSubjectType; - type EventType = S::EventType; - type Count = Set; + type EventType = 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 `event_subject_type` field pub struct event_subject_type(()); ///Marker type for the `event_type` field pub struct event_type(()); - ///Marker type for the `count` field - pub struct count(()); } } @@ -715,9 +715,9 @@ where impl<'a, S> TimelineItemSummaryBuilder<'a, S> where S: timeline_item_summary_state::State, + S::Count: timeline_item_summary_state::IsSet, S::EventSubjectType: timeline_item_summary_state::IsSet, S::EventType: timeline_item_summary_state::IsSet, - S::Count: timeline_item_summary_state::IsSet, { /// Build the final struct pub fn build(self) -> TimelineItemSummary<'a> { 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 efe745f3..f2226f05 100644 --- a/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs +++ b/crates/jacquard-api/src/tools_ozone/moderation/schedule_action.rs @@ -662,67 +662,67 @@ pub mod schedule_action_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Action; - type Subjects; type CreatedBy; + type Subjects; type Scheduling; + type Action; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Action = Unset; - type Subjects = Unset; type CreatedBy = Unset; + type Subjects = Unset; type Scheduling = Unset; + type Action = Unset; } - ///State transition - sets the `action` field to Set - pub struct SetAction(PhantomData S>); - impl sealed::Sealed for SetAction {} - impl State for SetAction { - type Action = Set; + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData S>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { + type CreatedBy = Set; type Subjects = S::Subjects; - type CreatedBy = S::CreatedBy; type Scheduling = S::Scheduling; + type Action = S::Action; } ///State transition - sets the `subjects` field to Set pub struct SetSubjects(PhantomData S>); impl sealed::Sealed for SetSubjects {} impl State for SetSubjects { - type Action = S::Action; - type Subjects = Set; type CreatedBy = S::CreatedBy; + type Subjects = Set; type Scheduling = S::Scheduling; - } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData S>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { type Action = S::Action; - type Subjects = S::Subjects; - type CreatedBy = Set; - type Scheduling = S::Scheduling; } ///State transition - sets the `scheduling` field to Set pub struct SetScheduling(PhantomData S>); impl sealed::Sealed for SetScheduling {} impl State for SetScheduling { - type Action = S::Action; - type Subjects = S::Subjects; type CreatedBy = S::CreatedBy; + type Subjects = S::Subjects; type Scheduling = Set; + type Action = S::Action; + } + ///State transition - sets the `action` field to Set + pub struct SetAction(PhantomData S>); + impl sealed::Sealed for SetAction {} + impl State for SetAction { + type CreatedBy = S::CreatedBy; + type Subjects = S::Subjects; + type Scheduling = S::Scheduling; + type Action = 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 `subjects` field - pub struct subjects(()); ///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 `action` field + pub struct action(()); } } @@ -861,10 +861,10 @@ where impl<'a, S> ScheduleActionBuilder<'a, S> where S: schedule_action_state::State, - S::Action: schedule_action_state::IsSet, - S::Subjects: schedule_action_state::IsSet, S::CreatedBy: schedule_action_state::IsSet, + S::Subjects: schedule_action_state::IsSet, S::Scheduling: schedule_action_state::IsSet, + S::Action: schedule_action_state::IsSet, { /// Build the final struct pub fn build(self) -> ScheduleAction<'a> { @@ -973,37 +973,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 S>); - impl sealed::Sealed for SetSucceeded {} - impl State for SetSucceeded { - type Succeeded = Set; - type Failed = S::Failed; + type Succeeded = Unset; } ///State transition - sets the `failed` field to Set pub struct SetFailed(PhantomData S>); impl sealed::Sealed for SetFailed {} impl State for SetFailed { - type Succeeded = S::Succeeded; type Failed = Set; + type Succeeded = S::Succeeded; + } + ///State transition - sets the `succeeded` field to Set + pub struct SetSucceeded(PhantomData S>); + impl sealed::Sealed for SetSucceeded {} + impl State for SetSucceeded { + type Failed = S::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(()); } } @@ -1089,8 +1089,8 @@ where impl<'a, S> ScheduledActionResultsBuilder<'a, S> where S: scheduled_action_results_state::State, - S::Succeeded: scheduled_action_results_state::IsSet, S::Failed: scheduled_action_results_state::IsSet, + S::Succeeded: scheduled_action_results_state::IsSet, { /// Build the final struct pub fn build(self) -> ScheduledActionResults<'a> { diff --git a/crates/jacquard-api/src/tools_ozone/safelink.rs b/crates/jacquard-api/src/tools_ozone/safelink.rs index eeae0ca8..73c06847 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink.rs @@ -138,149 +138,149 @@ pub mod event_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Id; - type EventType; + type CreatedBy; type Url; + type EventType; + type Id; type Pattern; type Action; type Reason; - type CreatedBy; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Id = Unset; - type EventType = Unset; + type CreatedBy = Unset; type Url = Unset; + type EventType = Unset; + type Id = Unset; type Pattern = Unset; type Action = Unset; type Reason = Unset; - type CreatedBy = Unset; type CreatedAt = Unset; } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Id = Set; - type EventType = S::EventType; + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData S>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { + type CreatedBy = Set; type Url = S::Url; + type EventType = S::EventType; + type Id = S::Id; type Pattern = S::Pattern; type Action = S::Action; type Reason = S::Reason; + type CreatedAt = S::CreatedAt; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData S>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { type CreatedBy = S::CreatedBy; + type Url = Set; + type EventType = S::EventType; + type Id = S::Id; + type Pattern = S::Pattern; + type Action = S::Action; + type Reason = S::Reason; type CreatedAt = S::CreatedAt; } ///State transition - sets the `event_type` field to Set pub struct SetEventType(PhantomData S>); impl sealed::Sealed for SetEventType {} impl State for SetEventType { - type Id = S::Id; - type EventType = Set; + type CreatedBy = S::CreatedBy; type Url = S::Url; + type EventType = Set; + type Id = S::Id; type Pattern = S::Pattern; type Action = S::Action; type Reason = S::Reason; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData S>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Id = S::Id; + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type CreatedBy = S::CreatedBy; + type Url = S::Url; type EventType = S::EventType; - type Url = Set; + type Id = Set; type Pattern = S::Pattern; type Action = S::Action; type Reason = S::Reason; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; } ///State transition - sets the `pattern` field to Set pub struct SetPattern(PhantomData S>); impl sealed::Sealed for SetPattern {} impl State for SetPattern { - type Id = S::Id; - type EventType = S::EventType; + type CreatedBy = S::CreatedBy; type Url = S::Url; + type EventType = S::EventType; + type Id = S::Id; type Pattern = Set; type Action = S::Action; type Reason = S::Reason; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; } ///State transition - sets the `action` field to Set pub struct SetAction(PhantomData S>); impl sealed::Sealed for SetAction {} impl State for SetAction { - type Id = S::Id; - type EventType = S::EventType; + type CreatedBy = S::CreatedBy; type Url = S::Url; + type EventType = S::EventType; + type Id = S::Id; type Pattern = S::Pattern; type Action = Set; type Reason = S::Reason; - type CreatedBy = S::CreatedBy; type CreatedAt = S::CreatedAt; } ///State transition - sets the `reason` field to Set pub struct SetReason(PhantomData S>); impl sealed::Sealed for SetReason {} impl State for SetReason { - type Id = S::Id; - type EventType = S::EventType; - type Url = S::Url; - type Pattern = S::Pattern; - type Action = S::Action; - type Reason = Set; type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData S>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { - type Id = S::Id; - type EventType = S::EventType; type Url = S::Url; + type EventType = S::EventType; + type Id = S::Id; type Pattern = S::Pattern; type Action = S::Action; - type Reason = S::Reason; - type CreatedBy = Set; + type Reason = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Id = S::Id; - type EventType = S::EventType; + type CreatedBy = S::CreatedBy; type Url = S::Url; + type EventType = S::EventType; + type Id = S::Id; type Pattern = S::Pattern; type Action = S::Action; type Reason = S::Reason; - type CreatedBy = S::CreatedBy; type CreatedAt = 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 `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 `event_type` field + pub struct event_type(()); + ///Marker type for the `id` field + pub struct id(()); ///Marker type for the `pattern` field pub struct pattern(()); ///Marker type for the `action` field pub struct action(()); ///Marker type for the `reason` field pub struct reason(()); - ///Marker type for the `created_by` field - pub struct created_by(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -502,13 +502,13 @@ where impl<'a, S> EventBuilder<'a, S> where S: event_state::State, - S::Id: event_state::IsSet, - S::EventType: event_state::IsSet, + S::CreatedBy: event_state::IsSet, S::Url: event_state::IsSet, + S::EventType: event_state::IsSet, + S::Id: event_state::IsSet, S::Pattern: event_state::IsSet, S::Action: event_state::IsSet, S::Reason: event_state::IsSet, - S::CreatedBy: event_state::IsSet, S::CreatedAt: event_state::IsSet, { /// Build the final struct @@ -1233,127 +1233,127 @@ pub mod url_rule_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Url; - type Pattern; type Action; - type Reason; type CreatedBy; - type CreatedAt; + type Url; + type Pattern; type UpdatedAt; + type CreatedAt; + type Reason; } /// 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 Action = Unset; - type Reason = Unset; type CreatedBy = Unset; - type CreatedAt = Unset; + type Url = Unset; + type Pattern = Unset; type UpdatedAt = Unset; + type CreatedAt = Unset; + type Reason = Unset; + } + ///State transition - sets the `action` field to Set + pub struct SetAction(PhantomData S>); + impl sealed::Sealed for SetAction {} + impl State for SetAction { + type Action = Set; + type CreatedBy = S::CreatedBy; + type Url = S::Url; + type Pattern = S::Pattern; + type UpdatedAt = S::UpdatedAt; + type CreatedAt = S::CreatedAt; + type Reason = S::Reason; + } + ///State transition - sets the `created_by` field to Set + pub struct SetCreatedBy(PhantomData S>); + impl sealed::Sealed for SetCreatedBy {} + impl State for SetCreatedBy { + type Action = S::Action; + type CreatedBy = Set; + type Url = S::Url; + type Pattern = S::Pattern; + type UpdatedAt = S::UpdatedAt; + type CreatedAt = S::CreatedAt; + type Reason = S::Reason; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { - type Url = Set; - type Pattern = S::Pattern; type Action = S::Action; - type Reason = S::Reason; type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; + type Url = Set; + type Pattern = S::Pattern; type UpdatedAt = S::UpdatedAt; + type CreatedAt = S::CreatedAt; + type Reason = S::Reason; } ///State transition - sets the `pattern` field to Set pub struct SetPattern(PhantomData S>); impl sealed::Sealed for SetPattern {} impl State for SetPattern { - type Url = S::Url; - type Pattern = Set; type Action = S::Action; - type Reason = S::Reason; type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; - } - ///State transition - sets the `action` field to Set - pub struct SetAction(PhantomData S>); - impl sealed::Sealed for SetAction {} - impl State for SetAction { type Url = S::Url; - type Pattern = S::Pattern; - type Action = Set; - type Reason = S::Reason; - type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; + type Pattern = Set; type UpdatedAt = S::UpdatedAt; + type CreatedAt = S::CreatedAt; + type Reason = S::Reason; } - ///State transition - sets the `reason` field to Set - pub struct SetReason(PhantomData S>); - impl sealed::Sealed for SetReason {} - impl State for SetReason { - type Url = S::Url; - type Pattern = S::Pattern; + ///State transition - sets the `updated_at` field to Set + pub struct SetUpdatedAt(PhantomData S>); + impl sealed::Sealed for SetUpdatedAt {} + impl State for SetUpdatedAt { type Action = S::Action; - type Reason = Set; type CreatedBy = S::CreatedBy; - type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; - } - ///State transition - sets the `created_by` field to Set - pub struct SetCreatedBy(PhantomData S>); - impl sealed::Sealed for SetCreatedBy {} - impl State for SetCreatedBy { type Url = S::Url; type Pattern = S::Pattern; - type Action = S::Action; - type Reason = S::Reason; - type CreatedBy = Set; + type UpdatedAt = Set; type CreatedAt = S::CreatedAt; - type UpdatedAt = S::UpdatedAt; + type Reason = S::Reason; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Url = S::Url; - type Pattern = S::Pattern; type Action = S::Action; - type Reason = S::Reason; type CreatedBy = S::CreatedBy; - type CreatedAt = Set; - type UpdatedAt = S::UpdatedAt; - } - ///State transition - sets the `updated_at` field to Set - pub struct SetUpdatedAt(PhantomData S>); - impl sealed::Sealed for SetUpdatedAt {} - impl State for SetUpdatedAt { type Url = S::Url; type Pattern = S::Pattern; - type Action = S::Action; + type UpdatedAt = S::UpdatedAt; + type CreatedAt = Set; type Reason = S::Reason; + } + ///State transition - sets the `reason` field to Set + pub struct SetReason(PhantomData S>); + impl sealed::Sealed for SetReason {} + impl State for SetReason { + type Action = S::Action; type CreatedBy = S::CreatedBy; + type Url = S::Url; + type Pattern = S::Pattern; + type UpdatedAt = S::UpdatedAt; type CreatedAt = S::CreatedAt; - type UpdatedAt = Set; + type Reason = 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 `action` field pub struct action(()); - ///Marker type for the `reason` field - pub struct reason(()); ///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 `url` field + pub struct url(()); + ///Marker type for the `pattern` field + pub struct pattern(()); ///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 `reason` field + pub struct reason(()); } } @@ -1543,13 +1543,13 @@ where impl<'a, S> UrlRuleBuilder<'a, S> where S: url_rule_state::State, - S::Url: url_rule_state::IsSet, - S::Pattern: url_rule_state::IsSet, S::Action: url_rule_state::IsSet, - S::Reason: url_rule_state::IsSet, S::CreatedBy: url_rule_state::IsSet, - S::CreatedAt: url_rule_state::IsSet, + S::Url: url_rule_state::IsSet, + S::Pattern: url_rule_state::IsSet, S::UpdatedAt: url_rule_state::IsSet, + S::CreatedAt: url_rule_state::IsSet, + S::Reason: url_rule_state::IsSet, { /// Build the final struct pub fn build(self) -> UrlRule<'a> { 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 168971df..77b6363d 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/add_rule.rs @@ -47,66 +47,66 @@ pub mod add_rule_state { /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { type Url; - type Pattern; type Action; type Reason; + 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 Action = Unset; type Reason = Unset; + type Pattern = Unset; } ///State transition - sets the `url` field to Set pub struct SetUrl(PhantomData S>); impl sealed::Sealed for SetUrl {} impl State for SetUrl { type Url = Set; - type Pattern = S::Pattern; - type Action = S::Action; - type Reason = S::Reason; - } - ///State transition - sets the `pattern` field to Set - pub struct SetPattern(PhantomData S>); - impl sealed::Sealed for SetPattern {} - impl State for SetPattern { - type Url = S::Url; - type Pattern = Set; type Action = S::Action; type Reason = S::Reason; + type Pattern = S::Pattern; } ///State transition - sets the `action` field to Set pub struct SetAction(PhantomData S>); impl sealed::Sealed for SetAction {} impl State for SetAction { type Url = S::Url; - type Pattern = S::Pattern; type Action = Set; type Reason = S::Reason; + type Pattern = S::Pattern; } ///State transition - sets the `reason` field to Set pub struct SetReason(PhantomData S>); impl sealed::Sealed for SetReason {} impl State for SetReason { type Url = S::Url; - type Pattern = S::Pattern; type Action = S::Action; type Reason = Set; + type Pattern = S::Pattern; + } + ///State transition - sets the `pattern` field to Set + pub struct SetPattern(PhantomData S>); + impl sealed::Sealed for SetPattern {} + impl State for SetPattern { + type Url = S::Url; + type Action = S::Action; + type Reason = S::Reason; + 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 `action` field pub struct action(()); ///Marker type for the `reason` field pub struct reason(()); + ///Marker type for the `pattern` field + pub struct pattern(()); } } @@ -257,9 +257,9 @@ impl<'a, S> AddRuleBuilder<'a, S> where S: add_rule_state::State, S::Url: add_rule_state::IsSet, - S::Pattern: add_rule_state::IsSet, S::Action: add_rule_state::IsSet, S::Reason: add_rule_state::IsSet, + S::Pattern: add_rule_state::IsSet, { /// Build the final struct pub fn build(self) -> AddRule<'a> { 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 2fc41769..c7be4c77 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/remove_rule.rs @@ -42,37 +42,37 @@ pub mod remove_rule_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Url; type Pattern; + 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 Pattern = Unset; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData S>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Url = Set; - type Pattern = S::Pattern; + type Url = Unset; } ///State transition - sets the `pattern` field to Set pub struct SetPattern(PhantomData S>); impl sealed::Sealed for SetPattern {} impl State for SetPattern { - type Url = S::Url; type Pattern = Set; + type Url = S::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData S>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { + type Pattern = S::Pattern; + 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 `pattern` field pub struct pattern(()); + ///Marker type for the `url` field + pub struct url(()); } } @@ -182,8 +182,8 @@ where impl<'a, S> RemoveRuleBuilder<'a, S> where S: remove_rule_state::State, - S::Url: remove_rule_state::IsSet, S::Pattern: remove_rule_state::IsSet, + S::Url: remove_rule_state::IsSet, { /// Build the final struct pub fn build(self) -> RemoveRule<'a> { 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 fd668e2f..5bdd4de9 100644 --- a/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs +++ b/crates/jacquard-api/src/tools_ozone/safelink/update_rule.rs @@ -46,67 +46,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 Action; type Reason; + type Action; + 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 Pattern = Unset; - type Action = Unset; type Reason = Unset; - } - ///State transition - sets the `url` field to Set - pub struct SetUrl(PhantomData S>); - impl sealed::Sealed for SetUrl {} - impl State for SetUrl { - type Url = Set; - type Pattern = S::Pattern; - type Action = S::Action; - type Reason = S::Reason; + type Action = Unset; + type Url = Unset; } ///State transition - sets the `pattern` field to Set pub struct SetPattern(PhantomData S>); impl sealed::Sealed for SetPattern {} impl State for SetPattern { - type Url = S::Url; type Pattern = Set; - type Action = S::Action; type Reason = S::Reason; + type Action = S::Action; + type Url = S::Url; + } + ///State transition - sets the `reason` field to Set + pub struct SetReason(PhantomData S>); + impl sealed::Sealed for SetReason {} + impl State for SetReason { + type Pattern = S::Pattern; + type Reason = Set; + type Action = S::Action; + type Url = S::Url; } ///State transition - sets the `action` field to Set pub struct SetAction(PhantomData S>); impl sealed::Sealed for SetAction {} impl State for SetAction { - type Url = S::Url; type Pattern = S::Pattern; - type Action = Set; type Reason = S::Reason; - } - ///State transition - sets the `reason` field to Set - pub struct SetReason(PhantomData S>); - impl sealed::Sealed for SetReason {} - impl State for SetReason { + type Action = Set; type Url = S::Url; + } + ///State transition - sets the `url` field to Set + pub struct SetUrl(PhantomData S>); + impl sealed::Sealed for SetUrl {} + impl State for SetUrl { type Pattern = S::Pattern; + type Reason = S::Reason; type Action = S::Action; - type Reason = Set; + 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 `pattern` field pub struct pattern(()); - ///Marker type for the `action` field - pub struct action(()); ///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(()); } } @@ -256,10 +256,10 @@ where impl<'a, S> UpdateRuleBuilder<'a, S> where S: update_rule_state::State, - S::Url: update_rule_state::IsSet, S::Pattern: update_rule_state::IsSet, - S::Action: update_rule_state::IsSet, S::Reason: update_rule_state::IsSet, + S::Action: update_rule_state::IsSet, + S::Url: update_rule_state::IsSet, { /// Build the final struct pub fn build(self) -> UpdateRule<'a> { 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 06c548b2..426fd0d9 100644 --- a/crates/jacquard-api/src/tools_ozone/set/add_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/add_values.rs @@ -35,37 +35,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 S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Values = S::Values; + type Name = Unset; } ///State transition - sets the `values` field to Set pub struct SetValues(PhantomData S>); impl sealed::Sealed for SetValues {} impl State for SetValues { - type Name = S::Name; type Values = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Values = S::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(()); } } @@ -138,8 +138,8 @@ where impl<'a, S> AddValuesBuilder<'a, S> where S: add_values_state::State, - S::Name: add_values_state::IsSet, S::Values: add_values_state::IsSet, + S::Name: add_values_state::IsSet, { /// Build the final struct pub fn build(self) -> AddValues<'a> { 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 e81aea43..24f250c8 100644 --- a/crates/jacquard-api/src/tools_ozone/set/delete_values.rs +++ b/crates/jacquard-api/src/tools_ozone/set/delete_values.rs @@ -35,37 +35,37 @@ pub mod delete_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 S>); - impl sealed::Sealed for SetName {} - impl State for SetName { - type Name = Set; - type Values = S::Values; + type Name = Unset; } ///State transition - sets the `values` field to Set pub struct SetValues(PhantomData S>); impl sealed::Sealed for SetValues {} impl State for SetValues { - type Name = S::Name; type Values = Set; + type Name = S::Name; + } + ///State transition - sets the `name` field to Set + pub struct SetName(PhantomData S>); + impl sealed::Sealed for SetName {} + impl State for SetName { + type Values = S::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(()); } } @@ -138,8 +138,8 @@ where impl<'a, S> DeleteValuesBuilder<'a, S> where S: delete_values_state::State, - S::Name: delete_values_state::IsSet, S::Values: delete_values_state::IsSet, + S::Name: delete_values_state::IsSet, { /// Build the final struct pub fn build(self) -> DeleteValues<'a> { diff --git a/crates/jacquard-api/src/tools_ozone/setting.rs b/crates/jacquard-api/src/tools_ozone/setting.rs index 87b1eed5..38a0325e 100644 --- a/crates/jacquard-api/src/tools_ozone/setting.rs +++ b/crates/jacquard-api/src/tools_ozone/setting.rs @@ -58,9 +58,9 @@ pub mod defs_option_state { type Key; type Value; type Did; - type Scope; - type CreatedBy; type LastUpdatedBy; + type CreatedBy; + type Scope; } /// Empty state - all required fields are unset pub struct Empty(()); @@ -69,9 +69,9 @@ pub mod defs_option_state { type Key = Unset; type Value = Unset; type Did = Unset; - type Scope = Unset; - type CreatedBy = Unset; type LastUpdatedBy = Unset; + type CreatedBy = Unset; + type Scope = Unset; } ///State transition - sets the `key` field to Set pub struct SetKey(PhantomData S>); @@ -80,9 +80,9 @@ pub mod defs_option_state { type Key = Set; type Value = S::Value; type Did = S::Did; - type Scope = S::Scope; - type CreatedBy = S::CreatedBy; type LastUpdatedBy = S::LastUpdatedBy; + type CreatedBy = S::CreatedBy; + type Scope = S::Scope; } ///State transition - sets the `value` field to Set pub struct SetValue(PhantomData S>); @@ -91,9 +91,9 @@ pub mod defs_option_state { type Key = S::Key; type Value = Set; type Did = S::Did; - type Scope = S::Scope; - type CreatedBy = S::CreatedBy; type LastUpdatedBy = S::LastUpdatedBy; + type CreatedBy = S::CreatedBy; + type Scope = S::Scope; } ///State transition - sets the `did` field to Set pub struct SetDid(PhantomData S>); @@ -102,20 +102,20 @@ pub mod defs_option_state { type Key = S::Key; type Value = S::Value; type Did = Set; - type Scope = S::Scope; - type CreatedBy = S::CreatedBy; type LastUpdatedBy = S::LastUpdatedBy; + type CreatedBy = S::CreatedBy; + type Scope = S::Scope; } - ///State transition - sets the `scope` field to Set - pub struct SetScope(PhantomData S>); - impl sealed::Sealed for SetScope {} - impl State for SetScope { + ///State transition - sets the `last_updated_by` field to Set + pub struct SetLastUpdatedBy(PhantomData S>); + impl sealed::Sealed for SetLastUpdatedBy {} + impl State for SetLastUpdatedBy { type Key = S::Key; type Value = S::Value; type Did = S::Did; - type Scope = Set; + type LastUpdatedBy = Set; type CreatedBy = S::CreatedBy; - type LastUpdatedBy = S::LastUpdatedBy; + type Scope = S::Scope; } ///State transition - sets the `created_by` field to Set pub struct SetCreatedBy(PhantomData S>); @@ -124,20 +124,20 @@ pub mod defs_option_state { type Key = S::Key; type Value = S::Value; type Did = S::Did; - type Scope = S::Scope; - type CreatedBy = Set; type LastUpdatedBy = S::LastUpdatedBy; + type CreatedBy = Set; + type Scope = S::Scope; } - ///State transition - sets the `last_updated_by` field to Set - pub struct SetLastUpdatedBy(PhantomData S>); - impl sealed::Sealed for SetLastUpdatedBy {} - impl State for SetLastUpdatedBy { + ///State transition - sets the `scope` field to Set + pub struct SetScope(PhantomData S>); + impl sealed::Sealed for SetScope {} + impl State for SetScope { type Key = S::Key; type Value = S::Value; type Did = S::Did; - type Scope = S::Scope; + type LastUpdatedBy = S::LastUpdatedBy; type CreatedBy = S::CreatedBy; - type LastUpdatedBy = Set; + type Scope = Set; } /// Marker types for field names #[allow(non_camel_case_types)] @@ -148,12 +148,12 @@ pub mod defs_option_state { pub struct value(()); ///Marker type for the `did` field pub struct did(()); - ///Marker type for the `scope` field - pub struct scope(()); - ///Marker type for the `created_by` field - pub struct created_by(()); ///Marker type for the `last_updated_by` field pub struct last_updated_by(()); + ///Marker type for the `created_by` field + pub struct created_by(()); + ///Marker type for the `scope` field + pub struct scope(()); } } @@ -400,9 +400,9 @@ where S::Key: defs_option_state::IsSet, S::Value: defs_option_state::IsSet, S::Did: defs_option_state::IsSet, - S::Scope: defs_option_state::IsSet, - S::CreatedBy: defs_option_state::IsSet, S::LastUpdatedBy: defs_option_state::IsSet, + S::CreatedBy: defs_option_state::IsSet, + S::Scope: defs_option_state::IsSet, { /// Build the final struct pub fn build(self) -> DefsOption<'a> { diff --git a/crates/jacquard-api/src/tools_ozone/verification.rs b/crates/jacquard-api/src/tools_ozone/verification.rs index c468a414..6dc127ee 100644 --- a/crates/jacquard-api/src/tools_ozone/verification.rs +++ b/crates/jacquard-api/src/tools_ozone/verification.rs @@ -74,105 +74,105 @@ pub mod verification_view_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Issuer; + type CreatedAt; type Uri; - type Subject; type Handle; + type Issuer; type DisplayName; - type CreatedAt; + type Subject; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Issuer = Unset; + type CreatedAt = Unset; type Uri = Unset; - type Subject = Unset; type Handle = Unset; + type Issuer = Unset; type DisplayName = Unset; - type CreatedAt = Unset; + type Subject = Unset; } - ///State transition - sets the `issuer` field to Set - pub struct SetIssuer(PhantomData S>); - impl sealed::Sealed for SetIssuer {} - impl State for SetIssuer { - type Issuer = Set; + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; type Uri = S::Uri; - type Subject = S::Subject; type Handle = S::Handle; + type Issuer = S::Issuer; type DisplayName = S::DisplayName; - type CreatedAt = S::CreatedAt; + type Subject = S::Subject; } ///State transition - sets the `uri` field to Set pub struct SetUri(PhantomData S>); impl sealed::Sealed for SetUri {} impl State for SetUri { - type Issuer = S::Issuer; + type CreatedAt = S::CreatedAt; type Uri = Set; - type Subject = S::Subject; type Handle = S::Handle; - type DisplayName = S::DisplayName; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { type Issuer = S::Issuer; - type Uri = S::Uri; - type Subject = Set; - type Handle = S::Handle; type DisplayName = S::DisplayName; - type CreatedAt = S::CreatedAt; + type Subject = S::Subject; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Issuer = S::Issuer; + type CreatedAt = S::CreatedAt; type Uri = S::Uri; - type Subject = S::Subject; type Handle = Set; + type Issuer = S::Issuer; type DisplayName = S::DisplayName; + type Subject = S::Subject; + } + ///State transition - sets the `issuer` field to Set + pub struct SetIssuer(PhantomData S>); + impl sealed::Sealed for SetIssuer {} + impl State for SetIssuer { type CreatedAt = S::CreatedAt; + type Uri = S::Uri; + type Handle = S::Handle; + type Issuer = Set; + type DisplayName = S::DisplayName; + type Subject = S::Subject; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData S>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Issuer = S::Issuer; + type CreatedAt = S::CreatedAt; type Uri = S::Uri; - type Subject = S::Subject; type Handle = S::Handle; + type Issuer = S::Issuer; type DisplayName = Set; - type CreatedAt = S::CreatedAt; + type Subject = S::Subject; } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { - type Issuer = S::Issuer; + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type CreatedAt = S::CreatedAt; type Uri = S::Uri; - type Subject = S::Subject; type Handle = S::Handle; + type Issuer = S::Issuer; type DisplayName = S::DisplayName; - type CreatedAt = Set; + type Subject = 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 `created_at` field + pub struct created_at(()); ///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 `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(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -479,12 +479,12 @@ where impl<'a, S> VerificationViewBuilder<'a, S> where S: verification_view_state::State, - S::Issuer: verification_view_state::IsSet, + S::CreatedAt: verification_view_state::IsSet, S::Uri: verification_view_state::IsSet, - S::Subject: verification_view_state::IsSet, S::Handle: verification_view_state::IsSet, + S::Issuer: verification_view_state::IsSet, S::DisplayName: verification_view_state::IsSet, - S::CreatedAt: verification_view_state::IsSet, + S::Subject: verification_view_state::IsSet, { /// Build the final struct pub fn build(self) -> VerificationView<'a> { diff --git a/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs b/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs index f1ea00d2..34335e68 100644 --- a/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs +++ b/crates/jacquard-api/src/tools_ozone/verification/grant_verifications.rs @@ -36,37 +36,37 @@ pub mod grant_error_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Error; type Subject; + type Error; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { - type Error = Unset; type Subject = Unset; - } - ///State transition - sets the `error` field to Set - pub struct SetError(PhantomData S>); - impl sealed::Sealed for SetError {} - impl State for SetError { - type Error = Set; - type Subject = S::Subject; + type Error = Unset; } ///State transition - sets the `subject` field to Set pub struct SetSubject(PhantomData S>); impl sealed::Sealed for SetSubject {} impl State for SetSubject { - type Error = S::Error; type Subject = Set; + type Error = S::Error; + } + ///State transition - sets the `error` field to Set + pub struct SetError(PhantomData S>); + impl sealed::Sealed for SetError {} + impl State for SetError { + type Subject = S::Subject; + type Error = Set; } /// Marker types for field names #[allow(non_camel_case_types)] pub mod members { - ///Marker type for the `error` field - pub struct error(()); ///Marker type for the `subject` field pub struct subject(()); + ///Marker type for the `error` field + pub struct error(()); } } @@ -139,8 +139,8 @@ where impl<'a, S> GrantErrorBuilder<'a, S> where S: grant_error_state::State, - S::Error: grant_error_state::IsSet, S::Subject: grant_error_state::IsSet, + S::Error: grant_error_state::IsSet, { /// Build the final struct pub fn build(self) -> GrantError<'a> { @@ -640,51 +640,51 @@ pub mod verification_input_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Subject; type Handle; type DisplayName; + 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 Handle = Unset; type DisplayName = Unset; - } - ///State transition - sets the `subject` field to Set - pub struct SetSubject(PhantomData S>); - impl sealed::Sealed for SetSubject {} - impl State for SetSubject { - type Subject = Set; - type Handle = S::Handle; - type DisplayName = S::DisplayName; + type Subject = Unset; } ///State transition - sets the `handle` field to Set pub struct SetHandle(PhantomData S>); impl sealed::Sealed for SetHandle {} impl State for SetHandle { - type Subject = S::Subject; type Handle = Set; type DisplayName = S::DisplayName; + type Subject = S::Subject; } ///State transition - sets the `display_name` field to Set pub struct SetDisplayName(PhantomData S>); impl sealed::Sealed for SetDisplayName {} impl State for SetDisplayName { - type Subject = S::Subject; type Handle = S::Handle; type DisplayName = Set; + type Subject = S::Subject; + } + ///State transition - sets the `subject` field to Set + pub struct SetSubject(PhantomData S>); + impl sealed::Sealed for SetSubject {} + impl State for SetSubject { + type Handle = S::Handle; + type DisplayName = S::DisplayName; + 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 `handle` field pub struct handle(()); ///Marker type for the `display_name` field pub struct display_name(()); + ///Marker type for the `subject` field + pub struct subject(()); } } @@ -797,9 +797,9 @@ where impl<'a, S> VerificationInputBuilder<'a, S> where S: verification_input_state::State, - S::Subject: verification_input_state::IsSet, S::Handle: verification_input_state::IsSet, S::DisplayName: verification_input_state::IsSet, + S::Subject: verification_input_state::IsSet, { /// Build the final struct pub fn build(self) -> VerificationInput<'a> { diff --git a/crates/jacquard-api/src/uk_skyblur/post.rs b/crates/jacquard-api/src/uk_skyblur/post.rs index 1f0f9e3b..ceb02e97 100644 --- a/crates/jacquard-api/src/uk_skyblur/post.rs +++ b/crates/jacquard-api/src/uk_skyblur/post.rs @@ -52,65 +52,65 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Uri; type Text; type CreatedAt; - type Uri; type Visibility; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Uri = Unset; type Text = Unset; type CreatedAt = Unset; - type Uri = Unset; type Visibility = Unset; } + ///State transition - sets the `uri` field to Set + pub struct SetUri(PhantomData S>); + impl sealed::Sealed for SetUri {} + impl State for SetUri { + type Uri = Set; + type Text = S::Text; + type CreatedAt = S::CreatedAt; + type Visibility = S::Visibility; + } ///State transition - sets the `text` field to Set pub struct SetText(PhantomData S>); impl sealed::Sealed for SetText {} impl State for SetText { + type Uri = S::Uri; type Text = Set; type CreatedAt = S::CreatedAt; - type Uri = S::Uri; type Visibility = S::Visibility; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { - type Text = S::Text; - type CreatedAt = Set; type Uri = S::Uri; - type Visibility = S::Visibility; - } - ///State transition - sets the `uri` field to Set - pub struct SetUri(PhantomData S>); - impl sealed::Sealed for SetUri {} - impl State for SetUri { type Text = S::Text; - type CreatedAt = S::CreatedAt; - type Uri = Set; + type CreatedAt = Set; type Visibility = S::Visibility; } ///State transition - sets the `visibility` field to Set pub struct SetVisibility(PhantomData S>); impl sealed::Sealed for SetVisibility {} impl State for SetVisibility { + type Uri = S::Uri; type Text = S::Text; type CreatedAt = S::CreatedAt; - type Uri = S::Uri; type Visibility = 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 `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(()); ///Marker type for the `visibility` field pub struct visibility(()); } @@ -265,9 +265,9 @@ where impl<'a, S> PostBuilder<'a, S> where S: post_state::State, + S::Uri: post_state::IsSet, S::Text: post_state::IsSet, S::CreatedAt: post_state::IsSet, - S::Uri: post_state::IsSet, S::Visibility: post_state::IsSet, { /// Build the final struct 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 cfccd2de..4eb63581 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 @@ -37,67 +37,67 @@ pub mod decrypt_by_cid_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { - type Pds; - type Repo; type Cid; + type Repo; type Password; + 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 Repo = Unset; type Cid = Unset; + type Repo = Unset; type Password = Unset; + type Pds = Unset; } - ///State transition - sets the `pds` field to Set - pub struct SetPds(PhantomData S>); - impl sealed::Sealed for SetPds {} - impl State for SetPds { - type Pds = Set; + ///State transition - sets the `cid` field to Set + pub struct SetCid(PhantomData S>); + impl sealed::Sealed for SetCid {} + impl State for SetCid { + type Cid = Set; type Repo = S::Repo; - type Cid = S::Cid; type Password = S::Password; + type Pds = S::Pds; } ///State transition - sets the `repo` field to Set pub struct SetRepo(PhantomData S>); impl sealed::Sealed for SetRepo {} impl State for SetRepo { - type Pds = S::Pds; - type Repo = Set; type Cid = S::Cid; + type Repo = Set; type Password = S::Password; - } - ///State transition - sets the `cid` field to Set - pub struct SetCid(PhantomData S>); - impl sealed::Sealed for SetCid {} - impl State for SetCid { type Pds = S::Pds; - type Repo = S::Repo; - type Cid = Set; - type Password = S::Password; } ///State transition - sets the `password` field to Set pub struct SetPassword(PhantomData S>); impl sealed::Sealed for SetPassword {} impl State for SetPassword { - type Pds = S::Pds; - type Repo = S::Repo; type Cid = S::Cid; + type Repo = S::Repo; type Password = Set; + type Pds = S::Pds; + } + ///State transition - sets the `pds` field to Set + pub struct SetPds(PhantomData S>); + impl sealed::Sealed for SetPds {} + impl State for SetPds { + type Cid = S::Cid; + type Repo = S::Repo; + type Password = S::Password; + 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 `repo` field - pub struct repo(()); ///Marker type for the `cid` field pub struct cid(()); + ///Marker type for the `repo` field + pub struct repo(()); ///Marker type for the `password` field pub struct password(()); + ///Marker type for the `pds` field + pub struct pds(()); } } @@ -210,10 +210,10 @@ where impl<'a, S> DecryptByCidBuilder<'a, S> where S: decrypt_by_cid_state::State, - S::Pds: decrypt_by_cid_state::IsSet, - S::Repo: decrypt_by_cid_state::IsSet, S::Cid: decrypt_by_cid_state::IsSet, + S::Repo: decrypt_by_cid_state::IsSet, S::Password: decrypt_by_cid_state::IsSet, + S::Pds: decrypt_by_cid_state::IsSet, { /// Build the final struct pub fn build(self) -> DecryptByCid<'a> { diff --git a/crates/jacquard-api/src/us_polhem/blog/content.rs b/crates/jacquard-api/src/us_polhem/blog/content.rs index 2e901986..edc40b44 100644 --- a/crates/jacquard-api/src/us_polhem/blog/content.rs +++ b/crates/jacquard-api/src/us_polhem/blog/content.rs @@ -38,51 +38,51 @@ pub mod content_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Content; type Slug; - 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 Slug = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Content = S::Content; + type Slug = S::Slug; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData S>); impl sealed::Sealed for SetContent {} impl State for SetContent { + type CreatedAt = S::CreatedAt; type Content = Set; type Slug = S::Slug; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData S>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { - type Content = S::Content; - type Slug = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Content = S::Content; - type Slug = S::Slug; - type CreatedAt = Set; + 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 `content` field pub struct content(()); ///Marker type for the `slug` field pub struct slug(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -195,9 +195,9 @@ where impl<'a, S> ContentBuilder<'a, S> where S: content_state::State, + S::CreatedAt: content_state::IsSet, S::Content: content_state::IsSet, S::Slug: content_state::IsSet, - S::CreatedAt: content_state::IsSet, { /// Build the final struct pub fn build(self) -> Content<'a> { diff --git a/crates/jacquard-api/src/us_polhem/blog/post.rs b/crates/jacquard-api/src/us_polhem/blog/post.rs index 0090a92c..c1856f77 100644 --- a/crates/jacquard-api/src/us_polhem/blog/post.rs +++ b/crates/jacquard-api/src/us_polhem/blog/post.rs @@ -53,65 +53,65 @@ pub mod post_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type Slug; type Title; type Content; - type Slug; type CreatedAt; } /// Empty state - all required fields are unset pub struct Empty(()); impl sealed::Sealed for Empty {} impl State for Empty { + type Slug = Unset; type Title = Unset; type Content = Unset; - type Slug = Unset; type CreatedAt = Unset; } + ///State transition - sets the `slug` field to Set + pub struct SetSlug(PhantomData S>); + impl sealed::Sealed for SetSlug {} + impl State for SetSlug { + type Slug = Set; + type Title = S::Title; + type Content = S::Content; + type CreatedAt = S::CreatedAt; + } ///State transition - sets the `title` field to Set pub struct SetTitle(PhantomData S>); impl sealed::Sealed for SetTitle {} impl State for SetTitle { + type Slug = S::Slug; type Title = Set; type Content = S::Content; - type Slug = S::Slug; type CreatedAt = S::CreatedAt; } ///State transition - sets the `content` field to Set pub struct SetContent(PhantomData S>); impl sealed::Sealed for SetContent {} impl State for SetContent { - type Title = S::Title; - type Content = Set; type Slug = S::Slug; - type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `slug` field to Set - pub struct SetSlug(PhantomData S>); - impl sealed::Sealed for SetSlug {} - impl State for SetSlug { type Title = S::Title; - type Content = S::Content; - type Slug = Set; + type Content = Set; type CreatedAt = S::CreatedAt; } ///State transition - sets the `created_at` field to Set pub struct SetCreatedAt(PhantomData S>); impl sealed::Sealed for SetCreatedAt {} impl State for SetCreatedAt { + type Slug = S::Slug; type Title = S::Title; type Content = S::Content; - type Slug = S::Slug; type CreatedAt = 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 `title` field pub struct title(()); ///Marker type for the `content` field pub struct content(()); - ///Marker type for the `slug` field - pub struct slug(()); ///Marker type for the `created_at` field pub struct created_at(()); } @@ -333,9 +333,9 @@ impl<'a, S: post_state::State> PostBuilder<'a, S> { impl<'a, S> PostBuilder<'a, S> where S: post_state::State, + S::Slug: post_state::IsSet, S::Title: post_state::IsSet, S::Content: post_state::IsSet, - S::Slug: post_state::IsSet, S::CreatedAt: post_state::IsSet, { /// Build the final struct diff --git a/crates/jacquard-api/src/us_polhem/blog/tag.rs b/crates/jacquard-api/src/us_polhem/blog/tag.rs index 5372549b..ec0e7277 100644 --- a/crates/jacquard-api/src/us_polhem/blog/tag.rs +++ b/crates/jacquard-api/src/us_polhem/blog/tag.rs @@ -37,67 +37,67 @@ pub mod tag_state { } /// State trait tracking which required fields have been set pub trait State: sealed::Sealed { + type CreatedAt; type Name; type Slug; type Description; - 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 Slug = Unset; type Description = Unset; - type CreatedAt = Unset; + } + ///State transition - sets the `created_at` field to Set + pub struct SetCreatedAt(PhantomData S>); + impl sealed::Sealed for SetCreatedAt {} + impl State for SetCreatedAt { + type CreatedAt = Set; + type Name = S::Name; + type Slug = S::Slug; + type Description = S::Description; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { + type CreatedAt = S::CreatedAt; type Name = Set; type Slug = S::Slug; type Description = S::Description; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `slug` field to Set pub struct SetSlug(PhantomData S>); impl sealed::Sealed for SetSlug {} impl State for SetSlug { + type CreatedAt = S::CreatedAt; type Name = S::Name; type Slug = Set; type Description = S::Description; - type CreatedAt = S::CreatedAt; } ///State transition - sets the `description` field to Set pub struct SetDescription(PhantomData S>); impl sealed::Sealed for SetDescription {} impl State for SetDescription { - type Name = S::Name; - type Slug = S::Slug; - type Description = Set; type CreatedAt = S::CreatedAt; - } - ///State transition - sets the `created_at` field to Set - pub struct SetCreatedAt(PhantomData S>); - impl sealed::Sealed for SetCreatedAt {} - impl State for SetCreatedAt { type Name = S::Name; type Slug = S::Slug; - type Description = S::Description; - type CreatedAt = Set; + type Description = 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 `slug` field pub struct slug(()); ///Marker type for the `description` field pub struct description(()); - ///Marker type for the `created_at` field - pub struct created_at(()); } } @@ -210,10 +210,10 @@ where impl<'a, S> TagBuilder<'a, S> where S: tag_state::State, + S::CreatedAt: tag_state::IsSet, S::Name: tag_state::IsSet, S::Slug: tag_state::IsSet, S::Description: tag_state::IsSet, - S::CreatedAt: tag_state::IsSet, { /// Build the final struct pub fn build(self) -> Tag<'a> { diff --git a/crates/jacquard-api/src/win_tomo_x/pushat.rs b/crates/jacquard-api/src/win_tomo_x/pushat.rs index 8e8c4788..6dd4d5a2 100644 --- a/crates/jacquard-api/src/win_tomo_x/pushat.rs +++ b/crates/jacquard-api/src/win_tomo_x/pushat.rs @@ -38,50 +38,50 @@ 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 Current; + type Id; } /// 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 Current = Unset; + type Id = Unset; } ///State transition - sets the `name` field to Set pub struct SetName(PhantomData S>); impl sealed::Sealed for SetName {} impl State for SetName { type Name = Set; - type Id = S::Id; - type Current = S::Current; - } - ///State transition - sets the `id` field to Set - pub struct SetId(PhantomData S>); - impl sealed::Sealed for SetId {} - impl State for SetId { - type Name = S::Name; - type Id = Set; type Current = S::Current; + type Id = S::Id; } ///State transition - sets the `current` field to Set pub struct SetCurrent(PhantomData S>); impl sealed::Sealed for SetCurrent {} impl State for SetCurrent { type Name = S::Name; - type Id = S::Id; type Current = Set; + type Id = S::Id; + } + ///State transition - sets the `id` field to Set + pub struct SetId(PhantomData S>); + impl sealed::Sealed for SetId {} + impl State for SetId { + type Name = S::Name; + type Current = S::Current; + type Id = 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 `current` field pub struct current(()); + ///Marker type for the `id` field + pub struct id(()); } } @@ -175,8 +175,8 @@ impl<'a, S> DeviceListItemBuilder<'a, S> where S: device_list_item_state::State, S::Name: device_list_item_state::IsSet, - S::Id: device_list_item_state::IsSet, S::Current: device_list_item_state::IsSet, + S::Id: device_list_item_state::IsSet, { /// Build the final struct pub fn build(self) -> DeviceListItem<'a> { diff --git a/crates/jacquard-identity/src/resolver.rs b/crates/jacquard-identity/src/resolver.rs index 38073435..314d21df 100644 --- a/crates/jacquard-identity/src/resolver.rs +++ b/crates/jacquard-identity/src/resolver.rs @@ -38,12 +38,12 @@ pub enum PlcSource { /// Use the public PLC directory PlcDirectory { /// Base URL for the PLC directory - pub base: Url, + base: Url, }, /// Use the slingshot mini-docs service Slingshot { /// Base URL for the Slingshot service - pub base: Url, + base: Url, }, } diff --git a/crates/jacquard-lexicon/src/codegen/builder_gen.rs b/crates/jacquard-lexicon/src/codegen/builder_gen.rs index e2290497..269f5397 100644 --- a/crates/jacquard-lexicon/src/codegen/builder_gen.rs +++ b/crates/jacquard-lexicon/src/codegen/builder_gen.rs @@ -26,6 +26,13 @@ impl<'a> BuilderSchema<'a> { } } + pub fn nullable(&self) -> Option<&[jacquard_common::smol_str::SmolStr]> { + match self { + BuilderSchema::Object(obj) => obj.nullable.as_deref(), + BuilderSchema::Parameters(_) => None, + } + } + /// Get the property names (field names) pub fn property_names(&self) -> Vec<&jacquard_common::smol_str::SmolStr> { match self { diff --git a/crates/jacquard-lexicon/src/codegen/builder_gen/state_mod.rs b/crates/jacquard-lexicon/src/codegen/builder_gen/state_mod.rs index 6fe66b2e..1ca8181c 100644 --- a/crates/jacquard-lexicon/src/codegen/builder_gen/state_mod.rs +++ b/crates/jacquard-lexicon/src/codegen/builder_gen/state_mod.rs @@ -3,6 +3,8 @@ //! Generates the state trait, Empty state, and SetX transition types //! that enable type-safe builder patterns. +use std::collections::HashSet; + use heck::{ToPascalCase, ToSnakeCase}; use jacquard_common::smol_str::SmolStr; use proc_macro2::TokenStream; @@ -11,7 +13,7 @@ use quote::{format_ident, quote}; use crate::codegen::utils::make_ident; /// Information about a required field for builder state generation -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Hash, PartialEq, Eq)] pub struct RequiredField { /// Field name (snake_case) pub name_snake: SmolStr, @@ -31,14 +33,21 @@ impl RequiredField { /// Collect required fields from a builder schema pub fn collect_required_fields(schema: &super::BuilderSchema<'_>) -> Vec { let required = schema.required().unwrap_or(&[]); + let nullable = schema.nullable().unwrap_or(&[]); - required + let set: HashSet<_> = required .iter() - .map(|field_name| { - let field_name_str: &str = field_name.as_ref(); - RequiredField::new(field_name_str) + .filter_map(|field_name| { + if nullable.contains(&field_name) { + None + } else { + let field_name_str: &str = field_name.as_ref(); + Some(RequiredField::new(field_name_str)) + } }) - .collect() + .collect(); + + set.into_iter().collect() } /// Generate the complete state module for a builder -- 2.51.2