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 DraftUpdateDraftInput {
    pub draft: crate::api::app::bsky::DraftDefsDraftWithId,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// DraftUpdateDraft — Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the u...
pub async fn draft_update_draft(
    client: &crate::xrpc::Client,
    input: &DraftUpdateDraftInput,
) -> Result<(), crate::xrpc::Error> {
    let _: serde_json::Value = client
        .procedure("app.bsky.draft.updateDraft", input)
        .await?;
    Ok(())
}