···5252 /// Build the get request
5353 fn build_get() -> Self::GetRequest;
54545555- /// Extract the vec from the get response output
5656- fn extract_vec<'s>(
5757- output: <<Self::GetRequest as XrpcRequest>::Response as XrpcResp>::Output<'s>,
5555+ /// Extract the vec from the get response output (always owned/DefaultStr-backed).
5656+ fn extract_vec(
5757+ output: <<Self::GetRequest as XrpcRequest>::Response as XrpcResp>::Output<jacquard_common::DefaultStr>,
5858 ) -> Vec<Self::Item>;
59596060 /// Build the put request from the modified vec
···2929 let agent: Agent<_> = Agent::from(session);
30303131 // Create a simple text post using the Agent convenience method
3232- let post = Post::new()
3232+ let post = Post::<SmolStr>::new()
3333 .text(args.text)
3434 .created_at(Datetime::now())
3535 .build();
+4-4
examples/create_whitewind_post.rs
···4545 // Create a WhiteWind blog entry
4646 // The content field accepts markdown
4747 let entry = Entry {
4848- title: Some(CowStr::from(args.title)),
4949- subtitle: args.subtitle.map(CowStr::from),
5050- content: CowStr::from(args.content),
4848+ title: Some(args.title),
4949+ subtitle: args.subtitle,
5050+ content: args.content,
5151 created_at: Some(Datetime::now()),
5252- visibility: Some(CowStr::from("url")), // "url" = public with link, "author" = public on profile
5252+ visibility: Some(String::from("url")), // "url" = public with link, "author" = public on profile
5353 theme: None,
5454 ogp: None,
5555 blobs: None,
+3-3
examples/moderated_timeline.rs
···122122 clean += 1;
123123 }
124124125125- let text = from_data::<Post>(&post.record)
125125+ let text = from_data::<Post, _>(&post.record)
126126 .inspect_err(|e| println!("error: {e}"))
127127 .ok()
128128 .map(|p| p.text.to_string())
···132132 if let ReplyRefParent::PostView(parent) = &reply.parent {
133133 if let ReplyRefRoot::PostView(root) = &reply.root {
134134 if root.uri != parent.uri {
135135- let root_text = from_data::<Post>(&root.record)
135135+ let root_text = from_data::<Post, _>(&root.record)
136136 .ok()
137137 .map(|p| p.text.to_string())
138138 .unwrap_or_else(|| "<no text>".to_string());
139139 println!("@{}:\n{}", root.author.handle, root_text);
140140 }
141141 }
142142- let parent_text = from_data::<Post>(&parent.record)
142142+ let parent_text = from_data::<Post, _>(&parent.record)
143143 .ok()
144144 .map(|p| p.text.to_string())
145145 .unwrap_or_else(|| "<no text>".to_string());
+3-1
examples/oauth_timeline.rs
···71717272 // Wrap in Agent and fetch the timeline
7373 let agent: Agent<_> = Agent::from(session);
7474- let output = agent.send(GetTimeline::new().limit(5).build()).await?;
7474+ let output = agent
7575+ .send(GetTimeline::<SmolStr>::new().limit(5).build())
7676+ .await?;
7577 let timeline = output.into_output()?;
7678 for (i, post) in timeline.feed.iter().enumerate() {
7779 println!("\n{}. by {}", i + 1, post.post.author.handle);
+1-1
examples/stream_get_blob.rs
···3737 // Use the streaming `.download()` method with the generated API parameter struct
3838 let output: StreamingResponse = agent
3939 .download(GetBlob {
4040- did: Did::new_owned(args.did)?,
4040+ did: Did::new(args.did)?,
4141 cid: Cid::str(&args.cid),
4242 })
4343 .await?;