pub struct CursorProvider { /* private fields */ }Expand description
Cursor usage provider (browser-cookie auth).
Implementations§
Source§impl CursorProvider
impl CursorProvider
pub fn new() -> Self
pub fn with_base_url(url: &str) -> Self
Trait Implementations§
Source§impl Default for CursorProvider
impl Default for CursorProvider
Source§impl UsageProvider for CursorProvider
impl UsageProvider for CursorProvider
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 CursorProvider
impl RefUnwindSafe for CursorProvider
impl Send for CursorProvider
impl Sync for CursorProvider
impl Unpin for CursorProvider
impl UnsafeUnpin for CursorProvider
impl UnwindSafe for CursorProvider
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