tangled-api 0.1.0

Lexicon-generated XRPC client for Tangled and AT Protocol APIs
Documentation
// @generated by `cargo xtask codegen` — do not edit.
// source: lexicons/knot/addMember.json (sh.tangled.knot.addMember)

#![allow(clippy::all)]

pub const NSID: &str = "sh.tangled.knot.addMember";

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
pub struct Input {
    /// DID of the member to add
    pub subject: String,
}

/// Add a member to this knot
///
/// The response has no body; use [`crate::xrpc::send_unit`].
pub fn add_member(
    http: &reqwest::Client,
    base: &str,
    input: &Input,
) -> reqwest::RequestBuilder {
    let rb = http.post(crate::xrpc::xrpc_url(base, NSID));
    let rb = rb.json(input);
    rb
}