// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: app.bsky.unspecced.getAgeAssuranceState
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_derive::IntoStatic;
use serde::{Serialize, Deserialize};
use crate::app_bsky::unspecced::AgeAssuranceState;

#[jacquard_derive::lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct GetAgeAssuranceStateOutput<'a> {
    #[serde(flatten)]
    #[serde(borrow)]
    pub value: AgeAssuranceState<'a>,
}

/// XRPC request marker type.

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Copy)]
pub struct GetAgeAssuranceState;
/// Response type for app.bsky.unspecced.getAgeAssuranceState
pub struct GetAgeAssuranceStateResponse;
impl jacquard_common::xrpc::XrpcResp for GetAgeAssuranceStateResponse {
    const NSID: &'static str = "app.bsky.unspecced.getAgeAssuranceState";
    const ENCODING: &'static str = "application/json";
    type Output<'de> = GetAgeAssuranceStateOutput<'de>;
    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
}

impl jacquard_common::xrpc::XrpcRequest for GetAgeAssuranceState {
    const NSID: &'static str = "app.bsky.unspecced.getAgeAssuranceState";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Response = GetAgeAssuranceStateResponse;
}

/// Endpoint type for app.bsky.unspecced.getAgeAssuranceState
pub struct GetAgeAssuranceStateRequest;
impl jacquard_common::xrpc::XrpcEndpoint for GetAgeAssuranceStateRequest {
    const PATH: &'static str = "/xrpc/app.bsky.unspecced.getAgeAssuranceState";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Request<'de> = GetAgeAssuranceState;
    type Response = GetAgeAssuranceStateResponse;
}