pub struct MooncakeRow {
pub request_id: Option<String>,
pub session_id: Option<String>,
pub input_length: Option<usize>,
pub output_length: Option<usize>,
pub output_token_ids: Option<Vec<u32>>,
pub hash_ids: Option<Vec<u64>>,
pub timestamp: Option<f64>,
pub delay: Option<f64>,
pub priority: Option<i32>,
pub strict_priority: Option<u32>,
pub policy_class: Option<String>,
}Expand description
One producer-neutral Mooncake request row.
This mirrors the external JSONL schema without depending on Dynamo’s
producer-side dynamo-data-gen crate. Dynamo request-trace lowering lives
in the Mocker adapter and converts into this DTO.
Fields§
§request_id: Option<String>§session_id: Option<String>§input_length: Option<usize>§output_length: Option<usize>§output_token_ids: Option<Vec<u32>>§hash_ids: Option<Vec<u64>>§timestamp: Option<f64>§delay: Option<f64>§priority: Option<i32>§strict_priority: Option<u32>§policy_class: Option<String>Trait Implementations§
Source§impl Clone for MooncakeRow
impl Clone for MooncakeRow
Source§fn clone(&self) -> MooncakeRow
fn clone(&self) -> MooncakeRow
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 MooncakeRow
impl Debug for MooncakeRow
Source§impl Default for MooncakeRow
impl Default for MooncakeRow
Source§fn default() -> MooncakeRow
fn default() -> MooncakeRow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MooncakeRow
impl<'de> Deserialize<'de> for MooncakeRow
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MooncakeRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MooncakeRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MooncakeRow
impl Serialize for MooncakeRow
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MooncakeRow
impl RefUnwindSafe for MooncakeRow
impl Send for MooncakeRow
impl Sync for MooncakeRow
impl Unpin for MooncakeRow
impl UnsafeUnpin for MooncakeRow
impl UnwindSafe for MooncakeRow
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