A better Rust ATProto crate
at oauth 1.3 kB view raw
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.bsky.feed.repost 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8///Record representing a 'repost' of an existing Bluesky post. 9#[jacquard_derive::lexicon] 10#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] 11#[serde(rename_all = "camelCase")] 12pub struct Repost<'a> { 13 pub created_at: jacquard_common::types::string::Datetime, 14 #[serde(borrow)] 15 pub subject: crate::com_atproto::repo::strong_ref::StrongRef<'a>, 16 #[serde(skip_serializing_if = "std::option::Option::is_none")] 17 #[serde(borrow)] 18 pub via: std::option::Option<crate::com_atproto::repo::strong_ref::StrongRef<'a>>, 19} 20 21impl jacquard_common::types::collection::Collection for Repost<'_> { 22 const NSID: &'static str = "app.bsky.feed.repost"; 23} 24 25impl jacquard_common::IntoStatic for Repost<'_> { 26 type Output = Repost<'static>; 27 fn into_static(self) -> Self::Output { 28 Repost { 29 created_at: self.created_at.into_static(), 30 subject: self.subject.into_static(), 31 via: self.via.into_static(), 32 extra_data: self.extra_data.into_static(), 33 } 34 } 35}