pub struct OpencodeProvider;Expand description
Provider for opencode credentials.
Opencode stores auth in ~/.local/share/opencode/auth.json (XDG data dir)
and config/plugins in ~/.config/opencode/.
Trait Implementations§
Source§impl AuthProvider for OpencodeProvider
impl AuthProvider for OpencodeProvider
Source§fn display_name(&self) -> &str
fn display_name(&self) -> &str
Human-readable display name.
Source§fn credential_files(&self) -> Vec<CredentialFile>
fn credential_files(&self) -> Vec<CredentialFile>
List of credential files/directories this provider manages.
Source§fn validate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ValidationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ValidationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate whether the current local credentials are still valid.
Defaults to
ValidationResult::Unknown.Source§impl Clone for OpencodeProvider
impl Clone for OpencodeProvider
Source§fn clone(&self) -> OpencodeProvider
fn clone(&self) -> OpencodeProvider
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 OpencodeProvider
impl Debug for OpencodeProvider
Source§impl Default for OpencodeProvider
impl Default for OpencodeProvider
Source§fn default() -> OpencodeProvider
fn default() -> OpencodeProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpencodeProvider
impl RefUnwindSafe for OpencodeProvider
impl Send for OpencodeProvider
impl Sync for OpencodeProvider
impl Unpin for OpencodeProvider
impl UnsafeUnpin for OpencodeProvider
impl UnwindSafe for OpencodeProvider
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