shrike 0.1.1

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

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

/// IdentitySubmitPlcOperation — Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry
pub async fn identity_submit_plc_operation(
    client: &crate::xrpc::Client,
    input: &IdentitySubmitPlcOperationInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("com.atproto.identity.submitPlcOperation", input)
        .await?;
    Ok(())
}