pub struct Dims<'a> {
pub principal: Option<&'a str>,
pub model: &'a str,
pub team: Option<&'a str>,
}Expand description
The request dimensions a budget keys on (which subset it uses depends on the budget’s scope).
Fields§
§principal: Option<&'a str>Authenticated principal (API-key id / JWT subject) — the key scope.
model: &'a strRequested model — the model scope.
team: Option<&'a str>Team/tag — the team scope (chargeback dimension).
Trait Implementations§
impl<'a> Copy for Dims<'a>
Auto Trait Implementations§
impl<'a> Freeze for Dims<'a>
impl<'a> RefUnwindSafe for Dims<'a>
impl<'a> Send for Dims<'a>
impl<'a> Sync for Dims<'a>
impl<'a> Unpin for Dims<'a>
impl<'a> UnsafeUnpin for Dims<'a>
impl<'a> UnwindSafe for Dims<'a>
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