A better Rust ATProto crate

added fetch_record() convenience option which easily fetches an owned record without turbofish.

Orual a1b67c7e ca7ac08f

Changed files
+2540 -1430
crates
jacquard
src
jacquard-api
src
app_blebbit
authr
folder
group
page
app_bsky
app_ocho
app_rocksky
beauty_cybernetic
blog_pckt
blue__2048
key
player
player
verification
blue_atplane
blue_linkat
blue_zio
atfile
buzz_bookhive
chat_bsky
com_atproto
lexicon
com_crabdance
nandi
com_shinolabs
com_whtwnd
blog
community_lexicon
bookmarks
calendar
interaction
payments
dev_baileytownsend
dev_fudgeu
experimental
dev_ocbwoy3
blueboard
dev_regnault
webfishing
fyi_unravel
moe_karashiiro
kpaste
my_skylights
net_aftertheinter
net_altq
net_anisota
net_bnewbold
net_mmatt
right
vitals
network_slices
org_devcon
event
org_robocracy
place_atwork
place_stream
pub_leaflet
sh_tangled
sh_weaver
social_clippr
social_grain
social_pmsky
social_psky
tools_smokesignal
blahg
content
uk_ewancroft
uk_skyblur
us_polhem
win_tomo_x
pushat
jacquard-lexicon
src
codegen
examples
+14 -8
crates/jacquard-api/src/app_blebbit/authr/folder/record.rs
··· 52 52 pub value: Record<'a>, 53 53 } 54 54 55 + impl From<RecordGetRecordOutput<'_>> for Record<'_> { 56 + fn from(output: RecordGetRecordOutput<'_>) -> Self { 57 + use jacquard_common::IntoStatic; 58 + output.value.into_static() 59 + } 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for Record<'_> { 63 + const NSID: &'static str = "app.blebbit.authr.folder.record"; 64 + type Record = RecordRecord; 65 + } 66 + 55 67 /// Marker type for deserializing records from this collection. 68 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 56 69 pub struct RecordRecord; 57 70 impl jacquard_common::xrpc::XrpcResp for RecordRecord { 58 71 const NSID: &'static str = "app.blebbit.authr.folder.record"; ··· 61 74 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 62 75 } 63 76 64 - impl jacquard_common::types::collection::Collection for Record<'_> { 77 + impl jacquard_common::types::collection::Collection for RecordRecord { 65 78 const NSID: &'static str = "app.blebbit.authr.folder.record"; 66 79 type Record = RecordRecord; 67 - } 68 - 69 - impl From<RecordGetRecordOutput<'_>> for Record<'_> { 70 - fn from(output: RecordGetRecordOutput<'_>) -> Self { 71 - use jacquard_common::IntoStatic; 72 - output.value.into_static() 73 - } 74 80 }
+14 -8
crates/jacquard-api/src/app_blebbit/authr/group/record.rs
··· 60 60 pub value: Record<'a>, 61 61 } 62 62 63 + impl From<RecordGetRecordOutput<'_>> for Record<'_> { 64 + fn from(output: RecordGetRecordOutput<'_>) -> Self { 65 + use jacquard_common::IntoStatic; 66 + output.value.into_static() 67 + } 68 + } 69 + 70 + impl jacquard_common::types::collection::Collection for Record<'_> { 71 + const NSID: &'static str = "app.blebbit.authr.group.record"; 72 + type Record = RecordRecord; 73 + } 74 + 63 75 /// Marker type for deserializing records from this collection. 76 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 64 77 pub struct RecordRecord; 65 78 impl jacquard_common::xrpc::XrpcResp for RecordRecord { 66 79 const NSID: &'static str = "app.blebbit.authr.group.record"; ··· 69 82 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 70 83 } 71 84 72 - impl jacquard_common::types::collection::Collection for Record<'_> { 85 + impl jacquard_common::types::collection::Collection for RecordRecord { 73 86 const NSID: &'static str = "app.blebbit.authr.group.record"; 74 87 type Record = RecordRecord; 75 - } 76 - 77 - impl From<RecordGetRecordOutput<'_>> for Record<'_> { 78 - fn from(output: RecordGetRecordOutput<'_>) -> Self { 79 - use jacquard_common::IntoStatic; 80 - output.value.into_static() 81 - } 82 88 }
+14 -8
crates/jacquard-api/src/app_blebbit/authr/page/record.rs
··· 56 56 pub value: Record<'a>, 57 57 } 58 58 59 + impl From<RecordGetRecordOutput<'_>> for Record<'_> { 60 + fn from(output: RecordGetRecordOutput<'_>) -> Self { 61 + use jacquard_common::IntoStatic; 62 + output.value.into_static() 63 + } 64 + } 65 + 66 + impl jacquard_common::types::collection::Collection for Record<'_> { 67 + const NSID: &'static str = "app.blebbit.authr.page.record"; 68 + type Record = RecordRecord; 69 + } 70 + 59 71 /// Marker type for deserializing records from this collection. 72 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 60 73 pub struct RecordRecord; 61 74 impl jacquard_common::xrpc::XrpcResp for RecordRecord { 62 75 const NSID: &'static str = "app.blebbit.authr.page.record"; ··· 65 78 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 66 79 } 67 80 68 - impl jacquard_common::types::collection::Collection for Record<'_> { 81 + impl jacquard_common::types::collection::Collection for RecordRecord { 69 82 const NSID: &'static str = "app.blebbit.authr.page.record"; 70 83 type Record = RecordRecord; 71 - } 72 - 73 - impl From<RecordGetRecordOutput<'_>> for Record<'_> { 74 - fn from(output: RecordGetRecordOutput<'_>) -> Self { 75 - use jacquard_common::IntoStatic; 76 - output.value.into_static() 77 - } 78 84 }
+14 -8
crates/jacquard-api/src/app_bsky/actor/profile.rs
··· 88 88 pub value: Profile<'a>, 89 89 } 90 90 91 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 92 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 93 + use jacquard_common::IntoStatic; 94 + output.value.into_static() 95 + } 96 + } 97 + 98 + impl jacquard_common::types::collection::Collection for Profile<'_> { 99 + const NSID: &'static str = "app.bsky.actor.profile"; 100 + type Record = ProfileRecord; 101 + } 102 + 91 103 /// Marker type for deserializing records from this collection. 104 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 92 105 pub struct ProfileRecord; 93 106 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 94 107 const NSID: &'static str = "app.bsky.actor.profile"; ··· 97 110 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 98 111 } 99 112 100 - impl jacquard_common::types::collection::Collection for Profile<'_> { 113 + impl jacquard_common::types::collection::Collection for ProfileRecord { 101 114 const NSID: &'static str = "app.bsky.actor.profile"; 102 115 type Record = ProfileRecord; 103 - } 104 - 105 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 106 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 107 - use jacquard_common::IntoStatic; 108 - output.value.into_static() 109 - } 110 116 }
+14 -8
crates/jacquard-api/src/app_bsky/actor/status.rs
··· 74 74 pub value: Status<'a>, 75 75 } 76 76 77 + impl From<StatusGetRecordOutput<'_>> for Status<'_> { 78 + fn from(output: StatusGetRecordOutput<'_>) -> Self { 79 + use jacquard_common::IntoStatic; 80 + output.value.into_static() 81 + } 82 + } 83 + 84 + impl jacquard_common::types::collection::Collection for Status<'_> { 85 + const NSID: &'static str = "app.bsky.actor.status"; 86 + type Record = StatusRecord; 87 + } 88 + 77 89 /// Marker type for deserializing records from this collection. 90 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 78 91 pub struct StatusRecord; 79 92 impl jacquard_common::xrpc::XrpcResp for StatusRecord { 80 93 const NSID: &'static str = "app.bsky.actor.status"; ··· 83 96 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 84 97 } 85 98 86 - impl jacquard_common::types::collection::Collection for Status<'_> { 99 + impl jacquard_common::types::collection::Collection for StatusRecord { 87 100 const NSID: &'static str = "app.bsky.actor.status"; 88 101 type Record = StatusRecord; 89 - } 90 - 91 - impl From<StatusGetRecordOutput<'_>> for Status<'_> { 92 - fn from(output: StatusGetRecordOutput<'_>) -> Self { 93 - use jacquard_common::IntoStatic; 94 - output.value.into_static() 95 - } 96 102 }
+14 -8
crates/jacquard-api/src/app_bsky/feed/generator.rs
··· 73 73 pub value: Generator<'a>, 74 74 } 75 75 76 + impl From<GeneratorGetRecordOutput<'_>> for Generator<'_> { 77 + fn from(output: GeneratorGetRecordOutput<'_>) -> Self { 78 + use jacquard_common::IntoStatic; 79 + output.value.into_static() 80 + } 81 + } 82 + 83 + impl jacquard_common::types::collection::Collection for Generator<'_> { 84 + const NSID: &'static str = "app.bsky.feed.generator"; 85 + type Record = GeneratorRecord; 86 + } 87 + 76 88 /// Marker type for deserializing records from this collection. 89 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 77 90 pub struct GeneratorRecord; 78 91 impl jacquard_common::xrpc::XrpcResp for GeneratorRecord { 79 92 const NSID: &'static str = "app.bsky.feed.generator"; ··· 82 95 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 83 96 } 84 97 85 - impl jacquard_common::types::collection::Collection for Generator<'_> { 98 + impl jacquard_common::types::collection::Collection for GeneratorRecord { 86 99 const NSID: &'static str = "app.bsky.feed.generator"; 87 100 type Record = GeneratorRecord; 88 - } 89 - 90 - impl From<GeneratorGetRecordOutput<'_>> for Generator<'_> { 91 - fn from(output: GeneratorGetRecordOutput<'_>) -> Self { 92 - use jacquard_common::IntoStatic; 93 - output.value.into_static() 94 - } 95 101 }
+14 -8
crates/jacquard-api/src/app_bsky/feed/like.rs
··· 49 49 pub value: Like<'a>, 50 50 } 51 51 52 + impl From<LikeGetRecordOutput<'_>> for Like<'_> { 53 + fn from(output: LikeGetRecordOutput<'_>) -> Self { 54 + use jacquard_common::IntoStatic; 55 + output.value.into_static() 56 + } 57 + } 58 + 59 + impl jacquard_common::types::collection::Collection for Like<'_> { 60 + const NSID: &'static str = "app.bsky.feed.like"; 61 + type Record = LikeRecord; 62 + } 63 + 52 64 /// Marker type for deserializing records from this collection. 65 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 53 66 pub struct LikeRecord; 54 67 impl jacquard_common::xrpc::XrpcResp for LikeRecord { 55 68 const NSID: &'static str = "app.bsky.feed.like"; ··· 58 71 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 59 72 } 60 73 61 - impl jacquard_common::types::collection::Collection for Like<'_> { 74 + impl jacquard_common::types::collection::Collection for LikeRecord { 62 75 const NSID: &'static str = "app.bsky.feed.like"; 63 76 type Record = LikeRecord; 64 - } 65 - 66 - impl From<LikeGetRecordOutput<'_>> for Like<'_> { 67 - fn from(output: LikeGetRecordOutput<'_>) -> Self { 68 - use jacquard_common::IntoStatic; 69 - output.value.into_static() 70 - } 71 77 }
+14 -8
crates/jacquard-api/src/app_bsky/feed/post.rs
··· 130 130 pub value: Post<'a>, 131 131 } 132 132 133 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 134 + fn from(output: PostGetRecordOutput<'_>) -> Self { 135 + use jacquard_common::IntoStatic; 136 + output.value.into_static() 137 + } 138 + } 139 + 140 + impl jacquard_common::types::collection::Collection for Post<'_> { 141 + const NSID: &'static str = "app.bsky.feed.post"; 142 + type Record = PostRecord; 143 + } 144 + 133 145 /// Marker type for deserializing records from this collection. 146 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 134 147 pub struct PostRecord; 135 148 impl jacquard_common::xrpc::XrpcResp for PostRecord { 136 149 const NSID: &'static str = "app.bsky.feed.post"; ··· 139 152 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 140 153 } 141 154 142 - impl jacquard_common::types::collection::Collection for Post<'_> { 155 + impl jacquard_common::types::collection::Collection for PostRecord { 143 156 const NSID: &'static str = "app.bsky.feed.post"; 144 157 type Record = PostRecord; 145 - } 146 - 147 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 148 - fn from(output: PostGetRecordOutput<'_>) -> Self { 149 - use jacquard_common::IntoStatic; 150 - output.value.into_static() 151 - } 152 158 } 153 159 154 160 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/app_bsky/feed/postgate.rs
··· 70 70 pub value: Postgate<'a>, 71 71 } 72 72 73 + impl From<PostgateGetRecordOutput<'_>> for Postgate<'_> { 74 + fn from(output: PostgateGetRecordOutput<'_>) -> Self { 75 + use jacquard_common::IntoStatic; 76 + output.value.into_static() 77 + } 78 + } 79 + 80 + impl jacquard_common::types::collection::Collection for Postgate<'_> { 81 + const NSID: &'static str = "app.bsky.feed.postgate"; 82 + type Record = PostgateRecord; 83 + } 84 + 73 85 /// Marker type for deserializing records from this collection. 86 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 74 87 pub struct PostgateRecord; 75 88 impl jacquard_common::xrpc::XrpcResp for PostgateRecord { 76 89 const NSID: &'static str = "app.bsky.feed.postgate"; ··· 79 92 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 80 93 } 81 94 82 - impl jacquard_common::types::collection::Collection for Postgate<'_> { 95 + impl jacquard_common::types::collection::Collection for PostgateRecord { 83 96 const NSID: &'static str = "app.bsky.feed.postgate"; 84 97 type Record = PostgateRecord; 85 - } 86 - 87 - impl From<PostgateGetRecordOutput<'_>> for Postgate<'_> { 88 - fn from(output: PostgateGetRecordOutput<'_>) -> Self { 89 - use jacquard_common::IntoStatic; 90 - output.value.into_static() 91 - } 92 98 }
+14 -8
crates/jacquard-api/src/app_bsky/feed/repost.rs
··· 49 49 pub value: Repost<'a>, 50 50 } 51 51 52 + impl From<RepostGetRecordOutput<'_>> for Repost<'_> { 53 + fn from(output: RepostGetRecordOutput<'_>) -> Self { 54 + use jacquard_common::IntoStatic; 55 + output.value.into_static() 56 + } 57 + } 58 + 59 + impl jacquard_common::types::collection::Collection for Repost<'_> { 60 + const NSID: &'static str = "app.bsky.feed.repost"; 61 + type Record = RepostRecord; 62 + } 63 + 52 64 /// Marker type for deserializing records from this collection. 65 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 53 66 pub struct RepostRecord; 54 67 impl jacquard_common::xrpc::XrpcResp for RepostRecord { 55 68 const NSID: &'static str = "app.bsky.feed.repost"; ··· 58 71 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 59 72 } 60 73 61 - impl jacquard_common::types::collection::Collection for Repost<'_> { 74 + impl jacquard_common::types::collection::Collection for RepostRecord { 62 75 const NSID: &'static str = "app.bsky.feed.repost"; 63 76 type Record = RepostRecord; 64 - } 65 - 66 - impl From<RepostGetRecordOutput<'_>> for Repost<'_> { 67 - fn from(output: RepostGetRecordOutput<'_>) -> Self { 68 - use jacquard_common::IntoStatic; 69 - output.value.into_static() 70 - } 71 77 }
+14 -8
crates/jacquard-api/src/app_bsky/feed/threadgate.rs
··· 125 125 pub value: Threadgate<'a>, 126 126 } 127 127 128 + impl From<ThreadgateGetRecordOutput<'_>> for Threadgate<'_> { 129 + fn from(output: ThreadgateGetRecordOutput<'_>) -> Self { 130 + use jacquard_common::IntoStatic; 131 + output.value.into_static() 132 + } 133 + } 134 + 135 + impl jacquard_common::types::collection::Collection for Threadgate<'_> { 136 + const NSID: &'static str = "app.bsky.feed.threadgate"; 137 + type Record = ThreadgateRecord; 138 + } 139 + 128 140 /// Marker type for deserializing records from this collection. 141 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 129 142 pub struct ThreadgateRecord; 130 143 impl jacquard_common::xrpc::XrpcResp for ThreadgateRecord { 131 144 const NSID: &'static str = "app.bsky.feed.threadgate"; ··· 134 147 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 135 148 } 136 149 137 - impl jacquard_common::types::collection::Collection for Threadgate<'_> { 150 + impl jacquard_common::types::collection::Collection for ThreadgateRecord { 138 151 const NSID: &'static str = "app.bsky.feed.threadgate"; 139 152 type Record = ThreadgateRecord; 140 - } 141 - 142 - impl From<ThreadgateGetRecordOutput<'_>> for Threadgate<'_> { 143 - fn from(output: ThreadgateGetRecordOutput<'_>) -> Self { 144 - use jacquard_common::IntoStatic; 145 - output.value.into_static() 146 - } 147 153 } 148 154 149 155 /// Allow replies from actors mentioned in your post.
+14 -8
crates/jacquard-api/src/app_bsky/graph/block.rs
··· 46 46 pub value: Block<'a>, 47 47 } 48 48 49 + impl From<BlockGetRecordOutput<'_>> for Block<'_> { 50 + fn from(output: BlockGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Block<'_> { 57 + const NSID: &'static str = "app.bsky.graph.block"; 58 + type Record = BlockRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct BlockRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for BlockRecord { 52 65 const NSID: &'static str = "app.bsky.graph.block"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Block<'_> { 71 + impl jacquard_common::types::collection::Collection for BlockRecord { 59 72 const NSID: &'static str = "app.bsky.graph.block"; 60 73 type Record = BlockRecord; 61 - } 62 - 63 - impl From<BlockGetRecordOutput<'_>> for Block<'_> { 64 - fn from(output: BlockGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/app_bsky/graph/follow.rs
··· 45 45 pub value: Follow<'a>, 46 46 } 47 47 48 + impl From<FollowGetRecordOutput<'_>> for Follow<'_> { 49 + fn from(output: FollowGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for Follow<'_> { 56 + const NSID: &'static str = "app.bsky.graph.follow"; 57 + type Record = FollowRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct FollowRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for FollowRecord { 51 64 const NSID: &'static str = "app.bsky.graph.follow"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for Follow<'_> { 70 + impl jacquard_common::types::collection::Collection for FollowRecord { 58 71 const NSID: &'static str = "app.bsky.graph.follow"; 59 72 type Record = FollowRecord; 60 - } 61 - 62 - impl From<FollowGetRecordOutput<'_>> for Follow<'_> { 63 - fn from(output: FollowGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/app_bsky/graph/list.rs
··· 66 66 pub value: List<'a>, 67 67 } 68 68 69 + impl From<ListGetRecordOutput<'_>> for List<'_> { 70 + fn from(output: ListGetRecordOutput<'_>) -> Self { 71 + use jacquard_common::IntoStatic; 72 + output.value.into_static() 73 + } 74 + } 75 + 76 + impl jacquard_common::types::collection::Collection for List<'_> { 77 + const NSID: &'static str = "app.bsky.graph.list"; 78 + type Record = ListRecord; 79 + } 80 + 69 81 /// Marker type for deserializing records from this collection. 82 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 70 83 pub struct ListRecord; 71 84 impl jacquard_common::xrpc::XrpcResp for ListRecord { 72 85 const NSID: &'static str = "app.bsky.graph.list"; ··· 75 88 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 76 89 } 77 90 78 - impl jacquard_common::types::collection::Collection for List<'_> { 91 + impl jacquard_common::types::collection::Collection for ListRecord { 79 92 const NSID: &'static str = "app.bsky.graph.list"; 80 93 type Record = ListRecord; 81 - } 82 - 83 - impl From<ListGetRecordOutput<'_>> for List<'_> { 84 - fn from(output: ListGetRecordOutput<'_>) -> Self { 85 - use jacquard_common::IntoStatic; 86 - output.value.into_static() 87 - } 88 94 }
+14 -8
crates/jacquard-api/src/app_bsky/graph/listblock.rs
··· 46 46 pub value: Listblock<'a>, 47 47 } 48 48 49 + impl From<ListblockGetRecordOutput<'_>> for Listblock<'_> { 50 + fn from(output: ListblockGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Listblock<'_> { 57 + const NSID: &'static str = "app.bsky.graph.listblock"; 58 + type Record = ListblockRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct ListblockRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for ListblockRecord { 52 65 const NSID: &'static str = "app.bsky.graph.listblock"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Listblock<'_> { 71 + impl jacquard_common::types::collection::Collection for ListblockRecord { 59 72 const NSID: &'static str = "app.bsky.graph.listblock"; 60 73 type Record = ListblockRecord; 61 - } 62 - 63 - impl From<ListblockGetRecordOutput<'_>> for Listblock<'_> { 64 - fn from(output: ListblockGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/app_bsky/graph/listitem.rs
··· 49 49 pub value: Listitem<'a>, 50 50 } 51 51 52 + impl From<ListitemGetRecordOutput<'_>> for Listitem<'_> { 53 + fn from(output: ListitemGetRecordOutput<'_>) -> Self { 54 + use jacquard_common::IntoStatic; 55 + output.value.into_static() 56 + } 57 + } 58 + 59 + impl jacquard_common::types::collection::Collection for Listitem<'_> { 60 + const NSID: &'static str = "app.bsky.graph.listitem"; 61 + type Record = ListitemRecord; 62 + } 63 + 52 64 /// Marker type for deserializing records from this collection. 65 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 53 66 pub struct ListitemRecord; 54 67 impl jacquard_common::xrpc::XrpcResp for ListitemRecord { 55 68 const NSID: &'static str = "app.bsky.graph.listitem"; ··· 58 71 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 59 72 } 60 73 61 - impl jacquard_common::types::collection::Collection for Listitem<'_> { 74 + impl jacquard_common::types::collection::Collection for ListitemRecord { 62 75 const NSID: &'static str = "app.bsky.graph.listitem"; 63 76 type Record = ListitemRecord; 64 - } 65 - 66 - impl From<ListitemGetRecordOutput<'_>> for Listitem<'_> { 67 - fn from(output: ListitemGetRecordOutput<'_>) -> Self { 68 - use jacquard_common::IntoStatic; 69 - output.value.into_static() 70 - } 71 77 }
+14 -8
crates/jacquard-api/src/app_bsky/graph/starterpack.rs
··· 79 79 pub value: Starterpack<'a>, 80 80 } 81 81 82 + impl From<StarterpackGetRecordOutput<'_>> for Starterpack<'_> { 83 + fn from(output: StarterpackGetRecordOutput<'_>) -> Self { 84 + use jacquard_common::IntoStatic; 85 + output.value.into_static() 86 + } 87 + } 88 + 89 + impl jacquard_common::types::collection::Collection for Starterpack<'_> { 90 + const NSID: &'static str = "app.bsky.graph.starterpack"; 91 + type Record = StarterpackRecord; 92 + } 93 + 82 94 /// Marker type for deserializing records from this collection. 95 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 83 96 pub struct StarterpackRecord; 84 97 impl jacquard_common::xrpc::XrpcResp for StarterpackRecord { 85 98 const NSID: &'static str = "app.bsky.graph.starterpack"; ··· 88 101 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 89 102 } 90 103 91 - impl jacquard_common::types::collection::Collection for Starterpack<'_> { 104 + impl jacquard_common::types::collection::Collection for StarterpackRecord { 92 105 const NSID: &'static str = "app.bsky.graph.starterpack"; 93 106 type Record = StarterpackRecord; 94 - } 95 - 96 - impl From<StarterpackGetRecordOutput<'_>> for Starterpack<'_> { 97 - fn from(output: StarterpackGetRecordOutput<'_>) -> Self { 98 - use jacquard_common::IntoStatic; 99 - output.value.into_static() 100 - } 101 107 }
+14 -8
crates/jacquard-api/src/app_bsky/graph/verification.rs
··· 54 54 pub value: Verification<'a>, 55 55 } 56 56 57 + impl From<VerificationGetRecordOutput<'_>> for Verification<'_> { 58 + fn from(output: VerificationGetRecordOutput<'_>) -> Self { 59 + use jacquard_common::IntoStatic; 60 + output.value.into_static() 61 + } 62 + } 63 + 64 + impl jacquard_common::types::collection::Collection for Verification<'_> { 65 + const NSID: &'static str = "app.bsky.graph.verification"; 66 + type Record = VerificationRecord; 67 + } 68 + 57 69 /// Marker type for deserializing records from this collection. 70 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 58 71 pub struct VerificationRecord; 59 72 impl jacquard_common::xrpc::XrpcResp for VerificationRecord { 60 73 const NSID: &'static str = "app.bsky.graph.verification"; ··· 63 76 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 64 77 } 65 78 66 - impl jacquard_common::types::collection::Collection for Verification<'_> { 79 + impl jacquard_common::types::collection::Collection for VerificationRecord { 67 80 const NSID: &'static str = "app.bsky.graph.verification"; 68 81 type Record = VerificationRecord; 69 - } 70 - 71 - impl From<VerificationGetRecordOutput<'_>> for Verification<'_> { 72 - fn from(output: VerificationGetRecordOutput<'_>) -> Self { 73 - use jacquard_common::IntoStatic; 74 - output.value.into_static() 75 - } 76 82 }
+14 -8
crates/jacquard-api/src/app_bsky/labeler/service.rs
··· 64 64 pub value: Service<'a>, 65 65 } 66 66 67 + impl From<ServiceGetRecordOutput<'_>> for Service<'_> { 68 + fn from(output: ServiceGetRecordOutput<'_>) -> Self { 69 + use jacquard_common::IntoStatic; 70 + output.value.into_static() 71 + } 72 + } 73 + 74 + impl jacquard_common::types::collection::Collection for Service<'_> { 75 + const NSID: &'static str = "app.bsky.labeler.service"; 76 + type Record = ServiceRecord; 77 + } 78 + 67 79 /// Marker type for deserializing records from this collection. 80 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 68 81 pub struct ServiceRecord; 69 82 impl jacquard_common::xrpc::XrpcResp for ServiceRecord { 70 83 const NSID: &'static str = "app.bsky.labeler.service"; ··· 73 86 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 74 87 } 75 88 76 - impl jacquard_common::types::collection::Collection for Service<'_> { 89 + impl jacquard_common::types::collection::Collection for ServiceRecord { 77 90 const NSID: &'static str = "app.bsky.labeler.service"; 78 91 type Record = ServiceRecord; 79 - } 80 - 81 - impl From<ServiceGetRecordOutput<'_>> for Service<'_> { 82 - fn from(output: ServiceGetRecordOutput<'_>) -> Self { 83 - use jacquard_common::IntoStatic; 84 - output.value.into_static() 85 - } 86 92 }
+14 -8
crates/jacquard-api/src/app_bsky/notification/declaration.rs
··· 46 46 pub value: Declaration<'a>, 47 47 } 48 48 49 + impl From<DeclarationGetRecordOutput<'_>> for Declaration<'_> { 50 + fn from(output: DeclarationGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Declaration<'_> { 57 + const NSID: &'static str = "app.bsky.notification.declaration"; 58 + type Record = DeclarationRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct DeclarationRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for DeclarationRecord { 52 65 const NSID: &'static str = "app.bsky.notification.declaration"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Declaration<'_> { 71 + impl jacquard_common::types::collection::Collection for DeclarationRecord { 59 72 const NSID: &'static str = "app.bsky.notification.declaration"; 60 73 type Record = DeclarationRecord; 61 - } 62 - 63 - impl From<DeclarationGetRecordOutput<'_>> for Declaration<'_> { 64 - fn from(output: DeclarationGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/app_ocho/edu/verification.rs
··· 51 51 pub value: Verification<'a>, 52 52 } 53 53 54 + impl From<VerificationGetRecordOutput<'_>> for Verification<'_> { 55 + fn from(output: VerificationGetRecordOutput<'_>) -> Self { 56 + use jacquard_common::IntoStatic; 57 + output.value.into_static() 58 + } 59 + } 60 + 61 + impl jacquard_common::types::collection::Collection for Verification<'_> { 62 + const NSID: &'static str = "app.ocho.edu.verification"; 63 + type Record = VerificationRecord; 64 + } 65 + 54 66 /// Marker type for deserializing records from this collection. 67 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 55 68 pub struct VerificationRecord; 56 69 impl jacquard_common::xrpc::XrpcResp for VerificationRecord { 57 70 const NSID: &'static str = "app.ocho.edu.verification"; ··· 60 73 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 61 74 } 62 75 63 - impl jacquard_common::types::collection::Collection for Verification<'_> { 76 + impl jacquard_common::types::collection::Collection for VerificationRecord { 64 77 const NSID: &'static str = "app.ocho.edu.verification"; 65 78 type Record = VerificationRecord; 66 - } 67 - 68 - impl From<VerificationGetRecordOutput<'_>> for Verification<'_> { 69 - fn from(output: VerificationGetRecordOutput<'_>) -> Self { 70 - use jacquard_common::IntoStatic; 71 - output.value.into_static() 72 - } 73 79 }
+14 -8
crates/jacquard-api/src/app_ocho/plugin/service.rs
··· 49 49 pub value: Service<'a>, 50 50 } 51 51 52 + impl From<ServiceGetRecordOutput<'_>> for Service<'_> { 53 + fn from(output: ServiceGetRecordOutput<'_>) -> Self { 54 + use jacquard_common::IntoStatic; 55 + output.value.into_static() 56 + } 57 + } 58 + 59 + impl jacquard_common::types::collection::Collection for Service<'_> { 60 + const NSID: &'static str = "app.ocho.plugin.service"; 61 + type Record = ServiceRecord; 62 + } 63 + 52 64 /// Marker type for deserializing records from this collection. 65 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 53 66 pub struct ServiceRecord; 54 67 impl jacquard_common::xrpc::XrpcResp for ServiceRecord { 55 68 const NSID: &'static str = "app.ocho.plugin.service"; ··· 58 71 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 59 72 } 60 73 61 - impl jacquard_common::types::collection::Collection for Service<'_> { 74 + impl jacquard_common::types::collection::Collection for ServiceRecord { 62 75 const NSID: &'static str = "app.ocho.plugin.service"; 63 76 type Record = ServiceRecord; 64 - } 65 - 66 - impl From<ServiceGetRecordOutput<'_>> for Service<'_> { 67 - fn from(output: ServiceGetRecordOutput<'_>) -> Self { 68 - use jacquard_common::IntoStatic; 69 - output.value.into_static() 70 - } 71 77 }
+14 -8
crates/jacquard-api/src/app_rocksky/album.rs
··· 103 103 pub value: Album<'a>, 104 104 } 105 105 106 + impl From<AlbumGetRecordOutput<'_>> for Album<'_> { 107 + fn from(output: AlbumGetRecordOutput<'_>) -> Self { 108 + use jacquard_common::IntoStatic; 109 + output.value.into_static() 110 + } 111 + } 112 + 113 + impl jacquard_common::types::collection::Collection for Album<'_> { 114 + const NSID: &'static str = "app.rocksky.album"; 115 + type Record = AlbumRecord; 116 + } 117 + 106 118 /// Marker type for deserializing records from this collection. 119 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 107 120 pub struct AlbumRecord; 108 121 impl jacquard_common::xrpc::XrpcResp for AlbumRecord { 109 122 const NSID: &'static str = "app.rocksky.album"; ··· 112 125 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 113 126 } 114 127 115 - impl jacquard_common::types::collection::Collection for Album<'_> { 128 + impl jacquard_common::types::collection::Collection for AlbumRecord { 116 129 const NSID: &'static str = "app.rocksky.album"; 117 130 type Record = AlbumRecord; 118 - } 119 - 120 - impl From<AlbumGetRecordOutput<'_>> for Album<'_> { 121 - fn from(output: AlbumGetRecordOutput<'_>) -> Self { 122 - use jacquard_common::IntoStatic; 123 - output.value.into_static() 124 - } 125 131 } 126 132 127 133 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/app_rocksky/artist.rs
··· 81 81 pub value: Artist<'a>, 82 82 } 83 83 84 + impl From<ArtistGetRecordOutput<'_>> for Artist<'_> { 85 + fn from(output: ArtistGetRecordOutput<'_>) -> Self { 86 + use jacquard_common::IntoStatic; 87 + output.value.into_static() 88 + } 89 + } 90 + 91 + impl jacquard_common::types::collection::Collection for Artist<'_> { 92 + const NSID: &'static str = "app.rocksky.artist"; 93 + type Record = ArtistRecord; 94 + } 95 + 84 96 /// Marker type for deserializing records from this collection. 97 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 85 98 pub struct ArtistRecord; 86 99 impl jacquard_common::xrpc::XrpcResp for ArtistRecord { 87 100 const NSID: &'static str = "app.rocksky.artist"; ··· 90 103 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 91 104 } 92 105 93 - impl jacquard_common::types::collection::Collection for Artist<'_> { 106 + impl jacquard_common::types::collection::Collection for ArtistRecord { 94 107 const NSID: &'static str = "app.rocksky.artist"; 95 108 type Record = ArtistRecord; 96 - } 97 - 98 - impl From<ArtistGetRecordOutput<'_>> for Artist<'_> { 99 - fn from(output: ArtistGetRecordOutput<'_>) -> Self { 100 - use jacquard_common::IntoStatic; 101 - output.value.into_static() 102 - } 103 109 } 104 110 105 111 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/app_rocksky/like.rs
··· 51 51 pub value: Like<'a>, 52 52 } 53 53 54 + impl From<LikeGetRecordOutput<'_>> for Like<'_> { 55 + fn from(output: LikeGetRecordOutput<'_>) -> Self { 56 + use jacquard_common::IntoStatic; 57 + output.value.into_static() 58 + } 59 + } 60 + 61 + impl jacquard_common::types::collection::Collection for Like<'_> { 62 + const NSID: &'static str = "app.rocksky.like"; 63 + type Record = LikeRecord; 64 + } 65 + 54 66 /// Marker type for deserializing records from this collection. 67 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 55 68 pub struct LikeRecord; 56 69 impl jacquard_common::xrpc::XrpcResp for LikeRecord { 57 70 const NSID: &'static str = "app.rocksky.like"; ··· 60 73 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 61 74 } 62 75 63 - impl jacquard_common::types::collection::Collection for Like<'_> { 76 + impl jacquard_common::types::collection::Collection for LikeRecord { 64 77 const NSID: &'static str = "app.rocksky.like"; 65 78 type Record = LikeRecord; 66 - } 67 - 68 - impl From<LikeGetRecordOutput<'_>> for Like<'_> { 69 - fn from(output: LikeGetRecordOutput<'_>) -> Self { 70 - use jacquard_common::IntoStatic; 71 - output.value.into_static() 72 - } 73 79 }
+14 -8
crates/jacquard-api/src/app_rocksky/playlist.rs
··· 86 86 pub value: Playlist<'a>, 87 87 } 88 88 89 + impl From<PlaylistGetRecordOutput<'_>> for Playlist<'_> { 90 + fn from(output: PlaylistGetRecordOutput<'_>) -> Self { 91 + use jacquard_common::IntoStatic; 92 + output.value.into_static() 93 + } 94 + } 95 + 96 + impl jacquard_common::types::collection::Collection for Playlist<'_> { 97 + const NSID: &'static str = "app.rocksky.playlist"; 98 + type Record = PlaylistRecord; 99 + } 100 + 89 101 /// Marker type for deserializing records from this collection. 102 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 90 103 pub struct PlaylistRecord; 91 104 impl jacquard_common::xrpc::XrpcResp for PlaylistRecord { 92 105 const NSID: &'static str = "app.rocksky.playlist"; ··· 95 108 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 96 109 } 97 110 98 - impl jacquard_common::types::collection::Collection for Playlist<'_> { 111 + impl jacquard_common::types::collection::Collection for PlaylistRecord { 99 112 const NSID: &'static str = "app.rocksky.playlist"; 100 113 type Record = PlaylistRecord; 101 - } 102 - 103 - impl From<PlaylistGetRecordOutput<'_>> for Playlist<'_> { 104 - fn from(output: PlaylistGetRecordOutput<'_>) -> Self { 105 - use jacquard_common::IntoStatic; 106 - output.value.into_static() 107 - } 108 114 } 109 115 110 116 /// Basic view of a playlist, including its metadata
+14 -8
crates/jacquard-api/src/app_rocksky/radio.rs
··· 71 71 pub value: Radio<'a>, 72 72 } 73 73 74 + impl From<RadioGetRecordOutput<'_>> for Radio<'_> { 75 + fn from(output: RadioGetRecordOutput<'_>) -> Self { 76 + use jacquard_common::IntoStatic; 77 + output.value.into_static() 78 + } 79 + } 80 + 81 + impl jacquard_common::types::collection::Collection for Radio<'_> { 82 + const NSID: &'static str = "app.rocksky.radio"; 83 + type Record = RadioRecord; 84 + } 85 + 74 86 /// Marker type for deserializing records from this collection. 87 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 75 88 pub struct RadioRecord; 76 89 impl jacquard_common::xrpc::XrpcResp for RadioRecord { 77 90 const NSID: &'static str = "app.rocksky.radio"; ··· 80 93 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 81 94 } 82 95 83 - impl jacquard_common::types::collection::Collection for Radio<'_> { 96 + impl jacquard_common::types::collection::Collection for RadioRecord { 84 97 const NSID: &'static str = "app.rocksky.radio"; 85 98 type Record = RadioRecord; 86 - } 87 - 88 - impl From<RadioGetRecordOutput<'_>> for Radio<'_> { 89 - fn from(output: RadioGetRecordOutput<'_>) -> Self { 90 - use jacquard_common::IntoStatic; 91 - output.value.into_static() 92 - } 93 99 } 94 100 95 101 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/app_rocksky/scrobble.rs
··· 147 147 pub value: Scrobble<'a>, 148 148 } 149 149 150 + impl From<ScrobbleGetRecordOutput<'_>> for Scrobble<'_> { 151 + fn from(output: ScrobbleGetRecordOutput<'_>) -> Self { 152 + use jacquard_common::IntoStatic; 153 + output.value.into_static() 154 + } 155 + } 156 + 157 + impl jacquard_common::types::collection::Collection for Scrobble<'_> { 158 + const NSID: &'static str = "app.rocksky.scrobble"; 159 + type Record = ScrobbleRecord; 160 + } 161 + 150 162 /// Marker type for deserializing records from this collection. 163 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 151 164 pub struct ScrobbleRecord; 152 165 impl jacquard_common::xrpc::XrpcResp for ScrobbleRecord { 153 166 const NSID: &'static str = "app.rocksky.scrobble"; ··· 156 169 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 157 170 } 158 171 159 - impl jacquard_common::types::collection::Collection for Scrobble<'_> { 172 + impl jacquard_common::types::collection::Collection for ScrobbleRecord { 160 173 const NSID: &'static str = "app.rocksky.scrobble"; 161 174 type Record = ScrobbleRecord; 162 - } 163 - 164 - impl From<ScrobbleGetRecordOutput<'_>> for Scrobble<'_> { 165 - fn from(output: ScrobbleGetRecordOutput<'_>) -> Self { 166 - use jacquard_common::IntoStatic; 167 - output.value.into_static() 168 - } 169 175 } 170 176 171 177 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/app_rocksky/shout.rs
··· 64 64 pub value: Shout<'a>, 65 65 } 66 66 67 + impl From<ShoutGetRecordOutput<'_>> for Shout<'_> { 68 + fn from(output: ShoutGetRecordOutput<'_>) -> Self { 69 + use jacquard_common::IntoStatic; 70 + output.value.into_static() 71 + } 72 + } 73 + 74 + impl jacquard_common::types::collection::Collection for Shout<'_> { 75 + const NSID: &'static str = "app.rocksky.shout"; 76 + type Record = ShoutRecord; 77 + } 78 + 67 79 /// Marker type for deserializing records from this collection. 80 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 68 81 pub struct ShoutRecord; 69 82 impl jacquard_common::xrpc::XrpcResp for ShoutRecord { 70 83 const NSID: &'static str = "app.rocksky.shout"; ··· 73 86 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 74 87 } 75 88 76 - impl jacquard_common::types::collection::Collection for Shout<'_> { 89 + impl jacquard_common::types::collection::Collection for ShoutRecord { 77 90 const NSID: &'static str = "app.rocksky.shout"; 78 91 type Record = ShoutRecord; 79 - } 80 - 81 - impl From<ShoutGetRecordOutput<'_>> for Shout<'_> { 82 - fn from(output: ShoutGetRecordOutput<'_>) -> Self { 83 - use jacquard_common::IntoStatic; 84 - output.value.into_static() 85 - } 86 92 } 87 93 88 94 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/app_rocksky/song.rs
··· 147 147 pub value: Song<'a>, 148 148 } 149 149 150 + impl From<SongGetRecordOutput<'_>> for Song<'_> { 151 + fn from(output: SongGetRecordOutput<'_>) -> Self { 152 + use jacquard_common::IntoStatic; 153 + output.value.into_static() 154 + } 155 + } 156 + 157 + impl jacquard_common::types::collection::Collection for Song<'_> { 158 + const NSID: &'static str = "app.rocksky.song"; 159 + type Record = SongRecord; 160 + } 161 + 150 162 /// Marker type for deserializing records from this collection. 163 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 151 164 pub struct SongRecord; 152 165 impl jacquard_common::xrpc::XrpcResp for SongRecord { 153 166 const NSID: &'static str = "app.rocksky.song"; ··· 156 169 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 157 170 } 158 171 159 - impl jacquard_common::types::collection::Collection for Song<'_> { 172 + impl jacquard_common::types::collection::Collection for SongRecord { 160 173 const NSID: &'static str = "app.rocksky.song"; 161 174 type Record = SongRecord; 162 - } 163 - 164 - impl From<SongGetRecordOutput<'_>> for Song<'_> { 165 - fn from(output: SongGetRecordOutput<'_>) -> Self { 166 - use jacquard_common::IntoStatic; 167 - output.value.into_static() 168 - } 169 175 } 170 176 171 177 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/beauty_cybernetic/trustcow/review.rs
··· 65 65 pub value: Review<'a>, 66 66 } 67 67 68 + impl From<ReviewGetRecordOutput<'_>> for Review<'_> { 69 + fn from(output: ReviewGetRecordOutput<'_>) -> Self { 70 + use jacquard_common::IntoStatic; 71 + output.value.into_static() 72 + } 73 + } 74 + 75 + impl jacquard_common::types::collection::Collection for Review<'_> { 76 + const NSID: &'static str = "beauty.cybernetic.trustcow.review"; 77 + type Record = ReviewRecord; 78 + } 79 + 68 80 /// Marker type for deserializing records from this collection. 81 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 69 82 pub struct ReviewRecord; 70 83 impl jacquard_common::xrpc::XrpcResp for ReviewRecord { 71 84 const NSID: &'static str = "beauty.cybernetic.trustcow.review"; ··· 74 87 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 75 88 } 76 89 77 - impl jacquard_common::types::collection::Collection for Review<'_> { 90 + impl jacquard_common::types::collection::Collection for ReviewRecord { 78 91 const NSID: &'static str = "beauty.cybernetic.trustcow.review"; 79 92 type Record = ReviewRecord; 80 - } 81 - 82 - impl From<ReviewGetRecordOutput<'_>> for Review<'_> { 83 - fn from(output: ReviewGetRecordOutput<'_>) -> Self { 84 - use jacquard_common::IntoStatic; 85 - output.value.into_static() 86 - } 87 93 }
+14 -8
crates/jacquard-api/src/beauty_cybernetic/trustcow/transaction.rs
··· 71 71 pub value: Transaction<'a>, 72 72 } 73 73 74 + impl From<TransactionGetRecordOutput<'_>> for Transaction<'_> { 75 + fn from(output: TransactionGetRecordOutput<'_>) -> Self { 76 + use jacquard_common::IntoStatic; 77 + output.value.into_static() 78 + } 79 + } 80 + 81 + impl jacquard_common::types::collection::Collection for Transaction<'_> { 82 + const NSID: &'static str = "beauty.cybernetic.trustcow.transaction"; 83 + type Record = TransactionRecord; 84 + } 85 + 74 86 /// Marker type for deserializing records from this collection. 87 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 75 88 pub struct TransactionRecord; 76 89 impl jacquard_common::xrpc::XrpcResp for TransactionRecord { 77 90 const NSID: &'static str = "beauty.cybernetic.trustcow.transaction"; ··· 80 93 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 81 94 } 82 95 83 - impl jacquard_common::types::collection::Collection for Transaction<'_> { 96 + impl jacquard_common::types::collection::Collection for TransactionRecord { 84 97 const NSID: &'static str = "beauty.cybernetic.trustcow.transaction"; 85 98 type Record = TransactionRecord; 86 - } 87 - 88 - impl From<TransactionGetRecordOutput<'_>> for Transaction<'_> { 89 - fn from(output: TransactionGetRecordOutput<'_>) -> Self { 90 - use jacquard_common::IntoStatic; 91 - output.value.into_static() 92 - } 93 99 }
+14 -8
crates/jacquard-api/src/beauty_cybernetic/trustcow/warrant.rs
··· 67 67 pub value: Warrant<'a>, 68 68 } 69 69 70 + impl From<WarrantGetRecordOutput<'_>> for Warrant<'_> { 71 + fn from(output: WarrantGetRecordOutput<'_>) -> Self { 72 + use jacquard_common::IntoStatic; 73 + output.value.into_static() 74 + } 75 + } 76 + 77 + impl jacquard_common::types::collection::Collection for Warrant<'_> { 78 + const NSID: &'static str = "beauty.cybernetic.trustcow.warrant"; 79 + type Record = WarrantRecord; 80 + } 81 + 70 82 /// Marker type for deserializing records from this collection. 83 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 71 84 pub struct WarrantRecord; 72 85 impl jacquard_common::xrpc::XrpcResp for WarrantRecord { 73 86 const NSID: &'static str = "beauty.cybernetic.trustcow.warrant"; ··· 76 89 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 77 90 } 78 91 79 - impl jacquard_common::types::collection::Collection for Warrant<'_> { 92 + impl jacquard_common::types::collection::Collection for WarrantRecord { 80 93 const NSID: &'static str = "beauty.cybernetic.trustcow.warrant"; 81 94 type Record = WarrantRecord; 82 - } 83 - 84 - impl From<WarrantGetRecordOutput<'_>> for Warrant<'_> { 85 - fn from(output: WarrantGetRecordOutput<'_>) -> Self { 86 - use jacquard_common::IntoStatic; 87 - output.value.into_static() 88 - } 89 95 }
+14 -8
crates/jacquard-api/src/blog_pckt/blog.rs
··· 67 67 pub value: Blog<'a>, 68 68 } 69 69 70 + impl From<BlogGetRecordOutput<'_>> for Blog<'_> { 71 + fn from(output: BlogGetRecordOutput<'_>) -> Self { 72 + use jacquard_common::IntoStatic; 73 + output.value.into_static() 74 + } 75 + } 76 + 77 + impl jacquard_common::types::collection::Collection for Blog<'_> { 78 + const NSID: &'static str = "blog.pckt.blog"; 79 + type Record = BlogRecord; 80 + } 81 + 70 82 /// Marker type for deserializing records from this collection. 83 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 71 84 pub struct BlogRecord; 72 85 impl jacquard_common::xrpc::XrpcResp for BlogRecord { 73 86 const NSID: &'static str = "blog.pckt.blog"; ··· 76 89 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 77 90 } 78 91 79 - impl jacquard_common::types::collection::Collection for Blog<'_> { 92 + impl jacquard_common::types::collection::Collection for BlogRecord { 80 93 const NSID: &'static str = "blog.pckt.blog"; 81 94 type Record = BlogRecord; 82 - } 83 - 84 - impl From<BlogGetRecordOutput<'_>> for Blog<'_> { 85 - fn from(output: BlogGetRecordOutput<'_>) -> Self { 86 - use jacquard_common::IntoStatic; 87 - output.value.into_static() 88 - } 89 95 } 90 96 91 97 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/blog_pckt/post.rs
··· 72 72 pub value: Post<'a>, 73 73 } 74 74 75 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 76 + fn from(output: PostGetRecordOutput<'_>) -> Self { 77 + use jacquard_common::IntoStatic; 78 + output.value.into_static() 79 + } 80 + } 81 + 82 + impl jacquard_common::types::collection::Collection for Post<'_> { 83 + const NSID: &'static str = "blog.pckt.post"; 84 + type Record = PostRecord; 85 + } 86 + 75 87 /// Marker type for deserializing records from this collection. 88 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 76 89 pub struct PostRecord; 77 90 impl jacquard_common::xrpc::XrpcResp for PostRecord { 78 91 const NSID: &'static str = "blog.pckt.post"; ··· 81 94 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 82 95 } 83 96 84 - impl jacquard_common::types::collection::Collection for Post<'_> { 97 + impl jacquard_common::types::collection::Collection for PostRecord { 85 98 const NSID: &'static str = "blog.pckt.post"; 86 99 type Record = PostRecord; 87 - } 88 - 89 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 90 - fn from(output: PostGetRecordOutput<'_>) -> Self { 91 - use jacquard_common::IntoStatic; 92 - output.value.into_static() 93 - } 94 100 }
+14 -8
crates/jacquard-api/src/blog_pckt/publication.rs
··· 77 77 pub value: Publication<'a>, 78 78 } 79 79 80 + impl From<PublicationGetRecordOutput<'_>> for Publication<'_> { 81 + fn from(output: PublicationGetRecordOutput<'_>) -> Self { 82 + use jacquard_common::IntoStatic; 83 + output.value.into_static() 84 + } 85 + } 86 + 87 + impl jacquard_common::types::collection::Collection for Publication<'_> { 88 + const NSID: &'static str = "blog.pckt.publication"; 89 + type Record = PublicationRecord; 90 + } 91 + 80 92 /// Marker type for deserializing records from this collection. 93 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 81 94 pub struct PublicationRecord; 82 95 impl jacquard_common::xrpc::XrpcResp for PublicationRecord { 83 96 const NSID: &'static str = "blog.pckt.publication"; ··· 86 99 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 87 100 } 88 101 89 - impl jacquard_common::types::collection::Collection for Publication<'_> { 102 + impl jacquard_common::types::collection::Collection for PublicationRecord { 90 103 const NSID: &'static str = "blog.pckt.publication"; 91 104 type Record = PublicationRecord; 92 - } 93 - 94 - impl From<PublicationGetRecordOutput<'_>> for Publication<'_> { 95 - fn from(output: PublicationGetRecordOutput<'_>) -> Self { 96 - use jacquard_common::IntoStatic; 97 - output.value.into_static() 98 - } 99 105 }
+14 -8
crates/jacquard-api/src/blog_pckt/theme.rs
··· 53 53 pub value: Theme<'a>, 54 54 } 55 55 56 + impl From<ThemeGetRecordOutput<'_>> for Theme<'_> { 57 + fn from(output: ThemeGetRecordOutput<'_>) -> Self { 58 + use jacquard_common::IntoStatic; 59 + output.value.into_static() 60 + } 61 + } 62 + 63 + impl jacquard_common::types::collection::Collection for Theme<'_> { 64 + const NSID: &'static str = "blog.pckt.theme"; 65 + type Record = ThemeRecord; 66 + } 67 + 56 68 /// Marker type for deserializing records from this collection. 69 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 57 70 pub struct ThemeRecord; 58 71 impl jacquard_common::xrpc::XrpcResp for ThemeRecord { 59 72 const NSID: &'static str = "blog.pckt.theme"; ··· 62 75 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 63 76 } 64 77 65 - impl jacquard_common::types::collection::Collection for Theme<'_> { 78 + impl jacquard_common::types::collection::Collection for ThemeRecord { 66 79 const NSID: &'static str = "blog.pckt.theme"; 67 80 type Record = ThemeRecord; 68 - } 69 - 70 - impl From<ThemeGetRecordOutput<'_>> for Theme<'_> { 71 - fn from(output: ThemeGetRecordOutput<'_>) -> Self { 72 - use jacquard_common::IntoStatic; 73 - output.value.into_static() 74 - } 75 81 } 76 82 77 83 /// Color palette with CSS hex values
+14 -8
crates/jacquard-api/src/blue__2048/game.rs
··· 56 56 pub value: Game<'a>, 57 57 } 58 58 59 + impl From<GameGetRecordOutput<'_>> for Game<'_> { 60 + fn from(output: GameGetRecordOutput<'_>) -> Self { 61 + use jacquard_common::IntoStatic; 62 + output.value.into_static() 63 + } 64 + } 65 + 66 + impl jacquard_common::types::collection::Collection for Game<'_> { 67 + const NSID: &'static str = "blue.2048.game"; 68 + type Record = GameRecord; 69 + } 70 + 59 71 /// Marker type for deserializing records from this collection. 72 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 60 73 pub struct GameRecord; 61 74 impl jacquard_common::xrpc::XrpcResp for GameRecord { 62 75 const NSID: &'static str = "blue.2048.game"; ··· 65 78 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 66 79 } 67 80 68 - impl jacquard_common::types::collection::Collection for Game<'_> { 81 + impl jacquard_common::types::collection::Collection for GameRecord { 69 82 const NSID: &'static str = "blue.2048.game"; 70 83 type Record = GameRecord; 71 - } 72 - 73 - impl From<GameGetRecordOutput<'_>> for Game<'_> { 74 - fn from(output: GameGetRecordOutput<'_>) -> Self { 75 - use jacquard_common::IntoStatic; 76 - output.value.into_static() 77 - } 78 84 }
+14 -8
crates/jacquard-api/src/blue__2048/key/game.rs
··· 46 46 pub value: Game<'a>, 47 47 } 48 48 49 + impl From<GameGetRecordOutput<'_>> for Game<'_> { 50 + fn from(output: GameGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Game<'_> { 57 + const NSID: &'static str = "blue.2048.key.game"; 58 + type Record = GameRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct GameRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for GameRecord { 52 65 const NSID: &'static str = "blue.2048.key.game"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Game<'_> { 71 + impl jacquard_common::types::collection::Collection for GameRecord { 59 72 const NSID: &'static str = "blue.2048.key.game"; 60 73 type Record = GameRecord; 61 - } 62 - 63 - impl From<GameGetRecordOutput<'_>> for Game<'_> { 64 - fn from(output: GameGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/blue__2048/key/player/stats.rs
··· 46 46 pub value: Stats<'a>, 47 47 } 48 48 49 + impl From<StatsGetRecordOutput<'_>> for Stats<'_> { 50 + fn from(output: StatsGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Stats<'_> { 57 + const NSID: &'static str = "blue.2048.key.player.stats"; 58 + type Record = StatsRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct StatsRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for StatsRecord { 52 65 const NSID: &'static str = "blue.2048.key.player.stats"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Stats<'_> { 71 + impl jacquard_common::types::collection::Collection for StatsRecord { 59 72 const NSID: &'static str = "blue.2048.key.player.stats"; 60 73 type Record = StatsRecord; 61 - } 62 - 63 - impl From<StatsGetRecordOutput<'_>> for Stats<'_> { 64 - fn from(output: StatsGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/blue__2048/player/profile.rs
··· 48 48 pub value: Profile<'a>, 49 49 } 50 50 51 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 52 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 53 + use jacquard_common::IntoStatic; 54 + output.value.into_static() 55 + } 56 + } 57 + 58 + impl jacquard_common::types::collection::Collection for Profile<'_> { 59 + const NSID: &'static str = "blue.2048.player.profile"; 60 + type Record = ProfileRecord; 61 + } 62 + 51 63 /// Marker type for deserializing records from this collection. 64 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 52 65 pub struct ProfileRecord; 53 66 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 54 67 const NSID: &'static str = "blue.2048.player.profile"; ··· 57 70 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 58 71 } 59 72 60 - impl jacquard_common::types::collection::Collection for Profile<'_> { 73 + impl jacquard_common::types::collection::Collection for ProfileRecord { 61 74 const NSID: &'static str = "blue.2048.player.profile"; 62 75 type Record = ProfileRecord; 63 - } 64 - 65 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 66 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 67 - use jacquard_common::IntoStatic; 68 - output.value.into_static() 69 - } 70 76 }
+14 -8
crates/jacquard-api/src/blue__2048/player/stats.rs
··· 60 60 pub value: Stats<'a>, 61 61 } 62 62 63 + impl From<StatsGetRecordOutput<'_>> for Stats<'_> { 64 + fn from(output: StatsGetRecordOutput<'_>) -> Self { 65 + use jacquard_common::IntoStatic; 66 + output.value.into_static() 67 + } 68 + } 69 + 70 + impl jacquard_common::types::collection::Collection for Stats<'_> { 71 + const NSID: &'static str = "blue.2048.player.stats"; 72 + type Record = StatsRecord; 73 + } 74 + 63 75 /// Marker type for deserializing records from this collection. 76 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 64 77 pub struct StatsRecord; 65 78 impl jacquard_common::xrpc::XrpcResp for StatsRecord { 66 79 const NSID: &'static str = "blue.2048.player.stats"; ··· 69 82 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 70 83 } 71 84 72 - impl jacquard_common::types::collection::Collection for Stats<'_> { 85 + impl jacquard_common::types::collection::Collection for StatsRecord { 73 86 const NSID: &'static str = "blue.2048.player.stats"; 74 87 type Record = StatsRecord; 75 - } 76 - 77 - impl From<StatsGetRecordOutput<'_>> for Stats<'_> { 78 - fn from(output: StatsGetRecordOutput<'_>) -> Self { 79 - use jacquard_common::IntoStatic; 80 - output.value.into_static() 81 - } 82 88 }
+14 -8
crates/jacquard-api/src/blue__2048/verification/game.rs
··· 50 50 pub value: Game<'a>, 51 51 } 52 52 53 + impl From<GameGetRecordOutput<'_>> for Game<'_> { 54 + fn from(output: GameGetRecordOutput<'_>) -> Self { 55 + use jacquard_common::IntoStatic; 56 + output.value.into_static() 57 + } 58 + } 59 + 60 + impl jacquard_common::types::collection::Collection for Game<'_> { 61 + const NSID: &'static str = "blue.2048.verification.game"; 62 + type Record = GameRecord; 63 + } 64 + 53 65 /// Marker type for deserializing records from this collection. 66 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 54 67 pub struct GameRecord; 55 68 impl jacquard_common::xrpc::XrpcResp for GameRecord { 56 69 const NSID: &'static str = "blue.2048.verification.game"; ··· 59 72 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 60 73 } 61 74 62 - impl jacquard_common::types::collection::Collection for Game<'_> { 75 + impl jacquard_common::types::collection::Collection for GameRecord { 63 76 const NSID: &'static str = "blue.2048.verification.game"; 64 77 type Record = GameRecord; 65 - } 66 - 67 - impl From<GameGetRecordOutput<'_>> for Game<'_> { 68 - fn from(output: GameGetRecordOutput<'_>) -> Self { 69 - use jacquard_common::IntoStatic; 70 - output.value.into_static() 71 - } 72 78 }
+14 -8
crates/jacquard-api/src/blue__2048/verification/stats.rs
··· 50 50 pub value: Stats<'a>, 51 51 } 52 52 53 + impl From<StatsGetRecordOutput<'_>> for Stats<'_> { 54 + fn from(output: StatsGetRecordOutput<'_>) -> Self { 55 + use jacquard_common::IntoStatic; 56 + output.value.into_static() 57 + } 58 + } 59 + 60 + impl jacquard_common::types::collection::Collection for Stats<'_> { 61 + const NSID: &'static str = "blue.2048.verification.stats"; 62 + type Record = StatsRecord; 63 + } 64 + 53 65 /// Marker type for deserializing records from this collection. 66 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 54 67 pub struct StatsRecord; 55 68 impl jacquard_common::xrpc::XrpcResp for StatsRecord { 56 69 const NSID: &'static str = "blue.2048.verification.stats"; ··· 59 72 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 60 73 } 61 74 62 - impl jacquard_common::types::collection::Collection for Stats<'_> { 75 + impl jacquard_common::types::collection::Collection for StatsRecord { 63 76 const NSID: &'static str = "blue.2048.verification.stats"; 64 77 type Record = StatsRecord; 65 - } 66 - 67 - impl From<StatsGetRecordOutput<'_>> for Stats<'_> { 68 - fn from(output: StatsGetRecordOutput<'_>) -> Self { 69 - use jacquard_common::IntoStatic; 70 - output.value.into_static() 71 - } 72 78 }
+14 -8
crates/jacquard-api/src/blue_atplane/fav_client.rs
··· 46 46 pub value: FavClient<'a>, 47 47 } 48 48 49 + impl From<FavClientGetRecordOutput<'_>> for FavClient<'_> { 50 + fn from(output: FavClientGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for FavClient<'_> { 57 + const NSID: &'static str = "blue.atplane.favClient"; 58 + type Record = FavClientRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct FavClientRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for FavClientRecord { 52 65 const NSID: &'static str = "blue.atplane.favClient"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for FavClient<'_> { 71 + impl jacquard_common::types::collection::Collection for FavClientRecord { 59 72 const NSID: &'static str = "blue.atplane.favClient"; 60 73 type Record = FavClientRecord; 61 - } 62 - 63 - impl From<FavClientGetRecordOutput<'_>> for FavClient<'_> { 64 - fn from(output: FavClientGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/blue_linkat/board.rs
··· 72 72 pub value: Board<'a>, 73 73 } 74 74 75 + impl From<BoardGetRecordOutput<'_>> for Board<'_> { 76 + fn from(output: BoardGetRecordOutput<'_>) -> Self { 77 + use jacquard_common::IntoStatic; 78 + output.value.into_static() 79 + } 80 + } 81 + 82 + impl jacquard_common::types::collection::Collection for Board<'_> { 83 + const NSID: &'static str = "blue.linkat.board"; 84 + type Record = BoardRecord; 85 + } 86 + 75 87 /// Marker type for deserializing records from this collection. 88 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 76 89 pub struct BoardRecord; 77 90 impl jacquard_common::xrpc::XrpcResp for BoardRecord { 78 91 const NSID: &'static str = "blue.linkat.board"; ··· 81 94 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 82 95 } 83 96 84 - impl jacquard_common::types::collection::Collection for Board<'_> { 97 + impl jacquard_common::types::collection::Collection for BoardRecord { 85 98 const NSID: &'static str = "blue.linkat.board"; 86 99 type Record = BoardRecord; 87 - } 88 - 89 - impl From<BoardGetRecordOutput<'_>> for Board<'_> { 90 - fn from(output: BoardGetRecordOutput<'_>) -> Self { 91 - use jacquard_common::IntoStatic; 92 - output.value.into_static() 93 - } 94 100 }
+14 -8
crates/jacquard-api/src/blue_zio/atfile/lock.rs
··· 45 45 pub value: Lock<'a>, 46 46 } 47 47 48 + impl From<LockGetRecordOutput<'_>> for Lock<'_> { 49 + fn from(output: LockGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for Lock<'_> { 56 + const NSID: &'static str = "blue.zio.atfile.lock"; 57 + type Record = LockRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct LockRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for LockRecord { 51 64 const NSID: &'static str = "blue.zio.atfile.lock"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for Lock<'_> { 70 + impl jacquard_common::types::collection::Collection for LockRecord { 58 71 const NSID: &'static str = "blue.zio.atfile.lock"; 59 72 type Record = LockRecord; 60 - } 61 - 62 - impl From<LockGetRecordOutput<'_>> for Lock<'_> { 63 - fn from(output: LockGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/buzz_bookhive/book.rs
··· 81 81 pub value: Book<'a>, 82 82 } 83 83 84 + impl From<BookGetRecordOutput<'_>> for Book<'_> { 85 + fn from(output: BookGetRecordOutput<'_>) -> Self { 86 + use jacquard_common::IntoStatic; 87 + output.value.into_static() 88 + } 89 + } 90 + 91 + impl jacquard_common::types::collection::Collection for Book<'_> { 92 + const NSID: &'static str = "buzz.bookhive.book"; 93 + type Record = BookRecord; 94 + } 95 + 84 96 /// Marker type for deserializing records from this collection. 97 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 85 98 pub struct BookRecord; 86 99 impl jacquard_common::xrpc::XrpcResp for BookRecord { 87 100 const NSID: &'static str = "buzz.bookhive.book"; ··· 90 103 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 91 104 } 92 105 93 - impl jacquard_common::types::collection::Collection for Book<'_> { 106 + impl jacquard_common::types::collection::Collection for BookRecord { 94 107 const NSID: &'static str = "buzz.bookhive.book"; 95 108 type Record = BookRecord; 96 - } 97 - 98 - impl From<BookGetRecordOutput<'_>> for Book<'_> { 99 - fn from(output: BookGetRecordOutput<'_>) -> Self { 100 - use jacquard_common::IntoStatic; 101 - output.value.into_static() 102 - } 103 109 }
+14 -8
crates/jacquard-api/src/buzz_bookhive/buzz.rs
··· 52 52 pub value: Buzz<'a>, 53 53 } 54 54 55 + impl From<BuzzGetRecordOutput<'_>> for Buzz<'_> { 56 + fn from(output: BuzzGetRecordOutput<'_>) -> Self { 57 + use jacquard_common::IntoStatic; 58 + output.value.into_static() 59 + } 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for Buzz<'_> { 63 + const NSID: &'static str = "buzz.bookhive.buzz"; 64 + type Record = BuzzRecord; 65 + } 66 + 55 67 /// Marker type for deserializing records from this collection. 68 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 56 69 pub struct BuzzRecord; 57 70 impl jacquard_common::xrpc::XrpcResp for BuzzRecord { 58 71 const NSID: &'static str = "buzz.bookhive.buzz"; ··· 61 74 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 62 75 } 63 76 64 - impl jacquard_common::types::collection::Collection for Buzz<'_> { 77 + impl jacquard_common::types::collection::Collection for BuzzRecord { 65 78 const NSID: &'static str = "buzz.bookhive.buzz"; 66 79 type Record = BuzzRecord; 67 - } 68 - 69 - impl From<BuzzGetRecordOutput<'_>> for Buzz<'_> { 70 - fn from(output: BuzzGetRecordOutput<'_>) -> Self { 71 - use jacquard_common::IntoStatic; 72 - output.value.into_static() 73 - } 74 80 }
+14 -8
crates/jacquard-api/src/buzz_bookhive/hive_book.rs
··· 93 93 pub value: HiveBook<'a>, 94 94 } 95 95 96 + impl From<HiveBookGetRecordOutput<'_>> for HiveBook<'_> { 97 + fn from(output: HiveBookGetRecordOutput<'_>) -> Self { 98 + use jacquard_common::IntoStatic; 99 + output.value.into_static() 100 + } 101 + } 102 + 103 + impl jacquard_common::types::collection::Collection for HiveBook<'_> { 104 + const NSID: &'static str = "buzz.bookhive.hiveBook"; 105 + type Record = HiveBookRecord; 106 + } 107 + 96 108 /// Marker type for deserializing records from this collection. 109 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 97 110 pub struct HiveBookRecord; 98 111 impl jacquard_common::xrpc::XrpcResp for HiveBookRecord { 99 112 const NSID: &'static str = "buzz.bookhive.hiveBook"; ··· 102 115 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 103 116 } 104 117 105 - impl jacquard_common::types::collection::Collection for HiveBook<'_> { 118 + impl jacquard_common::types::collection::Collection for HiveBookRecord { 106 119 const NSID: &'static str = "buzz.bookhive.hiveBook"; 107 120 type Record = HiveBookRecord; 108 - } 109 - 110 - impl From<HiveBookGetRecordOutput<'_>> for HiveBook<'_> { 111 - fn from(output: HiveBookGetRecordOutput<'_>) -> Self { 112 - use jacquard_common::IntoStatic; 113 - output.value.into_static() 114 - } 115 121 }
+14 -8
crates/jacquard-api/src/chat_bsky/actor/declaration.rs
··· 45 45 pub value: Declaration<'a>, 46 46 } 47 47 48 + impl From<DeclarationGetRecordOutput<'_>> for Declaration<'_> { 49 + fn from(output: DeclarationGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for Declaration<'_> { 56 + const NSID: &'static str = "chat.bsky.actor.declaration"; 57 + type Record = DeclarationRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct DeclarationRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for DeclarationRecord { 51 64 const NSID: &'static str = "chat.bsky.actor.declaration"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for Declaration<'_> { 70 + impl jacquard_common::types::collection::Collection for DeclarationRecord { 58 71 const NSID: &'static str = "chat.bsky.actor.declaration"; 59 72 type Record = DeclarationRecord; 60 - } 61 - 62 - impl From<DeclarationGetRecordOutput<'_>> for Declaration<'_> { 63 - fn from(output: DeclarationGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/com_atproto/lexicon/schema.rs
··· 44 44 pub value: Schema<'a>, 45 45 } 46 46 47 + impl From<SchemaGetRecordOutput<'_>> for Schema<'_> { 48 + fn from(output: SchemaGetRecordOutput<'_>) -> Self { 49 + use jacquard_common::IntoStatic; 50 + output.value.into_static() 51 + } 52 + } 53 + 54 + impl jacquard_common::types::collection::Collection for Schema<'_> { 55 + const NSID: &'static str = "com.atproto.lexicon.schema"; 56 + type Record = SchemaRecord; 57 + } 58 + 47 59 /// Marker type for deserializing records from this collection. 60 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 48 61 pub struct SchemaRecord; 49 62 impl jacquard_common::xrpc::XrpcResp for SchemaRecord { 50 63 const NSID: &'static str = "com.atproto.lexicon.schema"; ··· 53 66 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 54 67 } 55 68 56 - impl jacquard_common::types::collection::Collection for Schema<'_> { 69 + impl jacquard_common::types::collection::Collection for SchemaRecord { 57 70 const NSID: &'static str = "com.atproto.lexicon.schema"; 58 71 type Record = SchemaRecord; 59 - } 60 - 61 - impl From<SchemaGetRecordOutput<'_>> for Schema<'_> { 62 - fn from(output: SchemaGetRecordOutput<'_>) -> Self { 63 - use jacquard_common::IntoStatic; 64 - output.value.into_static() 65 - } 66 72 }
+14 -8
crates/jacquard-api/src/com_crabdance/nandi/post.rs
··· 67 67 pub value: Post<'a>, 68 68 } 69 69 70 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 71 + fn from(output: PostGetRecordOutput<'_>) -> Self { 72 + use jacquard_common::IntoStatic; 73 + output.value.into_static() 74 + } 75 + } 76 + 77 + impl jacquard_common::types::collection::Collection for Post<'_> { 78 + const NSID: &'static str = "com.crabdance.nandi.post"; 79 + type Record = PostRecord; 80 + } 81 + 70 82 /// Marker type for deserializing records from this collection. 83 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 71 84 pub struct PostRecord; 72 85 impl jacquard_common::xrpc::XrpcResp for PostRecord { 73 86 const NSID: &'static str = "com.crabdance.nandi.post"; ··· 76 89 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 77 90 } 78 91 79 - impl jacquard_common::types::collection::Collection for Post<'_> { 92 + impl jacquard_common::types::collection::Collection for PostRecord { 80 93 const NSID: &'static str = "com.crabdance.nandi.post"; 81 94 type Record = PostRecord; 82 - } 83 - 84 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 85 - fn from(output: PostGetRecordOutput<'_>) -> Self { 86 - use jacquard_common::IntoStatic; 87 - output.value.into_static() 88 - } 89 95 }
+14 -8
crates/jacquard-api/src/com_shinolabs/pinksea/oekaki.rs
··· 100 100 pub value: Oekaki<'a>, 101 101 } 102 102 103 + impl From<OekakiGetRecordOutput<'_>> for Oekaki<'_> { 104 + fn from(output: OekakiGetRecordOutput<'_>) -> Self { 105 + use jacquard_common::IntoStatic; 106 + output.value.into_static() 107 + } 108 + } 109 + 110 + impl jacquard_common::types::collection::Collection for Oekaki<'_> { 111 + const NSID: &'static str = "com.shinolabs.pinksea.oekaki"; 112 + type Record = OekakiRecord; 113 + } 114 + 103 115 /// Marker type for deserializing records from this collection. 116 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 104 117 pub struct OekakiRecord; 105 118 impl jacquard_common::xrpc::XrpcResp for OekakiRecord { 106 119 const NSID: &'static str = "com.shinolabs.pinksea.oekaki"; ··· 109 122 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 110 123 } 111 124 112 - impl jacquard_common::types::collection::Collection for Oekaki<'_> { 125 + impl jacquard_common::types::collection::Collection for OekakiRecord { 113 126 const NSID: &'static str = "com.shinolabs.pinksea.oekaki"; 114 127 type Record = OekakiRecord; 115 - } 116 - 117 - impl From<OekakiGetRecordOutput<'_>> for Oekaki<'_> { 118 - fn from(output: OekakiGetRecordOutput<'_>) -> Self { 119 - use jacquard_common::IntoStatic; 120 - output.value.into_static() 121 - } 122 128 }
+14 -8
crates/jacquard-api/src/com_shinolabs/pinksea/profile.rs
··· 62 62 pub value: Profile<'a>, 63 63 } 64 64 65 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 66 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 67 + use jacquard_common::IntoStatic; 68 + output.value.into_static() 69 + } 70 + } 71 + 72 + impl jacquard_common::types::collection::Collection for Profile<'_> { 73 + const NSID: &'static str = "com.shinolabs.pinksea.profile"; 74 + type Record = ProfileRecord; 75 + } 76 + 65 77 /// Marker type for deserializing records from this collection. 78 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 66 79 pub struct ProfileRecord; 67 80 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 68 81 const NSID: &'static str = "com.shinolabs.pinksea.profile"; ··· 71 84 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 72 85 } 73 86 74 - impl jacquard_common::types::collection::Collection for Profile<'_> { 87 + impl jacquard_common::types::collection::Collection for ProfileRecord { 75 88 const NSID: &'static str = "com.shinolabs.pinksea.profile"; 76 89 type Record = ProfileRecord; 77 - } 78 - 79 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 80 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 81 - use jacquard_common::IntoStatic; 82 - output.value.into_static() 83 - } 84 90 } 85 91 86 92 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/com_whtwnd/blog/entry.rs
··· 77 77 pub value: Entry<'a>, 78 78 } 79 79 80 + impl From<EntryGetRecordOutput<'_>> for Entry<'_> { 81 + fn from(output: EntryGetRecordOutput<'_>) -> Self { 82 + use jacquard_common::IntoStatic; 83 + output.value.into_static() 84 + } 85 + } 86 + 87 + impl jacquard_common::types::collection::Collection for Entry<'_> { 88 + const NSID: &'static str = "com.whtwnd.blog.entry"; 89 + type Record = EntryRecord; 90 + } 91 + 80 92 /// Marker type for deserializing records from this collection. 93 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 81 94 pub struct EntryRecord; 82 95 impl jacquard_common::xrpc::XrpcResp for EntryRecord { 83 96 const NSID: &'static str = "com.whtwnd.blog.entry"; ··· 86 99 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 87 100 } 88 101 89 - impl jacquard_common::types::collection::Collection for Entry<'_> { 102 + impl jacquard_common::types::collection::Collection for EntryRecord { 90 103 const NSID: &'static str = "com.whtwnd.blog.entry"; 91 104 type Record = EntryRecord; 92 - } 93 - 94 - impl From<EntryGetRecordOutput<'_>> for Entry<'_> { 95 - fn from(output: EntryGetRecordOutput<'_>) -> Self { 96 - use jacquard_common::IntoStatic; 97 - output.value.into_static() 98 - } 99 105 }
+14 -8
crates/jacquard-api/src/community_lexicon/bookmarks/bookmark.rs
··· 50 50 pub value: Bookmark<'a>, 51 51 } 52 52 53 + impl From<BookmarkGetRecordOutput<'_>> for Bookmark<'_> { 54 + fn from(output: BookmarkGetRecordOutput<'_>) -> Self { 55 + use jacquard_common::IntoStatic; 56 + output.value.into_static() 57 + } 58 + } 59 + 60 + impl jacquard_common::types::collection::Collection for Bookmark<'_> { 61 + const NSID: &'static str = "community.lexicon.bookmarks.bookmark"; 62 + type Record = BookmarkRecord; 63 + } 64 + 53 65 /// Marker type for deserializing records from this collection. 66 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 54 67 pub struct BookmarkRecord; 55 68 impl jacquard_common::xrpc::XrpcResp for BookmarkRecord { 56 69 const NSID: &'static str = "community.lexicon.bookmarks.bookmark"; ··· 59 72 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 60 73 } 61 74 62 - impl jacquard_common::types::collection::Collection for Bookmark<'_> { 75 + impl jacquard_common::types::collection::Collection for BookmarkRecord { 63 76 const NSID: &'static str = "community.lexicon.bookmarks.bookmark"; 64 77 type Record = BookmarkRecord; 65 - } 66 - 67 - impl From<BookmarkGetRecordOutput<'_>> for Bookmark<'_> { 68 - fn from(output: BookmarkGetRecordOutput<'_>) -> Self { 69 - use jacquard_common::IntoStatic; 70 - output.value.into_static() 71 - } 72 78 }
+14 -8
crates/jacquard-api/src/community_lexicon/calendar/event.rs
··· 160 160 pub value: Event<'a>, 161 161 } 162 162 163 + impl From<EventGetRecordOutput<'_>> for Event<'_> { 164 + fn from(output: EventGetRecordOutput<'_>) -> Self { 165 + use jacquard_common::IntoStatic; 166 + output.value.into_static() 167 + } 168 + } 169 + 170 + impl jacquard_common::types::collection::Collection for Event<'_> { 171 + const NSID: &'static str = "community.lexicon.calendar.event"; 172 + type Record = EventRecord; 173 + } 174 + 163 175 /// Marker type for deserializing records from this collection. 176 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 164 177 pub struct EventRecord; 165 178 impl jacquard_common::xrpc::XrpcResp for EventRecord { 166 179 const NSID: &'static str = "community.lexicon.calendar.event"; ··· 169 182 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 170 183 } 171 184 172 - impl jacquard_common::types::collection::Collection for Event<'_> { 185 + impl jacquard_common::types::collection::Collection for EventRecord { 173 186 const NSID: &'static str = "community.lexicon.calendar.event"; 174 187 type Record = EventRecord; 175 - } 176 - 177 - impl From<EventGetRecordOutput<'_>> for Event<'_> { 178 - fn from(output: EventGetRecordOutput<'_>) -> Self { 179 - use jacquard_common::IntoStatic; 180 - output.value.into_static() 181 - } 182 188 } 183 189 184 190 /// The mode of the event.
+14 -8
crates/jacquard-api/src/community_lexicon/calendar/rsvp.rs
··· 83 83 pub value: Rsvp<'a>, 84 84 } 85 85 86 + impl From<RsvpGetRecordOutput<'_>> for Rsvp<'_> { 87 + fn from(output: RsvpGetRecordOutput<'_>) -> Self { 88 + use jacquard_common::IntoStatic; 89 + output.value.into_static() 90 + } 91 + } 92 + 93 + impl jacquard_common::types::collection::Collection for Rsvp<'_> { 94 + const NSID: &'static str = "community.lexicon.calendar.rsvp"; 95 + type Record = RsvpRecord; 96 + } 97 + 86 98 /// Marker type for deserializing records from this collection. 99 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 87 100 pub struct RsvpRecord; 88 101 impl jacquard_common::xrpc::XrpcResp for RsvpRecord { 89 102 const NSID: &'static str = "community.lexicon.calendar.rsvp"; ··· 92 105 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 93 106 } 94 107 95 - impl jacquard_common::types::collection::Collection for Rsvp<'_> { 108 + impl jacquard_common::types::collection::Collection for RsvpRecord { 96 109 const NSID: &'static str = "community.lexicon.calendar.rsvp"; 97 110 type Record = RsvpRecord; 98 - } 99 - 100 - impl From<RsvpGetRecordOutput<'_>> for Rsvp<'_> { 101 - fn from(output: RsvpGetRecordOutput<'_>) -> Self { 102 - use jacquard_common::IntoStatic; 103 - output.value.into_static() 104 - } 105 111 } 106 112 107 113 /// Not going to the event
+14 -8
crates/jacquard-api/src/community_lexicon/interaction/like.rs
··· 45 45 pub value: Like<'a>, 46 46 } 47 47 48 + impl From<LikeGetRecordOutput<'_>> for Like<'_> { 49 + fn from(output: LikeGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for Like<'_> { 56 + const NSID: &'static str = "community.lexicon.interaction.like"; 57 + type Record = LikeRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct LikeRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for LikeRecord { 51 64 const NSID: &'static str = "community.lexicon.interaction.like"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for Like<'_> { 70 + impl jacquard_common::types::collection::Collection for LikeRecord { 58 71 const NSID: &'static str = "community.lexicon.interaction.like"; 59 72 type Record = LikeRecord; 60 - } 61 - 62 - impl From<LikeGetRecordOutput<'_>> for Like<'_> { 63 - fn from(output: LikeGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/community_lexicon/payments/web_monetization.rs
··· 50 50 pub value: WebMonetization<'a>, 51 51 } 52 52 53 + impl From<WebMonetizationGetRecordOutput<'_>> for WebMonetization<'_> { 54 + fn from(output: WebMonetizationGetRecordOutput<'_>) -> Self { 55 + use jacquard_common::IntoStatic; 56 + output.value.into_static() 57 + } 58 + } 59 + 60 + impl jacquard_common::types::collection::Collection for WebMonetization<'_> { 61 + const NSID: &'static str = "community.lexicon.payments.webMonetization"; 62 + type Record = WebMonetizationRecord; 63 + } 64 + 53 65 /// Marker type for deserializing records from this collection. 66 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 54 67 pub struct WebMonetizationRecord; 55 68 impl jacquard_common::xrpc::XrpcResp for WebMonetizationRecord { 56 69 const NSID: &'static str = "community.lexicon.payments.webMonetization"; ··· 59 72 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 60 73 } 61 74 62 - impl jacquard_common::types::collection::Collection for WebMonetization<'_> { 75 + impl jacquard_common::types::collection::Collection for WebMonetizationRecord { 63 76 const NSID: &'static str = "community.lexicon.payments.webMonetization"; 64 77 type Record = WebMonetizationRecord; 65 - } 66 - 67 - impl From<WebMonetizationGetRecordOutput<'_>> for WebMonetization<'_> { 68 - fn from(output: WebMonetizationGetRecordOutput<'_>) -> Self { 69 - use jacquard_common::IntoStatic; 70 - output.value.into_static() 71 - } 72 78 }
+14 -8
crates/jacquard-api/src/dev_baileytownsend/health/calories.rs
··· 45 45 pub value: Calories<'a>, 46 46 } 47 47 48 + impl From<CaloriesGetRecordOutput<'_>> for Calories<'_> { 49 + fn from(output: CaloriesGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for Calories<'_> { 56 + const NSID: &'static str = "dev.baileytownsend.health.calories"; 57 + type Record = CaloriesRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct CaloriesRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for CaloriesRecord { 51 64 const NSID: &'static str = "dev.baileytownsend.health.calories"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for Calories<'_> { 70 + impl jacquard_common::types::collection::Collection for CaloriesRecord { 58 71 const NSID: &'static str = "dev.baileytownsend.health.calories"; 59 72 type Record = CaloriesRecord; 60 - } 61 - 62 - impl From<CaloriesGetRecordOutput<'_>> for Calories<'_> { 63 - fn from(output: CaloriesGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/dev_baileytownsend/health/rings.rs
··· 55 55 pub value: Rings<'a>, 56 56 } 57 57 58 + impl From<RingsGetRecordOutput<'_>> for Rings<'_> { 59 + fn from(output: RingsGetRecordOutput<'_>) -> Self { 60 + use jacquard_common::IntoStatic; 61 + output.value.into_static() 62 + } 63 + } 64 + 65 + impl jacquard_common::types::collection::Collection for Rings<'_> { 66 + const NSID: &'static str = "dev.baileytownsend.health.rings"; 67 + type Record = RingsRecord; 68 + } 69 + 58 70 /// Marker type for deserializing records from this collection. 71 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 59 72 pub struct RingsRecord; 60 73 impl jacquard_common::xrpc::XrpcResp for RingsRecord { 61 74 const NSID: &'static str = "dev.baileytownsend.health.rings"; ··· 64 77 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 65 78 } 66 79 67 - impl jacquard_common::types::collection::Collection for Rings<'_> { 80 + impl jacquard_common::types::collection::Collection for RingsRecord { 68 81 const NSID: &'static str = "dev.baileytownsend.health.rings"; 69 82 type Record = RingsRecord; 70 - } 71 - 72 - impl From<RingsGetRecordOutput<'_>> for Rings<'_> { 73 - fn from(output: RingsGetRecordOutput<'_>) -> Self { 74 - use jacquard_common::IntoStatic; 75 - output.value.into_static() 76 - } 77 83 }
+14 -8
crates/jacquard-api/src/dev_baileytownsend/health/steps.rs
··· 43 43 pub value: Steps<'a>, 44 44 } 45 45 46 + impl From<StepsGetRecordOutput<'_>> for Steps<'_> { 47 + fn from(output: StepsGetRecordOutput<'_>) -> Self { 48 + use jacquard_common::IntoStatic; 49 + output.value.into_static() 50 + } 51 + } 52 + 53 + impl jacquard_common::types::collection::Collection for Steps<'_> { 54 + const NSID: &'static str = "dev.baileytownsend.health.steps"; 55 + type Record = StepsRecord; 56 + } 57 + 46 58 /// Marker type for deserializing records from this collection. 59 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 47 60 pub struct StepsRecord; 48 61 impl jacquard_common::xrpc::XrpcResp for StepsRecord { 49 62 const NSID: &'static str = "dev.baileytownsend.health.steps"; ··· 52 65 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 53 66 } 54 67 55 - impl jacquard_common::types::collection::Collection for Steps<'_> { 68 + impl jacquard_common::types::collection::Collection for StepsRecord { 56 69 const NSID: &'static str = "dev.baileytownsend.health.steps"; 57 70 type Record = StepsRecord; 58 - } 59 - 60 - impl From<StepsGetRecordOutput<'_>> for Steps<'_> { 61 - fn from(output: StepsGetRecordOutput<'_>) -> Self { 62 - use jacquard_common::IntoStatic; 63 - output.value.into_static() 64 - } 65 71 }
+14 -8
crates/jacquard-api/src/dev_baileytownsend/health/workout.rs
··· 59 59 pub value: Workout<'a>, 60 60 } 61 61 62 + impl From<WorkoutGetRecordOutput<'_>> for Workout<'_> { 63 + fn from(output: WorkoutGetRecordOutput<'_>) -> Self { 64 + use jacquard_common::IntoStatic; 65 + output.value.into_static() 66 + } 67 + } 68 + 69 + impl jacquard_common::types::collection::Collection for Workout<'_> { 70 + const NSID: &'static str = "dev.baileytownsend.health.workout"; 71 + type Record = WorkoutRecord; 72 + } 73 + 62 74 /// Marker type for deserializing records from this collection. 75 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 63 76 pub struct WorkoutRecord; 64 77 impl jacquard_common::xrpc::XrpcResp for WorkoutRecord { 65 78 const NSID: &'static str = "dev.baileytownsend.health.workout"; ··· 68 81 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 69 82 } 70 83 71 - impl jacquard_common::types::collection::Collection for Workout<'_> { 84 + impl jacquard_common::types::collection::Collection for WorkoutRecord { 72 85 const NSID: &'static str = "dev.baileytownsend.health.workout"; 73 86 type Record = WorkoutRecord; 74 - } 75 - 76 - impl From<WorkoutGetRecordOutput<'_>> for Workout<'_> { 77 - fn from(output: WorkoutGetRecordOutput<'_>) -> Self { 78 - use jacquard_common::IntoStatic; 79 - output.value.into_static() 80 - } 81 87 }
+14 -8
crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/post.rs
··· 62 62 pub value: Post<'a>, 63 63 } 64 64 65 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 66 + fn from(output: PostGetRecordOutput<'_>) -> Self { 67 + use jacquard_common::IntoStatic; 68 + output.value.into_static() 69 + } 70 + } 71 + 72 + impl jacquard_common::types::collection::Collection for Post<'_> { 73 + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.post"; 74 + type Record = PostRecord; 75 + } 76 + 65 77 /// Marker type for deserializing records from this collection. 78 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 66 79 pub struct PostRecord; 67 80 impl jacquard_common::xrpc::XrpcResp for PostRecord { 68 81 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.post"; ··· 71 84 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 72 85 } 73 86 74 - impl jacquard_common::types::collection::Collection for Post<'_> { 87 + impl jacquard_common::types::collection::Collection for PostRecord { 75 88 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.post"; 76 89 type Record = PostRecord; 77 - } 78 - 79 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 80 - fn from(output: PostGetRecordOutput<'_>) -> Self { 81 - use jacquard_common::IntoStatic; 82 - output.value.into_static() 83 - } 84 90 }
+14 -8
crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/feed/reply.rs
··· 51 51 pub value: Reply<'a>, 52 52 } 53 53 54 + impl From<ReplyGetRecordOutput<'_>> for Reply<'_> { 55 + fn from(output: ReplyGetRecordOutput<'_>) -> Self { 56 + use jacquard_common::IntoStatic; 57 + output.value.into_static() 58 + } 59 + } 60 + 61 + impl jacquard_common::types::collection::Collection for Reply<'_> { 62 + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.reply"; 63 + type Record = ReplyRecord; 64 + } 65 + 54 66 /// Marker type for deserializing records from this collection. 67 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 55 68 pub struct ReplyRecord; 56 69 impl jacquard_common::xrpc::XrpcResp for ReplyRecord { 57 70 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.reply"; ··· 60 73 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 61 74 } 62 75 63 - impl jacquard_common::types::collection::Collection for Reply<'_> { 76 + impl jacquard_common::types::collection::Collection for ReplyRecord { 64 77 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.feed.reply"; 65 78 type Record = ReplyRecord; 66 - } 67 - 68 - impl From<ReplyGetRecordOutput<'_>> for Reply<'_> { 69 - fn from(output: ReplyGetRecordOutput<'_>) -> Self { 70 - use jacquard_common::IntoStatic; 71 - output.value.into_static() 72 - } 73 79 }
+14 -8
crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/announcement.rs
··· 50 50 pub value: Announcement<'a>, 51 51 } 52 52 53 + impl From<AnnouncementGetRecordOutput<'_>> for Announcement<'_> { 54 + fn from(output: AnnouncementGetRecordOutput<'_>) -> Self { 55 + use jacquard_common::IntoStatic; 56 + output.value.into_static() 57 + } 58 + } 59 + 60 + impl jacquard_common::types::collection::Collection for Announcement<'_> { 61 + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.announcement"; 62 + type Record = AnnouncementRecord; 63 + } 64 + 53 65 /// Marker type for deserializing records from this collection. 66 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 54 67 pub struct AnnouncementRecord; 55 68 impl jacquard_common::xrpc::XrpcResp for AnnouncementRecord { 56 69 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.announcement"; ··· 59 72 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 60 73 } 61 74 62 - impl jacquard_common::types::collection::Collection for Announcement<'_> { 75 + impl jacquard_common::types::collection::Collection for AnnouncementRecord { 63 76 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.announcement"; 64 77 type Record = AnnouncementRecord; 65 - } 66 - 67 - impl From<AnnouncementGetRecordOutput<'_>> for Announcement<'_> { 68 - fn from(output: AnnouncementGetRecordOutput<'_>) -> Self { 69 - use jacquard_common::IntoStatic; 70 - output.value.into_static() 71 - } 72 78 }
+14 -8
crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/category.rs
··· 54 54 pub value: Category<'a>, 55 55 } 56 56 57 + impl From<CategoryGetRecordOutput<'_>> for Category<'_> { 58 + fn from(output: CategoryGetRecordOutput<'_>) -> Self { 59 + use jacquard_common::IntoStatic; 60 + output.value.into_static() 61 + } 62 + } 63 + 64 + impl jacquard_common::types::collection::Collection for Category<'_> { 65 + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.category"; 66 + type Record = CategoryRecord; 67 + } 68 + 57 69 /// Marker type for deserializing records from this collection. 70 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 58 71 pub struct CategoryRecord; 59 72 impl jacquard_common::xrpc::XrpcResp for CategoryRecord { 60 73 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.category"; ··· 63 76 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 64 77 } 65 78 66 - impl jacquard_common::types::collection::Collection for Category<'_> { 79 + impl jacquard_common::types::collection::Collection for CategoryRecord { 67 80 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.category"; 68 81 type Record = CategoryRecord; 69 - } 70 - 71 - impl From<CategoryGetRecordOutput<'_>> for Category<'_> { 72 - fn from(output: CategoryGetRecordOutput<'_>) -> Self { 73 - use jacquard_common::IntoStatic; 74 - output.value.into_static() 75 - } 76 82 }
+14 -8
crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/group.rs
··· 49 49 pub value: Group<'a>, 50 50 } 51 51 52 + impl From<GroupGetRecordOutput<'_>> for Group<'_> { 53 + fn from(output: GroupGetRecordOutput<'_>) -> Self { 54 + use jacquard_common::IntoStatic; 55 + output.value.into_static() 56 + } 57 + } 58 + 59 + impl jacquard_common::types::collection::Collection for Group<'_> { 60 + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.group"; 61 + type Record = GroupRecord; 62 + } 63 + 52 64 /// Marker type for deserializing records from this collection. 65 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 53 66 pub struct GroupRecord; 54 67 impl jacquard_common::xrpc::XrpcResp for GroupRecord { 55 68 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.group"; ··· 58 71 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 59 72 } 60 73 61 - impl jacquard_common::types::collection::Collection for Group<'_> { 74 + impl jacquard_common::types::collection::Collection for GroupRecord { 62 75 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.group"; 63 76 type Record = GroupRecord; 64 - } 65 - 66 - impl From<GroupGetRecordOutput<'_>> for Group<'_> { 67 - fn from(output: GroupGetRecordOutput<'_>) -> Self { 68 - use jacquard_common::IntoStatic; 69 - output.value.into_static() 70 - } 71 77 }
+14 -8
crates/jacquard-api/src/dev_fudgeu/experimental/atforumv1/forum/identity.rs
··· 53 53 pub value: Identity<'a>, 54 54 } 55 55 56 + impl From<IdentityGetRecordOutput<'_>> for Identity<'_> { 57 + fn from(output: IdentityGetRecordOutput<'_>) -> Self { 58 + use jacquard_common::IntoStatic; 59 + output.value.into_static() 60 + } 61 + } 62 + 63 + impl jacquard_common::types::collection::Collection for Identity<'_> { 64 + const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.identity"; 65 + type Record = IdentityRecord; 66 + } 67 + 56 68 /// Marker type for deserializing records from this collection. 69 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 57 70 pub struct IdentityRecord; 58 71 impl jacquard_common::xrpc::XrpcResp for IdentityRecord { 59 72 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.identity"; ··· 62 75 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 63 76 } 64 77 65 - impl jacquard_common::types::collection::Collection for Identity<'_> { 78 + impl jacquard_common::types::collection::Collection for IdentityRecord { 66 79 const NSID: &'static str = "dev.fudgeu.experimental.atforumv1.forum.identity"; 67 80 type Record = IdentityRecord; 68 - } 69 - 70 - impl From<IdentityGetRecordOutput<'_>> for Identity<'_> { 71 - fn from(output: IdentityGetRecordOutput<'_>) -> Self { 72 - use jacquard_common::IntoStatic; 73 - output.value.into_static() 74 - } 75 81 }
+14 -8
crates/jacquard-api/src/dev_ocbwoy3/blueboard/board.rs
··· 53 53 pub value: Board<'a>, 54 54 } 55 55 56 + impl From<BoardGetRecordOutput<'_>> for Board<'_> { 57 + fn from(output: BoardGetRecordOutput<'_>) -> Self { 58 + use jacquard_common::IntoStatic; 59 + output.value.into_static() 60 + } 61 + } 62 + 63 + impl jacquard_common::types::collection::Collection for Board<'_> { 64 + const NSID: &'static str = "dev.ocbwoy3.blueboard.board"; 65 + type Record = BoardRecord; 66 + } 67 + 56 68 /// Marker type for deserializing records from this collection. 69 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 57 70 pub struct BoardRecord; 58 71 impl jacquard_common::xrpc::XrpcResp for BoardRecord { 59 72 const NSID: &'static str = "dev.ocbwoy3.blueboard.board"; ··· 62 75 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 63 76 } 64 77 65 - impl jacquard_common::types::collection::Collection for Board<'_> { 78 + impl jacquard_common::types::collection::Collection for BoardRecord { 66 79 const NSID: &'static str = "dev.ocbwoy3.blueboard.board"; 67 80 type Record = BoardRecord; 68 - } 69 - 70 - impl From<BoardGetRecordOutput<'_>> for Board<'_> { 71 - fn from(output: BoardGetRecordOutput<'_>) -> Self { 72 - use jacquard_common::IntoStatic; 73 - output.value.into_static() 74 - } 75 81 }
+14 -8
crates/jacquard-api/src/dev_ocbwoy3/blueboard/post.rs
··· 55 55 pub value: Post<'a>, 56 56 } 57 57 58 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 59 + fn from(output: PostGetRecordOutput<'_>) -> Self { 60 + use jacquard_common::IntoStatic; 61 + output.value.into_static() 62 + } 63 + } 64 + 65 + impl jacquard_common::types::collection::Collection for Post<'_> { 66 + const NSID: &'static str = "dev.ocbwoy3.blueboard.post"; 67 + type Record = PostRecord; 68 + } 69 + 58 70 /// Marker type for deserializing records from this collection. 71 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 59 72 pub struct PostRecord; 60 73 impl jacquard_common::xrpc::XrpcResp for PostRecord { 61 74 const NSID: &'static str = "dev.ocbwoy3.blueboard.post"; ··· 64 77 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 65 78 } 66 79 67 - impl jacquard_common::types::collection::Collection for Post<'_> { 80 + impl jacquard_common::types::collection::Collection for PostRecord { 68 81 const NSID: &'static str = "dev.ocbwoy3.blueboard.post"; 69 82 type Record = PostRecord; 70 - } 71 - 72 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 73 - fn from(output: PostGetRecordOutput<'_>) -> Self { 74 - use jacquard_common::IntoStatic; 75 - output.value.into_static() 76 - } 77 83 }
+14 -8
crates/jacquard-api/src/dev_regnault/webfishing/savefile.rs
··· 47 47 pub value: Savefile<'a>, 48 48 } 49 49 50 + impl From<SavefileGetRecordOutput<'_>> for Savefile<'_> { 51 + fn from(output: SavefileGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Savefile<'_> { 58 + const NSID: &'static str = "dev.regnault.webfishing.savefile"; 59 + type Record = SavefileRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct SavefileRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for SavefileRecord { 53 66 const NSID: &'static str = "dev.regnault.webfishing.savefile"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Savefile<'_> { 72 + impl jacquard_common::types::collection::Collection for SavefileRecord { 60 73 const NSID: &'static str = "dev.regnault.webfishing.savefile"; 61 74 type Record = SavefileRecord; 62 - } 63 - 64 - impl From<SavefileGetRecordOutput<'_>> for Savefile<'_> { 65 - fn from(output: SavefileGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+14 -8
crates/jacquard-api/src/fyi_unravel/frontpage/comment.rs
··· 54 54 pub value: Comment<'a>, 55 55 } 56 56 57 + impl From<CommentGetRecordOutput<'_>> for Comment<'_> { 58 + fn from(output: CommentGetRecordOutput<'_>) -> Self { 59 + use jacquard_common::IntoStatic; 60 + output.value.into_static() 61 + } 62 + } 63 + 64 + impl jacquard_common::types::collection::Collection for Comment<'_> { 65 + const NSID: &'static str = "fyi.unravel.frontpage.comment"; 66 + type Record = CommentRecord; 67 + } 68 + 57 69 /// Marker type for deserializing records from this collection. 70 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 58 71 pub struct CommentRecord; 59 72 impl jacquard_common::xrpc::XrpcResp for CommentRecord { 60 73 const NSID: &'static str = "fyi.unravel.frontpage.comment"; ··· 63 76 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 64 77 } 65 78 66 - impl jacquard_common::types::collection::Collection for Comment<'_> { 79 + impl jacquard_common::types::collection::Collection for CommentRecord { 67 80 const NSID: &'static str = "fyi.unravel.frontpage.comment"; 68 81 type Record = CommentRecord; 69 - } 70 - 71 - impl From<CommentGetRecordOutput<'_>> for Comment<'_> { 72 - fn from(output: CommentGetRecordOutput<'_>) -> Self { 73 - use jacquard_common::IntoStatic; 74 - output.value.into_static() 75 - } 76 82 }
+14 -8
crates/jacquard-api/src/fyi_unravel/frontpage/post.rs
··· 51 51 pub value: Post<'a>, 52 52 } 53 53 54 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 55 + fn from(output: PostGetRecordOutput<'_>) -> Self { 56 + use jacquard_common::IntoStatic; 57 + output.value.into_static() 58 + } 59 + } 60 + 61 + impl jacquard_common::types::collection::Collection for Post<'_> { 62 + const NSID: &'static str = "fyi.unravel.frontpage.post"; 63 + type Record = PostRecord; 64 + } 65 + 54 66 /// Marker type for deserializing records from this collection. 67 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 55 68 pub struct PostRecord; 56 69 impl jacquard_common::xrpc::XrpcResp for PostRecord { 57 70 const NSID: &'static str = "fyi.unravel.frontpage.post"; ··· 60 73 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 61 74 } 62 75 63 - impl jacquard_common::types::collection::Collection for Post<'_> { 76 + impl jacquard_common::types::collection::Collection for PostRecord { 64 77 const NSID: &'static str = "fyi.unravel.frontpage.post"; 65 78 type Record = PostRecord; 66 - } 67 - 68 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 69 - fn from(output: PostGetRecordOutput<'_>) -> Self { 70 - use jacquard_common::IntoStatic; 71 - output.value.into_static() 72 - } 73 79 }
+14 -8
crates/jacquard-api/src/fyi_unravel/frontpage/vote.rs
··· 46 46 pub value: Vote<'a>, 47 47 } 48 48 49 + impl From<VoteGetRecordOutput<'_>> for Vote<'_> { 50 + fn from(output: VoteGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Vote<'_> { 57 + const NSID: &'static str = "fyi.unravel.frontpage.vote"; 58 + type Record = VoteRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct VoteRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for VoteRecord { 52 65 const NSID: &'static str = "fyi.unravel.frontpage.vote"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Vote<'_> { 71 + impl jacquard_common::types::collection::Collection for VoteRecord { 59 72 const NSID: &'static str = "fyi.unravel.frontpage.vote"; 60 73 type Record = VoteRecord; 61 - } 62 - 63 - impl From<VoteGetRecordOutput<'_>> for Vote<'_> { 64 - fn from(output: VoteGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/moe_karashiiro/kpaste/paste.rs
··· 60 60 pub value: Paste<'a>, 61 61 } 62 62 63 + impl From<PasteGetRecordOutput<'_>> for Paste<'_> { 64 + fn from(output: PasteGetRecordOutput<'_>) -> Self { 65 + use jacquard_common::IntoStatic; 66 + output.value.into_static() 67 + } 68 + } 69 + 70 + impl jacquard_common::types::collection::Collection for Paste<'_> { 71 + const NSID: &'static str = "moe.karashiiro.kpaste.paste"; 72 + type Record = PasteRecord; 73 + } 74 + 63 75 /// Marker type for deserializing records from this collection. 76 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 64 77 pub struct PasteRecord; 65 78 impl jacquard_common::xrpc::XrpcResp for PasteRecord { 66 79 const NSID: &'static str = "moe.karashiiro.kpaste.paste"; ··· 69 82 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 70 83 } 71 84 72 - impl jacquard_common::types::collection::Collection for Paste<'_> { 85 + impl jacquard_common::types::collection::Collection for PasteRecord { 73 86 const NSID: &'static str = "moe.karashiiro.kpaste.paste"; 74 87 type Record = PasteRecord; 75 - } 76 - 77 - impl From<PasteGetRecordOutput<'_>> for Paste<'_> { 78 - fn from(output: PasteGetRecordOutput<'_>) -> Self { 79 - use jacquard_common::IntoStatic; 80 - output.value.into_static() 81 - } 82 88 }
+14 -8
crates/jacquard-api/src/my_skylights/rel.rs
··· 54 54 pub value: Rel<'a>, 55 55 } 56 56 57 + impl From<RelGetRecordOutput<'_>> for Rel<'_> { 58 + fn from(output: RelGetRecordOutput<'_>) -> Self { 59 + use jacquard_common::IntoStatic; 60 + output.value.into_static() 61 + } 62 + } 63 + 64 + impl jacquard_common::types::collection::Collection for Rel<'_> { 65 + const NSID: &'static str = "my.skylights.rel"; 66 + type Record = RelRecord; 67 + } 68 + 57 69 /// Marker type for deserializing records from this collection. 70 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 58 71 pub struct RelRecord; 59 72 impl jacquard_common::xrpc::XrpcResp for RelRecord { 60 73 const NSID: &'static str = "my.skylights.rel"; ··· 63 76 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 64 77 } 65 78 66 - impl jacquard_common::types::collection::Collection for Rel<'_> { 79 + impl jacquard_common::types::collection::Collection for RelRecord { 67 80 const NSID: &'static str = "my.skylights.rel"; 68 81 type Record = RelRecord; 69 - } 70 - 71 - impl From<RelGetRecordOutput<'_>> for Rel<'_> { 72 - fn from(output: RelGetRecordOutput<'_>) -> Self { 73 - use jacquard_common::IntoStatic; 74 - output.value.into_static() 75 - } 76 82 } 77 83 78 84 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/net_aftertheinter/coolthingtwo.rs
··· 45 45 pub value: Coolthingtwo<'a>, 46 46 } 47 47 48 + impl From<CoolthingtwoGetRecordOutput<'_>> for Coolthingtwo<'_> { 49 + fn from(output: CoolthingtwoGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for Coolthingtwo<'_> { 56 + const NSID: &'static str = "net.aftertheinter.coolthingtwo"; 57 + type Record = CoolthingtwoRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct CoolthingtwoRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for CoolthingtwoRecord { 51 64 const NSID: &'static str = "net.aftertheinter.coolthingtwo"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for Coolthingtwo<'_> { 70 + impl jacquard_common::types::collection::Collection for CoolthingtwoRecord { 58 71 const NSID: &'static str = "net.aftertheinter.coolthingtwo"; 59 72 type Record = CoolthingtwoRecord; 60 - } 61 - 62 - impl From<CoolthingtwoGetRecordOutput<'_>> for Coolthingtwo<'_> { 63 - fn from(output: CoolthingtwoGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/net_altq/aqfile.rs
··· 113 113 pub value: Aqfile<'a>, 114 114 } 115 115 116 + impl From<AqfileGetRecordOutput<'_>> for Aqfile<'_> { 117 + fn from(output: AqfileGetRecordOutput<'_>) -> Self { 118 + use jacquard_common::IntoStatic; 119 + output.value.into_static() 120 + } 121 + } 122 + 123 + impl jacquard_common::types::collection::Collection for Aqfile<'_> { 124 + const NSID: &'static str = "net.altq.aqfile"; 125 + type Record = AqfileRecord; 126 + } 127 + 116 128 /// Marker type for deserializing records from this collection. 129 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 117 130 pub struct AqfileRecord; 118 131 impl jacquard_common::xrpc::XrpcResp for AqfileRecord { 119 132 const NSID: &'static str = "net.altq.aqfile"; ··· 122 135 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 123 136 } 124 137 125 - impl jacquard_common::types::collection::Collection for Aqfile<'_> { 138 + impl jacquard_common::types::collection::Collection for AqfileRecord { 126 139 const NSID: &'static str = "net.altq.aqfile"; 127 140 type Record = AqfileRecord; 128 - } 129 - 130 - impl From<AqfileGetRecordOutput<'_>> for Aqfile<'_> { 131 - fn from(output: AqfileGetRecordOutput<'_>) -> Self { 132 - use jacquard_common::IntoStatic; 133 - output.value.into_static() 134 - } 135 141 }
+14 -8
crates/jacquard-api/src/net_anisota/beta/game/collection.rs
··· 117 117 pub value: Collection<'a>, 118 118 } 119 119 120 + impl From<CollectionGetRecordOutput<'_>> for Collection<'_> { 121 + fn from(output: CollectionGetRecordOutput<'_>) -> Self { 122 + use jacquard_common::IntoStatic; 123 + output.value.into_static() 124 + } 125 + } 126 + 127 + impl jacquard_common::types::collection::Collection for Collection<'_> { 128 + const NSID: &'static str = "net.anisota.beta.game.collection"; 129 + type Record = CollectionRecord; 130 + } 131 + 120 132 /// Marker type for deserializing records from this collection. 133 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 121 134 pub struct CollectionRecord; 122 135 impl jacquard_common::xrpc::XrpcResp for CollectionRecord { 123 136 const NSID: &'static str = "net.anisota.beta.game.collection"; ··· 126 139 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 127 140 } 128 141 129 - impl jacquard_common::types::collection::Collection for Collection<'_> { 142 + impl jacquard_common::types::collection::Collection for CollectionRecord { 130 143 const NSID: &'static str = "net.anisota.beta.game.collection"; 131 144 type Record = CollectionRecord; 132 - } 133 - 134 - impl From<CollectionGetRecordOutput<'_>> for Collection<'_> { 135 - fn from(output: CollectionGetRecordOutput<'_>) -> Self { 136 - use jacquard_common::IntoStatic; 137 - output.value.into_static() 138 - } 139 145 } 140 146 141 147 /// Additional details about how the specimen was acquired
+14 -8
crates/jacquard-api/src/net_anisota/beta/game/inventory.rs
··· 104 104 pub value: Inventory<'a>, 105 105 } 106 106 107 + impl From<InventoryGetRecordOutput<'_>> for Inventory<'_> { 108 + fn from(output: InventoryGetRecordOutput<'_>) -> Self { 109 + use jacquard_common::IntoStatic; 110 + output.value.into_static() 111 + } 112 + } 113 + 114 + impl jacquard_common::types::collection::Collection for Inventory<'_> { 115 + const NSID: &'static str = "net.anisota.beta.game.inventory"; 116 + type Record = InventoryRecord; 117 + } 118 + 107 119 /// Marker type for deserializing records from this collection. 120 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 108 121 pub struct InventoryRecord; 109 122 impl jacquard_common::xrpc::XrpcResp for InventoryRecord { 110 123 const NSID: &'static str = "net.anisota.beta.game.inventory"; ··· 113 126 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 114 127 } 115 128 116 - impl jacquard_common::types::collection::Collection for Inventory<'_> { 129 + impl jacquard_common::types::collection::Collection for InventoryRecord { 117 130 const NSID: &'static str = "net.anisota.beta.game.inventory"; 118 131 type Record = InventoryRecord; 119 - } 120 - 121 - impl From<InventoryGetRecordOutput<'_>> for Inventory<'_> { 122 - fn from(output: InventoryGetRecordOutput<'_>) -> Self { 123 - use jacquard_common::IntoStatic; 124 - output.value.into_static() 125 - } 126 132 } 127 133 128 134 /// Additional details about how the item was acquired
+14 -8
crates/jacquard-api/src/net_anisota/beta/game/log.rs
··· 278 278 pub value: Log<'a>, 279 279 } 280 280 281 + impl From<LogGetRecordOutput<'_>> for Log<'_> { 282 + fn from(output: LogGetRecordOutput<'_>) -> Self { 283 + use jacquard_common::IntoStatic; 284 + output.value.into_static() 285 + } 286 + } 287 + 288 + impl jacquard_common::types::collection::Collection for Log<'_> { 289 + const NSID: &'static str = "net.anisota.beta.game.log"; 290 + type Record = LogRecord; 291 + } 292 + 281 293 /// Marker type for deserializing records from this collection. 294 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 282 295 pub struct LogRecord; 283 296 impl jacquard_common::xrpc::XrpcResp for LogRecord { 284 297 const NSID: &'static str = "net.anisota.beta.game.log"; ··· 287 300 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 288 301 } 289 302 290 - impl jacquard_common::types::collection::Collection for Log<'_> { 303 + impl jacquard_common::types::collection::Collection for LogRecord { 291 304 const NSID: &'static str = "net.anisota.beta.game.log"; 292 305 type Record = LogRecord; 293 - } 294 - 295 - impl From<LogGetRecordOutput<'_>> for Log<'_> { 296 - fn from(output: LogGetRecordOutput<'_>) -> Self { 297 - use jacquard_common::IntoStatic; 298 - output.value.into_static() 299 - } 300 306 } 301 307 302 308 /// Additional event-specific metadata
+14 -8
crates/jacquard-api/src/net_anisota/beta/game/pack.rs
··· 65 65 pub value: Pack<'a>, 66 66 } 67 67 68 + impl From<PackGetRecordOutput<'_>> for Pack<'_> { 69 + fn from(output: PackGetRecordOutput<'_>) -> Self { 70 + use jacquard_common::IntoStatic; 71 + output.value.into_static() 72 + } 73 + } 74 + 75 + impl jacquard_common::types::collection::Collection for Pack<'_> { 76 + const NSID: &'static str = "net.anisota.beta.game.pack"; 77 + type Record = PackRecord; 78 + } 79 + 68 80 /// Marker type for deserializing records from this collection. 81 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 69 82 pub struct PackRecord; 70 83 impl jacquard_common::xrpc::XrpcResp for PackRecord { 71 84 const NSID: &'static str = "net.anisota.beta.game.pack"; ··· 74 87 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 75 88 } 76 89 77 - impl jacquard_common::types::collection::Collection for Pack<'_> { 90 + impl jacquard_common::types::collection::Collection for PackRecord { 78 91 const NSID: &'static str = "net.anisota.beta.game.pack"; 79 92 type Record = PackRecord; 80 - } 81 - 82 - impl From<PackGetRecordOutput<'_>> for Pack<'_> { 83 - fn from(output: PackGetRecordOutput<'_>) -> Self { 84 - use jacquard_common::IntoStatic; 85 - output.value.into_static() 86 - } 87 93 } 88 94 89 95 /// A single pack opening entry in the history
+14 -8
crates/jacquard-api/src/net_anisota/beta/game/progress.rs
··· 100 100 pub value: Progress<'a>, 101 101 } 102 102 103 + impl From<ProgressGetRecordOutput<'_>> for Progress<'_> { 104 + fn from(output: ProgressGetRecordOutput<'_>) -> Self { 105 + use jacquard_common::IntoStatic; 106 + output.value.into_static() 107 + } 108 + } 109 + 110 + impl jacquard_common::types::collection::Collection for Progress<'_> { 111 + const NSID: &'static str = "net.anisota.beta.game.progress"; 112 + type Record = ProgressRecord; 113 + } 114 + 103 115 /// Marker type for deserializing records from this collection. 116 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 104 117 pub struct ProgressRecord; 105 118 impl jacquard_common::xrpc::XrpcResp for ProgressRecord { 106 119 const NSID: &'static str = "net.anisota.beta.game.progress"; ··· 109 122 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 110 123 } 111 124 112 - impl jacquard_common::types::collection::Collection for Progress<'_> { 125 + impl jacquard_common::types::collection::Collection for ProgressRecord { 113 126 const NSID: &'static str = "net.anisota.beta.game.progress"; 114 127 type Record = ProgressRecord; 115 - } 116 - 117 - impl From<ProgressGetRecordOutput<'_>> for Progress<'_> { 118 - fn from(output: ProgressGetRecordOutput<'_>) -> Self { 119 - use jacquard_common::IntoStatic; 120 - output.value.into_static() 121 - } 122 128 } 123 129 124 130 /// Additional metadata about this progress update
+14 -8
crates/jacquard-api/src/net_anisota/beta/game/session.rs
··· 182 182 pub value: Session<'a>, 183 183 } 184 184 185 + impl From<SessionGetRecordOutput<'_>> for Session<'_> { 186 + fn from(output: SessionGetRecordOutput<'_>) -> Self { 187 + use jacquard_common::IntoStatic; 188 + output.value.into_static() 189 + } 190 + } 191 + 192 + impl jacquard_common::types::collection::Collection for Session<'_> { 193 + const NSID: &'static str = "net.anisota.beta.game.session"; 194 + type Record = SessionRecord; 195 + } 196 + 185 197 /// Marker type for deserializing records from this collection. 198 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 186 199 pub struct SessionRecord; 187 200 impl jacquard_common::xrpc::XrpcResp for SessionRecord { 188 201 const NSID: &'static str = "net.anisota.beta.game.session"; ··· 191 204 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 192 205 } 193 206 194 - impl jacquard_common::types::collection::Collection for Session<'_> { 207 + impl jacquard_common::types::collection::Collection for SessionRecord { 195 208 const NSID: &'static str = "net.anisota.beta.game.session"; 196 209 type Record = SessionRecord; 197 - } 198 - 199 - impl From<SessionGetRecordOutput<'_>> for Session<'_> { 200 - fn from(output: SessionGetRecordOutput<'_>) -> Self { 201 - use jacquard_common::IntoStatic; 202 - output.value.into_static() 203 - } 204 210 } 205 211 206 212 /// Additional session metadata
+14 -8
crates/jacquard-api/src/net_anisota/feed/draft.rs
··· 104 104 pub value: Draft<'a>, 105 105 } 106 106 107 + impl From<DraftGetRecordOutput<'_>> for Draft<'_> { 108 + fn from(output: DraftGetRecordOutput<'_>) -> Self { 109 + use jacquard_common::IntoStatic; 110 + output.value.into_static() 111 + } 112 + } 113 + 114 + impl jacquard_common::types::collection::Collection for Draft<'_> { 115 + const NSID: &'static str = "net.anisota.feed.draft"; 116 + type Record = DraftRecord; 117 + } 118 + 107 119 /// Marker type for deserializing records from this collection. 120 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 108 121 pub struct DraftRecord; 109 122 impl jacquard_common::xrpc::XrpcResp for DraftRecord { 110 123 const NSID: &'static str = "net.anisota.feed.draft"; ··· 113 126 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 114 127 } 115 128 116 - impl jacquard_common::types::collection::Collection for Draft<'_> { 129 + impl jacquard_common::types::collection::Collection for DraftRecord { 117 130 const NSID: &'static str = "net.anisota.feed.draft"; 118 131 type Record = DraftRecord; 119 - } 120 - 121 - impl From<DraftGetRecordOutput<'_>> for Draft<'_> { 122 - fn from(output: DraftGetRecordOutput<'_>) -> Self { 123 - use jacquard_common::IntoStatic; 124 - output.value.into_static() 125 - } 126 132 } 127 133 128 134 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/net_anisota/feed/like.rs
··· 47 47 pub value: Like<'a>, 48 48 } 49 49 50 + impl From<LikeGetRecordOutput<'_>> for Like<'_> { 51 + fn from(output: LikeGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Like<'_> { 58 + const NSID: &'static str = "net.anisota.feed.like"; 59 + type Record = LikeRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct LikeRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for LikeRecord { 53 66 const NSID: &'static str = "net.anisota.feed.like"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Like<'_> { 72 + impl jacquard_common::types::collection::Collection for LikeRecord { 60 73 const NSID: &'static str = "net.anisota.feed.like"; 61 74 type Record = LikeRecord; 62 - } 63 - 64 - impl From<LikeGetRecordOutput<'_>> for Like<'_> { 65 - fn from(output: LikeGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+14 -8
crates/jacquard-api/src/net_anisota/feed/list.rs
··· 63 63 pub value: List<'a>, 64 64 } 65 65 66 + impl From<ListGetRecordOutput<'_>> for List<'_> { 67 + fn from(output: ListGetRecordOutput<'_>) -> Self { 68 + use jacquard_common::IntoStatic; 69 + output.value.into_static() 70 + } 71 + } 72 + 73 + impl jacquard_common::types::collection::Collection for List<'_> { 74 + const NSID: &'static str = "net.anisota.feed.list"; 75 + type Record = ListRecord; 76 + } 77 + 66 78 /// Marker type for deserializing records from this collection. 79 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 67 80 pub struct ListRecord; 68 81 impl jacquard_common::xrpc::XrpcResp for ListRecord { 69 82 const NSID: &'static str = "net.anisota.feed.list"; ··· 72 85 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 73 86 } 74 87 75 - impl jacquard_common::types::collection::Collection for List<'_> { 88 + impl jacquard_common::types::collection::Collection for ListRecord { 76 89 const NSID: &'static str = "net.anisota.feed.list"; 77 90 type Record = ListRecord; 78 - } 79 - 80 - impl From<ListGetRecordOutput<'_>> for List<'_> { 81 - fn from(output: ListGetRecordOutput<'_>) -> Self { 82 - use jacquard_common::IntoStatic; 83 - output.value.into_static() 84 - } 85 91 }
+14 -8
crates/jacquard-api/src/net_anisota/feed/list_item.rs
··· 50 50 pub value: ListItem<'a>, 51 51 } 52 52 53 + impl From<ListItemGetRecordOutput<'_>> for ListItem<'_> { 54 + fn from(output: ListItemGetRecordOutput<'_>) -> Self { 55 + use jacquard_common::IntoStatic; 56 + output.value.into_static() 57 + } 58 + } 59 + 60 + impl jacquard_common::types::collection::Collection for ListItem<'_> { 61 + const NSID: &'static str = "net.anisota.feed.listItem"; 62 + type Record = ListItemRecord; 63 + } 64 + 53 65 /// Marker type for deserializing records from this collection. 66 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 54 67 pub struct ListItemRecord; 55 68 impl jacquard_common::xrpc::XrpcResp for ListItemRecord { 56 69 const NSID: &'static str = "net.anisota.feed.listItem"; ··· 59 72 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 60 73 } 61 74 62 - impl jacquard_common::types::collection::Collection for ListItem<'_> { 75 + impl jacquard_common::types::collection::Collection for ListItemRecord { 63 76 const NSID: &'static str = "net.anisota.feed.listItem"; 64 77 type Record = ListItemRecord; 65 - } 66 - 67 - impl From<ListItemGetRecordOutput<'_>> for ListItem<'_> { 68 - fn from(output: ListItemGetRecordOutput<'_>) -> Self { 69 - use jacquard_common::IntoStatic; 70 - output.value.into_static() 71 - } 72 78 }
+14 -8
crates/jacquard-api/src/net_anisota/feed/post.rs
··· 100 100 pub value: Post<'a>, 101 101 } 102 102 103 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 104 + fn from(output: PostGetRecordOutput<'_>) -> Self { 105 + use jacquard_common::IntoStatic; 106 + output.value.into_static() 107 + } 108 + } 109 + 110 + impl jacquard_common::types::collection::Collection for Post<'_> { 111 + const NSID: &'static str = "net.anisota.feed.post"; 112 + type Record = PostRecord; 113 + } 114 + 103 115 /// Marker type for deserializing records from this collection. 116 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 104 117 pub struct PostRecord; 105 118 impl jacquard_common::xrpc::XrpcResp for PostRecord { 106 119 const NSID: &'static str = "net.anisota.feed.post"; ··· 109 122 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 110 123 } 111 124 112 - impl jacquard_common::types::collection::Collection for Post<'_> { 125 + impl jacquard_common::types::collection::Collection for PostRecord { 113 126 const NSID: &'static str = "net.anisota.feed.post"; 114 127 type Record = PostRecord; 115 - } 116 - 117 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 118 - fn from(output: PostGetRecordOutput<'_>) -> Self { 119 - use jacquard_common::IntoStatic; 120 - output.value.into_static() 121 - } 122 128 } 123 129 124 130 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/net_anisota/feed/repost.rs
··· 47 47 pub value: Repost<'a>, 48 48 } 49 49 50 + impl From<RepostGetRecordOutput<'_>> for Repost<'_> { 51 + fn from(output: RepostGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Repost<'_> { 58 + const NSID: &'static str = "net.anisota.feed.repost"; 59 + type Record = RepostRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct RepostRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for RepostRecord { 53 66 const NSID: &'static str = "net.anisota.feed.repost"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Repost<'_> { 72 + impl jacquard_common::types::collection::Collection for RepostRecord { 60 73 const NSID: &'static str = "net.anisota.feed.repost"; 61 74 type Record = RepostRecord; 62 - } 63 - 64 - impl From<RepostGetRecordOutput<'_>> for Repost<'_> { 65 - fn from(output: RepostGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+14 -8
crates/jacquard-api/src/net_anisota/graph/list_mute.rs
··· 94 94 pub value: ListMute<'a>, 95 95 } 96 96 97 + impl From<ListMuteGetRecordOutput<'_>> for ListMute<'_> { 98 + fn from(output: ListMuteGetRecordOutput<'_>) -> Self { 99 + use jacquard_common::IntoStatic; 100 + output.value.into_static() 101 + } 102 + } 103 + 104 + impl jacquard_common::types::collection::Collection for ListMute<'_> { 105 + const NSID: &'static str = "net.anisota.graph.listMute"; 106 + type Record = ListMuteRecord; 107 + } 108 + 97 109 /// Marker type for deserializing records from this collection. 110 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 98 111 pub struct ListMuteRecord; 99 112 impl jacquard_common::xrpc::XrpcResp for ListMuteRecord { 100 113 const NSID: &'static str = "net.anisota.graph.listMute"; ··· 103 116 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 104 117 } 105 118 106 - impl jacquard_common::types::collection::Collection for ListMute<'_> { 119 + impl jacquard_common::types::collection::Collection for ListMuteRecord { 107 120 const NSID: &'static str = "net.anisota.graph.listMute"; 108 121 type Record = ListMuteRecord; 109 - } 110 - 111 - impl From<ListMuteGetRecordOutput<'_>> for ListMute<'_> { 112 - fn from(output: ListMuteGetRecordOutput<'_>) -> Self { 113 - use jacquard_common::IntoStatic; 114 - output.value.into_static() 115 - } 116 122 }
+14 -8
crates/jacquard-api/src/net_anisota/graph/mute.rs
··· 94 94 pub value: Mute<'a>, 95 95 } 96 96 97 + impl From<MuteGetRecordOutput<'_>> for Mute<'_> { 98 + fn from(output: MuteGetRecordOutput<'_>) -> Self { 99 + use jacquard_common::IntoStatic; 100 + output.value.into_static() 101 + } 102 + } 103 + 104 + impl jacquard_common::types::collection::Collection for Mute<'_> { 105 + const NSID: &'static str = "net.anisota.graph.mute"; 106 + type Record = MuteRecord; 107 + } 108 + 97 109 /// Marker type for deserializing records from this collection. 110 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 98 111 pub struct MuteRecord; 99 112 impl jacquard_common::xrpc::XrpcResp for MuteRecord { 100 113 const NSID: &'static str = "net.anisota.graph.mute"; ··· 103 116 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 104 117 } 105 118 106 - impl jacquard_common::types::collection::Collection for Mute<'_> { 119 + impl jacquard_common::types::collection::Collection for MuteRecord { 107 120 const NSID: &'static str = "net.anisota.graph.mute"; 108 121 type Record = MuteRecord; 109 - } 110 - 111 - impl From<MuteGetRecordOutput<'_>> for Mute<'_> { 112 - fn from(output: MuteGetRecordOutput<'_>) -> Self { 113 - use jacquard_common::IntoStatic; 114 - output.value.into_static() 115 - } 116 122 }
+14 -8
crates/jacquard-api/src/net_bnewbold/demo/mushies.rs
··· 52 52 pub value: Mushies<'a>, 53 53 } 54 54 55 + impl From<MushiesGetRecordOutput<'_>> for Mushies<'_> { 56 + fn from(output: MushiesGetRecordOutput<'_>) -> Self { 57 + use jacquard_common::IntoStatic; 58 + output.value.into_static() 59 + } 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for Mushies<'_> { 63 + const NSID: &'static str = "net.bnewbold.demo.mushies"; 64 + type Record = MushiesRecord; 65 + } 66 + 55 67 /// Marker type for deserializing records from this collection. 68 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 56 69 pub struct MushiesRecord; 57 70 impl jacquard_common::xrpc::XrpcResp for MushiesRecord { 58 71 const NSID: &'static str = "net.bnewbold.demo.mushies"; ··· 61 74 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 62 75 } 63 76 64 - impl jacquard_common::types::collection::Collection for Mushies<'_> { 77 + impl jacquard_common::types::collection::Collection for MushiesRecord { 65 78 const NSID: &'static str = "net.bnewbold.demo.mushies"; 66 79 type Record = MushiesRecord; 67 - } 68 - 69 - impl From<MushiesGetRecordOutput<'_>> for Mushies<'_> { 70 - fn from(output: MushiesGetRecordOutput<'_>) -> Self { 71 - use jacquard_common::IntoStatic; 72 - output.value.into_static() 73 - } 74 80 }
+14 -8
crates/jacquard-api/src/net_bnewbold/demo/mushroom.rs
··· 52 52 pub value: Mushroom<'a>, 53 53 } 54 54 55 + impl From<MushroomGetRecordOutput<'_>> for Mushroom<'_> { 56 + fn from(output: MushroomGetRecordOutput<'_>) -> Self { 57 + use jacquard_common::IntoStatic; 58 + output.value.into_static() 59 + } 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for Mushroom<'_> { 63 + const NSID: &'static str = "net.bnewbold.demo.mushroom"; 64 + type Record = MushroomRecord; 65 + } 66 + 55 67 /// Marker type for deserializing records from this collection. 68 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 56 69 pub struct MushroomRecord; 57 70 impl jacquard_common::xrpc::XrpcResp for MushroomRecord { 58 71 const NSID: &'static str = "net.bnewbold.demo.mushroom"; ··· 61 74 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 62 75 } 63 76 64 - impl jacquard_common::types::collection::Collection for Mushroom<'_> { 77 + impl jacquard_common::types::collection::Collection for MushroomRecord { 65 78 const NSID: &'static str = "net.bnewbold.demo.mushroom"; 66 79 type Record = MushroomRecord; 67 - } 68 - 69 - impl From<MushroomGetRecordOutput<'_>> for Mushroom<'_> { 70 - fn from(output: MushroomGetRecordOutput<'_>) -> Self { 71 - use jacquard_common::IntoStatic; 72 - output.value.into_static() 73 - } 74 80 }
+14 -8
crates/jacquard-api/src/net_bnewbold/m.rs
··· 52 52 pub value: M<'a>, 53 53 } 54 54 55 + impl From<MGetRecordOutput<'_>> for M<'_> { 56 + fn from(output: MGetRecordOutput<'_>) -> Self { 57 + use jacquard_common::IntoStatic; 58 + output.value.into_static() 59 + } 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for M<'_> { 63 + const NSID: &'static str = "net.bnewbold.m"; 64 + type Record = MRecord; 65 + } 66 + 55 67 /// Marker type for deserializing records from this collection. 68 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 56 69 pub struct MRecord; 57 70 impl jacquard_common::xrpc::XrpcResp for MRecord { 58 71 const NSID: &'static str = "net.bnewbold.m"; ··· 61 74 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 62 75 } 63 76 64 - impl jacquard_common::types::collection::Collection for M<'_> { 77 + impl jacquard_common::types::collection::Collection for MRecord { 65 78 const NSID: &'static str = "net.bnewbold.m"; 66 79 type Record = MRecord; 67 - } 68 - 69 - impl From<MGetRecordOutput<'_>> for M<'_> { 70 - fn from(output: MGetRecordOutput<'_>) -> Self { 71 - use jacquard_common::IntoStatic; 72 - output.value.into_static() 73 - } 74 80 }
+14 -8
crates/jacquard-api/src/net_mmatt/right/now.rs
··· 53 53 pub value: Now<'a>, 54 54 } 55 55 56 + impl From<NowGetRecordOutput<'_>> for Now<'_> { 57 + fn from(output: NowGetRecordOutput<'_>) -> Self { 58 + use jacquard_common::IntoStatic; 59 + output.value.into_static() 60 + } 61 + } 62 + 63 + impl jacquard_common::types::collection::Collection for Now<'_> { 64 + const NSID: &'static str = "net.mmatt.right.now"; 65 + type Record = NowRecord; 66 + } 67 + 56 68 /// Marker type for deserializing records from this collection. 69 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 57 70 pub struct NowRecord; 58 71 impl jacquard_common::xrpc::XrpcResp for NowRecord { 59 72 const NSID: &'static str = "net.mmatt.right.now"; ··· 62 75 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 63 76 } 64 77 65 - impl jacquard_common::types::collection::Collection for Now<'_> { 78 + impl jacquard_common::types::collection::Collection for NowRecord { 66 79 const NSID: &'static str = "net.mmatt.right.now"; 67 80 type Record = NowRecord; 68 - } 69 - 70 - impl From<NowGetRecordOutput<'_>> for Now<'_> { 71 - fn from(output: NowGetRecordOutput<'_>) -> Self { 72 - use jacquard_common::IntoStatic; 73 - output.value.into_static() 74 - } 75 81 }
+14 -8
crates/jacquard-api/src/net_mmatt/vitals/car.rs
··· 69 69 pub value: Car<'a>, 70 70 } 71 71 72 + impl From<CarGetRecordOutput<'_>> for Car<'_> { 73 + fn from(output: CarGetRecordOutput<'_>) -> Self { 74 + use jacquard_common::IntoStatic; 75 + output.value.into_static() 76 + } 77 + } 78 + 79 + impl jacquard_common::types::collection::Collection for Car<'_> { 80 + const NSID: &'static str = "net.mmatt.vitals.car"; 81 + type Record = CarRecord; 82 + } 83 + 72 84 /// Marker type for deserializing records from this collection. 85 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 73 86 pub struct CarRecord; 74 87 impl jacquard_common::xrpc::XrpcResp for CarRecord { 75 88 const NSID: &'static str = "net.mmatt.vitals.car"; ··· 78 91 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 79 92 } 80 93 81 - impl jacquard_common::types::collection::Collection for Car<'_> { 94 + impl jacquard_common::types::collection::Collection for CarRecord { 82 95 const NSID: &'static str = "net.mmatt.vitals.car"; 83 96 type Record = CarRecord; 84 - } 85 - 86 - impl From<CarGetRecordOutput<'_>> for Car<'_> { 87 - fn from(output: CarGetRecordOutput<'_>) -> Self { 88 - use jacquard_common::IntoStatic; 89 - output.value.into_static() 90 - } 91 97 }
+14 -8
crates/jacquard-api/src/network_slices/actor/profile.rs
··· 59 59 pub value: Profile<'a>, 60 60 } 61 61 62 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 63 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 64 + use jacquard_common::IntoStatic; 65 + output.value.into_static() 66 + } 67 + } 68 + 69 + impl jacquard_common::types::collection::Collection for Profile<'_> { 70 + const NSID: &'static str = "network.slices.actor.profile"; 71 + type Record = ProfileRecord; 72 + } 73 + 62 74 /// Marker type for deserializing records from this collection. 75 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 63 76 pub struct ProfileRecord; 64 77 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 65 78 const NSID: &'static str = "network.slices.actor.profile"; ··· 68 81 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 69 82 } 70 83 71 - impl jacquard_common::types::collection::Collection for Profile<'_> { 84 + impl jacquard_common::types::collection::Collection for ProfileRecord { 72 85 const NSID: &'static str = "network.slices.actor.profile"; 73 86 type Record = ProfileRecord; 74 - } 75 - 76 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 77 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 78 - use jacquard_common::IntoStatic; 79 - output.value.into_static() 80 - } 81 87 }
+14 -8
crates/jacquard-api/src/network_slices/lexicon.rs
··· 67 67 pub value: Lexicon<'a>, 68 68 } 69 69 70 + impl From<LexiconGetRecordOutput<'_>> for Lexicon<'_> { 71 + fn from(output: LexiconGetRecordOutput<'_>) -> Self { 72 + use jacquard_common::IntoStatic; 73 + output.value.into_static() 74 + } 75 + } 76 + 77 + impl jacquard_common::types::collection::Collection for Lexicon<'_> { 78 + const NSID: &'static str = "network.slices.lexicon"; 79 + type Record = LexiconRecord; 80 + } 81 + 70 82 /// Marker type for deserializing records from this collection. 83 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 71 84 pub struct LexiconRecord; 72 85 impl jacquard_common::xrpc::XrpcResp for LexiconRecord { 73 86 const NSID: &'static str = "network.slices.lexicon"; ··· 76 89 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 77 90 } 78 91 79 - impl jacquard_common::types::collection::Collection for Lexicon<'_> { 92 + impl jacquard_common::types::collection::Collection for LexiconRecord { 80 93 const NSID: &'static str = "network.slices.lexicon"; 81 94 type Record = LexiconRecord; 82 - } 83 - 84 - impl From<LexiconGetRecordOutput<'_>> for Lexicon<'_> { 85 - fn from(output: LexiconGetRecordOutput<'_>) -> Self { 86 - use jacquard_common::IntoStatic; 87 - output.value.into_static() 88 - } 89 95 }
+14 -8
crates/jacquard-api/src/network_slices/slice.rs
··· 68 68 pub value: Slice<'a>, 69 69 } 70 70 71 + impl From<SliceGetRecordOutput<'_>> for Slice<'_> { 72 + fn from(output: SliceGetRecordOutput<'_>) -> Self { 73 + use jacquard_common::IntoStatic; 74 + output.value.into_static() 75 + } 76 + } 77 + 78 + impl jacquard_common::types::collection::Collection for Slice<'_> { 79 + const NSID: &'static str = "network.slices.slice"; 80 + type Record = SliceRecord; 81 + } 82 + 71 83 /// Marker type for deserializing records from this collection. 84 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 72 85 pub struct SliceRecord; 73 86 impl jacquard_common::xrpc::XrpcResp for SliceRecord { 74 87 const NSID: &'static str = "network.slices.slice"; ··· 77 90 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 78 91 } 79 92 80 - impl jacquard_common::types::collection::Collection for Slice<'_> { 93 + impl jacquard_common::types::collection::Collection for SliceRecord { 81 94 const NSID: &'static str = "network.slices.slice"; 82 95 type Record = SliceRecord; 83 - } 84 - 85 - impl From<SliceGetRecordOutput<'_>> for Slice<'_> { 86 - fn from(output: SliceGetRecordOutput<'_>) -> Self { 87 - use jacquard_common::IntoStatic; 88 - output.value.into_static() 89 - } 90 96 } 91 97 92 98 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/network_slices/waitlist/invite.rs
··· 54 54 pub value: Invite<'a>, 55 55 } 56 56 57 + impl From<InviteGetRecordOutput<'_>> for Invite<'_> { 58 + fn from(output: InviteGetRecordOutput<'_>) -> Self { 59 + use jacquard_common::IntoStatic; 60 + output.value.into_static() 61 + } 62 + } 63 + 64 + impl jacquard_common::types::collection::Collection for Invite<'_> { 65 + const NSID: &'static str = "network.slices.waitlist.invite"; 66 + type Record = InviteRecord; 67 + } 68 + 57 69 /// Marker type for deserializing records from this collection. 70 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 58 71 pub struct InviteRecord; 59 72 impl jacquard_common::xrpc::XrpcResp for InviteRecord { 60 73 const NSID: &'static str = "network.slices.waitlist.invite"; ··· 63 76 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 64 77 } 65 78 66 - impl jacquard_common::types::collection::Collection for Invite<'_> { 79 + impl jacquard_common::types::collection::Collection for InviteRecord { 67 80 const NSID: &'static str = "network.slices.waitlist.invite"; 68 81 type Record = InviteRecord; 69 - } 70 - 71 - impl From<InviteGetRecordOutput<'_>> for Invite<'_> { 72 - fn from(output: InviteGetRecordOutput<'_>) -> Self { 73 - use jacquard_common::IntoStatic; 74 - output.value.into_static() 75 - } 76 82 }
+14 -8
crates/jacquard-api/src/network_slices/waitlist/request.rs
··· 47 47 pub value: Request<'a>, 48 48 } 49 49 50 + impl From<RequestGetRecordOutput<'_>> for Request<'_> { 51 + fn from(output: RequestGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Request<'_> { 58 + const NSID: &'static str = "network.slices.waitlist.request"; 59 + type Record = RequestRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct RequestRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for RequestRecord { 53 66 const NSID: &'static str = "network.slices.waitlist.request"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Request<'_> { 72 + impl jacquard_common::types::collection::Collection for RequestRecord { 60 73 const NSID: &'static str = "network.slices.waitlist.request"; 61 74 type Record = RequestRecord; 62 - } 63 - 64 - impl From<RequestGetRecordOutput<'_>> for Request<'_> { 65 - fn from(output: RequestGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+14 -8
crates/jacquard-api/src/org_devcon/event/test.rs
··· 67 67 pub value: Test<'a>, 68 68 } 69 69 70 + impl From<TestGetRecordOutput<'_>> for Test<'_> { 71 + fn from(output: TestGetRecordOutput<'_>) -> Self { 72 + use jacquard_common::IntoStatic; 73 + output.value.into_static() 74 + } 75 + } 76 + 77 + impl jacquard_common::types::collection::Collection for Test<'_> { 78 + const NSID: &'static str = "org.devcon.event.test"; 79 + type Record = TestRecord; 80 + } 81 + 70 82 /// Marker type for deserializing records from this collection. 83 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 71 84 pub struct TestRecord; 72 85 impl jacquard_common::xrpc::XrpcResp for TestRecord { 73 86 const NSID: &'static str = "org.devcon.event.test"; ··· 76 89 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 77 90 } 78 91 79 - impl jacquard_common::types::collection::Collection for Test<'_> { 92 + impl jacquard_common::types::collection::Collection for TestRecord { 80 93 const NSID: &'static str = "org.devcon.event.test"; 81 94 type Record = TestRecord; 82 - } 83 - 84 - impl From<TestGetRecordOutput<'_>> for Test<'_> { 85 - fn from(output: TestGetRecordOutput<'_>) -> Self { 86 - use jacquard_common::IntoStatic; 87 - output.value.into_static() 88 - } 89 95 }
+14 -8
crates/jacquard-api/src/org_robocracy/demo/fungus.rs
··· 52 52 pub value: Fungus<'a>, 53 53 } 54 54 55 + impl From<FungusGetRecordOutput<'_>> for Fungus<'_> { 56 + fn from(output: FungusGetRecordOutput<'_>) -> Self { 57 + use jacquard_common::IntoStatic; 58 + output.value.into_static() 59 + } 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for Fungus<'_> { 63 + const NSID: &'static str = "org.robocracy.demo.fungus"; 64 + type Record = FungusRecord; 65 + } 66 + 55 67 /// Marker type for deserializing records from this collection. 68 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 56 69 pub struct FungusRecord; 57 70 impl jacquard_common::xrpc::XrpcResp for FungusRecord { 58 71 const NSID: &'static str = "org.robocracy.demo.fungus"; ··· 61 74 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 62 75 } 63 76 64 - impl jacquard_common::types::collection::Collection for Fungus<'_> { 77 + impl jacquard_common::types::collection::Collection for FungusRecord { 65 78 const NSID: &'static str = "org.robocracy.demo.fungus"; 66 79 type Record = FungusRecord; 67 - } 68 - 69 - impl From<FungusGetRecordOutput<'_>> for Fungus<'_> { 70 - fn from(output: FungusGetRecordOutput<'_>) -> Self { 71 - use jacquard_common::IntoStatic; 72 - output.value.into_static() 73 - } 74 80 }
+14 -8
crates/jacquard-api/src/org_robocracy/demo/mushies.rs
··· 52 52 pub value: Mushies<'a>, 53 53 } 54 54 55 + impl From<MushiesGetRecordOutput<'_>> for Mushies<'_> { 56 + fn from(output: MushiesGetRecordOutput<'_>) -> Self { 57 + use jacquard_common::IntoStatic; 58 + output.value.into_static() 59 + } 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for Mushies<'_> { 63 + const NSID: &'static str = "org.robocracy.demo.mushies"; 64 + type Record = MushiesRecord; 65 + } 66 + 55 67 /// Marker type for deserializing records from this collection. 68 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 56 69 pub struct MushiesRecord; 57 70 impl jacquard_common::xrpc::XrpcResp for MushiesRecord { 58 71 const NSID: &'static str = "org.robocracy.demo.mushies"; ··· 61 74 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 62 75 } 63 76 64 - impl jacquard_common::types::collection::Collection for Mushies<'_> { 77 + impl jacquard_common::types::collection::Collection for MushiesRecord { 65 78 const NSID: &'static str = "org.robocracy.demo.mushies"; 66 79 type Record = MushiesRecord; 67 - } 68 - 69 - impl From<MushiesGetRecordOutput<'_>> for Mushies<'_> { 70 - fn from(output: MushiesGetRecordOutput<'_>) -> Self { 71 - use jacquard_common::IntoStatic; 72 - output.value.into_static() 73 - } 74 80 }
+14 -8
crates/jacquard-api/src/place_atwork/endorsement.rs
··· 59 59 pub value: Endorsement<'a>, 60 60 } 61 61 62 + impl From<EndorsementGetRecordOutput<'_>> for Endorsement<'_> { 63 + fn from(output: EndorsementGetRecordOutput<'_>) -> Self { 64 + use jacquard_common::IntoStatic; 65 + output.value.into_static() 66 + } 67 + } 68 + 69 + impl jacquard_common::types::collection::Collection for Endorsement<'_> { 70 + const NSID: &'static str = "place.atwork.endorsement"; 71 + type Record = EndorsementRecord; 72 + } 73 + 62 74 /// Marker type for deserializing records from this collection. 75 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 63 76 pub struct EndorsementRecord; 64 77 impl jacquard_common::xrpc::XrpcResp for EndorsementRecord { 65 78 const NSID: &'static str = "place.atwork.endorsement"; ··· 68 81 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 69 82 } 70 83 71 - impl jacquard_common::types::collection::Collection for Endorsement<'_> { 84 + impl jacquard_common::types::collection::Collection for EndorsementRecord { 72 85 const NSID: &'static str = "place.atwork.endorsement"; 73 86 type Record = EndorsementRecord; 74 - } 75 - 76 - impl From<EndorsementGetRecordOutput<'_>> for Endorsement<'_> { 77 - fn from(output: EndorsementGetRecordOutput<'_>) -> Self { 78 - use jacquard_common::IntoStatic; 79 - output.value.into_static() 80 - } 81 87 }
+14 -8
crates/jacquard-api/src/place_atwork/endorsement_proof.rs
··· 45 45 pub value: EndorsementProof<'a>, 46 46 } 47 47 48 + impl From<EndorsementProofGetRecordOutput<'_>> for EndorsementProof<'_> { 49 + fn from(output: EndorsementProofGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for EndorsementProof<'_> { 56 + const NSID: &'static str = "place.atwork.endorsementProof"; 57 + type Record = EndorsementProofRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct EndorsementProofRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for EndorsementProofRecord { 51 64 const NSID: &'static str = "place.atwork.endorsementProof"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for EndorsementProof<'_> { 70 + impl jacquard_common::types::collection::Collection for EndorsementProofRecord { 58 71 const NSID: &'static str = "place.atwork.endorsementProof"; 59 72 type Record = EndorsementProofRecord; 60 - } 61 - 62 - impl From<EndorsementProofGetRecordOutput<'_>> for EndorsementProof<'_> { 63 - fn from(output: EndorsementProofGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/place_atwork/listing.rs
··· 74 74 pub value: Listing<'a>, 75 75 } 76 76 77 + impl From<ListingGetRecordOutput<'_>> for Listing<'_> { 78 + fn from(output: ListingGetRecordOutput<'_>) -> Self { 79 + use jacquard_common::IntoStatic; 80 + output.value.into_static() 81 + } 82 + } 83 + 84 + impl jacquard_common::types::collection::Collection for Listing<'_> { 85 + const NSID: &'static str = "place.atwork.listing"; 86 + type Record = ListingRecord; 87 + } 88 + 77 89 /// Marker type for deserializing records from this collection. 90 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 78 91 pub struct ListingRecord; 79 92 impl jacquard_common::xrpc::XrpcResp for ListingRecord { 80 93 const NSID: &'static str = "place.atwork.listing"; ··· 83 96 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 84 97 } 85 98 86 - impl jacquard_common::types::collection::Collection for Listing<'_> { 99 + impl jacquard_common::types::collection::Collection for ListingRecord { 87 100 const NSID: &'static str = "place.atwork.listing"; 88 101 type Record = ListingRecord; 89 - } 90 - 91 - impl From<ListingGetRecordOutput<'_>> for Listing<'_> { 92 - fn from(output: ListingGetRecordOutput<'_>) -> Self { 93 - use jacquard_common::IntoStatic; 94 - output.value.into_static() 95 - } 96 102 }
+14 -8
crates/jacquard-api/src/place_atwork/profile.rs
··· 118 118 pub value: Profile<'a>, 119 119 } 120 120 121 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 122 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 123 + use jacquard_common::IntoStatic; 124 + output.value.into_static() 125 + } 126 + } 127 + 128 + impl jacquard_common::types::collection::Collection for Profile<'_> { 129 + const NSID: &'static str = "place.atwork.profile"; 130 + type Record = ProfileRecord; 131 + } 132 + 121 133 /// Marker type for deserializing records from this collection. 134 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 122 135 pub struct ProfileRecord; 123 136 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 124 137 const NSID: &'static str = "place.atwork.profile"; ··· 127 140 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 128 141 } 129 142 130 - impl jacquard_common::types::collection::Collection for Profile<'_> { 143 + impl jacquard_common::types::collection::Collection for ProfileRecord { 131 144 const NSID: &'static str = "place.atwork.profile"; 132 145 type Record = ProfileRecord; 133 - } 134 - 135 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 136 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 137 - use jacquard_common::IntoStatic; 138 - output.value.into_static() 139 - } 140 146 }
+14 -8
crates/jacquard-api/src/place_stream/chat/gate.rs
··· 45 45 pub value: Gate<'a>, 46 46 } 47 47 48 + impl From<GateGetRecordOutput<'_>> for Gate<'_> { 49 + fn from(output: GateGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for Gate<'_> { 56 + const NSID: &'static str = "place.stream.chat.gate"; 57 + type Record = GateRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct GateRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for GateRecord { 51 64 const NSID: &'static str = "place.stream.chat.gate"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for Gate<'_> { 70 + impl jacquard_common::types::collection::Collection for GateRecord { 58 71 const NSID: &'static str = "place.stream.chat.gate"; 59 72 type Record = GateRecord; 60 - } 61 - 62 - impl From<GateGetRecordOutput<'_>> for Gate<'_> { 63 - fn from(output: GateGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/place_stream/chat/message.rs
··· 60 60 pub value: Message<'a>, 61 61 } 62 62 63 + impl From<MessageGetRecordOutput<'_>> for Message<'_> { 64 + fn from(output: MessageGetRecordOutput<'_>) -> Self { 65 + use jacquard_common::IntoStatic; 66 + output.value.into_static() 67 + } 68 + } 69 + 70 + impl jacquard_common::types::collection::Collection for Message<'_> { 71 + const NSID: &'static str = "place.stream.chat.message"; 72 + type Record = MessageRecord; 73 + } 74 + 63 75 /// Marker type for deserializing records from this collection. 76 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 64 77 pub struct MessageRecord; 65 78 impl jacquard_common::xrpc::XrpcResp for MessageRecord { 66 79 const NSID: &'static str = "place.stream.chat.message"; ··· 69 82 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 70 83 } 71 84 72 - impl jacquard_common::types::collection::Collection for Message<'_> { 85 + impl jacquard_common::types::collection::Collection for MessageRecord { 73 86 const NSID: &'static str = "place.stream.chat.message"; 74 87 type Record = MessageRecord; 75 - } 76 - 77 - impl From<MessageGetRecordOutput<'_>> for Message<'_> { 78 - fn from(output: MessageGetRecordOutput<'_>) -> Self { 79 - use jacquard_common::IntoStatic; 80 - output.value.into_static() 81 - } 82 88 } 83 89 84 90 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/place_stream/chat/profile.rs
··· 65 65 pub value: Profile<'a>, 66 66 } 67 67 68 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 69 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 70 + use jacquard_common::IntoStatic; 71 + output.value.into_static() 72 + } 73 + } 74 + 75 + impl jacquard_common::types::collection::Collection for Profile<'_> { 76 + const NSID: &'static str = "place.stream.chat.profile"; 77 + type Record = ProfileRecord; 78 + } 79 + 68 80 /// Marker type for deserializing records from this collection. 81 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 69 82 pub struct ProfileRecord; 70 83 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 71 84 const NSID: &'static str = "place.stream.chat.profile"; ··· 74 87 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 75 88 } 76 89 77 - impl jacquard_common::types::collection::Collection for Profile<'_> { 90 + impl jacquard_common::types::collection::Collection for ProfileRecord { 78 91 const NSID: &'static str = "place.stream.chat.profile"; 79 92 type Record = ProfileRecord; 80 - } 81 - 82 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 83 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 84 - use jacquard_common::IntoStatic; 85 - output.value.into_static() 86 - } 87 93 }
+14 -8
crates/jacquard-api/src/place_stream/key.rs
··· 53 53 pub value: Key<'a>, 54 54 } 55 55 56 + impl From<KeyGetRecordOutput<'_>> for Key<'_> { 57 + fn from(output: KeyGetRecordOutput<'_>) -> Self { 58 + use jacquard_common::IntoStatic; 59 + output.value.into_static() 60 + } 61 + } 62 + 63 + impl jacquard_common::types::collection::Collection for Key<'_> { 64 + const NSID: &'static str = "place.stream.key"; 65 + type Record = KeyRecord; 66 + } 67 + 56 68 /// Marker type for deserializing records from this collection. 69 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 57 70 pub struct KeyRecord; 58 71 impl jacquard_common::xrpc::XrpcResp for KeyRecord { 59 72 const NSID: &'static str = "place.stream.key"; ··· 62 75 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 63 76 } 64 77 65 - impl jacquard_common::types::collection::Collection for Key<'_> { 78 + impl jacquard_common::types::collection::Collection for KeyRecord { 66 79 const NSID: &'static str = "place.stream.key"; 67 80 type Record = KeyRecord; 68 - } 69 - 70 - impl From<KeyGetRecordOutput<'_>> for Key<'_> { 71 - fn from(output: KeyGetRecordOutput<'_>) -> Self { 72 - use jacquard_common::IntoStatic; 73 - output.value.into_static() 74 - } 75 81 }
+14 -8
crates/jacquard-api/src/place_stream/livestream.rs
··· 101 101 pub value: Livestream<'a>, 102 102 } 103 103 104 + impl From<LivestreamGetRecordOutput<'_>> for Livestream<'_> { 105 + fn from(output: LivestreamGetRecordOutput<'_>) -> Self { 106 + use jacquard_common::IntoStatic; 107 + output.value.into_static() 108 + } 109 + } 110 + 111 + impl jacquard_common::types::collection::Collection for Livestream<'_> { 112 + const NSID: &'static str = "place.stream.livestream"; 113 + type Record = LivestreamRecord; 114 + } 115 + 104 116 /// Marker type for deserializing records from this collection. 117 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 105 118 pub struct LivestreamRecord; 106 119 impl jacquard_common::xrpc::XrpcResp for LivestreamRecord { 107 120 const NSID: &'static str = "place.stream.livestream"; ··· 110 123 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 111 124 } 112 125 113 - impl jacquard_common::types::collection::Collection for Livestream<'_> { 126 + impl jacquard_common::types::collection::Collection for LivestreamRecord { 114 127 const NSID: &'static str = "place.stream.livestream"; 115 128 type Record = LivestreamRecord; 116 - } 117 - 118 - impl From<LivestreamGetRecordOutput<'_>> for Livestream<'_> { 119 - fn from(output: LivestreamGetRecordOutput<'_>) -> Self { 120 - use jacquard_common::IntoStatic; 121 - output.value.into_static() 122 - } 123 129 } 124 130 125 131 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/place_stream/segment.rs
··· 107 107 pub value: Segment<'a>, 108 108 } 109 109 110 + impl From<SegmentGetRecordOutput<'_>> for Segment<'_> { 111 + fn from(output: SegmentGetRecordOutput<'_>) -> Self { 112 + use jacquard_common::IntoStatic; 113 + output.value.into_static() 114 + } 115 + } 116 + 117 + impl jacquard_common::types::collection::Collection for Segment<'_> { 118 + const NSID: &'static str = "place.stream.segment"; 119 + type Record = SegmentRecord; 120 + } 121 + 110 122 /// Marker type for deserializing records from this collection. 123 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 111 124 pub struct SegmentRecord; 112 125 impl jacquard_common::xrpc::XrpcResp for SegmentRecord { 113 126 const NSID: &'static str = "place.stream.segment"; ··· 116 129 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 117 130 } 118 131 119 - impl jacquard_common::types::collection::Collection for Segment<'_> { 132 + impl jacquard_common::types::collection::Collection for SegmentRecord { 120 133 const NSID: &'static str = "place.stream.segment"; 121 134 type Record = SegmentRecord; 122 - } 123 - 124 - impl From<SegmentGetRecordOutput<'_>> for Segment<'_> { 125 - fn from(output: SegmentGetRecordOutput<'_>) -> Self { 126 - use jacquard_common::IntoStatic; 127 - output.value.into_static() 128 - } 129 135 } 130 136 131 137 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/place_stream/server/settings.rs
··· 46 46 pub value: Settings<'a>, 47 47 } 48 48 49 + impl From<SettingsGetRecordOutput<'_>> for Settings<'_> { 50 + fn from(output: SettingsGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Settings<'_> { 57 + const NSID: &'static str = "place.stream.server.settings"; 58 + type Record = SettingsRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct SettingsRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for SettingsRecord { 52 65 const NSID: &'static str = "place.stream.server.settings"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Settings<'_> { 71 + impl jacquard_common::types::collection::Collection for SettingsRecord { 59 72 const NSID: &'static str = "place.stream.server.settings"; 60 73 type Record = SettingsRecord; 61 - } 62 - 63 - impl From<SettingsGetRecordOutput<'_>> for Settings<'_> { 64 - fn from(output: SettingsGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/pub_leaflet/comment.rs
··· 79 79 pub value: Comment<'a>, 80 80 } 81 81 82 + impl From<CommentGetRecordOutput<'_>> for Comment<'_> { 83 + fn from(output: CommentGetRecordOutput<'_>) -> Self { 84 + use jacquard_common::IntoStatic; 85 + output.value.into_static() 86 + } 87 + } 88 + 89 + impl jacquard_common::types::collection::Collection for Comment<'_> { 90 + const NSID: &'static str = "pub.leaflet.comment"; 91 + type Record = CommentRecord; 92 + } 93 + 82 94 /// Marker type for deserializing records from this collection. 95 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 83 96 pub struct CommentRecord; 84 97 impl jacquard_common::xrpc::XrpcResp for CommentRecord { 85 98 const NSID: &'static str = "pub.leaflet.comment"; ··· 88 101 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 89 102 } 90 103 91 - impl jacquard_common::types::collection::Collection for Comment<'_> { 104 + impl jacquard_common::types::collection::Collection for CommentRecord { 92 105 const NSID: &'static str = "pub.leaflet.comment"; 93 106 type Record = CommentRecord; 94 - } 95 - 96 - impl From<CommentGetRecordOutput<'_>> for Comment<'_> { 97 - fn from(output: CommentGetRecordOutput<'_>) -> Self { 98 - use jacquard_common::IntoStatic; 99 - output.value.into_static() 100 - } 101 107 } 102 108 103 109 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/pub_leaflet/document.rs
··· 62 62 pub value: Document<'a>, 63 63 } 64 64 65 + impl From<DocumentGetRecordOutput<'_>> for Document<'_> { 66 + fn from(output: DocumentGetRecordOutput<'_>) -> Self { 67 + use jacquard_common::IntoStatic; 68 + output.value.into_static() 69 + } 70 + } 71 + 72 + impl jacquard_common::types::collection::Collection for Document<'_> { 73 + const NSID: &'static str = "pub.leaflet.document"; 74 + type Record = DocumentRecord; 75 + } 76 + 65 77 /// Marker type for deserializing records from this collection. 78 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 66 79 pub struct DocumentRecord; 67 80 impl jacquard_common::xrpc::XrpcResp for DocumentRecord { 68 81 const NSID: &'static str = "pub.leaflet.document"; ··· 71 84 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 72 85 } 73 86 74 - impl jacquard_common::types::collection::Collection for Document<'_> { 87 + impl jacquard_common::types::collection::Collection for DocumentRecord { 75 88 const NSID: &'static str = "pub.leaflet.document"; 76 89 type Record = DocumentRecord; 77 - } 78 - 79 - impl From<DocumentGetRecordOutput<'_>> for Document<'_> { 80 - fn from(output: DocumentGetRecordOutput<'_>) -> Self { 81 - use jacquard_common::IntoStatic; 82 - output.value.into_static() 83 - } 84 90 }
+14 -8
crates/jacquard-api/src/pub_leaflet/graph/subscription.rs
··· 44 44 pub value: Subscription<'a>, 45 45 } 46 46 47 + impl From<SubscriptionGetRecordOutput<'_>> for Subscription<'_> { 48 + fn from(output: SubscriptionGetRecordOutput<'_>) -> Self { 49 + use jacquard_common::IntoStatic; 50 + output.value.into_static() 51 + } 52 + } 53 + 54 + impl jacquard_common::types::collection::Collection for Subscription<'_> { 55 + const NSID: &'static str = "pub.leaflet.graph.subscription"; 56 + type Record = SubscriptionRecord; 57 + } 58 + 47 59 /// Marker type for deserializing records from this collection. 60 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 48 61 pub struct SubscriptionRecord; 49 62 impl jacquard_common::xrpc::XrpcResp for SubscriptionRecord { 50 63 const NSID: &'static str = "pub.leaflet.graph.subscription"; ··· 53 66 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 54 67 } 55 68 56 - impl jacquard_common::types::collection::Collection for Subscription<'_> { 69 + impl jacquard_common::types::collection::Collection for SubscriptionRecord { 57 70 const NSID: &'static str = "pub.leaflet.graph.subscription"; 58 71 type Record = SubscriptionRecord; 59 - } 60 - 61 - impl From<SubscriptionGetRecordOutput<'_>> for Subscription<'_> { 62 - fn from(output: SubscriptionGetRecordOutput<'_>) -> Self { 63 - use jacquard_common::IntoStatic; 64 - output.value.into_static() 65 - } 66 72 }
+14 -8
crates/jacquard-api/src/pub_leaflet/publication.rs
··· 65 65 pub value: Publication<'a>, 66 66 } 67 67 68 + impl From<PublicationGetRecordOutput<'_>> for Publication<'_> { 69 + fn from(output: PublicationGetRecordOutput<'_>) -> Self { 70 + use jacquard_common::IntoStatic; 71 + output.value.into_static() 72 + } 73 + } 74 + 75 + impl jacquard_common::types::collection::Collection for Publication<'_> { 76 + const NSID: &'static str = "pub.leaflet.publication"; 77 + type Record = PublicationRecord; 78 + } 79 + 68 80 /// Marker type for deserializing records from this collection. 81 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 69 82 pub struct PublicationRecord; 70 83 impl jacquard_common::xrpc::XrpcResp for PublicationRecord { 71 84 const NSID: &'static str = "pub.leaflet.publication"; ··· 74 87 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 75 88 } 76 89 77 - impl jacquard_common::types::collection::Collection for Publication<'_> { 90 + impl jacquard_common::types::collection::Collection for PublicationRecord { 78 91 const NSID: &'static str = "pub.leaflet.publication"; 79 92 type Record = PublicationRecord; 80 - } 81 - 82 - impl From<PublicationGetRecordOutput<'_>> for Publication<'_> { 83 - fn from(output: PublicationGetRecordOutput<'_>) -> Self { 84 - use jacquard_common::IntoStatic; 85 - output.value.into_static() 86 - } 87 93 } 88 94 89 95 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/sh_tangled/actor/profile.rs
··· 67 67 pub value: Profile<'a>, 68 68 } 69 69 70 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 71 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 72 + use jacquard_common::IntoStatic; 73 + output.value.into_static() 74 + } 75 + } 76 + 77 + impl jacquard_common::types::collection::Collection for Profile<'_> { 78 + const NSID: &'static str = "sh.tangled.actor.profile"; 79 + type Record = ProfileRecord; 80 + } 81 + 70 82 /// Marker type for deserializing records from this collection. 83 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 71 84 pub struct ProfileRecord; 72 85 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 73 86 const NSID: &'static str = "sh.tangled.actor.profile"; ··· 76 89 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 77 90 } 78 91 79 - impl jacquard_common::types::collection::Collection for Profile<'_> { 92 + impl jacquard_common::types::collection::Collection for ProfileRecord { 80 93 const NSID: &'static str = "sh.tangled.actor.profile"; 81 94 type Record = ProfileRecord; 82 - } 83 - 84 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 85 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 86 - use jacquard_common::IntoStatic; 87 - output.value.into_static() 88 - } 89 95 }
+14 -8
crates/jacquard-api/src/sh_tangled/feed/reaction.rs
··· 47 47 pub value: Reaction<'a>, 48 48 } 49 49 50 + impl From<ReactionGetRecordOutput<'_>> for Reaction<'_> { 51 + fn from(output: ReactionGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Reaction<'_> { 58 + const NSID: &'static str = "sh.tangled.feed.reaction"; 59 + type Record = ReactionRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct ReactionRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for ReactionRecord { 53 66 const NSID: &'static str = "sh.tangled.feed.reaction"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Reaction<'_> { 72 + impl jacquard_common::types::collection::Collection for ReactionRecord { 60 73 const NSID: &'static str = "sh.tangled.feed.reaction"; 61 74 type Record = ReactionRecord; 62 - } 63 - 64 - impl From<ReactionGetRecordOutput<'_>> for Reaction<'_> { 65 - fn from(output: ReactionGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+14 -8
crates/jacquard-api/src/sh_tangled/feed/star.rs
··· 44 44 pub value: Star<'a>, 45 45 } 46 46 47 + impl From<StarGetRecordOutput<'_>> for Star<'_> { 48 + fn from(output: StarGetRecordOutput<'_>) -> Self { 49 + use jacquard_common::IntoStatic; 50 + output.value.into_static() 51 + } 52 + } 53 + 54 + impl jacquard_common::types::collection::Collection for Star<'_> { 55 + const NSID: &'static str = "sh.tangled.feed.star"; 56 + type Record = StarRecord; 57 + } 58 + 47 59 /// Marker type for deserializing records from this collection. 60 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 48 61 pub struct StarRecord; 49 62 impl jacquard_common::xrpc::XrpcResp for StarRecord { 50 63 const NSID: &'static str = "sh.tangled.feed.star"; ··· 53 66 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 54 67 } 55 68 56 - impl jacquard_common::types::collection::Collection for Star<'_> { 69 + impl jacquard_common::types::collection::Collection for StarRecord { 57 70 const NSID: &'static str = "sh.tangled.feed.star"; 58 71 type Record = StarRecord; 59 - } 60 - 61 - impl From<StarGetRecordOutput<'_>> for Star<'_> { 62 - fn from(output: StarGetRecordOutput<'_>) -> Self { 63 - use jacquard_common::IntoStatic; 64 - output.value.into_static() 65 - } 66 72 }
+14 -8
crates/jacquard-api/src/sh_tangled/git/ref_update.rs
··· 144 144 pub value: RefUpdate<'a>, 145 145 } 146 146 147 + impl From<RefUpdateGetRecordOutput<'_>> for RefUpdate<'_> { 148 + fn from(output: RefUpdateGetRecordOutput<'_>) -> Self { 149 + use jacquard_common::IntoStatic; 150 + output.value.into_static() 151 + } 152 + } 153 + 154 + impl jacquard_common::types::collection::Collection for RefUpdate<'_> { 155 + const NSID: &'static str = "sh.tangled.git.refUpdate"; 156 + type Record = RefUpdateRecord; 157 + } 158 + 147 159 /// Marker type for deserializing records from this collection. 160 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 148 161 pub struct RefUpdateRecord; 149 162 impl jacquard_common::xrpc::XrpcResp for RefUpdateRecord { 150 163 const NSID: &'static str = "sh.tangled.git.refUpdate"; ··· 153 166 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 154 167 } 155 168 156 - impl jacquard_common::types::collection::Collection for RefUpdate<'_> { 169 + impl jacquard_common::types::collection::Collection for RefUpdateRecord { 157 170 const NSID: &'static str = "sh.tangled.git.refUpdate"; 158 171 type Record = RefUpdateRecord; 159 - } 160 - 161 - impl From<RefUpdateGetRecordOutput<'_>> for RefUpdate<'_> { 162 - fn from(output: RefUpdateGetRecordOutput<'_>) -> Self { 163 - use jacquard_common::IntoStatic; 164 - output.value.into_static() 165 - } 166 172 } 167 173 168 174 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/sh_tangled/graph/follow.rs
··· 44 44 pub value: Follow<'a>, 45 45 } 46 46 47 + impl From<FollowGetRecordOutput<'_>> for Follow<'_> { 48 + fn from(output: FollowGetRecordOutput<'_>) -> Self { 49 + use jacquard_common::IntoStatic; 50 + output.value.into_static() 51 + } 52 + } 53 + 54 + impl jacquard_common::types::collection::Collection for Follow<'_> { 55 + const NSID: &'static str = "sh.tangled.graph.follow"; 56 + type Record = FollowRecord; 57 + } 58 + 47 59 /// Marker type for deserializing records from this collection. 60 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 48 61 pub struct FollowRecord; 49 62 impl jacquard_common::xrpc::XrpcResp for FollowRecord { 50 63 const NSID: &'static str = "sh.tangled.graph.follow"; ··· 53 66 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 54 67 } 55 68 56 - impl jacquard_common::types::collection::Collection for Follow<'_> { 69 + impl jacquard_common::types::collection::Collection for FollowRecord { 57 70 const NSID: &'static str = "sh.tangled.graph.follow"; 58 71 type Record = FollowRecord; 59 - } 60 - 61 - impl From<FollowGetRecordOutput<'_>> for Follow<'_> { 62 - fn from(output: FollowGetRecordOutput<'_>) -> Self { 63 - use jacquard_common::IntoStatic; 64 - output.value.into_static() 65 - } 66 72 }
+14 -8
crates/jacquard-api/src/sh_tangled/knot.rs
··· 46 46 pub value: Knot<'a>, 47 47 } 48 48 49 + impl From<KnotGetRecordOutput<'_>> for Knot<'_> { 50 + fn from(output: KnotGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Knot<'_> { 57 + const NSID: &'static str = "sh.tangled.knot"; 58 + type Record = KnotRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct KnotRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for KnotRecord { 52 65 const NSID: &'static str = "sh.tangled.knot"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Knot<'_> { 71 + impl jacquard_common::types::collection::Collection for KnotRecord { 59 72 const NSID: &'static str = "sh.tangled.knot"; 60 73 type Record = KnotRecord; 61 - } 62 - 63 - impl From<KnotGetRecordOutput<'_>> for Knot<'_> { 64 - fn from(output: KnotGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/sh_tangled/knot/member.rs
··· 48 48 pub value: Member<'a>, 49 49 } 50 50 51 + impl From<MemberGetRecordOutput<'_>> for Member<'_> { 52 + fn from(output: MemberGetRecordOutput<'_>) -> Self { 53 + use jacquard_common::IntoStatic; 54 + output.value.into_static() 55 + } 56 + } 57 + 58 + impl jacquard_common::types::collection::Collection for Member<'_> { 59 + const NSID: &'static str = "sh.tangled.knot.member"; 60 + type Record = MemberRecord; 61 + } 62 + 51 63 /// Marker type for deserializing records from this collection. 64 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 52 65 pub struct MemberRecord; 53 66 impl jacquard_common::xrpc::XrpcResp for MemberRecord { 54 67 const NSID: &'static str = "sh.tangled.knot.member"; ··· 57 70 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 58 71 } 59 72 60 - impl jacquard_common::types::collection::Collection for Member<'_> { 73 + impl jacquard_common::types::collection::Collection for MemberRecord { 61 74 const NSID: &'static str = "sh.tangled.knot.member"; 62 75 type Record = MemberRecord; 63 - } 64 - 65 - impl From<MemberGetRecordOutput<'_>> for Member<'_> { 66 - fn from(output: MemberGetRecordOutput<'_>) -> Self { 67 - use jacquard_common::IntoStatic; 68 - output.value.into_static() 69 - } 70 76 }
+14 -8
crates/jacquard-api/src/sh_tangled/label/definition.rs
··· 61 61 pub value: Definition<'a>, 62 62 } 63 63 64 + impl From<DefinitionGetRecordOutput<'_>> for Definition<'_> { 65 + fn from(output: DefinitionGetRecordOutput<'_>) -> Self { 66 + use jacquard_common::IntoStatic; 67 + output.value.into_static() 68 + } 69 + } 70 + 71 + impl jacquard_common::types::collection::Collection for Definition<'_> { 72 + const NSID: &'static str = "sh.tangled.label.definition"; 73 + type Record = DefinitionRecord; 74 + } 75 + 64 76 /// Marker type for deserializing records from this collection. 77 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 65 78 pub struct DefinitionRecord; 66 79 impl jacquard_common::xrpc::XrpcResp for DefinitionRecord { 67 80 const NSID: &'static str = "sh.tangled.label.definition"; ··· 70 83 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 71 84 } 72 85 73 - impl jacquard_common::types::collection::Collection for Definition<'_> { 86 + impl jacquard_common::types::collection::Collection for DefinitionRecord { 74 87 const NSID: &'static str = "sh.tangled.label.definition"; 75 88 type Record = DefinitionRecord; 76 - } 77 - 78 - impl From<DefinitionGetRecordOutput<'_>> for Definition<'_> { 79 - fn from(output: DefinitionGetRecordOutput<'_>) -> Self { 80 - use jacquard_common::IntoStatic; 81 - output.value.into_static() 82 - } 83 89 } 84 90 85 91 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/sh_tangled/label/op.rs
··· 49 49 pub value: Op<'a>, 50 50 } 51 51 52 + impl From<OpGetRecordOutput<'_>> for Op<'_> { 53 + fn from(output: OpGetRecordOutput<'_>) -> Self { 54 + use jacquard_common::IntoStatic; 55 + output.value.into_static() 56 + } 57 + } 58 + 59 + impl jacquard_common::types::collection::Collection for Op<'_> { 60 + const NSID: &'static str = "sh.tangled.label.op"; 61 + type Record = OpRecord; 62 + } 63 + 52 64 /// Marker type for deserializing records from this collection. 65 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 53 66 pub struct OpRecord; 54 67 impl jacquard_common::xrpc::XrpcResp for OpRecord { 55 68 const NSID: &'static str = "sh.tangled.label.op"; ··· 58 71 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 59 72 } 60 73 61 - impl jacquard_common::types::collection::Collection for Op<'_> { 74 + impl jacquard_common::types::collection::Collection for OpRecord { 62 75 const NSID: &'static str = "sh.tangled.label.op"; 63 76 type Record = OpRecord; 64 - } 65 - 66 - impl From<OpGetRecordOutput<'_>> for Op<'_> { 67 - fn from(output: OpGetRecordOutput<'_>) -> Self { 68 - use jacquard_common::IntoStatic; 69 - output.value.into_static() 70 - } 71 77 } 72 78 73 79 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/sh_tangled/pipeline.rs
··· 65 65 pub value: Pipeline<'a>, 66 66 } 67 67 68 + impl From<PipelineGetRecordOutput<'_>> for Pipeline<'_> { 69 + fn from(output: PipelineGetRecordOutput<'_>) -> Self { 70 + use jacquard_common::IntoStatic; 71 + output.value.into_static() 72 + } 73 + } 74 + 75 + impl jacquard_common::types::collection::Collection for Pipeline<'_> { 76 + const NSID: &'static str = "sh.tangled.pipeline"; 77 + type Record = PipelineRecord; 78 + } 79 + 68 80 /// Marker type for deserializing records from this collection. 81 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 69 82 pub struct PipelineRecord; 70 83 impl jacquard_common::xrpc::XrpcResp for PipelineRecord { 71 84 const NSID: &'static str = "sh.tangled.pipeline"; ··· 74 87 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 75 88 } 76 89 77 - impl jacquard_common::types::collection::Collection for Pipeline<'_> { 90 + impl jacquard_common::types::collection::Collection for PipelineRecord { 78 91 const NSID: &'static str = "sh.tangled.pipeline"; 79 92 type Record = PipelineRecord; 80 - } 81 - 82 - impl From<PipelineGetRecordOutput<'_>> for Pipeline<'_> { 83 - fn from(output: PipelineGetRecordOutput<'_>) -> Self { 84 - use jacquard_common::IntoStatic; 85 - output.value.into_static() 86 - } 87 93 } 88 94 89 95 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/sh_tangled/pipeline/status.rs
··· 62 62 pub value: Status<'a>, 63 63 } 64 64 65 + impl From<StatusGetRecordOutput<'_>> for Status<'_> { 66 + fn from(output: StatusGetRecordOutput<'_>) -> Self { 67 + use jacquard_common::IntoStatic; 68 + output.value.into_static() 69 + } 70 + } 71 + 72 + impl jacquard_common::types::collection::Collection for Status<'_> { 73 + const NSID: &'static str = "sh.tangled.pipeline.status"; 74 + type Record = StatusRecord; 75 + } 76 + 65 77 /// Marker type for deserializing records from this collection. 78 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 66 79 pub struct StatusRecord; 67 80 impl jacquard_common::xrpc::XrpcResp for StatusRecord { 68 81 const NSID: &'static str = "sh.tangled.pipeline.status"; ··· 71 84 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 72 85 } 73 86 74 - impl jacquard_common::types::collection::Collection for Status<'_> { 87 + impl jacquard_common::types::collection::Collection for StatusRecord { 75 88 const NSID: &'static str = "sh.tangled.pipeline.status"; 76 89 type Record = StatusRecord; 77 - } 78 - 79 - impl From<StatusGetRecordOutput<'_>> for Status<'_> { 80 - fn from(output: StatusGetRecordOutput<'_>) -> Self { 81 - use jacquard_common::IntoStatic; 82 - output.value.into_static() 83 - } 84 90 }
+14 -8
crates/jacquard-api/src/sh_tangled/public_key.rs
··· 51 51 pub value: PublicKey<'a>, 52 52 } 53 53 54 + impl From<PublicKeyGetRecordOutput<'_>> for PublicKey<'_> { 55 + fn from(output: PublicKeyGetRecordOutput<'_>) -> Self { 56 + use jacquard_common::IntoStatic; 57 + output.value.into_static() 58 + } 59 + } 60 + 61 + impl jacquard_common::types::collection::Collection for PublicKey<'_> { 62 + const NSID: &'static str = "sh.tangled.publicKey"; 63 + type Record = PublicKeyRecord; 64 + } 65 + 54 66 /// Marker type for deserializing records from this collection. 67 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 55 68 pub struct PublicKeyRecord; 56 69 impl jacquard_common::xrpc::XrpcResp for PublicKeyRecord { 57 70 const NSID: &'static str = "sh.tangled.publicKey"; ··· 60 73 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 61 74 } 62 75 63 - impl jacquard_common::types::collection::Collection for PublicKey<'_> { 76 + impl jacquard_common::types::collection::Collection for PublicKeyRecord { 64 77 const NSID: &'static str = "sh.tangled.publicKey"; 65 78 type Record = PublicKeyRecord; 66 - } 67 - 68 - impl From<PublicKeyGetRecordOutput<'_>> for PublicKey<'_> { 69 - fn from(output: PublicKeyGetRecordOutput<'_>) -> Self { 70 - use jacquard_common::IntoStatic; 71 - output.value.into_static() 72 - } 73 79 }
+14 -8
crates/jacquard-api/src/sh_tangled/repo.rs
··· 97 97 pub value: Repo<'a>, 98 98 } 99 99 100 + impl From<RepoGetRecordOutput<'_>> for Repo<'_> { 101 + fn from(output: RepoGetRecordOutput<'_>) -> Self { 102 + use jacquard_common::IntoStatic; 103 + output.value.into_static() 104 + } 105 + } 106 + 107 + impl jacquard_common::types::collection::Collection for Repo<'_> { 108 + const NSID: &'static str = "sh.tangled.repo"; 109 + type Record = RepoRecord; 110 + } 111 + 100 112 /// Marker type for deserializing records from this collection. 113 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 101 114 pub struct RepoRecord; 102 115 impl jacquard_common::xrpc::XrpcResp for RepoRecord { 103 116 const NSID: &'static str = "sh.tangled.repo"; ··· 106 119 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 107 120 } 108 121 109 - impl jacquard_common::types::collection::Collection for Repo<'_> { 122 + impl jacquard_common::types::collection::Collection for RepoRecord { 110 123 const NSID: &'static str = "sh.tangled.repo"; 111 124 type Record = RepoRecord; 112 - } 113 - 114 - impl From<RepoGetRecordOutput<'_>> for Repo<'_> { 115 - fn from(output: RepoGetRecordOutput<'_>) -> Self { 116 - use jacquard_common::IntoStatic; 117 - output.value.into_static() 118 - } 119 125 }
+14 -8
crates/jacquard-api/src/sh_tangled/repo/artifact.rs
··· 55 55 pub value: Artifact<'a>, 56 56 } 57 57 58 + impl From<ArtifactGetRecordOutput<'_>> for Artifact<'_> { 59 + fn from(output: ArtifactGetRecordOutput<'_>) -> Self { 60 + use jacquard_common::IntoStatic; 61 + output.value.into_static() 62 + } 63 + } 64 + 65 + impl jacquard_common::types::collection::Collection for Artifact<'_> { 66 + const NSID: &'static str = "sh.tangled.repo.artifact"; 67 + type Record = ArtifactRecord; 68 + } 69 + 58 70 /// Marker type for deserializing records from this collection. 71 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 59 72 pub struct ArtifactRecord; 60 73 impl jacquard_common::xrpc::XrpcResp for ArtifactRecord { 61 74 const NSID: &'static str = "sh.tangled.repo.artifact"; ··· 64 77 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 65 78 } 66 79 67 - impl jacquard_common::types::collection::Collection for Artifact<'_> { 80 + impl jacquard_common::types::collection::Collection for ArtifactRecord { 68 81 const NSID: &'static str = "sh.tangled.repo.artifact"; 69 82 type Record = ArtifactRecord; 70 - } 71 - 72 - impl From<ArtifactGetRecordOutput<'_>> for Artifact<'_> { 73 - fn from(output: ArtifactGetRecordOutput<'_>) -> Self { 74 - use jacquard_common::IntoStatic; 75 - output.value.into_static() 76 - } 77 83 }
+14 -8
crates/jacquard-api/src/sh_tangled/repo/collaborator.rs
··· 47 47 pub value: Collaborator<'a>, 48 48 } 49 49 50 + impl From<CollaboratorGetRecordOutput<'_>> for Collaborator<'_> { 51 + fn from(output: CollaboratorGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Collaborator<'_> { 58 + const NSID: &'static str = "sh.tangled.repo.collaborator"; 59 + type Record = CollaboratorRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct CollaboratorRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for CollaboratorRecord { 53 66 const NSID: &'static str = "sh.tangled.repo.collaborator"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Collaborator<'_> { 72 + impl jacquard_common::types::collection::Collection for CollaboratorRecord { 60 73 const NSID: &'static str = "sh.tangled.repo.collaborator"; 61 74 type Record = CollaboratorRecord; 62 - } 63 - 64 - impl From<CollaboratorGetRecordOutput<'_>> for Collaborator<'_> { 65 - fn from(output: CollaboratorGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+14 -8
crates/jacquard-api/src/sh_tangled/repo/issue.rs
··· 54 54 pub value: Issue<'a>, 55 55 } 56 56 57 + impl From<IssueGetRecordOutput<'_>> for Issue<'_> { 58 + fn from(output: IssueGetRecordOutput<'_>) -> Self { 59 + use jacquard_common::IntoStatic; 60 + output.value.into_static() 61 + } 62 + } 63 + 64 + impl jacquard_common::types::collection::Collection for Issue<'_> { 65 + const NSID: &'static str = "sh.tangled.repo.issue"; 66 + type Record = IssueRecord; 67 + } 68 + 57 69 /// Marker type for deserializing records from this collection. 70 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 58 71 pub struct IssueRecord; 59 72 impl jacquard_common::xrpc::XrpcResp for IssueRecord { 60 73 const NSID: &'static str = "sh.tangled.repo.issue"; ··· 63 76 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 64 77 } 65 78 66 - impl jacquard_common::types::collection::Collection for Issue<'_> { 79 + impl jacquard_common::types::collection::Collection for IssueRecord { 67 80 const NSID: &'static str = "sh.tangled.repo.issue"; 68 81 type Record = IssueRecord; 69 - } 70 - 71 - impl From<IssueGetRecordOutput<'_>> for Issue<'_> { 72 - fn from(output: IssueGetRecordOutput<'_>) -> Self { 73 - use jacquard_common::IntoStatic; 74 - output.value.into_static() 75 - } 76 82 }
+14 -8
crates/jacquard-api/src/sh_tangled/repo/issue/comment.rs
··· 51 51 pub value: Comment<'a>, 52 52 } 53 53 54 + impl From<CommentGetRecordOutput<'_>> for Comment<'_> { 55 + fn from(output: CommentGetRecordOutput<'_>) -> Self { 56 + use jacquard_common::IntoStatic; 57 + output.value.into_static() 58 + } 59 + } 60 + 61 + impl jacquard_common::types::collection::Collection for Comment<'_> { 62 + const NSID: &'static str = "sh.tangled.repo.issue.comment"; 63 + type Record = CommentRecord; 64 + } 65 + 54 66 /// Marker type for deserializing records from this collection. 67 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 55 68 pub struct CommentRecord; 56 69 impl jacquard_common::xrpc::XrpcResp for CommentRecord { 57 70 const NSID: &'static str = "sh.tangled.repo.issue.comment"; ··· 60 73 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 61 74 } 62 75 63 - impl jacquard_common::types::collection::Collection for Comment<'_> { 76 + impl jacquard_common::types::collection::Collection for CommentRecord { 64 77 const NSID: &'static str = "sh.tangled.repo.issue.comment"; 65 78 type Record = CommentRecord; 66 - } 67 - 68 - impl From<CommentGetRecordOutput<'_>> for Comment<'_> { 69 - fn from(output: CommentGetRecordOutput<'_>) -> Self { 70 - use jacquard_common::IntoStatic; 71 - output.value.into_static() 72 - } 73 79 }
+14 -8
crates/jacquard-api/src/sh_tangled/repo/issue/state.rs
··· 50 50 pub value: State<'a>, 51 51 } 52 52 53 + impl From<StateGetRecordOutput<'_>> for State<'_> { 54 + fn from(output: StateGetRecordOutput<'_>) -> Self { 55 + use jacquard_common::IntoStatic; 56 + output.value.into_static() 57 + } 58 + } 59 + 60 + impl jacquard_common::types::collection::Collection for State<'_> { 61 + const NSID: &'static str = "sh.tangled.repo.issue.state"; 62 + type Record = StateRecord; 63 + } 64 + 53 65 /// Marker type for deserializing records from this collection. 66 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 54 67 pub struct StateRecord; 55 68 impl jacquard_common::xrpc::XrpcResp for StateRecord { 56 69 const NSID: &'static str = "sh.tangled.repo.issue.state"; ··· 59 72 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 60 73 } 61 74 62 - impl jacquard_common::types::collection::Collection for State<'_> { 75 + impl jacquard_common::types::collection::Collection for StateRecord { 63 76 const NSID: &'static str = "sh.tangled.repo.issue.state"; 64 77 type Record = StateRecord; 65 - } 66 - 67 - impl From<StateGetRecordOutput<'_>> for State<'_> { 68 - fn from(output: StateGetRecordOutput<'_>) -> Self { 69 - use jacquard_common::IntoStatic; 70 - output.value.into_static() 71 - } 72 78 }
+14 -8
crates/jacquard-api/src/sh_tangled/repo/pull.rs
··· 61 61 pub value: Pull<'a>, 62 62 } 63 63 64 + impl From<PullGetRecordOutput<'_>> for Pull<'_> { 65 + fn from(output: PullGetRecordOutput<'_>) -> Self { 66 + use jacquard_common::IntoStatic; 67 + output.value.into_static() 68 + } 69 + } 70 + 71 + impl jacquard_common::types::collection::Collection for Pull<'_> { 72 + const NSID: &'static str = "sh.tangled.repo.pull"; 73 + type Record = PullRecord; 74 + } 75 + 64 76 /// Marker type for deserializing records from this collection. 77 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 65 78 pub struct PullRecord; 66 79 impl jacquard_common::xrpc::XrpcResp for PullRecord { 67 80 const NSID: &'static str = "sh.tangled.repo.pull"; ··· 70 83 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 71 84 } 72 85 73 - impl jacquard_common::types::collection::Collection for Pull<'_> { 86 + impl jacquard_common::types::collection::Collection for PullRecord { 74 87 const NSID: &'static str = "sh.tangled.repo.pull"; 75 88 type Record = PullRecord; 76 - } 77 - 78 - impl From<PullGetRecordOutput<'_>> for Pull<'_> { 79 - fn from(output: PullGetRecordOutput<'_>) -> Self { 80 - use jacquard_common::IntoStatic; 81 - output.value.into_static() 82 - } 83 89 } 84 90 85 91 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/sh_tangled/repo/pull/comment.rs
··· 47 47 pub value: Comment<'a>, 48 48 } 49 49 50 + impl From<CommentGetRecordOutput<'_>> for Comment<'_> { 51 + fn from(output: CommentGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Comment<'_> { 58 + const NSID: &'static str = "sh.tangled.repo.pull.comment"; 59 + type Record = CommentRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct CommentRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for CommentRecord { 53 66 const NSID: &'static str = "sh.tangled.repo.pull.comment"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Comment<'_> { 72 + impl jacquard_common::types::collection::Collection for CommentRecord { 60 73 const NSID: &'static str = "sh.tangled.repo.pull.comment"; 61 74 type Record = CommentRecord; 62 - } 63 - 64 - impl From<CommentGetRecordOutput<'_>> for Comment<'_> { 65 - fn from(output: CommentGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+14 -8
crates/jacquard-api/src/sh_tangled/repo/pull/status.rs
··· 51 51 pub value: Status<'a>, 52 52 } 53 53 54 + impl From<StatusGetRecordOutput<'_>> for Status<'_> { 55 + fn from(output: StatusGetRecordOutput<'_>) -> Self { 56 + use jacquard_common::IntoStatic; 57 + output.value.into_static() 58 + } 59 + } 60 + 61 + impl jacquard_common::types::collection::Collection for Status<'_> { 62 + const NSID: &'static str = "sh.tangled.repo.pull.status"; 63 + type Record = StatusRecord; 64 + } 65 + 54 66 /// Marker type for deserializing records from this collection. 67 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 55 68 pub struct StatusRecord; 56 69 impl jacquard_common::xrpc::XrpcResp for StatusRecord { 57 70 const NSID: &'static str = "sh.tangled.repo.pull.status"; ··· 60 73 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 61 74 } 62 75 63 - impl jacquard_common::types::collection::Collection for Status<'_> { 76 + impl jacquard_common::types::collection::Collection for StatusRecord { 64 77 const NSID: &'static str = "sh.tangled.repo.pull.status"; 65 78 type Record = StatusRecord; 66 - } 67 - 68 - impl From<StatusGetRecordOutput<'_>> for Status<'_> { 69 - fn from(output: StatusGetRecordOutput<'_>) -> Self { 70 - use jacquard_common::IntoStatic; 71 - output.value.into_static() 72 - } 73 79 }
+14 -8
crates/jacquard-api/src/sh_tangled/spindle.rs
··· 44 44 pub value: Spindle<'a>, 45 45 } 46 46 47 + impl From<SpindleGetRecordOutput<'_>> for Spindle<'_> { 48 + fn from(output: SpindleGetRecordOutput<'_>) -> Self { 49 + use jacquard_common::IntoStatic; 50 + output.value.into_static() 51 + } 52 + } 53 + 54 + impl jacquard_common::types::collection::Collection for Spindle<'_> { 55 + const NSID: &'static str = "sh.tangled.spindle"; 56 + type Record = SpindleRecord; 57 + } 58 + 47 59 /// Marker type for deserializing records from this collection. 60 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 48 61 pub struct SpindleRecord; 49 62 impl jacquard_common::xrpc::XrpcResp for SpindleRecord { 50 63 const NSID: &'static str = "sh.tangled.spindle"; ··· 53 66 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 54 67 } 55 68 56 - impl jacquard_common::types::collection::Collection for Spindle<'_> { 69 + impl jacquard_common::types::collection::Collection for SpindleRecord { 57 70 const NSID: &'static str = "sh.tangled.spindle"; 58 71 type Record = SpindleRecord; 59 - } 60 - 61 - impl From<SpindleGetRecordOutput<'_>> for Spindle<'_> { 62 - fn from(output: SpindleGetRecordOutput<'_>) -> Self { 63 - use jacquard_common::IntoStatic; 64 - output.value.into_static() 65 - } 66 72 }
+14 -8
crates/jacquard-api/src/sh_tangled/spindle/member.rs
··· 48 48 pub value: Member<'a>, 49 49 } 50 50 51 + impl From<MemberGetRecordOutput<'_>> for Member<'_> { 52 + fn from(output: MemberGetRecordOutput<'_>) -> Self { 53 + use jacquard_common::IntoStatic; 54 + output.value.into_static() 55 + } 56 + } 57 + 58 + impl jacquard_common::types::collection::Collection for Member<'_> { 59 + const NSID: &'static str = "sh.tangled.spindle.member"; 60 + type Record = MemberRecord; 61 + } 62 + 51 63 /// Marker type for deserializing records from this collection. 64 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 52 65 pub struct MemberRecord; 53 66 impl jacquard_common::xrpc::XrpcResp for MemberRecord { 54 67 const NSID: &'static str = "sh.tangled.spindle.member"; ··· 57 70 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 58 71 } 59 72 60 - impl jacquard_common::types::collection::Collection for Member<'_> { 73 + impl jacquard_common::types::collection::Collection for MemberRecord { 61 74 const NSID: &'static str = "sh.tangled.spindle.member"; 62 75 type Record = MemberRecord; 63 - } 64 - 65 - impl From<MemberGetRecordOutput<'_>> for Member<'_> { 66 - fn from(output: MemberGetRecordOutput<'_>) -> Self { 67 - use jacquard_common::IntoStatic; 68 - output.value.into_static() 69 - } 70 76 }
+14 -8
crates/jacquard-api/src/sh_tangled/string.rs
··· 51 51 pub value: String<'a>, 52 52 } 53 53 54 + impl From<StringGetRecordOutput<'_>> for String<'_> { 55 + fn from(output: StringGetRecordOutput<'_>) -> Self { 56 + use jacquard_common::IntoStatic; 57 + output.value.into_static() 58 + } 59 + } 60 + 61 + impl jacquard_common::types::collection::Collection for String<'_> { 62 + const NSID: &'static str = "sh.tangled.string"; 63 + type Record = StringRecord; 64 + } 65 + 54 66 /// Marker type for deserializing records from this collection. 67 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 55 68 pub struct StringRecord; 56 69 impl jacquard_common::xrpc::XrpcResp for StringRecord { 57 70 const NSID: &'static str = "sh.tangled.string"; ··· 60 73 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 61 74 } 62 75 63 - impl jacquard_common::types::collection::Collection for String<'_> { 76 + impl jacquard_common::types::collection::Collection for StringRecord { 64 77 const NSID: &'static str = "sh.tangled.string"; 65 78 type Record = StringRecord; 66 - } 67 - 68 - impl From<StringGetRecordOutput<'_>> for String<'_> { 69 - fn from(output: StringGetRecordOutput<'_>) -> Self { 70 - use jacquard_common::IntoStatic; 71 - output.value.into_static() 72 - } 73 79 }
+14 -8
crates/jacquard-api/src/sh_weaver/actor/profile.rs
··· 85 85 pub value: Profile<'a>, 86 86 } 87 87 88 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 89 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 90 + use jacquard_common::IntoStatic; 91 + output.value.into_static() 92 + } 93 + } 94 + 95 + impl jacquard_common::types::collection::Collection for Profile<'_> { 96 + const NSID: &'static str = "sh.weaver.actor.profile"; 97 + type Record = ProfileRecord; 98 + } 99 + 88 100 /// Marker type for deserializing records from this collection. 101 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 89 102 pub struct ProfileRecord; 90 103 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 91 104 const NSID: &'static str = "sh.weaver.actor.profile"; ··· 94 107 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 95 108 } 96 109 97 - impl jacquard_common::types::collection::Collection for Profile<'_> { 110 + impl jacquard_common::types::collection::Collection for ProfileRecord { 98 111 const NSID: &'static str = "sh.weaver.actor.profile"; 99 112 type Record = ProfileRecord; 100 - } 101 - 102 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 103 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 104 - use jacquard_common::IntoStatic; 105 - output.value.into_static() 106 - } 107 113 } 108 114 109 115 pub type PronounsList<'a> = Vec<jacquard_common::CowStr<'a>>;
+14 -8
crates/jacquard-api/src/sh_weaver/edit/cursor.rs
··· 122 122 pub value: Cursor<'a>, 123 123 } 124 124 125 + impl From<CursorGetRecordOutput<'_>> for Cursor<'_> { 126 + fn from(output: CursorGetRecordOutput<'_>) -> Self { 127 + use jacquard_common::IntoStatic; 128 + output.value.into_static() 129 + } 130 + } 131 + 132 + impl jacquard_common::types::collection::Collection for Cursor<'_> { 133 + const NSID: &'static str = "sh.weaver.edit.cursor"; 134 + type Record = CursorRecord; 135 + } 136 + 125 137 /// Marker type for deserializing records from this collection. 138 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 126 139 pub struct CursorRecord; 127 140 impl jacquard_common::xrpc::XrpcResp for CursorRecord { 128 141 const NSID: &'static str = "sh.weaver.edit.cursor"; ··· 131 144 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 132 145 } 133 146 134 - impl jacquard_common::types::collection::Collection for Cursor<'_> { 147 + impl jacquard_common::types::collection::Collection for CursorRecord { 135 148 const NSID: &'static str = "sh.weaver.edit.cursor"; 136 149 type Record = CursorRecord; 137 - } 138 - 139 - impl From<CursorGetRecordOutput<'_>> for Cursor<'_> { 140 - fn from(output: CursorGetRecordOutput<'_>) -> Self { 141 - use jacquard_common::IntoStatic; 142 - output.value.into_static() 143 - } 144 150 } 145 151 146 152 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/sh_weaver/edit/diff.rs
··· 48 48 pub value: Diff<'a>, 49 49 } 50 50 51 + impl From<DiffGetRecordOutput<'_>> for Diff<'_> { 52 + fn from(output: DiffGetRecordOutput<'_>) -> Self { 53 + use jacquard_common::IntoStatic; 54 + output.value.into_static() 55 + } 56 + } 57 + 58 + impl jacquard_common::types::collection::Collection for Diff<'_> { 59 + const NSID: &'static str = "sh.weaver.edit.diff"; 60 + type Record = DiffRecord; 61 + } 62 + 51 63 /// Marker type for deserializing records from this collection. 64 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 52 65 pub struct DiffRecord; 53 66 impl jacquard_common::xrpc::XrpcResp for DiffRecord { 54 67 const NSID: &'static str = "sh.weaver.edit.diff"; ··· 57 70 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 58 71 } 59 72 60 - impl jacquard_common::types::collection::Collection for Diff<'_> { 73 + impl jacquard_common::types::collection::Collection for DiffRecord { 61 74 const NSID: &'static str = "sh.weaver.edit.diff"; 62 75 type Record = DiffRecord; 63 - } 64 - 65 - impl From<DiffGetRecordOutput<'_>> for Diff<'_> { 66 - fn from(output: DiffGetRecordOutput<'_>) -> Self { 67 - use jacquard_common::IntoStatic; 68 - output.value.into_static() 69 - } 70 76 }
+14 -8
crates/jacquard-api/src/sh_weaver/edit/root.rs
··· 50 50 pub value: Root<'a>, 51 51 } 52 52 53 + impl From<RootGetRecordOutput<'_>> for Root<'_> { 54 + fn from(output: RootGetRecordOutput<'_>) -> Self { 55 + use jacquard_common::IntoStatic; 56 + output.value.into_static() 57 + } 58 + } 59 + 60 + impl jacquard_common::types::collection::Collection for Root<'_> { 61 + const NSID: &'static str = "sh.weaver.edit.root"; 62 + type Record = RootRecord; 63 + } 64 + 53 65 /// Marker type for deserializing records from this collection. 66 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 54 67 pub struct RootRecord; 55 68 impl jacquard_common::xrpc::XrpcResp for RootRecord { 56 69 const NSID: &'static str = "sh.weaver.edit.root"; ··· 59 72 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 60 73 } 61 74 62 - impl jacquard_common::types::collection::Collection for Root<'_> { 75 + impl jacquard_common::types::collection::Collection for RootRecord { 63 76 const NSID: &'static str = "sh.weaver.edit.root"; 64 77 type Record = RootRecord; 65 - } 66 - 67 - impl From<RootGetRecordOutput<'_>> for Root<'_> { 68 - fn from(output: RootGetRecordOutput<'_>) -> Self { 69 - use jacquard_common::IntoStatic; 70 - output.value.into_static() 71 - } 72 78 }
+14 -8
crates/jacquard-api/src/sh_weaver/notebook/authors.rs
··· 89 89 pub value: Authors<'a>, 90 90 } 91 91 92 + impl From<AuthorsGetRecordOutput<'_>> for Authors<'_> { 93 + fn from(output: AuthorsGetRecordOutput<'_>) -> Self { 94 + use jacquard_common::IntoStatic; 95 + output.value.into_static() 96 + } 97 + } 98 + 99 + impl jacquard_common::types::collection::Collection for Authors<'_> { 100 + const NSID: &'static str = "sh.weaver.notebook.authors"; 101 + type Record = AuthorsRecord; 102 + } 103 + 92 104 /// Marker type for deserializing records from this collection. 105 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 93 106 pub struct AuthorsRecord; 94 107 impl jacquard_common::xrpc::XrpcResp for AuthorsRecord { 95 108 const NSID: &'static str = "sh.weaver.notebook.authors"; ··· 98 111 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 99 112 } 100 113 101 - impl jacquard_common::types::collection::Collection for Authors<'_> { 114 + impl jacquard_common::types::collection::Collection for AuthorsRecord { 102 115 const NSID: &'static str = "sh.weaver.notebook.authors"; 103 116 type Record = AuthorsRecord; 104 - } 105 - 106 - impl From<AuthorsGetRecordOutput<'_>> for Authors<'_> { 107 - fn from(output: AuthorsGetRecordOutput<'_>) -> Self { 108 - use jacquard_common::IntoStatic; 109 - output.value.into_static() 110 - } 111 117 }
+14 -8
crates/jacquard-api/src/sh_weaver/notebook/book.rs
··· 58 58 pub value: Book<'a>, 59 59 } 60 60 61 + impl From<BookGetRecordOutput<'_>> for Book<'_> { 62 + fn from(output: BookGetRecordOutput<'_>) -> Self { 63 + use jacquard_common::IntoStatic; 64 + output.value.into_static() 65 + } 66 + } 67 + 68 + impl jacquard_common::types::collection::Collection for Book<'_> { 69 + const NSID: &'static str = "sh.weaver.notebook.book"; 70 + type Record = BookRecord; 71 + } 72 + 61 73 /// Marker type for deserializing records from this collection. 74 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 62 75 pub struct BookRecord; 63 76 impl jacquard_common::xrpc::XrpcResp for BookRecord { 64 77 const NSID: &'static str = "sh.weaver.notebook.book"; ··· 67 80 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 68 81 } 69 82 70 - impl jacquard_common::types::collection::Collection for Book<'_> { 83 + impl jacquard_common::types::collection::Collection for BookRecord { 71 84 const NSID: &'static str = "sh.weaver.notebook.book"; 72 85 type Record = BookRecord; 73 - } 74 - 75 - impl From<BookGetRecordOutput<'_>> for Book<'_> { 76 - fn from(output: BookGetRecordOutput<'_>) -> Self { 77 - use jacquard_common::IntoStatic; 78 - output.value.into_static() 79 - } 80 86 }
+14 -8
crates/jacquard-api/src/sh_weaver/notebook/chapter.rs
··· 59 59 pub value: Chapter<'a>, 60 60 } 61 61 62 + impl From<ChapterGetRecordOutput<'_>> for Chapter<'_> { 63 + fn from(output: ChapterGetRecordOutput<'_>) -> Self { 64 + use jacquard_common::IntoStatic; 65 + output.value.into_static() 66 + } 67 + } 68 + 69 + impl jacquard_common::types::collection::Collection for Chapter<'_> { 70 + const NSID: &'static str = "sh.weaver.notebook.chapter"; 71 + type Record = ChapterRecord; 72 + } 73 + 62 74 /// Marker type for deserializing records from this collection. 75 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 63 76 pub struct ChapterRecord; 64 77 impl jacquard_common::xrpc::XrpcResp for ChapterRecord { 65 78 const NSID: &'static str = "sh.weaver.notebook.chapter"; ··· 68 81 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 69 82 } 70 83 71 - impl jacquard_common::types::collection::Collection for Chapter<'_> { 84 + impl jacquard_common::types::collection::Collection for ChapterRecord { 72 85 const NSID: &'static str = "sh.weaver.notebook.chapter"; 73 86 type Record = ChapterRecord; 74 - } 75 - 76 - impl From<ChapterGetRecordOutput<'_>> for Chapter<'_> { 77 - fn from(output: ChapterGetRecordOutput<'_>) -> Self { 78 - use jacquard_common::IntoStatic; 79 - output.value.into_static() 80 - } 81 87 }
+14 -8
crates/jacquard-api/src/sh_weaver/notebook/entry.rs
··· 59 59 pub value: Entry<'a>, 60 60 } 61 61 62 + impl From<EntryGetRecordOutput<'_>> for Entry<'_> { 63 + fn from(output: EntryGetRecordOutput<'_>) -> Self { 64 + use jacquard_common::IntoStatic; 65 + output.value.into_static() 66 + } 67 + } 68 + 69 + impl jacquard_common::types::collection::Collection for Entry<'_> { 70 + const NSID: &'static str = "sh.weaver.notebook.entry"; 71 + type Record = EntryRecord; 72 + } 73 + 62 74 /// Marker type for deserializing records from this collection. 75 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 63 76 pub struct EntryRecord; 64 77 impl jacquard_common::xrpc::XrpcResp for EntryRecord { 65 78 const NSID: &'static str = "sh.weaver.notebook.entry"; ··· 68 81 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 69 82 } 70 83 71 - impl jacquard_common::types::collection::Collection for Entry<'_> { 84 + impl jacquard_common::types::collection::Collection for EntryRecord { 72 85 const NSID: &'static str = "sh.weaver.notebook.entry"; 73 86 type Record = EntryRecord; 74 - } 75 - 76 - impl From<EntryGetRecordOutput<'_>> for Entry<'_> { 77 - fn from(output: EntryGetRecordOutput<'_>) -> Self { 78 - use jacquard_common::IntoStatic; 79 - output.value.into_static() 80 - } 81 87 }
+14 -8
crates/jacquard-api/src/sh_weaver/publish/blob.rs
··· 45 45 pub value: Blob<'a>, 46 46 } 47 47 48 + impl From<BlobGetRecordOutput<'_>> for Blob<'_> { 49 + fn from(output: BlobGetRecordOutput<'_>) -> Self { 50 + use jacquard_common::IntoStatic; 51 + output.value.into_static() 52 + } 53 + } 54 + 55 + impl jacquard_common::types::collection::Collection for Blob<'_> { 56 + const NSID: &'static str = "sh.weaver.publish.blob"; 57 + type Record = BlobRecord; 58 + } 59 + 48 60 /// Marker type for deserializing records from this collection. 61 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 49 62 pub struct BlobRecord; 50 63 impl jacquard_common::xrpc::XrpcResp for BlobRecord { 51 64 const NSID: &'static str = "sh.weaver.publish.blob"; ··· 54 67 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 55 68 } 56 69 57 - impl jacquard_common::types::collection::Collection for Blob<'_> { 70 + impl jacquard_common::types::collection::Collection for BlobRecord { 58 71 const NSID: &'static str = "sh.weaver.publish.blob"; 59 72 type Record = BlobRecord; 60 - } 61 - 62 - impl From<BlobGetRecordOutput<'_>> for Blob<'_> { 63 - fn from(output: BlobGetRecordOutput<'_>) -> Self { 64 - use jacquard_common::IntoStatic; 65 - output.value.into_static() 66 - } 67 73 }
+14 -8
crates/jacquard-api/src/social_clippr/actor/profile.rs
··· 58 58 pub value: Profile<'a>, 59 59 } 60 60 61 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 62 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 63 + use jacquard_common::IntoStatic; 64 + output.value.into_static() 65 + } 66 + } 67 + 68 + impl jacquard_common::types::collection::Collection for Profile<'_> { 69 + const NSID: &'static str = "social.clippr.actor.profile"; 70 + type Record = ProfileRecord; 71 + } 72 + 61 73 /// Marker type for deserializing records from this collection. 74 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 62 75 pub struct ProfileRecord; 63 76 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 64 77 const NSID: &'static str = "social.clippr.actor.profile"; ··· 67 80 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 68 81 } 69 82 70 - impl jacquard_common::types::collection::Collection for Profile<'_> { 83 + impl jacquard_common::types::collection::Collection for ProfileRecord { 71 84 const NSID: &'static str = "social.clippr.actor.profile"; 72 85 type Record = ProfileRecord; 73 - } 74 - 75 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 76 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 77 - use jacquard_common::IntoStatic; 78 - output.value.into_static() 79 - } 80 86 }
+14 -8
crates/jacquard-api/src/social_clippr/feed/clip.rs
··· 75 75 pub value: Clip<'a>, 76 76 } 77 77 78 + impl From<ClipGetRecordOutput<'_>> for Clip<'_> { 79 + fn from(output: ClipGetRecordOutput<'_>) -> Self { 80 + use jacquard_common::IntoStatic; 81 + output.value.into_static() 82 + } 83 + } 84 + 85 + impl jacquard_common::types::collection::Collection for Clip<'_> { 86 + const NSID: &'static str = "social.clippr.feed.clip"; 87 + type Record = ClipRecord; 88 + } 89 + 78 90 /// Marker type for deserializing records from this collection. 91 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 79 92 pub struct ClipRecord; 80 93 impl jacquard_common::xrpc::XrpcResp for ClipRecord { 81 94 const NSID: &'static str = "social.clippr.feed.clip"; ··· 84 97 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 85 98 } 86 99 87 - impl jacquard_common::types::collection::Collection for Clip<'_> { 100 + impl jacquard_common::types::collection::Collection for ClipRecord { 88 101 const NSID: &'static str = "social.clippr.feed.clip"; 89 102 type Record = ClipRecord; 90 - } 91 - 92 - impl From<ClipGetRecordOutput<'_>> for Clip<'_> { 93 - fn from(output: ClipGetRecordOutput<'_>) -> Self { 94 - use jacquard_common::IntoStatic; 95 - output.value.into_static() 96 - } 97 103 }
+14 -8
crates/jacquard-api/src/social_clippr/feed/tag.rs
··· 58 58 pub value: Tag<'a>, 59 59 } 60 60 61 + impl From<TagGetRecordOutput<'_>> for Tag<'_> { 62 + fn from(output: TagGetRecordOutput<'_>) -> Self { 63 + use jacquard_common::IntoStatic; 64 + output.value.into_static() 65 + } 66 + } 67 + 68 + impl jacquard_common::types::collection::Collection for Tag<'_> { 69 + const NSID: &'static str = "social.clippr.feed.tag"; 70 + type Record = TagRecord; 71 + } 72 + 61 73 /// Marker type for deserializing records from this collection. 74 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 62 75 pub struct TagRecord; 63 76 impl jacquard_common::xrpc::XrpcResp for TagRecord { 64 77 const NSID: &'static str = "social.clippr.feed.tag"; ··· 67 80 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 68 81 } 69 82 70 - impl jacquard_common::types::collection::Collection for Tag<'_> { 83 + impl jacquard_common::types::collection::Collection for TagRecord { 71 84 const NSID: &'static str = "social.clippr.feed.tag"; 72 85 type Record = TagRecord; 73 - } 74 - 75 - impl From<TagGetRecordOutput<'_>> for Tag<'_> { 76 - fn from(output: TagGetRecordOutput<'_>) -> Self { 77 - use jacquard_common::IntoStatic; 78 - output.value.into_static() 79 - } 80 86 }
+14 -8
crates/jacquard-api/src/social_grain/actor/profile.rs
··· 59 59 pub value: Profile<'a>, 60 60 } 61 61 62 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 63 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 64 + use jacquard_common::IntoStatic; 65 + output.value.into_static() 66 + } 67 + } 68 + 69 + impl jacquard_common::types::collection::Collection for Profile<'_> { 70 + const NSID: &'static str = "social.grain.actor.profile"; 71 + type Record = ProfileRecord; 72 + } 73 + 62 74 /// Marker type for deserializing records from this collection. 75 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 63 76 pub struct ProfileRecord; 64 77 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 65 78 const NSID: &'static str = "social.grain.actor.profile"; ··· 68 81 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 69 82 } 70 83 71 - impl jacquard_common::types::collection::Collection for Profile<'_> { 84 + impl jacquard_common::types::collection::Collection for ProfileRecord { 72 85 const NSID: &'static str = "social.grain.actor.profile"; 73 86 type Record = ProfileRecord; 74 - } 75 - 76 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 77 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 78 - use jacquard_common::IntoStatic; 79 - output.value.into_static() 80 - } 81 87 }
+14 -8
crates/jacquard-api/src/social_grain/favorite.rs
··· 44 44 pub value: Favorite<'a>, 45 45 } 46 46 47 + impl From<FavoriteGetRecordOutput<'_>> for Favorite<'_> { 48 + fn from(output: FavoriteGetRecordOutput<'_>) -> Self { 49 + use jacquard_common::IntoStatic; 50 + output.value.into_static() 51 + } 52 + } 53 + 54 + impl jacquard_common::types::collection::Collection for Favorite<'_> { 55 + const NSID: &'static str = "social.grain.favorite"; 56 + type Record = FavoriteRecord; 57 + } 58 + 47 59 /// Marker type for deserializing records from this collection. 60 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 48 61 pub struct FavoriteRecord; 49 62 impl jacquard_common::xrpc::XrpcResp for FavoriteRecord { 50 63 const NSID: &'static str = "social.grain.favorite"; ··· 53 66 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 54 67 } 55 68 56 - impl jacquard_common::types::collection::Collection for Favorite<'_> { 69 + impl jacquard_common::types::collection::Collection for FavoriteRecord { 57 70 const NSID: &'static str = "social.grain.favorite"; 58 71 type Record = FavoriteRecord; 59 - } 60 - 61 - impl From<FavoriteGetRecordOutput<'_>> for Favorite<'_> { 62 - fn from(output: FavoriteGetRecordOutput<'_>) -> Self { 63 - use jacquard_common::IntoStatic; 64 - output.value.into_static() 65 - } 66 72 }
+14 -8
crates/jacquard-api/src/social_grain/gallery.rs
··· 56 56 pub value: Gallery<'a>, 57 57 } 58 58 59 + impl From<GalleryGetRecordOutput<'_>> for Gallery<'_> { 60 + fn from(output: GalleryGetRecordOutput<'_>) -> Self { 61 + use jacquard_common::IntoStatic; 62 + output.value.into_static() 63 + } 64 + } 65 + 66 + impl jacquard_common::types::collection::Collection for Gallery<'_> { 67 + const NSID: &'static str = "social.grain.gallery"; 68 + type Record = GalleryRecord; 69 + } 70 + 59 71 /// Marker type for deserializing records from this collection. 72 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 60 73 pub struct GalleryRecord; 61 74 impl jacquard_common::xrpc::XrpcResp for GalleryRecord { 62 75 const NSID: &'static str = "social.grain.gallery"; ··· 65 78 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 66 79 } 67 80 68 - impl jacquard_common::types::collection::Collection for Gallery<'_> { 81 + impl jacquard_common::types::collection::Collection for GalleryRecord { 69 82 const NSID: &'static str = "social.grain.gallery"; 70 83 type Record = GalleryRecord; 71 - } 72 - 73 - impl From<GalleryGetRecordOutput<'_>> for Gallery<'_> { 74 - fn from(output: GalleryGetRecordOutput<'_>) -> Self { 75 - use jacquard_common::IntoStatic; 76 - output.value.into_static() 77 - } 78 84 } 79 85 80 86 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/social_grain/gallery/item.rs
··· 49 49 pub value: Item<'a>, 50 50 } 51 51 52 + impl From<ItemGetRecordOutput<'_>> for Item<'_> { 53 + fn from(output: ItemGetRecordOutput<'_>) -> Self { 54 + use jacquard_common::IntoStatic; 55 + output.value.into_static() 56 + } 57 + } 58 + 59 + impl jacquard_common::types::collection::Collection for Item<'_> { 60 + const NSID: &'static str = "social.grain.gallery.item"; 61 + type Record = ItemRecord; 62 + } 63 + 52 64 /// Marker type for deserializing records from this collection. 65 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 53 66 pub struct ItemRecord; 54 67 impl jacquard_common::xrpc::XrpcResp for ItemRecord { 55 68 const NSID: &'static str = "social.grain.gallery.item"; ··· 58 71 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 59 72 } 60 73 61 - impl jacquard_common::types::collection::Collection for Item<'_> { 74 + impl jacquard_common::types::collection::Collection for ItemRecord { 62 75 const NSID: &'static str = "social.grain.gallery.item"; 63 76 type Record = ItemRecord; 64 - } 65 - 66 - impl From<ItemGetRecordOutput<'_>> for Item<'_> { 67 - fn from(output: ItemGetRecordOutput<'_>) -> Self { 68 - use jacquard_common::IntoStatic; 69 - output.value.into_static() 70 - } 71 77 }
+14 -8
crates/jacquard-api/src/social_grain/photo.rs
··· 56 56 pub value: Photo<'a>, 57 57 } 58 58 59 + impl From<PhotoGetRecordOutput<'_>> for Photo<'_> { 60 + fn from(output: PhotoGetRecordOutput<'_>) -> Self { 61 + use jacquard_common::IntoStatic; 62 + output.value.into_static() 63 + } 64 + } 65 + 66 + impl jacquard_common::types::collection::Collection for Photo<'_> { 67 + const NSID: &'static str = "social.grain.photo"; 68 + type Record = PhotoRecord; 69 + } 70 + 59 71 /// Marker type for deserializing records from this collection. 72 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 60 73 pub struct PhotoRecord; 61 74 impl jacquard_common::xrpc::XrpcResp for PhotoRecord { 62 75 const NSID: &'static str = "social.grain.photo"; ··· 65 78 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 66 79 } 67 80 68 - impl jacquard_common::types::collection::Collection for Photo<'_> { 81 + impl jacquard_common::types::collection::Collection for PhotoRecord { 69 82 const NSID: &'static str = "social.grain.photo"; 70 83 type Record = PhotoRecord; 71 - } 72 - 73 - impl From<PhotoGetRecordOutput<'_>> for Photo<'_> { 74 - fn from(output: PhotoGetRecordOutput<'_>) -> Self { 75 - use jacquard_common::IntoStatic; 76 - output.value.into_static() 77 - } 78 84 } 79 85 80 86 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/social_grain/photo/exif.rs
··· 80 80 pub value: Exif<'a>, 81 81 } 82 82 83 + impl From<ExifGetRecordOutput<'_>> for Exif<'_> { 84 + fn from(output: ExifGetRecordOutput<'_>) -> Self { 85 + use jacquard_common::IntoStatic; 86 + output.value.into_static() 87 + } 88 + } 89 + 90 + impl jacquard_common::types::collection::Collection for Exif<'_> { 91 + const NSID: &'static str = "social.grain.photo.exif"; 92 + type Record = ExifRecord; 93 + } 94 + 83 95 /// Marker type for deserializing records from this collection. 96 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 84 97 pub struct ExifRecord; 85 98 impl jacquard_common::xrpc::XrpcResp for ExifRecord { 86 99 const NSID: &'static str = "social.grain.photo.exif"; ··· 89 102 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 90 103 } 91 104 92 - impl jacquard_common::types::collection::Collection for Exif<'_> { 105 + impl jacquard_common::types::collection::Collection for ExifRecord { 93 106 const NSID: &'static str = "social.grain.photo.exif"; 94 107 type Record = ExifRecord; 95 - } 96 - 97 - impl From<ExifGetRecordOutput<'_>> for Exif<'_> { 98 - fn from(output: ExifGetRecordOutput<'_>) -> Self { 99 - use jacquard_common::IntoStatic; 100 - output.value.into_static() 101 - } 102 108 }
+14 -8
crates/jacquard-api/src/social_pmsky/proposal.rs
··· 85 85 pub value: Proposal<'a>, 86 86 } 87 87 88 + impl From<ProposalGetRecordOutput<'_>> for Proposal<'_> { 89 + fn from(output: ProposalGetRecordOutput<'_>) -> Self { 90 + use jacquard_common::IntoStatic; 91 + output.value.into_static() 92 + } 93 + } 94 + 95 + impl jacquard_common::types::collection::Collection for Proposal<'_> { 96 + const NSID: &'static str = "social.pmsky.proposal"; 97 + type Record = ProposalRecord; 98 + } 99 + 88 100 /// Marker type for deserializing records from this collection. 101 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 89 102 pub struct ProposalRecord; 90 103 impl jacquard_common::xrpc::XrpcResp for ProposalRecord { 91 104 const NSID: &'static str = "social.pmsky.proposal"; ··· 94 107 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 95 108 } 96 109 97 - impl jacquard_common::types::collection::Collection for Proposal<'_> { 110 + impl jacquard_common::types::collection::Collection for ProposalRecord { 98 111 const NSID: &'static str = "social.pmsky.proposal"; 99 112 type Record = ProposalRecord; 100 - } 101 - 102 - impl From<ProposalGetRecordOutput<'_>> for Proposal<'_> { 103 - fn from(output: ProposalGetRecordOutput<'_>) -> Self { 104 - use jacquard_common::IntoStatic; 105 - output.value.into_static() 106 - } 107 113 }
+14 -8
crates/jacquard-api/src/social_pmsky/vote.rs
··· 70 70 pub value: Vote<'a>, 71 71 } 72 72 73 + impl From<VoteGetRecordOutput<'_>> for Vote<'_> { 74 + fn from(output: VoteGetRecordOutput<'_>) -> Self { 75 + use jacquard_common::IntoStatic; 76 + output.value.into_static() 77 + } 78 + } 79 + 80 + impl jacquard_common::types::collection::Collection for Vote<'_> { 81 + const NSID: &'static str = "social.pmsky.vote"; 82 + type Record = VoteRecord; 83 + } 84 + 73 85 /// Marker type for deserializing records from this collection. 86 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 74 87 pub struct VoteRecord; 75 88 impl jacquard_common::xrpc::XrpcResp for VoteRecord { 76 89 const NSID: &'static str = "social.pmsky.vote"; ··· 79 92 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 80 93 } 81 94 82 - impl jacquard_common::types::collection::Collection for Vote<'_> { 95 + impl jacquard_common::types::collection::Collection for VoteRecord { 83 96 const NSID: &'static str = "social.pmsky.vote"; 84 97 type Record = VoteRecord; 85 - } 86 - 87 - impl From<VoteGetRecordOutput<'_>> for Vote<'_> { 88 - fn from(output: VoteGetRecordOutput<'_>) -> Self { 89 - use jacquard_common::IntoStatic; 90 - output.value.into_static() 91 - } 92 98 }
+14 -8
crates/jacquard-api/src/social_psky/actor/profile.rs
··· 46 46 pub value: Profile<'a>, 47 47 } 48 48 49 + impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 50 + fn from(output: ProfileGetRecordOutput<'_>) -> Self { 51 + use jacquard_common::IntoStatic; 52 + output.value.into_static() 53 + } 54 + } 55 + 56 + impl jacquard_common::types::collection::Collection for Profile<'_> { 57 + const NSID: &'static str = "social.psky.actor.profile"; 58 + type Record = ProfileRecord; 59 + } 60 + 49 61 /// Marker type for deserializing records from this collection. 62 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 50 63 pub struct ProfileRecord; 51 64 impl jacquard_common::xrpc::XrpcResp for ProfileRecord { 52 65 const NSID: &'static str = "social.psky.actor.profile"; ··· 55 68 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 56 69 } 57 70 58 - impl jacquard_common::types::collection::Collection for Profile<'_> { 71 + impl jacquard_common::types::collection::Collection for ProfileRecord { 59 72 const NSID: &'static str = "social.psky.actor.profile"; 60 73 type Record = ProfileRecord; 61 - } 62 - 63 - impl From<ProfileGetRecordOutput<'_>> for Profile<'_> { 64 - fn from(output: ProfileGetRecordOutput<'_>) -> Self { 65 - use jacquard_common::IntoStatic; 66 - output.value.into_static() 67 - } 68 74 }
+14 -8
crates/jacquard-api/src/social_psky/chat/message.rs
··· 57 57 pub value: Message<'a>, 58 58 } 59 59 60 + impl From<MessageGetRecordOutput<'_>> for Message<'_> { 61 + fn from(output: MessageGetRecordOutput<'_>) -> Self { 62 + use jacquard_common::IntoStatic; 63 + output.value.into_static() 64 + } 65 + } 66 + 67 + impl jacquard_common::types::collection::Collection for Message<'_> { 68 + const NSID: &'static str = "social.psky.chat.message"; 69 + type Record = MessageRecord; 70 + } 71 + 60 72 /// Marker type for deserializing records from this collection. 73 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 61 74 pub struct MessageRecord; 62 75 impl jacquard_common::xrpc::XrpcResp for MessageRecord { 63 76 const NSID: &'static str = "social.psky.chat.message"; ··· 66 79 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 67 80 } 68 81 69 - impl jacquard_common::types::collection::Collection for Message<'_> { 82 + impl jacquard_common::types::collection::Collection for MessageRecord { 70 83 const NSID: &'static str = "social.psky.chat.message"; 71 84 type Record = MessageRecord; 72 - } 73 - 74 - impl From<MessageGetRecordOutput<'_>> for Message<'_> { 75 - fn from(output: MessageGetRecordOutput<'_>) -> Self { 76 - use jacquard_common::IntoStatic; 77 - output.value.into_static() 78 - } 79 85 }
+14 -8
crates/jacquard-api/src/social_psky/chat/room.rs
··· 67 67 pub value: Room<'a>, 68 68 } 69 69 70 + impl From<RoomGetRecordOutput<'_>> for Room<'_> { 71 + fn from(output: RoomGetRecordOutput<'_>) -> Self { 72 + use jacquard_common::IntoStatic; 73 + output.value.into_static() 74 + } 75 + } 76 + 77 + impl jacquard_common::types::collection::Collection for Room<'_> { 78 + const NSID: &'static str = "social.psky.chat.room"; 79 + type Record = RoomRecord; 80 + } 81 + 70 82 /// Marker type for deserializing records from this collection. 83 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 71 84 pub struct RoomRecord; 72 85 impl jacquard_common::xrpc::XrpcResp for RoomRecord { 73 86 const NSID: &'static str = "social.psky.chat.room"; ··· 76 89 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 77 90 } 78 91 79 - impl jacquard_common::types::collection::Collection for Room<'_> { 92 + impl jacquard_common::types::collection::Collection for RoomRecord { 80 93 const NSID: &'static str = "social.psky.chat.room"; 81 94 type Record = RoomRecord; 82 - } 83 - 84 - impl From<RoomGetRecordOutput<'_>> for Room<'_> { 85 - fn from(output: RoomGetRecordOutput<'_>) -> Self { 86 - use jacquard_common::IntoStatic; 87 - output.value.into_static() 88 - } 89 95 } 90 96 91 97 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/tools_smokesignal/blahg/content/post.rs
··· 86 86 pub value: Post<'a>, 87 87 } 88 88 89 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 90 + fn from(output: PostGetRecordOutput<'_>) -> Self { 91 + use jacquard_common::IntoStatic; 92 + output.value.into_static() 93 + } 94 + } 95 + 96 + impl jacquard_common::types::collection::Collection for Post<'_> { 97 + const NSID: &'static str = "tools.smokesignal.blahg.content.post"; 98 + type Record = PostRecord; 99 + } 100 + 89 101 /// Marker type for deserializing records from this collection. 102 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 90 103 pub struct PostRecord; 91 104 impl jacquard_common::xrpc::XrpcResp for PostRecord { 92 105 const NSID: &'static str = "tools.smokesignal.blahg.content.post"; ··· 95 108 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 96 109 } 97 110 98 - impl jacquard_common::types::collection::Collection for Post<'_> { 111 + impl jacquard_common::types::collection::Collection for PostRecord { 99 112 const NSID: &'static str = "tools.smokesignal.blahg.content.post"; 100 113 type Record = PostRecord; 101 - } 102 - 103 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 104 - fn from(output: PostGetRecordOutput<'_>) -> Self { 105 - use jacquard_common::IntoStatic; 106 - output.value.into_static() 107 - } 108 114 }
+14 -8
crates/jacquard-api/src/uk_ewancroft/now.rs
··· 47 47 pub value: Now<'a>, 48 48 } 49 49 50 + impl From<NowGetRecordOutput<'_>> for Now<'_> { 51 + fn from(output: NowGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Now<'_> { 58 + const NSID: &'static str = "uk.ewancroft.now"; 59 + type Record = NowRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct NowRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for NowRecord { 53 66 const NSID: &'static str = "uk.ewancroft.now"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Now<'_> { 72 + impl jacquard_common::types::collection::Collection for NowRecord { 60 73 const NSID: &'static str = "uk.ewancroft.now"; 61 74 type Record = NowRecord; 62 - } 63 - 64 - impl From<NowGetRecordOutput<'_>> for Now<'_> { 65 - fn from(output: NowGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+14 -8
crates/jacquard-api/src/uk_skyblur/post.rs
··· 68 68 pub value: Post<'a>, 69 69 } 70 70 71 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 72 + fn from(output: PostGetRecordOutput<'_>) -> Self { 73 + use jacquard_common::IntoStatic; 74 + output.value.into_static() 75 + } 76 + } 77 + 78 + impl jacquard_common::types::collection::Collection for Post<'_> { 79 + const NSID: &'static str = "uk.skyblur.post"; 80 + type Record = PostRecord; 81 + } 82 + 71 83 /// Marker type for deserializing records from this collection. 84 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 72 85 pub struct PostRecord; 73 86 impl jacquard_common::xrpc::XrpcResp for PostRecord { 74 87 const NSID: &'static str = "uk.skyblur.post"; ··· 77 90 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 78 91 } 79 92 80 - impl jacquard_common::types::collection::Collection for Post<'_> { 93 + impl jacquard_common::types::collection::Collection for PostRecord { 81 94 const NSID: &'static str = "uk.skyblur.post"; 82 95 type Record = PostRecord; 83 - } 84 - 85 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 86 - fn from(output: PostGetRecordOutput<'_>) -> Self { 87 - use jacquard_common::IntoStatic; 88 - output.value.into_static() 89 - } 90 96 }
+14 -8
crates/jacquard-api/src/uk_skyblur/preference.rs
··· 44 44 pub value: Preference<'a>, 45 45 } 46 46 47 + impl From<PreferenceGetRecordOutput<'_>> for Preference<'_> { 48 + fn from(output: PreferenceGetRecordOutput<'_>) -> Self { 49 + use jacquard_common::IntoStatic; 50 + output.value.into_static() 51 + } 52 + } 53 + 54 + impl jacquard_common::types::collection::Collection for Preference<'_> { 55 + const NSID: &'static str = "uk.skyblur.preference"; 56 + type Record = PreferenceRecord; 57 + } 58 + 47 59 /// Marker type for deserializing records from this collection. 60 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 48 61 pub struct PreferenceRecord; 49 62 impl jacquard_common::xrpc::XrpcResp for PreferenceRecord { 50 63 const NSID: &'static str = "uk.skyblur.preference"; ··· 53 66 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 54 67 } 55 68 56 - impl jacquard_common::types::collection::Collection for Preference<'_> { 69 + impl jacquard_common::types::collection::Collection for PreferenceRecord { 57 70 const NSID: &'static str = "uk.skyblur.preference"; 58 71 type Record = PreferenceRecord; 59 - } 60 - 61 - impl From<PreferenceGetRecordOutput<'_>> for Preference<'_> { 62 - fn from(output: PreferenceGetRecordOutput<'_>) -> Self { 63 - use jacquard_common::IntoStatic; 64 - output.value.into_static() 65 - } 66 72 } 67 73 68 74 #[jacquard_derive::lexicon]
+14 -8
crates/jacquard-api/src/us_polhem/blog/content.rs
··· 53 53 pub value: Content<'a>, 54 54 } 55 55 56 + impl From<ContentGetRecordOutput<'_>> for Content<'_> { 57 + fn from(output: ContentGetRecordOutput<'_>) -> Self { 58 + use jacquard_common::IntoStatic; 59 + output.value.into_static() 60 + } 61 + } 62 + 63 + impl jacquard_common::types::collection::Collection for Content<'_> { 64 + const NSID: &'static str = "us.polhem.blog.content"; 65 + type Record = ContentRecord; 66 + } 67 + 56 68 /// Marker type for deserializing records from this collection. 69 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 57 70 pub struct ContentRecord; 58 71 impl jacquard_common::xrpc::XrpcResp for ContentRecord { 59 72 const NSID: &'static str = "us.polhem.blog.content"; ··· 62 75 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 63 76 } 64 77 65 - impl jacquard_common::types::collection::Collection for Content<'_> { 78 + impl jacquard_common::types::collection::Collection for ContentRecord { 66 79 const NSID: &'static str = "us.polhem.blog.content"; 67 80 type Record = ContentRecord; 68 - } 69 - 70 - impl From<ContentGetRecordOutput<'_>> for Content<'_> { 71 - fn from(output: ContentGetRecordOutput<'_>) -> Self { 72 - use jacquard_common::IntoStatic; 73 - output.value.into_static() 74 - } 75 81 }
+14 -8
crates/jacquard-api/src/us_polhem/blog/post.rs
··· 73 73 pub value: Post<'a>, 74 74 } 75 75 76 + impl From<PostGetRecordOutput<'_>> for Post<'_> { 77 + fn from(output: PostGetRecordOutput<'_>) -> Self { 78 + use jacquard_common::IntoStatic; 79 + output.value.into_static() 80 + } 81 + } 82 + 83 + impl jacquard_common::types::collection::Collection for Post<'_> { 84 + const NSID: &'static str = "us.polhem.blog.post"; 85 + type Record = PostRecord; 86 + } 87 + 76 88 /// Marker type for deserializing records from this collection. 89 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 77 90 pub struct PostRecord; 78 91 impl jacquard_common::xrpc::XrpcResp for PostRecord { 79 92 const NSID: &'static str = "us.polhem.blog.post"; ··· 82 95 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 83 96 } 84 97 85 - impl jacquard_common::types::collection::Collection for Post<'_> { 98 + impl jacquard_common::types::collection::Collection for PostRecord { 86 99 const NSID: &'static str = "us.polhem.blog.post"; 87 100 type Record = PostRecord; 88 - } 89 - 90 - impl From<PostGetRecordOutput<'_>> for Post<'_> { 91 - fn from(output: PostGetRecordOutput<'_>) -> Self { 92 - use jacquard_common::IntoStatic; 93 - output.value.into_static() 94 - } 95 101 }
+14 -8
crates/jacquard-api/src/us_polhem/blog/tag.rs
··· 52 52 pub value: Tag<'a>, 53 53 } 54 54 55 + impl From<TagGetRecordOutput<'_>> for Tag<'_> { 56 + fn from(output: TagGetRecordOutput<'_>) -> Self { 57 + use jacquard_common::IntoStatic; 58 + output.value.into_static() 59 + } 60 + } 61 + 62 + impl jacquard_common::types::collection::Collection for Tag<'_> { 63 + const NSID: &'static str = "us.polhem.blog.tag"; 64 + type Record = TagRecord; 65 + } 66 + 55 67 /// Marker type for deserializing records from this collection. 68 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 56 69 pub struct TagRecord; 57 70 impl jacquard_common::xrpc::XrpcResp for TagRecord { 58 71 const NSID: &'static str = "us.polhem.blog.tag"; ··· 61 74 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 62 75 } 63 76 64 - impl jacquard_common::types::collection::Collection for Tag<'_> { 77 + impl jacquard_common::types::collection::Collection for TagRecord { 65 78 const NSID: &'static str = "us.polhem.blog.tag"; 66 79 type Record = TagRecord; 67 - } 68 - 69 - impl From<TagGetRecordOutput<'_>> for Tag<'_> { 70 - fn from(output: TagGetRecordOutput<'_>) -> Self { 71 - use jacquard_common::IntoStatic; 72 - output.value.into_static() 73 - } 74 80 }
+14 -8
crates/jacquard-api/src/win_tomo_x/pushat/allow.rs
··· 47 47 pub value: Allow<'a>, 48 48 } 49 49 50 + impl From<AllowGetRecordOutput<'_>> for Allow<'_> { 51 + fn from(output: AllowGetRecordOutput<'_>) -> Self { 52 + use jacquard_common::IntoStatic; 53 + output.value.into_static() 54 + } 55 + } 56 + 57 + impl jacquard_common::types::collection::Collection for Allow<'_> { 58 + const NSID: &'static str = "win.tomo-x.pushat.allow"; 59 + type Record = AllowRecord; 60 + } 61 + 50 62 /// Marker type for deserializing records from this collection. 63 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 51 64 pub struct AllowRecord; 52 65 impl jacquard_common::xrpc::XrpcResp for AllowRecord { 53 66 const NSID: &'static str = "win.tomo-x.pushat.allow"; ··· 56 69 type Err<'de> = jacquard_common::types::collection::RecordError<'de>; 57 70 } 58 71 59 - impl jacquard_common::types::collection::Collection for Allow<'_> { 72 + impl jacquard_common::types::collection::Collection for AllowRecord { 60 73 const NSID: &'static str = "win.tomo-x.pushat.allow"; 61 74 type Record = AllowRecord; 62 - } 63 - 64 - impl From<AllowGetRecordOutput<'_>> for Allow<'_> { 65 - fn from(output: AllowGetRecordOutput<'_>) -> Self { 66 - use jacquard_common::IntoStatic; 67 - output.value.into_static() 68 - } 69 75 }
+16 -4
crates/jacquard-lexicon/src/codegen/structs.rs
··· 48 48 49 49 required.iter().all(|field_name| { 50 50 let field_name_str: &str = field_name.as_ref(); 51 - obj.properties.get(field_name_str) 51 + obj.properties 52 + .get(field_name_str) 52 53 .map(is_defaultable_string) 53 54 .unwrap_or(false) 54 55 }) ··· 176 177 177 178 let record_marker = quote! { 178 179 /// Marker type for deserializing records from this collection. 180 + #[derive(Debug, serde::Serialize, serde::Deserialize)] 179 181 pub struct #record_marker_ident; 180 182 181 183 impl jacquard_common::xrpc::XrpcResp for #record_marker_ident { ··· 199 201 // Generate Collection trait impl 200 202 let collection_impl = quote! { 201 203 impl jacquard_common::types::collection::Collection for #ident<'_> { 204 + const NSID: &'static str = #nsid; 205 + type Record = #record_marker_ident; 206 + } 207 + }; 208 + 209 + // Generate collection impl for the marker struct to drive fetch_record() 210 + let collection_marker_impl = quote! { 211 + impl jacquard_common::types::collection::Collection for #record_marker_ident { 202 212 const NSID: &'static str = #nsid; 203 213 type Record = #record_marker_ident; 204 214 } ··· 208 218 #struct_def 209 219 #(#unions)* 210 220 #output_wrapper 221 + #from_impl 222 + #collection_impl 211 223 #record_marker 212 - #collection_impl 213 - #from_impl 224 + #collection_marker_impl 214 225 }) 215 226 } 216 227 } ··· 235 246 // - 1+ required fields (not all strings): bon::Builder (but not if name conflicts) 236 247 let required_count = count_required_fields(obj); 237 248 let has_default = required_count == 0 || all_required_are_defaultable_strings(obj); 238 - let has_builder = required_count >= 1 && !has_default && !conflicts_with_builder_macro(&type_name); 249 + let has_builder = 250 + required_count >= 1 && !has_default && !conflicts_with_builder_macro(&type_name); 239 251 240 252 let fields = self.generate_object_fields(nsid, &type_name, obj, has_builder)?; 241 253 let doc = self.generate_doc_comment(obj.description.as_ref());
+30
crates/jacquard/src/client.rs
··· 542 542 } 543 543 } 544 544 545 + /// Fetches a record from the PDS. Returns an owned, parsed response. 546 + /// 547 + /// `record_type` parameter should be the marker struct for the record (e.g. `PostRecord` for `Post`), rather than the Post itself (though it will intuit things correctly regardless). 548 + /// This allows the compiler to better intuit the output type without turbofishing. 549 + fn fetch_record<R>( 550 + &self, 551 + record_type: R, 552 + uri: AtUri<'_>, 553 + ) -> impl std::future::Future< 554 + Output = Result<<<R as Collection>::Record as XrpcResp>::Output<'static>, ClientError>, 555 + > 556 + where 557 + R: Collection, 558 + for<'a> <<R as Collection>::Record as XrpcResp>::Output<'a>: 559 + IntoStatic<Output = <<R as Collection>::Record as XrpcResp>::Output<'static>>, 560 + for<'a> <<R as Collection>::Record as XrpcResp>::Err<'a>: 561 + IntoStatic<Output = <<R as Collection>::Record as XrpcResp>::Err<'static>>, 562 + { 563 + let _ = record_type; 564 + async move { 565 + let response = self.get_record::<R>(uri.clone()).await?; 566 + let response: Response<R::Record> = response.transmute(); 567 + let output = response 568 + .into_output() 569 + .map_err(|e| ClientError::Transport(TransportError::Other(e.to_string().into())))?; 570 + // TODO: fix this to use a better error lol 571 + Ok(output) 572 + } 573 + } 574 + 545 575 /// Update a record in-place with a fetch-modify-put pattern. 546 576 /// 547 577 /// This fetches the record using an at:// URI, converts it to owned data, applies
+2 -2
examples/read_tangled_repo.rs
··· 2 2 use jacquard::api::sh_tangled::repo::Repo; 3 3 use jacquard::client::{AgentSessionExt, BasicClient}; 4 4 use jacquard::types::string::AtUri; 5 + use jacquard_api::sh_tangled::repo::RepoRecord; 5 6 6 7 #[derive(Parser, Debug)] 7 8 #[command(author, version, about = "Read a Tangled git repository record")] ··· 24 25 let agent = BasicClient::unauthenticated(); 25 26 26 27 // Use Agent's get_record helper with the at:// URI 27 - let response = agent.get_record::<Repo>(uri).await?; 28 - let output = response.into_output()?; 28 + let output = agent.fetch_record(RepoRecord, uri).await?; 29 29 30 30 println!("Tangled Repository\n"); 31 31 println!("URI: {}", output.uri);