pub struct ZaiUsageResponse {
pub code: i32,
pub msg: String,
pub data: Option<ZaiQuotaData>,
pub success: bool,
}Expand description
Top-level response from the z.ai quota API.
The structure is intentionally similar to crate::glm::types::GlmUsageResponse
but kept separate so that field-name drift between the two APIs does not leak
into shared code without an explicit test.
Fields§
§code: i32§msg: String§data: Option<ZaiQuotaData>§success: boolTrait Implementations§
Source§impl Debug for ZaiUsageResponse
impl Debug for ZaiUsageResponse
Source§impl<'de> Deserialize<'de> for ZaiUsageResponse
impl<'de> Deserialize<'de> for ZaiUsageResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ZaiUsageResponse
impl RefUnwindSafe for ZaiUsageResponse
impl Send for ZaiUsageResponse
impl Sync for ZaiUsageResponse
impl Unpin for ZaiUsageResponse
impl UnsafeUnpin for ZaiUsageResponse
impl UnwindSafe for ZaiUsageResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more