pub struct CliIdentity {
pub name: String,
pub auth_login: String,
pub auth_dir: Option<PathBuf>,
}Fields§
§name: StringThe program name users type, such as roder.
auth_login: StringThe command that signs in to a provider, with {provider} where the
provider id goes, such as roder auth login {provider}.
auth_dir: Option<PathBuf>The folder provider sign-in tokens are kept in, used as given.
None keeps them in auth/ under Roder’s data folder
(RODER_DATA_DIR, else RODER_CONFIG_DIR, else ~/.roder).
Implementations§
Source§impl CliIdentity
impl CliIdentity
Sourcepub fn auth_login_command(&self, provider: &str) -> String
pub fn auth_login_command(&self, provider: &str) -> String
The command a user runs to sign in to provider (codex, supergrok, …).
Trait Implementations§
Source§impl Clone for CliIdentity
impl Clone for CliIdentity
Source§impl Debug for CliIdentity
impl Debug for CliIdentity
Source§impl Default for CliIdentity
impl Default for CliIdentity
impl Eq for CliIdentity
Source§impl PartialEq for CliIdentity
impl PartialEq for CliIdentity
impl StructuralPartialEq for CliIdentity
Auto Trait Implementations§
impl Freeze for CliIdentity
impl RefUnwindSafe for CliIdentity
impl Send for CliIdentity
impl Sync for CliIdentity
impl Unpin for CliIdentity
impl UnsafeUnpin for CliIdentity
impl UnwindSafe for CliIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.