pub struct RequestShape {
pub id: String,
pub model_id: String,
pub tokenizer_id: String,
pub adapter_id: Option<String>,
pub tenant_id: String,
pub blocks: Vec<KvBlockKey>,
pub estimated_decode_tokens: u32,
pub slo: SloTarget,
}Fields§
§id: String§model_id: String§tokenizer_id: String§adapter_id: Option<String>§tenant_id: String§blocks: Vec<KvBlockKey>§estimated_decode_tokens: u32§slo: SloTargetImplementations§
Source§impl RequestShape
impl RequestShape
pub fn input_tokens(&self) -> u32
Trait Implementations§
Source§impl Clone for RequestShape
impl Clone for RequestShape
Source§fn clone(&self) -> RequestShape
fn clone(&self) -> RequestShape
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 moreSource§impl Debug for RequestShape
impl Debug for RequestShape
Source§impl<'de> Deserialize<'de> for RequestShape
impl<'de> Deserialize<'de> for RequestShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RequestShape
Source§impl PartialEq for RequestShape
impl PartialEq for RequestShape
Source§fn eq(&self, other: &RequestShape) -> bool
fn eq(&self, other: &RequestShape) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RequestShape
impl Serialize for RequestShape
impl StructuralPartialEq for RequestShape
Auto Trait Implementations§
impl Freeze for RequestShape
impl RefUnwindSafe for RequestShape
impl Send for RequestShape
impl Sync for RequestShape
impl Unpin for RequestShape
impl UnsafeUnpin for RequestShape
impl UnwindSafe for RequestShape
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