pub enum CredsFormat {
JsonPointer,
ClaudeCredentials,
OidcAuthJson,
CopilotHosts,
}Expand description
Named credential-store layouts.
Variants§
JsonPointer
Explicit JSON Pointers on the pack.
ClaudeCredentials
Claude credentials.json alias map.
OidcAuthJson
Named {issuer}::{client_id} object inside an auth.json.
Pointers: /{issuer}::{client_id}/key (access), /refresh_token,
/expires_at (RFC 3339). issuer is the origin of authorize_url,
else token_url. One {issuer}::{client_id}@{name} suffix matches
when the exact key is absent. Two or more named suffixes fail
closed. Empty client_id matches the single {issuer}:: entry;
two or more issuer entries fail closed.
CopilotHosts
GitHub Copilot hosts.json / apps.json layout.
Pointer: /{host}/oauth_token (first object that has a non-empty
token; default host github.com). GitHub Copilot product terms
apply to the token. This crate does not ship a Copilot preset.
Trait Implementations§
Source§impl Clone for CredsFormat
impl Clone for CredsFormat
impl Copy for CredsFormat
Source§impl Debug for CredsFormat
impl Debug for CredsFormat
Source§impl<'de> Deserialize<'de> for CredsFormat
impl<'de> Deserialize<'de> for CredsFormat
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CredsFormat
Source§impl PartialEq for CredsFormat
impl PartialEq for CredsFormat
Source§impl Serialize for CredsFormat
impl Serialize for CredsFormat
impl StructuralPartialEq for CredsFormat
Auto Trait Implementations§
impl Forget for CredsFormat
impl Freeze for CredsFormat
impl RefUnwindSafe for CredsFormat
impl Send for CredsFormat
impl Sync for CredsFormat
impl Unpin for CredsFormat
impl UnsafeUnpin for CredsFormat
impl UnwindSafe for CredsFormat
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