zai-rs 0.5.1

一个 Rust SDK, 用于调用 智谱AI API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};
use validator::Validate;

/// Response from the voice-delete endpoint.
#[derive(Debug, Clone, Serialize, Deserialize, Validate)]
pub struct VoiceDeleteResponse {
    /// Id of the deleted voice.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub voice: Option<String>,
    /// Timestamp at which the deletion took effect.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub update_time: Option<String>,
}