pub struct OpenCodeGoProvider { /* private fields */ }Implementations§
Source§impl OpenCodeGoProvider
impl OpenCodeGoProvider
pub fn new() -> Self
Sourcepub fn with_base_url(url: &str) -> Self
pub fn with_base_url(url: &str) -> Self
Creates a provider with a custom base URL (for tests).
Trait Implementations§
Source§impl Default for OpenCodeGoProvider
impl Default for OpenCodeGoProvider
Source§impl UsageProvider for OpenCodeGoProvider
impl UsageProvider for OpenCodeGoProvider
Source§fn metadata(&self) -> &ProviderMetadata
fn metadata(&self) -> &ProviderMetadata
Returns the provider metadata.
Source§fn detect_credentials(&self) -> bool
fn detect_credentials(&self) -> bool
Whether credentials for this provider are detectable on this machine
(used to auto-enable providers without an explicit toggle).
Source§fn fetch_usage<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ProviderContext,
) -> Pin<Box<dyn Future<Output = Result<UsageSnapshot, SpendPanelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_usage<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 ProviderContext,
) -> Pin<Box<dyn Future<Output = Result<UsageSnapshot, SpendPanelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetches usage data.
Auto Trait Implementations§
impl Freeze for OpenCodeGoProvider
impl RefUnwindSafe for OpenCodeGoProvider
impl Send for OpenCodeGoProvider
impl Sync for OpenCodeGoProvider
impl Unpin for OpenCodeGoProvider
impl UnsafeUnpin for OpenCodeGoProvider
impl UnwindSafe for OpenCodeGoProvider
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