pub struct UsageFetchOptions {
pub endpoint_override: Option<String>,
pub inventory_endpoint_override: Option<String>,
pub include_inventory: bool,
pub timeout: Duration,
pub max_body_bytes: usize,
}Expand description
Options for fetch_usage. Production callers use Default.
Fields§
§endpoint_override: Option<String>Test seam: replace the pinned URL. Loopback hosts only —
anything else fails with UsageError::InvalidEndpointOverride
before any request is built.
inventory_endpoint_override: Option<String>Test seam for the Codex inventory URL; same loopback rule.
include_inventory: boolAlso GET the Codex banked-reset inventory. Failures there are
recorded in banked_resets.inventory_error, never fatal.
timeout: Duration§max_body_bytes: usizeTrait Implementations§
Source§impl Clone for UsageFetchOptions
impl Clone for UsageFetchOptions
Source§impl Debug for UsageFetchOptions
impl Debug for UsageFetchOptions
Auto Trait Implementations§
impl Freeze for UsageFetchOptions
impl RefUnwindSafe for UsageFetchOptions
impl Send for UsageFetchOptions
impl Sync for UsageFetchOptions
impl Unpin for UsageFetchOptions
impl UnsafeUnpin for UsageFetchOptions
impl UnwindSafe for UsageFetchOptions
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