pub struct OpencodeGoAuth;Implementations§
Source§impl OpencodeGoAuth
impl OpencodeGoAuth
Sourcepub fn default_path() -> Result<PathBuf, OpencodeGoAuthError>
pub fn default_path() -> Result<PathBuf, OpencodeGoAuthError>
§Errors
Returns an error if the current user’s home directory cannot be resolved.
Sourcepub fn read_api_key() -> Result<String, OpencodeGoAuthError>
pub fn read_api_key() -> Result<String, OpencodeGoAuthError>
§Errors
Returns an error when the auth file is missing, unreadable, malformed,
or does not contain an opencode-go API key.
Auto Trait Implementations§
impl Freeze for OpencodeGoAuth
impl RefUnwindSafe for OpencodeGoAuth
impl Send for OpencodeGoAuth
impl Sync for OpencodeGoAuth
impl Unpin for OpencodeGoAuth
impl UnsafeUnpin for OpencodeGoAuth
impl UnwindSafe for OpencodeGoAuth
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