shrike 0.1.4

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

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GroupRequestJoinInput {
    pub code: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GroupRequestJoinOutput {
    /// The group convo joined. This is only present in the case of status=joined
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub convo: Option<crate::api::chat::bsky::ConvoDefsConvoView>,
    pub status: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// GroupRequestJoin — [NOTE: This is under active development and should be considered unstable while this note is here]. Sends a request to join a group (via join link) to the group owner. Action taken by the prospective group member.
pub async fn group_request_join(
    client: &crate::xrpc::Client,
    input: &GroupRequestJoinInput,
) -> Result<GroupRequestJoinOutput, crate::xrpc::Error> {
    client.procedure("chat.bsky.group.requestJoin", input).await
}