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 TempFetchLabelsParams {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub limit: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub since: Option<i64>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TempFetchLabelsOutput {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub labels: Vec<crate::api::com::atproto::LabelDefsLabel>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// TempFetchLabels — DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created...
pub async fn temp_fetch_labels(
    client: &crate::xrpc::Client,
    params: &TempFetchLabelsParams,
) -> Result<TempFetchLabelsOutput, crate::xrpc::Error> {
    client.query("com.atproto.temp.fetchLabels", params).await
}