pub struct CredentialsManager { /* private fields */ }Implementations§
Source§impl CredentialsManager
impl CredentialsManager
pub fn new() -> Result<Self>
pub fn with_path(path: PathBuf) -> Self
pub async fn read_credentials(&self) -> Result<ClaudeCredentials>
pub async fn get_access_token(&self) -> Result<String>
pub async fn get_session_info(&self) -> Result<SessionInfo>
pub async fn get_expiry_time(&self) -> Result<i64>
pub fn format_time_remaining(milliseconds: i64) -> String
pub fn credentials_path(&self) -> &Path
Auto Trait Implementations§
impl Freeze for CredentialsManager
impl RefUnwindSafe for CredentialsManager
impl Send for CredentialsManager
impl Sync for CredentialsManager
impl Unpin for CredentialsManager
impl UnwindSafe for CredentialsManager
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