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 GroupListMutualGroupsParams {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub limit: Option<i64>,
    pub subject: String,
}

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

/// GroupListMutualGroups — [NOTE: This is under active development and should be considered unstable while this note is here]. Returns a page of group conversations that both the requester and the specified actor are members of.
pub async fn group_list_mutual_groups(
    client: &crate::xrpc::Client,
    params: &GroupListMutualGroupsParams,
) -> Result<GroupListMutualGroupsOutput, crate::xrpc::Error> {
    client
        .query("chat.bsky.group.listMutualGroups", params)
        .await
}