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

/// VideoUploadVideo — Upload a video to be processed then stored on the PDS.
pub async fn video_upload_video(
    client: &crate::xrpc::Client,
    body: Vec<u8>,
    content_type: &str,
) -> Result<VideoUploadVideoOutput, crate::xrpc::Error> {
    let v = client
        .procedure_raw("app.bsky.video.uploadVideo", body, content_type)
        .await?;
    serde_json::from_value(v).map_err(|e| crate::xrpc::Error::Xrpc {
        status: 0,
        error: "DeserializationError".to_string(),
        message: e.to_string(),
    })
}