mirror of
https://github.com/openai/codex.git
synced 2026-05-05 05:42:33 +03:00
update credit status details (#6862)
This commit is contained in:
@@ -12,6 +12,8 @@ use serde::Serialize;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CreditStatusDetails {
|
||||
#[serde(rename = "has_credits")]
|
||||
pub has_credits: bool,
|
||||
#[serde(rename = "unlimited")]
|
||||
pub unlimited: bool,
|
||||
#[serde(
|
||||
@@ -38,8 +40,9 @@ pub struct CreditStatusDetails {
|
||||
}
|
||||
|
||||
impl CreditStatusDetails {
|
||||
pub fn new(unlimited: bool) -> CreditStatusDetails {
|
||||
pub fn new(has_credits: bool, unlimited: bool) -> CreditStatusDetails {
|
||||
CreditStatusDetails {
|
||||
has_credits,
|
||||
unlimited,
|
||||
balance: None,
|
||||
approx_local_messages: None,
|
||||
|
||||
Reference in New Issue
Block a user