pub struct UsageReportHandler { /* private fields */ }Expand description
Usage report handler
Implementations§
Source§impl UsageReportHandler
impl UsageReportHandler
Sourcepub fn new(client: RestClient) -> Self
pub fn new(client: RestClient) -> Self
Create a new handler bound to the given REST client.
Sourcepub async fn list(&self) -> Result<Vec<UsageReport>>
pub async fn list(&self) -> Result<Vec<UsageReport>>
List usage reports - GET /v1/usage_report.
The live cluster returns a streaming NDJSON document; this method buffers and decodes the whole payload, which is fine for short reporting periods but should not be relied on for cluster-wide scans. A streaming reshape is a #65 follow-up.
Auto Trait Implementations§
impl Freeze for UsageReportHandler
impl !RefUnwindSafe for UsageReportHandler
impl Send for UsageReportHandler
impl Sync for UsageReportHandler
impl Unpin for UsageReportHandler
impl UnsafeUnpin for UsageReportHandler
impl !UnwindSafe for UsageReportHandler
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