shrike 0.1.5

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GroupGetJoinLinkPreviewsParams {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub codes: Vec<String>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GroupGetJoinLinkPreviewsOutput {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub join_link_previews: Vec<crate::api::chat::bsky::GroupDefsJoinLinkPreviewView>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// GroupGetJoinLinkPreviews — [NOTE: This is under active development and should be considered unstable while this note is here]. Get public information about groups from join links. Invalid or disabled codes are silently omitted from results. Use the 'code' property on the views to correlate with the input codes, not array positions.
pub async fn group_get_join_link_previews(
    client: &crate::xrpc::Client,
    params: &GroupGetJoinLinkPreviewsParams,
) -> Result<GroupGetJoinLinkPreviewsOutput, crate::xrpc::Error> {
    client
        .query("chat.bsky.group.getJoinLinkPreviews", params)
        .await
}