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

/// DraftDeleteDraft — Deletes a draft by ID. Requires authentication.
pub async fn draft_delete_draft(
    client: &crate::xrpc::Client,
    input: &DraftDeleteDraftInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("app.bsky.draft.deleteDraft", input)
        .await?;
    Ok(())
}