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/owner.json (sh.tangled.owner)

#![allow(clippy::all)]

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

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
pub struct Output {
    pub owner: String,
}

/// Get the owner of a service
///
/// Errors:
/// - `OwnerNotFound`: Owner is not set for this service
pub fn owner(http: &reqwest::Client, base: &str) -> reqwest::RequestBuilder {
    let rb = http.get(crate::xrpc::xrpc_url(base, NSID));
    let rb = rb.header(reqwest::header::ACCEPT, "application/json");
    rb
}