#[non_exhaustive]pub enum UsageData {
Endpoint(EndpointUsage),
Jsonl(JsonlUsage),
}Expand description
What DataContext::usage surfaces
after the cascade in docs/specs/data-fetching.md §OAuth fallback
cascade finishes. The variant IS the provenance tag per
ADR-0013:
segments dispatch on it to pick between percent rendering
(endpoint) and raw-token rendering (JSONL). #[non_exhaustive]
leaves room for a future third source without a SemVer break.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Endpoint(EndpointUsage)
Jsonl(JsonlUsage)
Trait Implementations§
impl StructuralPartialEq for UsageData
Auto Trait Implementations§
impl Freeze for UsageData
impl RefUnwindSafe for UsageData
impl Send for UsageData
impl Sync for UsageData
impl Unpin for UsageData
impl UnsafeUnpin for UsageData
impl UnwindSafe for UsageData
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