pub struct RequestBudgetSpec {
pub requested_output_tokens: u32,
pub input_safety_margin_bps: u16,
pub fixed_overhead_tokens: u32,
}Expand description
Shared admission contract for one complete Provider request.
Fields§
§requested_output_tokens: u32Exact output token limit requested in the Provider body.
input_safety_margin_bps: u16Conservative margin applied to approximate text/tool/image input cost.
fixed_overhead_tokens: u32Fixed parser/protocol overhead added after the proportional margin.
Implementations§
Trait Implementations§
Source§impl Clone for RequestBudgetSpec
impl Clone for RequestBudgetSpec
Source§fn clone(&self) -> RequestBudgetSpec
fn clone(&self) -> RequestBudgetSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequestBudgetSpec
Source§impl Debug for RequestBudgetSpec
impl Debug for RequestBudgetSpec
Source§impl Default for RequestBudgetSpec
impl Default for RequestBudgetSpec
impl Eq for RequestBudgetSpec
Source§impl PartialEq for RequestBudgetSpec
impl PartialEq for RequestBudgetSpec
impl StructuralPartialEq for RequestBudgetSpec
Auto Trait Implementations§
impl Freeze for RequestBudgetSpec
impl RefUnwindSafe for RequestBudgetSpec
impl Send for RequestBudgetSpec
impl Sync for RequestBudgetSpec
impl Unpin for RequestBudgetSpec
impl UnsafeUnpin for RequestBudgetSpec
impl UnwindSafe for RequestBudgetSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.