shrike 0.1.5

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 GroupEditJoinLinkInput {
    pub convo_id: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub join_rule: Option<crate::api::chat::bsky::GroupDefsJoinRule>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub require_approval: Option<bool>,
    /// 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 GroupEditJoinLinkOutput {
    pub join_link: crate::api::chat::bsky::GroupDefsJoinLinkView,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// GroupEditJoinLink — [NOTE: This is under active development and should be considered unstable while this note is here]. Edits the existing join link settings for the group convo.
pub async fn group_edit_join_link(
    client: &crate::xrpc::Client,
    input: &GroupEditJoinLinkInput,
) -> Result<GroupEditJoinLinkOutput, crate::xrpc::Error> {
    client
        .procedure("chat.bsky.group.editJoinLink", input)
        .await
}