proto-blue-api 0.2.1

AT Protocol high-level API: agent, rich text, moderation, generated types
Documentation
// Generated by atproto-codegen. Do not edit.
//! Lexicon: tools.ozone.signature.findRelatedAccounts

use serde::{Deserialize, Serialize};

/// Get accounts that share some matching threat signatures with the root account.
/// XRPC Query: tools.ozone.signature.findRelatedAccounts
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Params {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
    pub did: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub limit: Option<i64>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Output {
    pub accounts: Vec<RelatedAccount>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub cursor: Option<String>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct RelatedAccount {
    pub account: crate::com::atproto::admin::defs::AccountView,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub similarities: Option<Vec<crate::tools::ozone::signature::defs::SigDetail>>,
}