shrike 0.1.0

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 ContactVerifyPhoneInput {
    pub code: String,
    pub phone: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

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

/// ContactVerifyPhone — Verifies control over a phone number with a code received via SMS and starts a contact import ses...
pub async fn contact_verify_phone(
    client: &crate::xrpc::Client,
    input: &ContactVerifyPhoneInput,
) -> Result<ContactVerifyPhoneOutput, crate::xrpc::Error> {
    client
        .procedure("app.bsky.contact.verifyPhone", input)
        .await
}