shrike 0.1.0

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 TempDereferenceScopeParams {
    pub scope: String,
}

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

/// TempDereferenceScope — Allows finding the oauth permission scope from a reference
pub async fn temp_dereference_scope(
    client: &crate::xrpc::Client,
    params: &TempDereferenceScopeParams,
) -> Result<TempDereferenceScopeOutput, crate::xrpc::Error> {
    client
        .query("com.atproto.temp.dereferenceScope", params)
        .await
}