pub struct AuthDotJson {
pub openai_api_key: Option<String>,
pub tokens: Option<TokenData>,
pub last_refresh: Option<DateTime<Utc>>,
}Expand description
Expected structure for $CODEX_HOME/auth.json.
Fields§
§openai_api_key: Option<String>§tokens: Option<TokenData>§last_refresh: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for AuthDotJson
impl Clone for AuthDotJson
Source§fn clone(&self) -> AuthDotJson
fn clone(&self) -> AuthDotJson
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthDotJson
impl Debug for AuthDotJson
Source§impl<'de> Deserialize<'de> for AuthDotJson
impl<'de> Deserialize<'de> for AuthDotJson
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
Source§impl PartialEq for AuthDotJson
impl PartialEq for AuthDotJson
Source§impl Serialize for AuthDotJson
impl Serialize for AuthDotJson
impl StructuralPartialEq for AuthDotJson
Auto Trait Implementations§
impl Freeze for AuthDotJson
impl RefUnwindSafe for AuthDotJson
impl Send for AuthDotJson
impl Sync for AuthDotJson
impl Unpin for AuthDotJson
impl UnwindSafe for AuthDotJson
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